diff --git a/.gitmodules b/.gitmodules index 7cf2577..a9e1c15 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "swig"] path = swig-of - url = https://github.com/chaosct/swig-openframeworks.git +url=https://github.com/danomatika/swig-openframeworks.git diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/README_SWIG.md b/README_SWIG.md new file mode 100755 index 0000000..dd0a221 --- /dev/null +++ b/README_SWIG.md @@ -0,0 +1,38 @@ +ofxPython +========= + +It took me a bit to work out how to make this addon work with newer OF versions. + +OSX +--- +1. install homebrew +Go here [http://brew.sh](http://brew.sh) and copy the script which looks like this: +/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +Past the script in to Terminal.app. +Hit enter. + +2. install SWIG +Paste brew install swig in to Terminal.app and hit enter. + +3. get newest swig-of +go to https://github.com/danomatika/swig-openframeworks and download the zip +place the content of the swig-of-master folder inside the already exisiting swig-of folder. + +4. navigate the terminal to the addon folder +cd /Applications/of_v0.9.8_osx_release/addons/ofxPython +then run the script provided with the addon ./generatebindings.sh + +It looks like generatebindings.sh also makes changes in each of the example folders. +I had to change ofCircle to ofDrawCircle in bin/data/myTest.sh. +I have tested this on OF v0.9.8 on OSX 10.11.6 + +I also was able to take this version of addon for 0.9.8 and just drop it in to 0.9.3. Works. + + +LINUX - Raspberry PI 3 armv6 +---------------------------- + +1. install swig +sudo apt-get install swig + +But the examples do not yet compile. \ No newline at end of file diff --git a/addon_config.mk b/addon_config.mk old mode 100644 new mode 100755 index 5c71de4..de3d023 --- a/addon_config.mk +++ b/addon_config.mk @@ -62,23 +62,39 @@ common: # ADDON_LIBS_EXCLUDE = linux64: - ADDON_SOURCES += src/ofxPython.cpp src/ofxPythonCallBack.cpp - ADDON_SOURCES += src/bindings/desktop/openFrameworks_wrap.cpp - ADDON_SOURCES += src/bindings/openFrameworks_extra_wrap.cpp ADDON_DATA = lib/openframeworks.py ADDON_DATA += lib/openframeworks_extra.py - + ADDON_CFLAGS += -I/usr/include/python2.7 + ADDON_LDFLAGS += -lpython2.7 + ADDON_SOURCES_EXCLUDE += src/bindings/linuxarm/% + ADDON_INCLUDES_EXCLUDE += src/bindings/linuxarm/% + linux: - ADDON_SOURCES += src/ofxPython.cpp src/ofxPythonCallBack.cpp - ADDON_SOURCES += src/bindings/desktop/openFrameworks_wrap.cpp - ADDON_SOURCES += src/bindings/openFrameworks_extra_wrap.cpp ADDON_DATA = lib/openframeworks.py ADDON_DATA += lib/openframeworks_extra.py + ADDON_CFLAGS += -I/usr/include/python2.7 + ADDON_LDFLAGS += -lpython2.7 + ADDON_SOURCES_EXCLUDE += src/bindings/linuxarm/% + ADDON_INCLUDES_EXCLUDE += src/bindings/linuxarm/% linuxarmv6l: - + ADDON_DATA = lib/openframeworks.py + ADDON_DATA += lib/openframeworks_extra.py + ADDON_CFLAGS += -I/usr/include/python2.7 + ADDON_LDFLAGS += -lpython2.7 + ADDON_SOURCES_EXCLUDE += src/bindings/desktop/% + ADDON_INCLUDES_EXCLUDE += src/bindings/desktop/% + ADDON_LIBS_EXCLUDE += libs + linuxarmv7l: - + ADDON_DATA = lib/openframeworks.py + ADDON_DATA += lib/openframeworks_extra.py + ADDON_CFLAGS += -I/usr/include/python2.7 + ADDON_LDFLAGS += -lpython2.7 + ADDON_SOURCES_EXCLUDE += src/bindings/desktop/% + ADDON_INCLUDES_EXCLUDE += src/bindings/desktop/% + ADDON_LIBS_EXCLUDE += libs + win_cb: ADDON_SOURCES += src/ofxPython.cpp src/ofxPythonCallBack.cpp ADDON_SOURCES += src/bindings/desktop/openFrameworks_wrap.cpp @@ -87,11 +103,15 @@ win_cb: ADDON_DATA += lib/openframeworks_extra.py ADDON_CFLAGS += -IC:/Python27/include ADDON_LDFLAGS += -LC:/Python27/libs -lpython + ADDON_SOURCES_EXCLUDE += src/bindings/linuxarm/% + ADDON_INCLUDES_EXCLUDE += src/bindings/linuxarm/% -android/armeabi: +android/armeabi: android/armeabi-v7a: osx: ADDON_CFLAGS += -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 ADDON_LDFLAGS += -lpython2.7 -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + ADDON_SOURCES_EXCLUDE += src/bindings/linuxarm/% + ADDON_INCLUDES_EXCLUDE += src/bindings/linuxarm/% \ No newline at end of file diff --git a/example_Callbacks/Makefile b/example_Callbacks/Makefile old mode 100644 new mode 100755 diff --git a/example_Callbacks/Project.xcconfig b/example_Callbacks/Project.xcconfig old mode 100644 new mode 100755 index c90f7b1..e570b15 --- a/example_Callbacks/Project.xcconfig +++ b/example_Callbacks/Project.xcconfig @@ -13,5 +13,5 @@ ICON_FILE_PATH = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/ //IF YOU WANT AN APP TO HAVE A CUSTOM ICON - PUT THEM IN YOUR DATA FOLDER AND CHANGE ICON_FILE_PATH to: //ICON_FILE_PATH = bin/data/ -OTHER_LDFLAGS = $(OF_CORE_LIBS) +OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_CORE_FRAMEWORKS) HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) diff --git a/example_Callbacks/addons.make b/example_Callbacks/addons.make old mode 100644 new mode 100755 diff --git a/example_Callbacks/bin/data/.gitkeep b/example_Callbacks/bin/data/.gitkeep old mode 100644 new mode 100755 diff --git a/example_Callbacks/bin/data/openframeworks.py b/example_Callbacks/bin/data/openframeworks.py old mode 100644 new mode 100755 index 58450cd..491b20a --- a/example_Callbacks/bin/data/openframeworks.py +++ b/example_Callbacks/bin/data/openframeworks.py @@ -1,13 +1,15 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 2.0.7 +# Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. + + from sys import version_info -if version_info >= (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -72,27 +95,62 @@ class SwigPyIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_SwigPyIterator - __del__ = lambda self : None; - def value(self): return _openframeworks.SwigPyIterator_value(self) - def incr(self, n=1): return _openframeworks.SwigPyIterator_incr(self, n) - def decr(self, n=1): return _openframeworks.SwigPyIterator_decr(self, n) - def distance(self, *args): return _openframeworks.SwigPyIterator_distance(self, *args) - def equal(self, *args): return _openframeworks.SwigPyIterator_equal(self, *args) - def copy(self): return _openframeworks.SwigPyIterator_copy(self) - def next(self): return _openframeworks.SwigPyIterator_next(self) - def __next__(self): return _openframeworks.SwigPyIterator___next__(self) - def previous(self): return _openframeworks.SwigPyIterator_previous(self) - def advance(self, *args): return _openframeworks.SwigPyIterator_advance(self, *args) - def __eq__(self, *args): return _openframeworks.SwigPyIterator___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.SwigPyIterator___ne__(self, *args) - def __iadd__(self, *args): return _openframeworks.SwigPyIterator___iadd__(self, *args) - def __isub__(self, *args): return _openframeworks.SwigPyIterator___isub__(self, *args) - def __add__(self, *args): return _openframeworks.SwigPyIterator___add__(self, *args) - def __sub__(self, *args): return _openframeworks.SwigPyIterator___sub__(self, *args) - def __iter__(self): return self + __del__ = lambda self: None + + def value(self): + return _openframeworks.SwigPyIterator_value(self) + + def incr(self, n=1): + return _openframeworks.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _openframeworks.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _openframeworks.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _openframeworks.SwigPyIterator_equal(self, x) + + def copy(self): + return _openframeworks.SwigPyIterator_copy(self) + + def next(self): + return _openframeworks.SwigPyIterator_next(self) + + def __next__(self): + return _openframeworks.SwigPyIterator___next__(self) + + def previous(self): + return _openframeworks.SwigPyIterator_previous(self) + + def advance(self, n): + return _openframeworks.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _openframeworks.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _openframeworks.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _openframeworks.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _openframeworks.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _openframeworks.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _openframeworks.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self SwigPyIterator_swigregister = _openframeworks.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) @@ -102,44 +160,110 @@ class IntVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.IntVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.IntVector___nonzero__(self) - def __bool__(self): return _openframeworks.IntVector___bool__(self) - def __len__(self): return _openframeworks.IntVector___len__(self) - def pop(self): return _openframeworks.IntVector_pop(self) - def __getslice__(self, *args): return _openframeworks.IntVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.IntVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.IntVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.IntVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.IntVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.IntVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.IntVector_append(self, *args) - def empty(self): return _openframeworks.IntVector_empty(self) - def size(self): return _openframeworks.IntVector_size(self) - def clear(self): return _openframeworks.IntVector_clear(self) - def swap(self, *args): return _openframeworks.IntVector_swap(self, *args) - def get_allocator(self): return _openframeworks.IntVector_get_allocator(self) - def begin(self): return _openframeworks.IntVector_begin(self) - def end(self): return _openframeworks.IntVector_end(self) - def rbegin(self): return _openframeworks.IntVector_rbegin(self) - def rend(self): return _openframeworks.IntVector_rend(self) - def pop_back(self): return _openframeworks.IntVector_pop_back(self) - def erase(self, *args): return _openframeworks.IntVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.IntVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.IntVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.IntVector___bool__(self) + + def __len__(self): + return _openframeworks.IntVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.IntVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.IntVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.IntVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.IntVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.IntVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.IntVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.IntVector_pop(self) + + def append(self, x): + return _openframeworks.IntVector_append(self, x) + + def empty(self): + return _openframeworks.IntVector_empty(self) + + def size(self): + return _openframeworks.IntVector_size(self) + + def swap(self, v): + return _openframeworks.IntVector_swap(self, v) + + def begin(self): + return _openframeworks.IntVector_begin(self) + + def end(self): + return _openframeworks.IntVector_end(self) + + def rbegin(self): + return _openframeworks.IntVector_rbegin(self) + + def rend(self): + return _openframeworks.IntVector_rend(self) + + def clear(self): + return _openframeworks.IntVector_clear(self) + + def get_allocator(self): + return _openframeworks.IntVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.IntVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.IntVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_IntVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.IntVector_push_back(self, *args) - def front(self): return _openframeworks.IntVector_front(self) - def back(self): return _openframeworks.IntVector_back(self) - def assign(self, *args): return _openframeworks.IntVector_assign(self, *args) - def resize(self, *args): return _openframeworks.IntVector_resize(self, *args) - def insert(self, *args): return _openframeworks.IntVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.IntVector_reserve(self, *args) - def capacity(self): return _openframeworks.IntVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.IntVector_push_back(self, x) + + def front(self): + return _openframeworks.IntVector_front(self) + + def back(self): + return _openframeworks.IntVector_back(self) + + def assign(self, n, x): + return _openframeworks.IntVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.IntVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.IntVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.IntVector_reserve(self, n) + + def capacity(self): + return _openframeworks.IntVector_capacity(self) __swig_destroy__ = _openframeworks.delete_IntVector - __del__ = lambda self : None; + __del__ = lambda self: None IntVector_swigregister = _openframeworks.IntVector_swigregister IntVector_swigregister(IntVector) @@ -149,44 +273,110 @@ class FloatVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, FloatVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.FloatVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.FloatVector___nonzero__(self) - def __bool__(self): return _openframeworks.FloatVector___bool__(self) - def __len__(self): return _openframeworks.FloatVector___len__(self) - def pop(self): return _openframeworks.FloatVector_pop(self) - def __getslice__(self, *args): return _openframeworks.FloatVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.FloatVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.FloatVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.FloatVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.FloatVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.FloatVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.FloatVector_append(self, *args) - def empty(self): return _openframeworks.FloatVector_empty(self) - def size(self): return _openframeworks.FloatVector_size(self) - def clear(self): return _openframeworks.FloatVector_clear(self) - def swap(self, *args): return _openframeworks.FloatVector_swap(self, *args) - def get_allocator(self): return _openframeworks.FloatVector_get_allocator(self) - def begin(self): return _openframeworks.FloatVector_begin(self) - def end(self): return _openframeworks.FloatVector_end(self) - def rbegin(self): return _openframeworks.FloatVector_rbegin(self) - def rend(self): return _openframeworks.FloatVector_rend(self) - def pop_back(self): return _openframeworks.FloatVector_pop_back(self) - def erase(self, *args): return _openframeworks.FloatVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.FloatVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.FloatVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.FloatVector___bool__(self) + + def __len__(self): + return _openframeworks.FloatVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.FloatVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.FloatVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.FloatVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.FloatVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.FloatVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.FloatVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.FloatVector_pop(self) + + def append(self, x): + return _openframeworks.FloatVector_append(self, x) + + def empty(self): + return _openframeworks.FloatVector_empty(self) + + def size(self): + return _openframeworks.FloatVector_size(self) + + def swap(self, v): + return _openframeworks.FloatVector_swap(self, v) + + def begin(self): + return _openframeworks.FloatVector_begin(self) + + def end(self): + return _openframeworks.FloatVector_end(self) + + def rbegin(self): + return _openframeworks.FloatVector_rbegin(self) + + def rend(self): + return _openframeworks.FloatVector_rend(self) + + def clear(self): + return _openframeworks.FloatVector_clear(self) + + def get_allocator(self): + return _openframeworks.FloatVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.FloatVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.FloatVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_FloatVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.FloatVector_push_back(self, *args) - def front(self): return _openframeworks.FloatVector_front(self) - def back(self): return _openframeworks.FloatVector_back(self) - def assign(self, *args): return _openframeworks.FloatVector_assign(self, *args) - def resize(self, *args): return _openframeworks.FloatVector_resize(self, *args) - def insert(self, *args): return _openframeworks.FloatVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.FloatVector_reserve(self, *args) - def capacity(self): return _openframeworks.FloatVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.FloatVector_push_back(self, x) + + def front(self): + return _openframeworks.FloatVector_front(self) + + def back(self): + return _openframeworks.FloatVector_back(self) + + def assign(self, n, x): + return _openframeworks.FloatVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.FloatVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.FloatVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.FloatVector_reserve(self, n) + + def capacity(self): + return _openframeworks.FloatVector_capacity(self) __swig_destroy__ = _openframeworks.delete_FloatVector - __del__ = lambda self : None; + __del__ = lambda self: None FloatVector_swigregister = _openframeworks.FloatVector_swigregister FloatVector_swigregister(FloatVector) @@ -196,201 +386,631 @@ class StringVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, StringVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.StringVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.StringVector___nonzero__(self) - def __bool__(self): return _openframeworks.StringVector___bool__(self) - def __len__(self): return _openframeworks.StringVector___len__(self) - def pop(self): return _openframeworks.StringVector_pop(self) - def __getslice__(self, *args): return _openframeworks.StringVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.StringVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.StringVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.StringVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.StringVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.StringVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.StringVector_append(self, *args) - def empty(self): return _openframeworks.StringVector_empty(self) - def size(self): return _openframeworks.StringVector_size(self) - def clear(self): return _openframeworks.StringVector_clear(self) - def swap(self, *args): return _openframeworks.StringVector_swap(self, *args) - def get_allocator(self): return _openframeworks.StringVector_get_allocator(self) - def begin(self): return _openframeworks.StringVector_begin(self) - def end(self): return _openframeworks.StringVector_end(self) - def rbegin(self): return _openframeworks.StringVector_rbegin(self) - def rend(self): return _openframeworks.StringVector_rend(self) - def pop_back(self): return _openframeworks.StringVector_pop_back(self) - def erase(self, *args): return _openframeworks.StringVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.StringVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.StringVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.StringVector___bool__(self) + + def __len__(self): + return _openframeworks.StringVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.StringVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.StringVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.StringVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.StringVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.StringVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.StringVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.StringVector_pop(self) + + def append(self, x): + return _openframeworks.StringVector_append(self, x) + + def empty(self): + return _openframeworks.StringVector_empty(self) + + def size(self): + return _openframeworks.StringVector_size(self) + + def swap(self, v): + return _openframeworks.StringVector_swap(self, v) + + def begin(self): + return _openframeworks.StringVector_begin(self) + + def end(self): + return _openframeworks.StringVector_end(self) + + def rbegin(self): + return _openframeworks.StringVector_rbegin(self) + + def rend(self): + return _openframeworks.StringVector_rend(self) + + def clear(self): + return _openframeworks.StringVector_clear(self) + + def get_allocator(self): + return _openframeworks.StringVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.StringVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.StringVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_StringVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.StringVector_push_back(self, *args) - def front(self): return _openframeworks.StringVector_front(self) - def back(self): return _openframeworks.StringVector_back(self) - def assign(self, *args): return _openframeworks.StringVector_assign(self, *args) - def resize(self, *args): return _openframeworks.StringVector_resize(self, *args) - def insert(self, *args): return _openframeworks.StringVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.StringVector_reserve(self, *args) - def capacity(self): return _openframeworks.StringVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.StringVector_push_back(self, x) + + def front(self): + return _openframeworks.StringVector_front(self) + + def back(self): + return _openframeworks.StringVector_back(self) + + def assign(self, n, x): + return _openframeworks.StringVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.StringVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.StringVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.StringVector_reserve(self, n) + + def capacity(self): + return _openframeworks.StringVector_capacity(self) __swig_destroy__ = _openframeworks.delete_StringVector - __del__ = lambda self : None; + __del__ = lambda self: None StringVector_swigregister = _openframeworks.StringVector_swigregister StringVector_swigregister(StringVector) + +_openframeworks.OF_VERSION_MAJOR_swigconstant(_openframeworks) OF_VERSION_MAJOR = _openframeworks.OF_VERSION_MAJOR + +_openframeworks.OF_VERSION_MINOR_swigconstant(_openframeworks) OF_VERSION_MINOR = _openframeworks.OF_VERSION_MINOR + +_openframeworks.OF_VERSION_PATCH_swigconstant(_openframeworks) OF_VERSION_PATCH = _openframeworks.OF_VERSION_PATCH + +_openframeworks.OF_VERSION_PRE_RELEASE_swigconstant(_openframeworks) +OF_VERSION_PRE_RELEASE = _openframeworks.OF_VERSION_PRE_RELEASE + +_openframeworks.OF_LOOP_NONE_swigconstant(_openframeworks) OF_LOOP_NONE = _openframeworks.OF_LOOP_NONE + +_openframeworks.OF_LOOP_PALINDROME_swigconstant(_openframeworks) OF_LOOP_PALINDROME = _openframeworks.OF_LOOP_PALINDROME + +_openframeworks.OF_LOOP_NORMAL_swigconstant(_openframeworks) OF_LOOP_NORMAL = _openframeworks.OF_LOOP_NORMAL + +_openframeworks.OF_TARGET_OSX_swigconstant(_openframeworks) OF_TARGET_OSX = _openframeworks.OF_TARGET_OSX -OF_TARGET_WINGCC = _openframeworks.OF_TARGET_WINGCC + +_openframeworks.OF_TARGET_MINGW_swigconstant(_openframeworks) +OF_TARGET_MINGW = _openframeworks.OF_TARGET_MINGW + +_openframeworks.OF_TARGET_WINVS_swigconstant(_openframeworks) OF_TARGET_WINVS = _openframeworks.OF_TARGET_WINVS + +_openframeworks.OF_TARGET_IOS_swigconstant(_openframeworks) OF_TARGET_IOS = _openframeworks.OF_TARGET_IOS + +_openframeworks.OF_TARGET_ANDROID_swigconstant(_openframeworks) OF_TARGET_ANDROID = _openframeworks.OF_TARGET_ANDROID + +_openframeworks.OF_TARGET_LINUX_swigconstant(_openframeworks) OF_TARGET_LINUX = _openframeworks.OF_TARGET_LINUX + +_openframeworks.OF_TARGET_LINUX64_swigconstant(_openframeworks) OF_TARGET_LINUX64 = _openframeworks.OF_TARGET_LINUX64 + +_openframeworks.OF_TARGET_LINUXARMV6L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV6L = _openframeworks.OF_TARGET_LINUXARMV6L + +_openframeworks.OF_TARGET_LINUXARMV7L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV7L = _openframeworks.OF_TARGET_LINUXARMV7L + +_openframeworks.OF_TARGET_EMSCRIPTEN_swigconstant(_openframeworks) +OF_TARGET_EMSCRIPTEN = _openframeworks.OF_TARGET_EMSCRIPTEN + +_openframeworks.B14400_swigconstant(_openframeworks) B14400 = _openframeworks.B14400 + +_openframeworks.B28800_swigconstant(_openframeworks) B28800 = _openframeworks.B28800 + +_openframeworks.HAS_TLS_swigconstant(_openframeworks) +HAS_TLS = _openframeworks.HAS_TLS + +_openframeworks.OF_SERIAL_NO_DATA_swigconstant(_openframeworks) OF_SERIAL_NO_DATA = _openframeworks.OF_SERIAL_NO_DATA + +_openframeworks.OF_SERIAL_ERROR_swigconstant(_openframeworks) OF_SERIAL_ERROR = _openframeworks.OF_SERIAL_ERROR + +_openframeworks.PI_swigconstant(_openframeworks) PI = _openframeworks.PI + +_openframeworks.TWO_PI_swigconstant(_openframeworks) TWO_PI = _openframeworks.TWO_PI + +_openframeworks.M_TWO_PI_swigconstant(_openframeworks) M_TWO_PI = _openframeworks.M_TWO_PI + +_openframeworks.FOUR_PI_swigconstant(_openframeworks) FOUR_PI = _openframeworks.FOUR_PI + +_openframeworks.HALF_PI_swigconstant(_openframeworks) HALF_PI = _openframeworks.HALF_PI + +_openframeworks.DEG_TO_RAD_swigconstant(_openframeworks) DEG_TO_RAD = _openframeworks.DEG_TO_RAD + +_openframeworks.RAD_TO_DEG_swigconstant(_openframeworks) RAD_TO_DEG = _openframeworks.RAD_TO_DEG + +_openframeworks.OF_OUTLINE_swigconstant(_openframeworks) OF_OUTLINE = _openframeworks.OF_OUTLINE + +_openframeworks.OF_FILLED_swigconstant(_openframeworks) OF_FILLED = _openframeworks.OF_FILLED + +_openframeworks.OF_WINDOW_swigconstant(_openframeworks) OF_WINDOW = _openframeworks.OF_WINDOW + +_openframeworks.OF_FULLSCREEN_swigconstant(_openframeworks) OF_FULLSCREEN = _openframeworks.OF_FULLSCREEN + +_openframeworks.OF_GAME_MODE_swigconstant(_openframeworks) OF_GAME_MODE = _openframeworks.OF_GAME_MODE + +_openframeworks.OF_ASPECT_RATIO_IGNORE_swigconstant(_openframeworks) OF_ASPECT_RATIO_IGNORE = _openframeworks.OF_ASPECT_RATIO_IGNORE + +_openframeworks.OF_ASPECT_RATIO_KEEP_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP = _openframeworks.OF_ASPECT_RATIO_KEEP + +_openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP_BY_EXPANDING = _openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING + +_openframeworks.OF_ALIGN_VERT_IGNORE_swigconstant(_openframeworks) OF_ALIGN_VERT_IGNORE = _openframeworks.OF_ALIGN_VERT_IGNORE + +_openframeworks.OF_ALIGN_VERT_TOP_swigconstant(_openframeworks) OF_ALIGN_VERT_TOP = _openframeworks.OF_ALIGN_VERT_TOP + +_openframeworks.OF_ALIGN_VERT_BOTTOM_swigconstant(_openframeworks) OF_ALIGN_VERT_BOTTOM = _openframeworks.OF_ALIGN_VERT_BOTTOM + +_openframeworks.OF_ALIGN_VERT_CENTER_swigconstant(_openframeworks) OF_ALIGN_VERT_CENTER = _openframeworks.OF_ALIGN_VERT_CENTER + +_openframeworks.OF_ALIGN_HORZ_IGNORE_swigconstant(_openframeworks) OF_ALIGN_HORZ_IGNORE = _openframeworks.OF_ALIGN_HORZ_IGNORE + +_openframeworks.OF_ALIGN_HORZ_LEFT_swigconstant(_openframeworks) OF_ALIGN_HORZ_LEFT = _openframeworks.OF_ALIGN_HORZ_LEFT + +_openframeworks.OF_ALIGN_HORZ_RIGHT_swigconstant(_openframeworks) OF_ALIGN_HORZ_RIGHT = _openframeworks.OF_ALIGN_HORZ_RIGHT + +_openframeworks.OF_ALIGN_HORZ_CENTER_swigconstant(_openframeworks) OF_ALIGN_HORZ_CENTER = _openframeworks.OF_ALIGN_HORZ_CENTER + +_openframeworks.OF_RECTMODE_CORNER_swigconstant(_openframeworks) OF_RECTMODE_CORNER = _openframeworks.OF_RECTMODE_CORNER + +_openframeworks.OF_RECTMODE_CENTER_swigconstant(_openframeworks) OF_RECTMODE_CENTER = _openframeworks.OF_RECTMODE_CENTER + +_openframeworks.OF_SCALEMODE_FIT_swigconstant(_openframeworks) OF_SCALEMODE_FIT = _openframeworks.OF_SCALEMODE_FIT + +_openframeworks.OF_SCALEMODE_FILL_swigconstant(_openframeworks) OF_SCALEMODE_FILL = _openframeworks.OF_SCALEMODE_FILL + +_openframeworks.OF_SCALEMODE_CENTER_swigconstant(_openframeworks) OF_SCALEMODE_CENTER = _openframeworks.OF_SCALEMODE_CENTER + +_openframeworks.OF_SCALEMODE_STRETCH_TO_FILL_swigconstant(_openframeworks) OF_SCALEMODE_STRETCH_TO_FILL = _openframeworks.OF_SCALEMODE_STRETCH_TO_FILL + +_openframeworks.OF_IMAGE_GRAYSCALE_swigconstant(_openframeworks) OF_IMAGE_GRAYSCALE = _openframeworks.OF_IMAGE_GRAYSCALE + +_openframeworks.OF_IMAGE_COLOR_swigconstant(_openframeworks) OF_IMAGE_COLOR = _openframeworks.OF_IMAGE_COLOR + +_openframeworks.OF_IMAGE_COLOR_ALPHA_swigconstant(_openframeworks) OF_IMAGE_COLOR_ALPHA = _openframeworks.OF_IMAGE_COLOR_ALPHA + +_openframeworks.OF_IMAGE_UNDEFINED_swigconstant(_openframeworks) OF_IMAGE_UNDEFINED = _openframeworks.OF_IMAGE_UNDEFINED -OF_PIXELS_MONO = _openframeworks.OF_PIXELS_MONO -OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB -OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA -OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA -OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 -OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_MAX_STYLE_HISTORY_swigconstant(_openframeworks) OF_MAX_STYLE_HISTORY = _openframeworks.OF_MAX_STYLE_HISTORY + +_openframeworks.OF_MAX_VIEWPORT_HISTORY_swigconstant(_openframeworks) OF_MAX_VIEWPORT_HISTORY = _openframeworks.OF_MAX_VIEWPORT_HISTORY + +_openframeworks.OF_MAX_CIRCLE_PTS_swigconstant(_openframeworks) OF_MAX_CIRCLE_PTS = _openframeworks.OF_MAX_CIRCLE_PTS + +_openframeworks.OF_BLENDMODE_DISABLED_swigconstant(_openframeworks) OF_BLENDMODE_DISABLED = _openframeworks.OF_BLENDMODE_DISABLED + +_openframeworks.OF_BLENDMODE_ALPHA_swigconstant(_openframeworks) OF_BLENDMODE_ALPHA = _openframeworks.OF_BLENDMODE_ALPHA + +_openframeworks.OF_BLENDMODE_ADD_swigconstant(_openframeworks) OF_BLENDMODE_ADD = _openframeworks.OF_BLENDMODE_ADD + +_openframeworks.OF_BLENDMODE_SUBTRACT_swigconstant(_openframeworks) OF_BLENDMODE_SUBTRACT = _openframeworks.OF_BLENDMODE_SUBTRACT + +_openframeworks.OF_BLENDMODE_MULTIPLY_swigconstant(_openframeworks) OF_BLENDMODE_MULTIPLY = _openframeworks.OF_BLENDMODE_MULTIPLY + +_openframeworks.OF_BLENDMODE_SCREEN_swigconstant(_openframeworks) OF_BLENDMODE_SCREEN = _openframeworks.OF_BLENDMODE_SCREEN + +_openframeworks.OF_ORIENTATION_DEFAULT_swigconstant(_openframeworks) OF_ORIENTATION_DEFAULT = _openframeworks.OF_ORIENTATION_DEFAULT + +_openframeworks.OF_ORIENTATION_180_swigconstant(_openframeworks) OF_ORIENTATION_180 = _openframeworks.OF_ORIENTATION_180 + +_openframeworks.OF_ORIENTATION_90_LEFT_swigconstant(_openframeworks) OF_ORIENTATION_90_LEFT = _openframeworks.OF_ORIENTATION_90_LEFT + +_openframeworks.OF_ORIENTATION_90_RIGHT_swigconstant(_openframeworks) OF_ORIENTATION_90_RIGHT = _openframeworks.OF_ORIENTATION_90_RIGHT + +_openframeworks.OF_ORIENTATION_UNKNOWN_swigconstant(_openframeworks) OF_ORIENTATION_UNKNOWN = _openframeworks.OF_ORIENTATION_UNKNOWN + +_openframeworks.OF_GRADIENT_LINEAR_swigconstant(_openframeworks) OF_GRADIENT_LINEAR = _openframeworks.OF_GRADIENT_LINEAR + +_openframeworks.OF_GRADIENT_CIRCULAR_swigconstant(_openframeworks) OF_GRADIENT_CIRCULAR = _openframeworks.OF_GRADIENT_CIRCULAR + +_openframeworks.OF_GRADIENT_BAR_swigconstant(_openframeworks) OF_GRADIENT_BAR = _openframeworks.OF_GRADIENT_BAR + +_openframeworks.OF_POLY_WINDING_ODD_swigconstant(_openframeworks) OF_POLY_WINDING_ODD = _openframeworks.OF_POLY_WINDING_ODD + +_openframeworks.OF_POLY_WINDING_NONZERO_swigconstant(_openframeworks) OF_POLY_WINDING_NONZERO = _openframeworks.OF_POLY_WINDING_NONZERO + +_openframeworks.OF_POLY_WINDING_POSITIVE_swigconstant(_openframeworks) OF_POLY_WINDING_POSITIVE = _openframeworks.OF_POLY_WINDING_POSITIVE + +_openframeworks.OF_POLY_WINDING_NEGATIVE_swigconstant(_openframeworks) OF_POLY_WINDING_NEGATIVE = _openframeworks.OF_POLY_WINDING_NEGATIVE + +_openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant(_openframeworks) OF_POLY_WINDING_ABS_GEQ_TWO = _openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO + +_openframeworks.OF_CLOSE_swigconstant(_openframeworks) OF_CLOSE = _openframeworks.OF_CLOSE + +_openframeworks.OF_LEFT_HANDED_swigconstant(_openframeworks) OF_LEFT_HANDED = _openframeworks.OF_LEFT_HANDED + +_openframeworks.OF_RIGHT_HANDED_swigconstant(_openframeworks) OF_RIGHT_HANDED = _openframeworks.OF_RIGHT_HANDED + +_openframeworks.OF_MATRIX_MODELVIEW_swigconstant(_openframeworks) OF_MATRIX_MODELVIEW = _openframeworks.OF_MATRIX_MODELVIEW + +_openframeworks.OF_MATRIX_PROJECTION_swigconstant(_openframeworks) OF_MATRIX_PROJECTION = _openframeworks.OF_MATRIX_PROJECTION + +_openframeworks.OF_MATRIX_TEXTURE_swigconstant(_openframeworks) OF_MATRIX_TEXTURE = _openframeworks.OF_MATRIX_TEXTURE + +_openframeworks.OF_KEY_MODIFIER_swigconstant(_openframeworks) OF_KEY_MODIFIER = _openframeworks.OF_KEY_MODIFIER + +_openframeworks.OF_KEY_RETURN_swigconstant(_openframeworks) OF_KEY_RETURN = _openframeworks.OF_KEY_RETURN + +_openframeworks.OF_KEY_ESC_swigconstant(_openframeworks) OF_KEY_ESC = _openframeworks.OF_KEY_ESC + +_openframeworks.OF_KEY_TAB_swigconstant(_openframeworks) OF_KEY_TAB = _openframeworks.OF_KEY_TAB + +_openframeworks.OF_KEY_BACKSPACE_swigconstant(_openframeworks) OF_KEY_BACKSPACE = _openframeworks.OF_KEY_BACKSPACE + +_openframeworks.OF_KEY_DEL_swigconstant(_openframeworks) OF_KEY_DEL = _openframeworks.OF_KEY_DEL + +_openframeworks.OF_KEY_F1_swigconstant(_openframeworks) OF_KEY_F1 = _openframeworks.OF_KEY_F1 + +_openframeworks.OF_KEY_F2_swigconstant(_openframeworks) OF_KEY_F2 = _openframeworks.OF_KEY_F2 + +_openframeworks.OF_KEY_F3_swigconstant(_openframeworks) OF_KEY_F3 = _openframeworks.OF_KEY_F3 + +_openframeworks.OF_KEY_F4_swigconstant(_openframeworks) OF_KEY_F4 = _openframeworks.OF_KEY_F4 + +_openframeworks.OF_KEY_F5_swigconstant(_openframeworks) OF_KEY_F5 = _openframeworks.OF_KEY_F5 + +_openframeworks.OF_KEY_F6_swigconstant(_openframeworks) OF_KEY_F6 = _openframeworks.OF_KEY_F6 + +_openframeworks.OF_KEY_F7_swigconstant(_openframeworks) OF_KEY_F7 = _openframeworks.OF_KEY_F7 + +_openframeworks.OF_KEY_F8_swigconstant(_openframeworks) OF_KEY_F8 = _openframeworks.OF_KEY_F8 + +_openframeworks.OF_KEY_F9_swigconstant(_openframeworks) OF_KEY_F9 = _openframeworks.OF_KEY_F9 + +_openframeworks.OF_KEY_F10_swigconstant(_openframeworks) OF_KEY_F10 = _openframeworks.OF_KEY_F10 + +_openframeworks.OF_KEY_F11_swigconstant(_openframeworks) OF_KEY_F11 = _openframeworks.OF_KEY_F11 + +_openframeworks.OF_KEY_F12_swigconstant(_openframeworks) OF_KEY_F12 = _openframeworks.OF_KEY_F12 + +_openframeworks.OF_KEY_LEFT_swigconstant(_openframeworks) OF_KEY_LEFT = _openframeworks.OF_KEY_LEFT + +_openframeworks.OF_KEY_UP_swigconstant(_openframeworks) OF_KEY_UP = _openframeworks.OF_KEY_UP + +_openframeworks.OF_KEY_RIGHT_swigconstant(_openframeworks) OF_KEY_RIGHT = _openframeworks.OF_KEY_RIGHT + +_openframeworks.OF_KEY_DOWN_swigconstant(_openframeworks) OF_KEY_DOWN = _openframeworks.OF_KEY_DOWN + +_openframeworks.OF_KEY_PAGE_UP_swigconstant(_openframeworks) OF_KEY_PAGE_UP = _openframeworks.OF_KEY_PAGE_UP + +_openframeworks.OF_KEY_PAGE_DOWN_swigconstant(_openframeworks) OF_KEY_PAGE_DOWN = _openframeworks.OF_KEY_PAGE_DOWN + +_openframeworks.OF_KEY_HOME_swigconstant(_openframeworks) OF_KEY_HOME = _openframeworks.OF_KEY_HOME + +_openframeworks.OF_KEY_END_swigconstant(_openframeworks) OF_KEY_END = _openframeworks.OF_KEY_END + +_openframeworks.OF_KEY_INSERT_swigconstant(_openframeworks) OF_KEY_INSERT = _openframeworks.OF_KEY_INSERT + +_openframeworks.OF_KEY_CONTROL_swigconstant(_openframeworks) OF_KEY_CONTROL = _openframeworks.OF_KEY_CONTROL + +_openframeworks.OF_KEY_ALT_swigconstant(_openframeworks) OF_KEY_ALT = _openframeworks.OF_KEY_ALT + +_openframeworks.OF_KEY_SHIFT_swigconstant(_openframeworks) OF_KEY_SHIFT = _openframeworks.OF_KEY_SHIFT + +_openframeworks.OF_KEY_SUPER_swigconstant(_openframeworks) OF_KEY_SUPER = _openframeworks.OF_KEY_SUPER + +_openframeworks.OF_KEY_LEFT_SHIFT_swigconstant(_openframeworks) OF_KEY_LEFT_SHIFT = _openframeworks.OF_KEY_LEFT_SHIFT + +_openframeworks.OF_KEY_RIGHT_SHIFT_swigconstant(_openframeworks) OF_KEY_RIGHT_SHIFT = _openframeworks.OF_KEY_RIGHT_SHIFT + +_openframeworks.OF_KEY_LEFT_CONTROL_swigconstant(_openframeworks) OF_KEY_LEFT_CONTROL = _openframeworks.OF_KEY_LEFT_CONTROL + +_openframeworks.OF_KEY_RIGHT_CONTROL_swigconstant(_openframeworks) OF_KEY_RIGHT_CONTROL = _openframeworks.OF_KEY_RIGHT_CONTROL + +_openframeworks.OF_KEY_LEFT_ALT_swigconstant(_openframeworks) OF_KEY_LEFT_ALT = _openframeworks.OF_KEY_LEFT_ALT + +_openframeworks.OF_KEY_RIGHT_ALT_swigconstant(_openframeworks) OF_KEY_RIGHT_ALT = _openframeworks.OF_KEY_RIGHT_ALT + +_openframeworks.OF_KEY_LEFT_SUPER_swigconstant(_openframeworks) OF_KEY_LEFT_SUPER = _openframeworks.OF_KEY_LEFT_SUPER + +_openframeworks.OF_KEY_RIGHT_SUPER_swigconstant(_openframeworks) OF_KEY_RIGHT_SUPER = _openframeworks.OF_KEY_RIGHT_SUPER + +_openframeworks.OF_KEY_LEFT_COMMAND_swigconstant(_openframeworks) OF_KEY_LEFT_COMMAND = _openframeworks.OF_KEY_LEFT_COMMAND + +_openframeworks.OF_KEY_RIGHT_COMMAND_swigconstant(_openframeworks) OF_KEY_RIGHT_COMMAND = _openframeworks.OF_KEY_RIGHT_COMMAND + +_openframeworks.OF_MOUSE_BUTTON_1_swigconstant(_openframeworks) OF_MOUSE_BUTTON_1 = _openframeworks.OF_MOUSE_BUTTON_1 + +_openframeworks.OF_MOUSE_BUTTON_2_swigconstant(_openframeworks) OF_MOUSE_BUTTON_2 = _openframeworks.OF_MOUSE_BUTTON_2 + +_openframeworks.OF_MOUSE_BUTTON_3_swigconstant(_openframeworks) OF_MOUSE_BUTTON_3 = _openframeworks.OF_MOUSE_BUTTON_3 + +_openframeworks.OF_MOUSE_BUTTON_4_swigconstant(_openframeworks) OF_MOUSE_BUTTON_4 = _openframeworks.OF_MOUSE_BUTTON_4 + +_openframeworks.OF_MOUSE_BUTTON_5_swigconstant(_openframeworks) OF_MOUSE_BUTTON_5 = _openframeworks.OF_MOUSE_BUTTON_5 + +_openframeworks.OF_MOUSE_BUTTON_6_swigconstant(_openframeworks) OF_MOUSE_BUTTON_6 = _openframeworks.OF_MOUSE_BUTTON_6 + +_openframeworks.OF_MOUSE_BUTTON_7_swigconstant(_openframeworks) OF_MOUSE_BUTTON_7 = _openframeworks.OF_MOUSE_BUTTON_7 + +_openframeworks.OF_MOUSE_BUTTON_8_swigconstant(_openframeworks) OF_MOUSE_BUTTON_8 = _openframeworks.OF_MOUSE_BUTTON_8 + +_openframeworks.OF_MOUSE_BUTTON_LAST_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LAST = _openframeworks.OF_MOUSE_BUTTON_LAST + +_openframeworks.OF_MOUSE_BUTTON_LEFT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LEFT = _openframeworks.OF_MOUSE_BUTTON_LEFT + +_openframeworks.OF_MOUSE_BUTTON_MIDDLE_swigconstant(_openframeworks) OF_MOUSE_BUTTON_MIDDLE = _openframeworks.OF_MOUSE_BUTTON_MIDDLE + +_openframeworks.OF_MOUSE_BUTTON_RIGHT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_RIGHT = _openframeworks.OF_MOUSE_BUTTON_RIGHT + +_openframeworks.OF_CONSOLE_COLOR_RESTORE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RESTORE = _openframeworks.OF_CONSOLE_COLOR_RESTORE + +_openframeworks.OF_CONSOLE_COLOR_BLACK_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLACK = _openframeworks.OF_CONSOLE_COLOR_BLACK + +_openframeworks.OF_CONSOLE_COLOR_RED_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RED = _openframeworks.OF_CONSOLE_COLOR_RED + +_openframeworks.OF_CONSOLE_COLOR_GREEN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_GREEN = _openframeworks.OF_CONSOLE_COLOR_GREEN + +_openframeworks.OF_CONSOLE_COLOR_YELLOW_swigconstant(_openframeworks) OF_CONSOLE_COLOR_YELLOW = _openframeworks.OF_CONSOLE_COLOR_YELLOW + +_openframeworks.OF_CONSOLE_COLOR_BLUE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLUE = _openframeworks.OF_CONSOLE_COLOR_BLUE + +_openframeworks.OF_CONSOLE_COLOR_PURPLE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_PURPLE = _openframeworks.OF_CONSOLE_COLOR_PURPLE + +_openframeworks.OF_CONSOLE_COLOR_CYAN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_CYAN = _openframeworks.OF_CONSOLE_COLOR_CYAN + +_openframeworks.OF_CONSOLE_COLOR_WHITE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_WHITE = _openframeworks.OF_CONSOLE_COLOR_WHITE + +_openframeworks.OF_PIXELS_GRAY_swigconstant(_openframeworks) +OF_PIXELS_GRAY = _openframeworks.OF_PIXELS_GRAY + +_openframeworks.OF_PIXELS_GRAY_ALPHA_swigconstant(_openframeworks) +OF_PIXELS_GRAY_ALPHA = _openframeworks.OF_PIXELS_GRAY_ALPHA + +_openframeworks.OF_PIXELS_RGB_swigconstant(_openframeworks) +OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB + +_openframeworks.OF_PIXELS_BGR_swigconstant(_openframeworks) +OF_PIXELS_BGR = _openframeworks.OF_PIXELS_BGR + +_openframeworks.OF_PIXELS_RGBA_swigconstant(_openframeworks) +OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA + +_openframeworks.OF_PIXELS_BGRA_swigconstant(_openframeworks) +OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA + +_openframeworks.OF_PIXELS_RGB565_swigconstant(_openframeworks) +OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 + +_openframeworks.OF_PIXELS_NV12_swigconstant(_openframeworks) +OF_PIXELS_NV12 = _openframeworks.OF_PIXELS_NV12 + +_openframeworks.OF_PIXELS_NV21_swigconstant(_openframeworks) +OF_PIXELS_NV21 = _openframeworks.OF_PIXELS_NV21 + +_openframeworks.OF_PIXELS_YV12_swigconstant(_openframeworks) +OF_PIXELS_YV12 = _openframeworks.OF_PIXELS_YV12 + +_openframeworks.OF_PIXELS_I420_swigconstant(_openframeworks) +OF_PIXELS_I420 = _openframeworks.OF_PIXELS_I420 + +_openframeworks.OF_PIXELS_YUY2_swigconstant(_openframeworks) +OF_PIXELS_YUY2 = _openframeworks.OF_PIXELS_YUY2 + +_openframeworks.OF_PIXELS_UYVY_swigconstant(_openframeworks) +OF_PIXELS_UYVY = _openframeworks.OF_PIXELS_UYVY + +_openframeworks.OF_PIXELS_Y_swigconstant(_openframeworks) +OF_PIXELS_Y = _openframeworks.OF_PIXELS_Y + +_openframeworks.OF_PIXELS_U_swigconstant(_openframeworks) +OF_PIXELS_U = _openframeworks.OF_PIXELS_U + +_openframeworks.OF_PIXELS_V_swigconstant(_openframeworks) +OF_PIXELS_V = _openframeworks.OF_PIXELS_V + +_openframeworks.OF_PIXELS_UV_swigconstant(_openframeworks) +OF_PIXELS_UV = _openframeworks.OF_PIXELS_UV + +_openframeworks.OF_PIXELS_VU_swigconstant(_openframeworks) +OF_PIXELS_VU = _openframeworks.OF_PIXELS_VU + +_openframeworks.OF_PIXELS_NUM_FORMATS_swigconstant(_openframeworks) +OF_PIXELS_NUM_FORMATS = _openframeworks.OF_PIXELS_NUM_FORMATS + +_openframeworks.OF_PIXELS_UNKNOWN_swigconstant(_openframeworks) +OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_PIXELS_NATIVE_swigconstant(_openframeworks) +OF_PIXELS_NATIVE = _openframeworks.OF_PIXELS_NATIVE + +_openframeworks.OF_BITMAPMODE_SIMPLE_swigconstant(_openframeworks) OF_BITMAPMODE_SIMPLE = _openframeworks.OF_BITMAPMODE_SIMPLE + +_openframeworks.OF_BITMAPMODE_SCREEN_swigconstant(_openframeworks) OF_BITMAPMODE_SCREEN = _openframeworks.OF_BITMAPMODE_SCREEN + +_openframeworks.OF_BITMAPMODE_VIEWPORT_swigconstant(_openframeworks) OF_BITMAPMODE_VIEWPORT = _openframeworks.OF_BITMAPMODE_VIEWPORT + +_openframeworks.OF_BITMAPMODE_MODEL_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL = _openframeworks.OF_BITMAPMODE_MODEL + +_openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL_BILLBOARD = _openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD + +_openframeworks.OF_ENCODING_UTF8_swigconstant(_openframeworks) OF_ENCODING_UTF8 = _openframeworks.OF_ENCODING_UTF8 + +_openframeworks.OF_ENCODING_ISO_8859_15_swigconstant(_openframeworks) OF_ENCODING_ISO_8859_15 = _openframeworks.OF_ENCODING_ISO_8859_15 class ofFbo(_object): __swig_setmethods__ = {} @@ -398,95 +1018,192 @@ class ofFbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFbo - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFbo_allocate(self, *args) - def isAllocated(self): return _openframeworks.ofFbo_isAllocated(self) - def draw(self, *args): return _openframeworks.ofFbo_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofFbo_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFbo_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFbo_resetAnchor(self) - def setDefaultTextureIndex(self, *args): return _openframeworks.ofFbo_setDefaultTextureIndex(self, *args) - def getDefaultTextureIndex(self): return _openframeworks.ofFbo_getDefaultTextureIndex(self) - def getTextureReference(self, *args): return _openframeworks.ofFbo_getTextureReference(self, *args) - def getDepthTexture(self): return _openframeworks.ofFbo_getDepthTexture(self) - def setUseTexture(self, *args): return _openframeworks.ofFbo_setUseTexture(self, *args) - def begin(self, setupScreen=True): return _openframeworks.ofFbo_begin(self, setupScreen) - def end(self): return _openframeworks.ofFbo_end(self) - def readToPixels(self, *args): return _openframeworks.ofFbo_readToPixels(self, *args) - def getWidth(self): return _openframeworks.ofFbo_getWidth(self) - def getHeight(self): return _openframeworks.ofFbo_getHeight(self) - def bind(self): return _openframeworks.ofFbo_bind(self) - def unbind(self): return _openframeworks.ofFbo_unbind(self) - def checkStatus(self): return _openframeworks.ofFbo_checkStatus(self) - def createAndAttachTexture(self, *args): return _openframeworks.ofFbo_createAndAttachTexture(self, *args) - def attachTexture(self, *args): return _openframeworks.ofFbo_attachTexture(self, *args) - def createAndAttachRenderbuffer(self, *args): return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, *args) - def createAndAttachDepthStencilTexture(self, *args): return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) - def getNumTextures(self): return _openframeworks.ofFbo_getNumTextures(self) - def setActiveDrawBuffer(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffer(self, *args) - def setActiveDrawBuffers(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffers(self, *args) - def activateAllDrawBuffers(self): return _openframeworks.ofFbo_activateAllDrawBuffers(self) - def getFbo(self): return _openframeworks.ofFbo_getFbo(self) + __del__ = lambda self: None + + def allocate(self, *args): + return _openframeworks.ofFbo_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFbo_isAllocated(self) + + def destroy(self): + return _openframeworks.ofFbo_destroy(self) + + def clear(self): + return _openframeworks.ofFbo_clear(self) + + def draw(self, *args): + return _openframeworks.ofFbo_draw(self, *args) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFbo_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFbo_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFbo_resetAnchor(self) + + def setDefaultTextureIndex(self, defaultTexture): + return _openframeworks.ofFbo_setDefaultTextureIndex(self, defaultTexture) + + def getDefaultTextureIndex(self): + return _openframeworks.ofFbo_getDefaultTextureIndex(self) + + def getTextureReference(self, *args): + return _openframeworks.ofFbo_getTextureReference(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofFbo_getTexture(self, *args) + + def getDepthTexture(self, *args): + return _openframeworks.ofFbo_getDepthTexture(self, *args) + + def setUseTexture(self, arg2): + return _openframeworks.ofFbo_setUseTexture(self, arg2) + + def isUsingTexture(self): + return _openframeworks.ofFbo_isUsingTexture(self) + + def begin(self, setupScreen=True): + return _openframeworks.ofFbo_begin(self, setupScreen) + + def end(self): + return _openframeworks.ofFbo_end(self) + + def readToPixels(self, *args): + return _openframeworks.ofFbo_readToPixels(self, *args) + + def getWidth(self): + return _openframeworks.ofFbo_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFbo_getHeight(self) + + def bind(self): + return _openframeworks.ofFbo_bind(self) + + def unbind(self): + return _openframeworks.ofFbo_unbind(self) + + def flagDirty(self): + return _openframeworks.ofFbo_flagDirty(self) + + def updateTexture(self, attachmentPoint): + return _openframeworks.ofFbo_updateTexture(self, attachmentPoint) + + def checkStatus(self): + return _openframeworks.ofFbo_checkStatus(self) + + def createAndAttachTexture(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachTexture(self, internalFormat, attachmentPoint) + + def attachTexture(self, texture, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_attachTexture(self, texture, internalFormat, attachmentPoint) + + def createAndAttachRenderbuffer(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, internalFormat, attachmentPoint) + + def createAndAttachDepthStencilTexture(self, *args): + return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) + + def getNumTextures(self): + return _openframeworks.ofFbo_getNumTextures(self) + + def setActiveDrawBuffer(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffer(self, i) + + def setActiveDrawBuffers(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffers(self, i) + + def activateAllDrawBuffers(self): + return _openframeworks.ofFbo_activateAllDrawBuffers(self) + + def getFbo(self): + return _openframeworks.ofFbo_getFbo(self) + + def getId(self): + return _openframeworks.ofFbo_getId(self) + + def getIdDrawBuffer(self): + return _openframeworks.ofFbo_getIdDrawBuffer(self) __swig_getmethods__["checkGLSupport"] = lambda x: _openframeworks.ofFbo_checkGLSupport - if _newclass:checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) + if _newclass: + checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) __swig_getmethods__["maxColorAttachments"] = lambda x: _openframeworks.ofFbo_maxColorAttachments - if _newclass:maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) + if _newclass: + maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) __swig_getmethods__["maxDrawBuffers"] = lambda x: _openframeworks.ofFbo_maxDrawBuffers - if _newclass:maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) + if _newclass: + maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) __swig_getmethods__["maxSamples"] = lambda x: _openframeworks.ofFbo_maxSamples - if _newclass:maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) - def getDepthBuffer(self): return _openframeworks.ofFbo_getDepthBuffer(self) - def getStencilBuffer(self): return _openframeworks.ofFbo_getStencilBuffer(self) + if _newclass: + maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) + + def getDepthBuffer(self): + return _openframeworks.ofFbo_getDepthBuffer(self) + + def getStencilBuffer(self): + return _openframeworks.ofFbo_getStencilBuffer(self) ofFbo_swigregister = _openframeworks.ofFbo_swigregister ofFbo_swigregister(ofFbo) def ofFbo_checkGLSupport(): - return _openframeworks.ofFbo_checkGLSupport() + return _openframeworks.ofFbo_checkGLSupport() ofFbo_checkGLSupport = _openframeworks.ofFbo_checkGLSupport def ofFbo_maxColorAttachments(): - return _openframeworks.ofFbo_maxColorAttachments() + return _openframeworks.ofFbo_maxColorAttachments() ofFbo_maxColorAttachments = _openframeworks.ofFbo_maxColorAttachments def ofFbo_maxDrawBuffers(): - return _openframeworks.ofFbo_maxDrawBuffers() + return _openframeworks.ofFbo_maxDrawBuffers() ofFbo_maxDrawBuffers = _openframeworks.ofFbo_maxDrawBuffers def ofFbo_maxSamples(): - return _openframeworks.ofFbo_maxSamples() + return _openframeworks.ofFbo_maxSamples() ofFbo_maxSamples = _openframeworks.ofFbo_maxSamples def ofGetUsingArbTex(): - return _openframeworks.ofGetUsingArbTex() + return _openframeworks.ofGetUsingArbTex() ofGetUsingArbTex = _openframeworks.ofGetUsingArbTex def ofEnableArbTex(): - return _openframeworks.ofEnableArbTex() + return _openframeworks.ofEnableArbTex() ofEnableArbTex = _openframeworks.ofEnableArbTex def ofDisableArbTex(): - return _openframeworks.ofDisableArbTex() + return _openframeworks.ofDisableArbTex() ofDisableArbTex = _openframeworks.ofDisableArbTex def ofGetUsingNormalizedTexCoords(): - return _openframeworks.ofGetUsingNormalizedTexCoords() + return _openframeworks.ofGetUsingNormalizedTexCoords() ofGetUsingNormalizedTexCoords = _openframeworks.ofGetUsingNormalizedTexCoords def ofEnableNormalizedTexCoords(): - return _openframeworks.ofEnableNormalizedTexCoords() + return _openframeworks.ofEnableNormalizedTexCoords() ofEnableNormalizedTexCoords = _openframeworks.ofEnableNormalizedTexCoords def ofDisableNormalizedTexCoords(): - return _openframeworks.ofDisableNormalizedTexCoords() + return _openframeworks.ofDisableNormalizedTexCoords() ofDisableNormalizedTexCoords = _openframeworks.ofDisableNormalizedTexCoords + +_openframeworks.OF_COMPRESS_NONE_swigconstant(_openframeworks) OF_COMPRESS_NONE = _openframeworks.OF_COMPRESS_NONE + +_openframeworks.OF_COMPRESS_SRGB_swigconstant(_openframeworks) OF_COMPRESS_SRGB = _openframeworks.OF_COMPRESS_SRGB + +_openframeworks.OF_COMPRESS_ARB_swigconstant(_openframeworks) OF_COMPRESS_ARB = _openframeworks.OF_COMPRESS_ARB class ofTextureData(_object): __swig_setmethods__ = {} @@ -494,71 +1211,97 @@ class ofTextureData(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTextureData, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTextureData() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["textureID"] = _openframeworks.ofTextureData_textureID_set __swig_getmethods__["textureID"] = _openframeworks.ofTextureData_textureID_get - if _newclass:textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) + if _newclass: + textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) __swig_setmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_set __swig_getmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_get - if _newclass:textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) - __swig_setmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_set - __swig_getmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_get - if _newclass:glTypeInternal = _swig_property(_openframeworks.ofTextureData_glTypeInternal_get, _openframeworks.ofTextureData_glTypeInternal_set) + if _newclass: + textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) + __swig_setmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_set + __swig_getmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_get + if _newclass: + glInternalFormat = _swig_property(_openframeworks.ofTextureData_glInternalFormat_get, _openframeworks.ofTextureData_glInternalFormat_set) __swig_setmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_set __swig_getmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_get - if _newclass:tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) + if _newclass: + tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) __swig_setmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_set __swig_getmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_get - if _newclass:tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) + if _newclass: + tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) __swig_setmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_set __swig_getmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_get - if _newclass:tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) + if _newclass: + tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) __swig_setmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_set __swig_getmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_get - if _newclass:tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) + if _newclass: + tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) __swig_setmethods__["width"] = _openframeworks.ofTextureData_width_set __swig_getmethods__["width"] = _openframeworks.ofTextureData_width_get - if _newclass:width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) __swig_setmethods__["height"] = _openframeworks.ofTextureData_height_set __swig_getmethods__["height"] = _openframeworks.ofTextureData_height_get - if _newclass:height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) __swig_setmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_set __swig_getmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_get - if _newclass:bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) + if _newclass: + bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) __swig_setmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_set __swig_getmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_get - if _newclass:compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) + if _newclass: + compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) __swig_setmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_set __swig_getmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_get - if _newclass:bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) - __swig_setmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_set - __swig_getmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_get - if _newclass:bUseExternalTextureID = _swig_property(_openframeworks.ofTextureData_bUseExternalTextureID_get, _openframeworks.ofTextureData_bUseExternalTextureID_set) - __swig_setmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_set - __swig_getmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_get - if _newclass:textureMatrix = _swig_property(_openframeworks.ofTextureData_textureMatrix_get, _openframeworks.ofTextureData_textureMatrix_set) - __swig_setmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_set - __swig_getmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_get - if _newclass:useTextureMatrix = _swig_property(_openframeworks.ofTextureData_useTextureMatrix_get, _openframeworks.ofTextureData_useTextureMatrix_set) + if _newclass: + bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) + __swig_setmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_set + __swig_getmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_get + if _newclass: + minFilter = _swig_property(_openframeworks.ofTextureData_minFilter_get, _openframeworks.ofTextureData_minFilter_set) + __swig_setmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_set + __swig_getmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_get + if _newclass: + magFilter = _swig_property(_openframeworks.ofTextureData_magFilter_get, _openframeworks.ofTextureData_magFilter_set) + __swig_setmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_set + __swig_getmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_get + if _newclass: + wrapModeHorizontal = _swig_property(_openframeworks.ofTextureData_wrapModeHorizontal_get, _openframeworks.ofTextureData_wrapModeHorizontal_set) + __swig_setmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_set + __swig_getmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_get + if _newclass: + wrapModeVertical = _swig_property(_openframeworks.ofTextureData_wrapModeVertical_get, _openframeworks.ofTextureData_wrapModeVertical_set) + __swig_setmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_set + __swig_getmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_get + if _newclass: + bufferId = _swig_property(_openframeworks.ofTextureData_bufferId_get, _openframeworks.ofTextureData_bufferId_set) __swig_destroy__ = _openframeworks.delete_ofTextureData - __del__ = lambda self : None; + __del__ = lambda self: None ofTextureData_swigregister = _openframeworks.ofTextureData_swigregister ofTextureData_swigregister(ofTextureData) def ofEnableTextureEdgeHack(): - return _openframeworks.ofEnableTextureEdgeHack() + return _openframeworks.ofEnableTextureEdgeHack() ofEnableTextureEdgeHack = _openframeworks.ofEnableTextureEdgeHack def ofDisableTextureEdgeHack(): - return _openframeworks.ofDisableTextureEdgeHack() + return _openframeworks.ofDisableTextureEdgeHack() ofDisableTextureEdgeHack = _openframeworks.ofDisableTextureEdgeHack def ofIsTextureEdgeHackEnabled(): - return _openframeworks.ofIsTextureEdgeHackEnabled() + return _openframeworks.ofIsTextureEdgeHackEnabled() ofIsTextureEdgeHackEnabled = _openframeworks.ofIsTextureEdgeHackEnabled class ofTexture(_object): __swig_setmethods__ = {} @@ -566,82 +1309,264 @@ class ofTexture(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTexture, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofTexture(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofTexture_allocate(self, *args) + + def allocateAsBufferTexture(self, buffer, glInternalFormat): + return _openframeworks.ofTexture_allocateAsBufferTexture(self, buffer, glInternalFormat) + + def isAllocated(self): + return _openframeworks.ofTexture_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofTexture_bAllocated(self) __swig_destroy__ = _openframeworks.delete_ofTexture - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofTexture_allocate(self, *args) - def clear(self): return _openframeworks.ofTexture_clear(self) - def setUseExternalTextureID(self, *args): return _openframeworks.ofTexture_setUseExternalTextureID(self, *args) - def loadData(self, *args): return _openframeworks.ofTexture_loadData(self, *args) - def setRGToRGBASwizzles(self, *args): return _openframeworks.ofTexture_setRGToRGBASwizzles(self, *args) - def loadScreenData(self, *args): return _openframeworks.ofTexture_loadScreenData(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofTexture_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofTexture_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofTexture_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofTexture_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofTexture_drawSubsection(self, *args) - def readToPixels(self, *args): return _openframeworks.ofTexture_readToPixels(self, *args) - def bind(self): return _openframeworks.ofTexture_bind(self) - def unbind(self): return _openframeworks.ofTexture_unbind(self) - def getCoordFromPoint(self, *args): return _openframeworks.ofTexture_getCoordFromPoint(self, *args) - def getCoordFromPercent(self, *args): return _openframeworks.ofTexture_getCoordFromPercent(self, *args) - def setTextureWrap(self, *args): return _openframeworks.ofTexture_setTextureWrap(self, *args) - def setTextureMinMagFilter(self, *args): return _openframeworks.ofTexture_setTextureMinMagFilter(self, *args) - def setCompression(self, *args): return _openframeworks.ofTexture_setCompression(self, *args) - def bAllocated(self): return _openframeworks.ofTexture_bAllocated(self) - def isAllocated(self): return _openframeworks.ofTexture_isAllocated(self) - def getTextureData(self, *args): return _openframeworks.ofTexture_getTextureData(self, *args) + __del__ = lambda self: None + + def clear(self): + return _openframeworks.ofTexture_clear(self) + + def setUseExternalTextureID(self, externTexID): + return _openframeworks.ofTexture_setUseExternalTextureID(self, externTexID) + + def loadData(self, *args): + return _openframeworks.ofTexture_loadData(self, *args) + + def loadScreenData(self, x, y, w, h): + return _openframeworks.ofTexture_loadScreenData(self, x, y, w, h) + + def draw(self, *args): + return _openframeworks.ofTexture_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofTexture_drawSubsection(self, *args) + + def getQuad(self, p1, p2, p3, p4): + return _openframeworks.ofTexture_getQuad(self, p1, p2, p3, p4) + + def getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode): + return _openframeworks.ofTexture_getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode) + + def bind(self, textureLocation=0): + return _openframeworks.ofTexture_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofTexture_unbind(self, textureLocation) + + def getAlphaMask(self): + return _openframeworks.ofTexture_getAlphaMask(self) + + def getHeight(self): + return _openframeworks.ofTexture_getHeight(self) + + def getWidth(self): + return _openframeworks.ofTexture_getWidth(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofTexture_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofTexture_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofTexture_resetAnchor(self) + + def getCoordFromPoint(self, xPos, yPos): + return _openframeworks.ofTexture_getCoordFromPoint(self, xPos, yPos) + + def getCoordFromPercent(self, xPts, yPts): + return _openframeworks.ofTexture_getCoordFromPercent(self, xPts, yPts) + + def setAlphaMask(self, mask): + return _openframeworks.ofTexture_setAlphaMask(self, mask) + + def disableAlphaMask(self): + return _openframeworks.ofTexture_disableAlphaMask(self) + + def setTextureWrap(self, wrapModeHorizontal, wrapModeVertical): + return _openframeworks.ofTexture_setTextureWrap(self, wrapModeHorizontal, wrapModeVertical) + + def setTextureMinMagFilter(self, minFilter, magFilter): + return _openframeworks.ofTexture_setTextureMinMagFilter(self, minFilter, magFilter) + + def setTextureMatrix(self, m): + return _openframeworks.ofTexture_setTextureMatrix(self, m) + + def getTextureMatrix(self): + return _openframeworks.ofTexture_getTextureMatrix(self) + + def isUsingTextureMatrix(self): + return _openframeworks.ofTexture_isUsingTextureMatrix(self) + + def disableTextureMatrix(self): + return _openframeworks.ofTexture_disableTextureMatrix(self) + + def setCompression(self, compression): + return _openframeworks.ofTexture_setCompression(self, compression) + + def setRGToRGBASwizzles(self, rToRGBSwizzles): + return _openframeworks.ofTexture_setRGToRGBASwizzles(self, rToRGBSwizzles) + + def setSwizzle(self, srcSwizzle, dstChannel): + return _openframeworks.ofTexture_setSwizzle(self, srcSwizzle, dstChannel) + + def readToPixels(self, *args): + return _openframeworks.ofTexture_readToPixels(self, *args) + + def copyTo(self, buffer): + return _openframeworks.ofTexture_copyTo(self, buffer) + + def getTextureData(self, *args): + return _openframeworks.ofTexture_getTextureData(self, *args) + + def enableMipmap(self): + return _openframeworks.ofTexture_enableMipmap(self) + + def disableMipmap(self): + return _openframeworks.ofTexture_disableMipmap(self) + + def generateMipmap(self): + return _openframeworks.ofTexture_generateMipmap(self) + + def hasMipmap(self): + return _openframeworks.ofTexture_hasMipmap(self) __swig_setmethods__["texData"] = _openframeworks.ofTexture_texData_set __swig_getmethods__["texData"] = _openframeworks.ofTexture_texData_get - if _newclass:texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) - def getHeight(self): return _openframeworks.ofTexture_getHeight(self) - def getWidth(self): return _openframeworks.ofTexture_getWidth(self) + if _newclass: + texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) ofTexture_swigregister = _openframeworks.ofTexture_swigregister ofTexture_swigregister(ofTexture) + +_openframeworks.OF_IMAGE_QUALITY_BEST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_BEST = _openframeworks.OF_IMAGE_QUALITY_BEST + +_openframeworks.OF_IMAGE_QUALITY_HIGH_swigconstant(_openframeworks) OF_IMAGE_QUALITY_HIGH = _openframeworks.OF_IMAGE_QUALITY_HIGH + +_openframeworks.OF_IMAGE_QUALITY_MEDIUM_swigconstant(_openframeworks) OF_IMAGE_QUALITY_MEDIUM = _openframeworks.OF_IMAGE_QUALITY_MEDIUM + +_openframeworks.OF_IMAGE_QUALITY_LOW_swigconstant(_openframeworks) OF_IMAGE_QUALITY_LOW = _openframeworks.OF_IMAGE_QUALITY_LOW + +_openframeworks.OF_IMAGE_QUALITY_WORST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_WORST = _openframeworks.OF_IMAGE_QUALITY_WORST + +_openframeworks.OF_IMAGE_FORMAT_BMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_BMP = _openframeworks.OF_IMAGE_FORMAT_BMP + +_openframeworks.OF_IMAGE_FORMAT_ICO_swigconstant(_openframeworks) OF_IMAGE_FORMAT_ICO = _openframeworks.OF_IMAGE_FORMAT_ICO + +_openframeworks.OF_IMAGE_FORMAT_JPEG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JPEG = _openframeworks.OF_IMAGE_FORMAT_JPEG + +_openframeworks.OF_IMAGE_FORMAT_JNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JNG = _openframeworks.OF_IMAGE_FORMAT_JNG + +_openframeworks.OF_IMAGE_FORMAT_KOALA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_KOALA = _openframeworks.OF_IMAGE_FORMAT_KOALA + +_openframeworks.OF_IMAGE_FORMAT_LBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_LBM = _openframeworks.OF_IMAGE_FORMAT_LBM + +_openframeworks.OF_IMAGE_FORMAT_IFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_IFF = _openframeworks.OF_IMAGE_FORMAT_IFF + +_openframeworks.OF_IMAGE_FORMAT_MNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_MNG = _openframeworks.OF_IMAGE_FORMAT_MNG + +_openframeworks.OF_IMAGE_FORMAT_PBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBM = _openframeworks.OF_IMAGE_FORMAT_PBM + +_openframeworks.OF_IMAGE_FORMAT_PBMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBMRAW = _openframeworks.OF_IMAGE_FORMAT_PBMRAW + +_openframeworks.OF_IMAGE_FORMAT_PCD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCD = _openframeworks.OF_IMAGE_FORMAT_PCD + +_openframeworks.OF_IMAGE_FORMAT_PCX_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCX = _openframeworks.OF_IMAGE_FORMAT_PCX + +_openframeworks.OF_IMAGE_FORMAT_PGM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGM = _openframeworks.OF_IMAGE_FORMAT_PGM + +_openframeworks.OF_IMAGE_FORMAT_PGMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGMRAW = _openframeworks.OF_IMAGE_FORMAT_PGMRAW + +_openframeworks.OF_IMAGE_FORMAT_PNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PNG = _openframeworks.OF_IMAGE_FORMAT_PNG + +_openframeworks.OF_IMAGE_FORMAT_PPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPM = _openframeworks.OF_IMAGE_FORMAT_PPM + +_openframeworks.OF_IMAGE_FORMAT_PPMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPMRAW = _openframeworks.OF_IMAGE_FORMAT_PPMRAW + +_openframeworks.OF_IMAGE_FORMAT_RAS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAS = _openframeworks.OF_IMAGE_FORMAT_RAS + +_openframeworks.OF_IMAGE_FORMAT_TARGA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TARGA = _openframeworks.OF_IMAGE_FORMAT_TARGA + +_openframeworks.OF_IMAGE_FORMAT_TIFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TIFF = _openframeworks.OF_IMAGE_FORMAT_TIFF + +_openframeworks.OF_IMAGE_FORMAT_WBMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_WBMP = _openframeworks.OF_IMAGE_FORMAT_WBMP + +_openframeworks.OF_IMAGE_FORMAT_PSD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PSD = _openframeworks.OF_IMAGE_FORMAT_PSD + +_openframeworks.OF_IMAGE_FORMAT_CUT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_CUT = _openframeworks.OF_IMAGE_FORMAT_CUT + +_openframeworks.OF_IMAGE_FORMAT_XBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XBM = _openframeworks.OF_IMAGE_FORMAT_XBM + +_openframeworks.OF_IMAGE_FORMAT_XPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XPM = _openframeworks.OF_IMAGE_FORMAT_XPM + +_openframeworks.OF_IMAGE_FORMAT_DDS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_DDS = _openframeworks.OF_IMAGE_FORMAT_DDS + +_openframeworks.OF_IMAGE_FORMAT_GIF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_GIF = _openframeworks.OF_IMAGE_FORMAT_GIF + +_openframeworks.OF_IMAGE_FORMAT_HDR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_HDR = _openframeworks.OF_IMAGE_FORMAT_HDR + +_openframeworks.OF_IMAGE_FORMAT_FAXG3_swigconstant(_openframeworks) OF_IMAGE_FORMAT_FAXG3 = _openframeworks.OF_IMAGE_FORMAT_FAXG3 + +_openframeworks.OF_IMAGE_FORMAT_SGI_swigconstant(_openframeworks) OF_IMAGE_FORMAT_SGI = _openframeworks.OF_IMAGE_FORMAT_SGI + +_openframeworks.OF_IMAGE_FORMAT_EXR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_EXR = _openframeworks.OF_IMAGE_FORMAT_EXR + +_openframeworks.OF_IMAGE_FORMAT_J2K_swigconstant(_openframeworks) OF_IMAGE_FORMAT_J2K = _openframeworks.OF_IMAGE_FORMAT_J2K + +_openframeworks.OF_IMAGE_FORMAT_JP2_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JP2 = _openframeworks.OF_IMAGE_FORMAT_JP2 + +_openframeworks.OF_IMAGE_FORMAT_PFM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PFM = _openframeworks.OF_IMAGE_FORMAT_PFM + +_openframeworks.OF_IMAGE_FORMAT_PICT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PICT = _openframeworks.OF_IMAGE_FORMAT_PICT + +_openframeworks.OF_IMAGE_FORMAT_RAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAW = _openframeworks.OF_IMAGE_FORMAT_RAW class ofImage(_object): __swig_setmethods__ = {} @@ -649,57 +1574,123 @@ class ofImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofImage_allocate(self, *args) - def clear(self): return _openframeworks.ofImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofImage_getTextureReference(self) - def bind(self): return _openframeworks.ofImage_bind(self) - def unbind(self): return _openframeworks.ofImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofImage_mirror(self, *args) - def update(self): return _openframeworks.ofImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofImage_getHeight(self) - def getWidth(self): return _openframeworks.ofImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofImage_width_get, _openframeworks.ofImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofImage_height_get, _openframeworks.ofImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofImage_bpp_get, _openframeworks.ofImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofImage_type_get, _openframeworks.ofImage_type_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofImage_clear(self) + + def load(self, *args): + return _openframeworks.ofImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofImage_saveImage(self, *args) ofImage_swigregister = _openframeworks.ofImage_swigregister ofImage_swigregister(ofImage) @@ -709,167 +1700,344 @@ class ofFloatImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFloatImage_allocate(self, *args) - def clear(self): return _openframeworks.ofFloatImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofFloatImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofFloatImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofFloatImage_getTextureReference(self) - def bind(self): return _openframeworks.ofFloatImage_bind(self) - def unbind(self): return _openframeworks.ofFloatImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofFloatImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofFloatImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofFloatImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofFloatImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofFloatImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofFloatImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofFloatImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofFloatImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofFloatImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofFloatImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofFloatImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatImage_mirror(self, *args) - def update(self): return _openframeworks.ofFloatImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofFloatImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFloatImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFloatImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofFloatImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofFloatImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofFloatImage_getHeight(self) - def getWidth(self): return _openframeworks.ofFloatImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofFloatImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofFloatImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofFloatImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofFloatImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofFloatImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofFloatImage_width_get, _openframeworks.ofFloatImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofFloatImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofFloatImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofFloatImage_height_get, _openframeworks.ofFloatImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofFloatImage_bpp_get, _openframeworks.ofFloatImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofFloatImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofFloatImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofFloatImage_type_get, _openframeworks.ofFloatImage_type_set) -ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister -ofFloatImage_swigregister(ofFloatImage) + try: + self.this.append(this) + except Exception: + self.this = this -class ofShortImage(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofShortImage_allocate(self, *args) - def clear(self): return _openframeworks.ofShortImage_clear(self) - def __init__(self, *args): - this = _openframeworks.new_ofShortImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofShortImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofShortImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofShortImage_getTextureReference(self) - def bind(self): return _openframeworks.ofShortImage_bind(self) - def unbind(self): return _openframeworks.ofShortImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofShortImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofShortImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofShortImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofShortImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofShortImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofShortImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofShortImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofShortImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofShortImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofShortImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofShortImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofShortImage_mirror(self, *args) - def update(self): return _openframeworks.ofShortImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofShortImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofShortImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofShortImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofShortImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofShortImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofShortImage_getHeight(self) - def getWidth(self): return _openframeworks.ofShortImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofShortImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofShortImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofShortImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofShortImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofShortImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofShortImage_width_get, _openframeworks.ofShortImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofShortImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofShortImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofShortImage_height_get, _openframeworks.ofShortImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofShortImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofShortImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofShortImage_bpp_get, _openframeworks.ofShortImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofShortImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofShortImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofShortImage_type_get, _openframeworks.ofShortImage_type_set) -ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister -ofShortImage_swigregister(ofShortImage) + def allocate(self, w, h, type): + return _openframeworks.ofFloatImage_allocate(self, w, h, type) + def isAllocated(self): + return _openframeworks.ofFloatImage_isAllocated(self) -def ofSoundStreamSetup(*args): - return _openframeworks.ofSoundStreamSetup(*args) -ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + def bAllocated(self): + return _openframeworks.ofFloatImage_bAllocated(self) -def ofSoundStreamStop(): - return _openframeworks.ofSoundStreamStop() -ofSoundStreamStop = _openframeworks.ofSoundStreamStop + def clear(self): + return _openframeworks.ofFloatImage_clear(self) -def ofSoundStreamStart(): - return _openframeworks.ofSoundStreamStart() -ofSoundStreamStart = _openframeworks.ofSoundStreamStart + def load(self, *args): + return _openframeworks.ofFloatImage_load(self, *args) -def ofSoundStreamClose(): - return _openframeworks.ofSoundStreamClose() -ofSoundStreamClose = _openframeworks.ofSoundStreamClose + def loadImage(self, *args): + return _openframeworks.ofFloatImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofFloatImage + __del__ = lambda self: None -def ofSoundStreamListDevices(): - return _openframeworks.ofSoundStreamListDevices() -ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices -class ofSoundStream(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofSoundStream() - try: self.this.append(this) - except: self.this = this - def setSoundStream(self, *args): return _openframeworks.ofSoundStream_setSoundStream(self, *args) - def getSoundStream(self): return _openframeworks.ofSoundStream_getSoundStream(self) - def listDevices(self): return _openframeworks.ofSoundStream_listDevices(self) - def setDeviceID(self, *args): return _openframeworks.ofSoundStream_setDeviceID(self, *args) - def setup(self, *args): return _openframeworks.ofSoundStream_setup(self, *args) - def setInput(self, *args): return _openframeworks.ofSoundStream_setInput(self, *args) - def setOutput(self, *args): return _openframeworks.ofSoundStream_setOutput(self, *args) - def start(self): return _openframeworks.ofSoundStream_start(self) - def stop(self): return _openframeworks.ofSoundStream_stop(self) - def close(self): return _openframeworks.ofSoundStream_close(self) - def getTickCount(self): return _openframeworks.ofSoundStream_getTickCount(self) - def getNumInputChannels(self): return _openframeworks.ofSoundStream_getNumInputChannels(self) - def getNumOutputChannels(self): return _openframeworks.ofSoundStream_getNumOutputChannels(self) - def getSampleRate(self): return _openframeworks.ofSoundStream_getSampleRate(self) - def getBufferSize(self): return _openframeworks.ofSoundStream_getBufferSize(self) - __swig_destroy__ = _openframeworks.delete_ofSoundStream - __del__ = lambda self : None; + def draw(self, *args): + return _openframeworks.ofFloatImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofFloatImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofFloatImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofFloatImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofFloatImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofFloatImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofFloatImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofFloatImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofFloatImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofFloatImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofFloatImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofFloatImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofFloatImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofFloatImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofFloatImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofFloatImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofFloatImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofFloatImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofFloatImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofFloatImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofFloatImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofFloatImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofFloatImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofFloatImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFloatImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFloatImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFloatImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofFloatImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofFloatImage_saveImage(self, *args) +ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister +ofFloatImage_swigregister(ofFloatImage) + +class ofShortImage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofShortImage(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofShortImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofShortImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofShortImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofShortImage_clear(self) + + def load(self, *args): + return _openframeworks.ofShortImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofShortImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofShortImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofShortImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofShortImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofShortImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofShortImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofShortImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofShortImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofShortImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofShortImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofShortImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofShortImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofShortImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofShortImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofShortImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofShortImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofShortImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofShortImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofShortImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofShortImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofShortImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofShortImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofShortImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofShortImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofShortImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofShortImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofShortImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofShortImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofShortImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofShortImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofShortImage_saveImage(self, *args) +ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister +ofShortImage_swigregister(ofShortImage) + + +def ofSoundStreamSetup(*args): + return _openframeworks.ofSoundStreamSetup(*args) +ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + +def ofSoundStreamStop(): + return _openframeworks.ofSoundStreamStop() +ofSoundStreamStop = _openframeworks.ofSoundStreamStop + +def ofSoundStreamStart(): + return _openframeworks.ofSoundStreamStart() +ofSoundStreamStart = _openframeworks.ofSoundStreamStart + +def ofSoundStreamClose(): + return _openframeworks.ofSoundStreamClose() +ofSoundStreamClose = _openframeworks.ofSoundStreamClose + +def ofSoundStreamListDevices(): + return _openframeworks.ofSoundStreamListDevices() +ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices +class ofSoundStream(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofSoundStream() + try: + self.this.append(this) + except Exception: + self.this = this + + def setSoundStream(self, soundStreamPtr): + return _openframeworks.ofSoundStream_setSoundStream(self, soundStreamPtr) + + def getSoundStream(self): + return _openframeworks.ofSoundStream_getSoundStream(self) + + def printDeviceList(self): + return _openframeworks.ofSoundStream_printDeviceList(self) + + def getDeviceList(self): + return _openframeworks.ofSoundStream_getDeviceList(self) + + def getMatchingDevices(self, *args): + return _openframeworks.ofSoundStream_getMatchingDevices(self, *args) + + def setDeviceID(self, deviceID): + return _openframeworks.ofSoundStream_setDeviceID(self, deviceID) + + def setDevice(self, device): + return _openframeworks.ofSoundStream_setDevice(self, device) + + def setup(self, *args): + return _openframeworks.ofSoundStream_setup(self, *args) + + def setInput(self, *args): + return _openframeworks.ofSoundStream_setInput(self, *args) + + def setOutput(self, *args): + return _openframeworks.ofSoundStream_setOutput(self, *args) + + def start(self): + return _openframeworks.ofSoundStream_start(self) + + def stop(self): + return _openframeworks.ofSoundStream_stop(self) + + def close(self): + return _openframeworks.ofSoundStream_close(self) + + def getTickCount(self): + return _openframeworks.ofSoundStream_getTickCount(self) + + def getNumInputChannels(self): + return _openframeworks.ofSoundStream_getNumInputChannels(self) + + def getNumOutputChannels(self): + return _openframeworks.ofSoundStream_getNumOutputChannels(self) + + def getSampleRate(self): + return _openframeworks.ofSoundStream_getSampleRate(self) + + def getBufferSize(self): + return _openframeworks.ofSoundStream_getBufferSize(self) + + def listDevices(self): + return _openframeworks.ofSoundStream_listDevices(self) + __swig_destroy__ = _openframeworks.delete_ofSoundStream + __del__ = lambda self: None ofSoundStream_swigregister = _openframeworks.ofSoundStream_swigregister ofSoundStream_swigregister(ofSoundStream) @@ -879,33 +2047,87 @@ class ofSoundPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSoundPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSoundPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofSoundPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofSoundPlayer_getPlayer(self) - def loadSound(self, *args): return _openframeworks.ofSoundPlayer_loadSound(self, *args) - def unloadSound(self): return _openframeworks.ofSoundPlayer_unloadSound(self) - def play(self): return _openframeworks.ofSoundPlayer_play(self) - def stop(self): return _openframeworks.ofSoundPlayer_stop(self) - def setVolume(self, *args): return _openframeworks.ofSoundPlayer_setVolume(self, *args) - def setPan(self, *args): return _openframeworks.ofSoundPlayer_setPan(self, *args) - def setSpeed(self, *args): return _openframeworks.ofSoundPlayer_setSpeed(self, *args) - def setPaused(self, *args): return _openframeworks.ofSoundPlayer_setPaused(self, *args) - def setLoop(self, *args): return _openframeworks.ofSoundPlayer_setLoop(self, *args) - def setMultiPlay(self, *args): return _openframeworks.ofSoundPlayer_setMultiPlay(self, *args) - def setPosition(self, *args): return _openframeworks.ofSoundPlayer_setPosition(self, *args) - def setPositionMS(self, *args): return _openframeworks.ofSoundPlayer_setPositionMS(self, *args) - def getPositionMS(self): return _openframeworks.ofSoundPlayer_getPositionMS(self) - def getPosition(self): return _openframeworks.ofSoundPlayer_getPosition(self) - def getIsPlaying(self): return _openframeworks.ofSoundPlayer_getIsPlaying(self) - def getSpeed(self): return _openframeworks.ofSoundPlayer_getSpeed(self) - def getPan(self): return _openframeworks.ofSoundPlayer_getPan(self) - def getVolume(self): return _openframeworks.ofSoundPlayer_getVolume(self) - def isLoaded(self): return _openframeworks.ofSoundPlayer_isLoaded(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlayer(self, newPlayer): + return _openframeworks.ofSoundPlayer_setPlayer(self, newPlayer) + + def getPlayer(self): + return _openframeworks.ofSoundPlayer_getPlayer(self) + + def load(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_load(self, fileName, stream) + + def loadSound(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_loadSound(self, fileName, stream) + + def unload(self): + return _openframeworks.ofSoundPlayer_unload(self) + + def unloadSound(self): + return _openframeworks.ofSoundPlayer_unloadSound(self) + + def play(self): + return _openframeworks.ofSoundPlayer_play(self) + + def stop(self): + return _openframeworks.ofSoundPlayer_stop(self) + + def setVolume(self, vol): + return _openframeworks.ofSoundPlayer_setVolume(self, vol) + + def setPan(self, pan): + return _openframeworks.ofSoundPlayer_setPan(self, pan) + + def setSpeed(self, speed): + return _openframeworks.ofSoundPlayer_setSpeed(self, speed) + + def setPaused(self, paused): + return _openframeworks.ofSoundPlayer_setPaused(self, paused) + + def setLoop(self, loop): + return _openframeworks.ofSoundPlayer_setLoop(self, loop) + + def setMultiPlay(self, multiplay): + return _openframeworks.ofSoundPlayer_setMultiPlay(self, multiplay) + + def setPosition(self, percent): + return _openframeworks.ofSoundPlayer_setPosition(self, percent) + + def setPositionMS(self, ms): + return _openframeworks.ofSoundPlayer_setPositionMS(self, ms) + + def getPositionMS(self): + return _openframeworks.ofSoundPlayer_getPositionMS(self) + + def getPosition(self): + return _openframeworks.ofSoundPlayer_getPosition(self) + + def isPlaying(self): + return _openframeworks.ofSoundPlayer_isPlaying(self) + + def getIsPlaying(self): + return _openframeworks.ofSoundPlayer_getIsPlaying(self) + + def getSpeed(self): + return _openframeworks.ofSoundPlayer_getSpeed(self) + + def getPan(self): + return _openframeworks.ofSoundPlayer_getPan(self) + + def getVolume(self): + return _openframeworks.ofSoundPlayer_getVolume(self) + + def isLoaded(self): + return _openframeworks.ofSoundPlayer_isLoaded(self) __swig_destroy__ = _openframeworks.delete_ofSoundPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofSoundPlayer_swigregister = _openframeworks.ofSoundPlayer_swigregister ofSoundPlayer_swigregister(ofSoundPlayer) @@ -915,82 +2137,180 @@ class ofColor(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofColor_fromHex) - def set(self, *args): return _openframeworks.ofColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofColor_getHex(self) - def clamp(self): return _openframeworks.ofColor_clamp(self) - def invert(self): return _openframeworks.ofColor_invert(self) - def normalize(self): return _openframeworks.ofColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofColor_getClamped(self) - def getInverted(self): return _openframeworks.ofColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofColor_fromHex) + + def set(self, *args): + return _openframeworks.ofColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofColor_clamp(self) + + def invert(self): + return _openframeworks.ofColor_invert(self) + + def normalize(self): + return _openframeworks.ofColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofColor_getHex(self) + + def getHue(self): + return _openframeworks.ofColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofColor_limit) - def getR(self): return _openframeworks.ofColor_getR(self) - def getG(self): return _openframeworks.ofColor_getG(self) - def getB(self): return _openframeworks.ofColor_getB(self) - def getA(self): return _openframeworks.ofColor_getA(self) - def setR(self, *args): return _openframeworks.ofColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofColor_setA(self, *args) - def __str__(self): return _openframeworks.ofColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofColor_limit) + + def __eq__(self, color): + return _openframeworks.ofColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofColor_getR(self) + + def getG(self): + return _openframeworks.ofColor_getG(self) + + def getB(self): + return _openframeworks.ofColor_getB(self) + + def getA(self): + return _openframeworks.ofColor_getA(self) + + def setR(self, r): + return _openframeworks.ofColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofColor_r_set __swig_getmethods__["r"] = _openframeworks.ofColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofColor_g_set __swig_getmethods__["g"] = _openframeworks.ofColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofColor_b_set __swig_getmethods__["b"] = _openframeworks.ofColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofColor_a_set __swig_getmethods__["a"] = _openframeworks.ofColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofColor + __del__ = lambda self: None ofColor_swigregister = _openframeworks.ofColor_swigregister ofColor_swigregister(ofColor) def ofColor_fromHsb(*args): - return _openframeworks.ofColor_fromHsb(*args) + return _openframeworks.ofColor_fromHsb(*args) ofColor_fromHsb = _openframeworks.ofColor_fromHsb def ofColor_fromHex(*args): - return _openframeworks.ofColor_fromHex(*args) + return _openframeworks.ofColor_fromHex(*args) ofColor_fromHex = _openframeworks.ofColor_fromHex + +def ofColor_limit(): + return _openframeworks.ofColor_limit() +ofColor_limit = _openframeworks.ofColor_limit cvar = _openframeworks.cvar ofColor.white = _openframeworks.cvar.ofColor_white ofColor.gray = _openframeworks.cvar.ofColor_gray @@ -1141,92 +2461,186 @@ def ofColor_fromHex(*args): ofColor.whiteSmoke = _openframeworks.cvar.ofColor_whiteSmoke ofColor.yellowGreen = _openframeworks.cvar.ofColor_yellowGreen -def ofColor_limit(): - return _openframeworks.ofColor_limit() -ofColor_limit = _openframeworks.ofColor_limit - class ofFloatColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofFloatColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofFloatColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) - def set(self, *args): return _openframeworks.ofFloatColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofFloatColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofFloatColor_getHex(self) - def clamp(self): return _openframeworks.ofFloatColor_clamp(self) - def invert(self): return _openframeworks.ofFloatColor_invert(self) - def normalize(self): return _openframeworks.ofFloatColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofFloatColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofFloatColor_getClamped(self) - def getInverted(self): return _openframeworks.ofFloatColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofFloatColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofFloatColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofFloatColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofFloatColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofFloatColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofFloatColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofFloatColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofFloatColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofFloatColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofFloatColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofFloatColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofFloatColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofFloatColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofFloatColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFloatColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofFloatColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofFloatColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofFloatColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofFloatColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofFloatColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofFloatColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofFloatColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofFloatColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) + + def set(self, *args): + return _openframeworks.ofFloatColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofFloatColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofFloatColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofFloatColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofFloatColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofFloatColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofFloatColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofFloatColor_clamp(self) + + def invert(self): + return _openframeworks.ofFloatColor_invert(self) + + def normalize(self): + return _openframeworks.ofFloatColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofFloatColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofFloatColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofFloatColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofFloatColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofFloatColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofFloatColor_getHex(self) + + def getHue(self): + return _openframeworks.ofFloatColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofFloatColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofFloatColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofFloatColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofFloatColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofFloatColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofFloatColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofFloatColor_limit) - def getR(self): return _openframeworks.ofFloatColor_getR(self) - def getG(self): return _openframeworks.ofFloatColor_getG(self) - def getB(self): return _openframeworks.ofFloatColor_getB(self) - def getA(self): return _openframeworks.ofFloatColor_getA(self) - def setR(self, *args): return _openframeworks.ofFloatColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofFloatColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofFloatColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofFloatColor_setA(self, *args) - def __str__(self): return _openframeworks.ofFloatColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofFloatColor_limit) + + def __eq__(self, color): + return _openframeworks.ofFloatColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofFloatColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofFloatColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofFloatColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofFloatColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofFloatColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofFloatColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofFloatColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofFloatColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofFloatColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofFloatColor_getR(self) + + def getG(self): + return _openframeworks.ofFloatColor_getG(self) + + def getB(self): + return _openframeworks.ofFloatColor_getB(self) + + def getA(self): + return _openframeworks.ofFloatColor_getA(self) + + def setR(self, r): + return _openframeworks.ofFloatColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofFloatColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofFloatColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofFloatColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofFloatColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofFloatColor_r_set __swig_getmethods__["r"] = _openframeworks.ofFloatColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofFloatColor_g_set __swig_getmethods__["g"] = _openframeworks.ofFloatColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofFloatColor_b_set __swig_getmethods__["b"] = _openframeworks.ofFloatColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofFloatColor_a_set __swig_getmethods__["a"] = _openframeworks.ofFloatColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofFloatColor + __del__ = lambda self: None ofFloatColor_swigregister = _openframeworks.ofFloatColor_swigregister ofFloatColor_swigregister(ofFloatColor) def ofFloatColor_fromHsb(*args): - return _openframeworks.ofFloatColor_fromHsb(*args) + return _openframeworks.ofFloatColor_fromHsb(*args) ofFloatColor_fromHsb = _openframeworks.ofFloatColor_fromHsb def ofFloatColor_fromHex(*args): - return _openframeworks.ofFloatColor_fromHex(*args) + return _openframeworks.ofFloatColor_fromHex(*args) ofFloatColor_fromHex = _openframeworks.ofFloatColor_fromHex + +def ofFloatColor_limit(): + return _openframeworks.ofFloatColor_limit() +ofFloatColor_limit = _openframeworks.ofFloatColor_limit ofFloatColor.white = _openframeworks.cvar.ofFloatColor_white ofFloatColor.gray = _openframeworks.cvar.ofFloatColor_gray ofFloatColor.black = _openframeworks.cvar.ofFloatColor_black @@ -1376,92 +2790,186 @@ def ofFloatColor_fromHex(*args): ofFloatColor.whiteSmoke = _openframeworks.cvar.ofFloatColor_whiteSmoke ofFloatColor.yellowGreen = _openframeworks.cvar.ofFloatColor_yellowGreen -def ofFloatColor_limit(): - return _openframeworks.ofFloatColor_limit() -ofFloatColor_limit = _openframeworks.ofFloatColor_limit - class ofShortColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofShortColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofShortColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofShortColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofShortColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) - def set(self, *args): return _openframeworks.ofShortColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofShortColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofShortColor_getHex(self) - def clamp(self): return _openframeworks.ofShortColor_clamp(self) - def invert(self): return _openframeworks.ofShortColor_invert(self) - def normalize(self): return _openframeworks.ofShortColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofShortColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofShortColor_getClamped(self) - def getInverted(self): return _openframeworks.ofShortColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofShortColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofShortColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofShortColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofShortColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofShortColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofShortColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofShortColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofShortColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofShortColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofShortColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofShortColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofShortColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofShortColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofShortColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShortColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofShortColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofShortColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofShortColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofShortColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofShortColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofShortColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofShortColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofShortColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) + + def set(self, *args): + return _openframeworks.ofShortColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofShortColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofShortColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofShortColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofShortColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofShortColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofShortColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofShortColor_clamp(self) + + def invert(self): + return _openframeworks.ofShortColor_invert(self) + + def normalize(self): + return _openframeworks.ofShortColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofShortColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofShortColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofShortColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofShortColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofShortColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofShortColor_getHex(self) + + def getHue(self): + return _openframeworks.ofShortColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofShortColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofShortColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofShortColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofShortColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofShortColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofShortColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofShortColor_limit) - def getR(self): return _openframeworks.ofShortColor_getR(self) - def getG(self): return _openframeworks.ofShortColor_getG(self) - def getB(self): return _openframeworks.ofShortColor_getB(self) - def getA(self): return _openframeworks.ofShortColor_getA(self) - def setR(self, *args): return _openframeworks.ofShortColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofShortColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofShortColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofShortColor_setA(self, *args) - def __str__(self): return _openframeworks.ofShortColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofShortColor_limit) + + def __eq__(self, color): + return _openframeworks.ofShortColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofShortColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofShortColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofShortColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofShortColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofShortColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofShortColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofShortColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofShortColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofShortColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofShortColor_getR(self) + + def getG(self): + return _openframeworks.ofShortColor_getG(self) + + def getB(self): + return _openframeworks.ofShortColor_getB(self) + + def getA(self): + return _openframeworks.ofShortColor_getA(self) + + def setR(self, r): + return _openframeworks.ofShortColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofShortColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofShortColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofShortColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofShortColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofShortColor_r_set __swig_getmethods__["r"] = _openframeworks.ofShortColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofShortColor_g_set __swig_getmethods__["g"] = _openframeworks.ofShortColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofShortColor_b_set __swig_getmethods__["b"] = _openframeworks.ofShortColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofShortColor_a_set __swig_getmethods__["a"] = _openframeworks.ofShortColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofShortColor + __del__ = lambda self: None ofShortColor_swigregister = _openframeworks.ofShortColor_swigregister ofShortColor_swigregister(ofShortColor) def ofShortColor_fromHsb(*args): - return _openframeworks.ofShortColor_fromHsb(*args) + return _openframeworks.ofShortColor_fromHsb(*args) ofShortColor_fromHsb = _openframeworks.ofShortColor_fromHsb def ofShortColor_fromHex(*args): - return _openframeworks.ofShortColor_fromHex(*args) + return _openframeworks.ofShortColor_fromHex(*args) ofShortColor_fromHex = _openframeworks.ofShortColor_fromHex + +def ofShortColor_limit(): + return _openframeworks.ofShortColor_limit() +ofShortColor_limit = _openframeworks.ofShortColor_limit ofShortColor.white = _openframeworks.cvar.ofShortColor_white ofShortColor.gray = _openframeworks.cvar.ofShortColor_gray ofShortColor.black = _openframeworks.cvar.ofShortColor_black @@ -1611,29 +3119,136 @@ def ofShortColor_fromHex(*args): ofShortColor.whiteSmoke = _openframeworks.cvar.ofShortColor_whiteSmoke ofShortColor.yellowGreen = _openframeworks.cvar.ofShortColor_yellowGreen -def ofShortColor_limit(): - return _openframeworks.ofShortColor_limit() -ofShortColor_limit = _openframeworks.ofShortColor_limit - def ofIsVFlipped(): - return _openframeworks.ofIsVFlipped() + return _openframeworks.ofIsVFlipped() ofIsVFlipped = _openframeworks.ofIsVFlipped +class ofBaseHasTexturePlanes(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseHasTexturePlanes, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseHasTexturePlanes, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseHasTexturePlanes + __del__ = lambda self: None + + def getTexturePlanes(self, *args): + return _openframeworks.ofBaseHasTexturePlanes_getTexturePlanes(self, *args) +ofBaseHasTexturePlanes_swigregister = _openframeworks.ofBaseHasTexturePlanes_swigregister +ofBaseHasTexturePlanes_swigregister(ofBaseHasTexturePlanes) + +class ofBaseURLFileLoader(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseURLFileLoader, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseURLFileLoader, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseURLFileLoader + __del__ = lambda self: None + + def get(self, url): + return _openframeworks.ofBaseURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofBaseURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofBaseURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofBaseURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofBaseURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofBaseURLFileLoader_handleRequest(self, request) +ofBaseURLFileLoader_swigregister = _openframeworks.ofBaseURLFileLoader_swigregister +ofBaseURLFileLoader_swigregister(ofBaseURLFileLoader) + +class ofBaseMaterial(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseMaterial, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseMaterial, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseMaterial + __del__ = lambda self: None + + def getDiffuseColor(self): + return _openframeworks.ofBaseMaterial_getDiffuseColor(self) + + def getAmbientColor(self): + return _openframeworks.ofBaseMaterial_getAmbientColor(self) + + def getSpecularColor(self): + return _openframeworks.ofBaseMaterial_getSpecularColor(self) + + def getEmissiveColor(self): + return _openframeworks.ofBaseMaterial_getEmissiveColor(self) + + def getShininess(self): + return _openframeworks.ofBaseMaterial_getShininess(self) + + def begin(self): + return _openframeworks.ofBaseMaterial_begin(self) + + def end(self): + return _openframeworks.ofBaseMaterial_end(self) + + def getShader(self, textureTarget, renderer): + return _openframeworks.ofBaseMaterial_getShader(self, textureTarget, renderer) + + def uploadMatrices(self, shader, renderer): + return _openframeworks.ofBaseMaterial_uploadMatrices(self, shader, renderer) + + def updateMaterial(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateMaterial(self, shader, renderer) + + def updateLights(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateLights(self, shader, renderer) +ofBaseMaterial_swigregister = _openframeworks.ofBaseMaterial_swigregister +ofBaseMaterial_swigregister(ofBaseMaterial) + class ofSerialDeviceInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofSerialDeviceInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerialDeviceInfo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSerialDeviceInfo(*args) - try: self.this.append(this) - except: self.this = this - def getDevicePath(self): return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) - def getDeviceName(self): return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) - def getDeviceID(self): return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getDevicePath(self): + return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) + + def getDeviceName(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) + + def getDeviceID(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) __swig_destroy__ = _openframeworks.delete_ofSerialDeviceInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofSerialDeviceInfo_swigregister = _openframeworks.ofSerialDeviceInfo_swigregister ofSerialDeviceInfo_swigregister(ofSerialDeviceInfo) @@ -1643,297 +3258,431 @@ class ofStyle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofStyle, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofStyle() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofStyle - __del__ = lambda self : None; + __del__ = lambda self: None __swig_setmethods__["color"] = _openframeworks.ofStyle_color_set __swig_getmethods__["color"] = _openframeworks.ofStyle_color_get - if _newclass:color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) + if _newclass: + color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) __swig_setmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_set __swig_getmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_get - if _newclass:bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) + if _newclass: + bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) __swig_setmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_set __swig_getmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_get - if _newclass:polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) + if _newclass: + polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) __swig_setmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_set __swig_getmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_get - if _newclass:rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) + if _newclass: + rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) __swig_setmethods__["bFill"] = _openframeworks.ofStyle_bFill_set __swig_getmethods__["bFill"] = _openframeworks.ofStyle_bFill_get - if _newclass:bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) + if _newclass: + bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) __swig_setmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_set __swig_getmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_get - if _newclass:drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) + if _newclass: + drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) __swig_setmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_set __swig_getmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_get - if _newclass:blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) + if _newclass: + blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) __swig_setmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_set __swig_getmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_get - if _newclass:smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) + if _newclass: + smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) __swig_setmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_set __swig_getmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_get - if _newclass:circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) + if _newclass: + circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) __swig_setmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_set __swig_getmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_get - if _newclass:sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) + if _newclass: + sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) __swig_setmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_set __swig_getmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_get - if _newclass:curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) + if _newclass: + curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) __swig_setmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_set __swig_getmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_get - if _newclass:lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) + if _newclass: + lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) ofStyle_swigregister = _openframeworks.ofStyle_swigregister ofStyle_swigregister(ofStyle) def ofResetElapsedTimeCounter(): - return _openframeworks.ofResetElapsedTimeCounter() + return _openframeworks.ofResetElapsedTimeCounter() ofResetElapsedTimeCounter = _openframeworks.ofResetElapsedTimeCounter def ofGetElapsedTimef(): - return _openframeworks.ofGetElapsedTimef() + return _openframeworks.ofGetElapsedTimef() ofGetElapsedTimef = _openframeworks.ofGetElapsedTimef def ofGetElapsedTimeMillis(): - return _openframeworks.ofGetElapsedTimeMillis() + return _openframeworks.ofGetElapsedTimeMillis() ofGetElapsedTimeMillis = _openframeworks.ofGetElapsedTimeMillis def ofGetElapsedTimeMicros(): - return _openframeworks.ofGetElapsedTimeMicros() + return _openframeworks.ofGetElapsedTimeMicros() ofGetElapsedTimeMicros = _openframeworks.ofGetElapsedTimeMicros def ofGetFrameNum(): - return _openframeworks.ofGetFrameNum() + return _openframeworks.ofGetFrameNum() ofGetFrameNum = _openframeworks.ofGetFrameNum def ofGetSeconds(): - return _openframeworks.ofGetSeconds() + return _openframeworks.ofGetSeconds() ofGetSeconds = _openframeworks.ofGetSeconds def ofGetMinutes(): - return _openframeworks.ofGetMinutes() + return _openframeworks.ofGetMinutes() ofGetMinutes = _openframeworks.ofGetMinutes def ofGetHours(): - return _openframeworks.ofGetHours() + return _openframeworks.ofGetHours() ofGetHours = _openframeworks.ofGetHours def ofGetUnixTime(): - return _openframeworks.ofGetUnixTime() + return _openframeworks.ofGetUnixTime() ofGetUnixTime = _openframeworks.ofGetUnixTime def ofGetSystemTime(): - return _openframeworks.ofGetSystemTime() + return _openframeworks.ofGetSystemTime() ofGetSystemTime = _openframeworks.ofGetSystemTime def ofGetSystemTimeMicros(): - return _openframeworks.ofGetSystemTimeMicros() + return _openframeworks.ofGetSystemTimeMicros() ofGetSystemTimeMicros = _openframeworks.ofGetSystemTimeMicros +def ofSleepMillis(millis): + return _openframeworks.ofSleepMillis(millis) +ofSleepMillis = _openframeworks.ofSleepMillis + def ofGetTimestampString(*args): - return _openframeworks.ofGetTimestampString(*args) + return _openframeworks.ofGetTimestampString(*args) ofGetTimestampString = _openframeworks.ofGetTimestampString def ofGetYear(): - return _openframeworks.ofGetYear() + return _openframeworks.ofGetYear() ofGetYear = _openframeworks.ofGetYear def ofGetMonth(): - return _openframeworks.ofGetMonth() + return _openframeworks.ofGetMonth() ofGetMonth = _openframeworks.ofGetMonth def ofGetDay(): - return _openframeworks.ofGetDay() + return _openframeworks.ofGetDay() ofGetDay = _openframeworks.ofGetDay def ofGetWeekday(): - return _openframeworks.ofGetWeekday() + return _openframeworks.ofGetWeekday() ofGetWeekday = _openframeworks.ofGetWeekday -def ofLaunchBrowser(*args): - return _openframeworks.ofLaunchBrowser(*args) -ofLaunchBrowser = _openframeworks.ofLaunchBrowser - def ofEnableDataPath(): - return _openframeworks.ofEnableDataPath() + return _openframeworks.ofEnableDataPath() ofEnableDataPath = _openframeworks.ofEnableDataPath def ofDisableDataPath(): - return _openframeworks.ofDisableDataPath() + return _openframeworks.ofDisableDataPath() ofDisableDataPath = _openframeworks.ofDisableDataPath -def ofToDataPath(*args): - return _openframeworks.ofToDataPath(*args) +def ofToDataPath(path, absolute=False): + return _openframeworks.ofToDataPath(path, absolute) ofToDataPath = _openframeworks.ofToDataPath -def ofSetWorkingDirectoryToDefault(): - return _openframeworks.ofSetWorkingDirectoryToDefault() -ofSetWorkingDirectoryToDefault = _openframeworks.ofSetWorkingDirectoryToDefault +def ofRestoreWorkingDirectoryToDefault(): + return _openframeworks.ofRestoreWorkingDirectoryToDefault() +ofRestoreWorkingDirectoryToDefault = _openframeworks.ofRestoreWorkingDirectoryToDefault -def ofSetDataPathRoot(*args): - return _openframeworks.ofSetDataPathRoot(*args) +def ofSetDataPathRoot(root): + return _openframeworks.ofSetDataPathRoot(root) ofSetDataPathRoot = _openframeworks.ofSetDataPathRoot -def ofToHex(*args): - return _openframeworks.ofToHex(*args) -ofToHex = _openframeworks.ofToHex +def ofSplitString(source, delimiter, ignoreEmpty=False, trim=False): + return _openframeworks.ofSplitString(source, delimiter, ignoreEmpty, trim) +ofSplitString = _openframeworks.ofSplitString -def ofHexToInt(*args): - return _openframeworks.ofHexToInt(*args) -ofHexToInt = _openframeworks.ofHexToInt +def ofJoinString(stringElements, delimiter): + return _openframeworks.ofJoinString(stringElements, delimiter) +ofJoinString = _openframeworks.ofJoinString -def ofHexToChar(*args): - return _openframeworks.ofHexToChar(*args) -ofHexToChar = _openframeworks.ofHexToChar +def ofStringReplace(input, searchStr, replaceStr): + return _openframeworks.ofStringReplace(input, searchStr, replaceStr) +ofStringReplace = _openframeworks.ofStringReplace -def ofHexToFloat(*args): - return _openframeworks.ofHexToFloat(*args) -ofHexToFloat = _openframeworks.ofHexToFloat +def ofIsStringInString(haystack, needle): + return _openframeworks.ofIsStringInString(haystack, needle) +ofIsStringInString = _openframeworks.ofIsStringInString -def ofHexToString(*args): - return _openframeworks.ofHexToString(*args) -ofHexToString = _openframeworks.ofHexToString +def ofStringTimesInString(haystack, needle): + return _openframeworks.ofStringTimesInString(haystack, needle) +ofStringTimesInString = _openframeworks.ofStringTimesInString + +def ofToLower(*args): + return _openframeworks.ofToLower(*args) +ofToLower = _openframeworks.ofToLower + +def ofToUpper(*args): + return _openframeworks.ofToUpper(*args) +ofToUpper = _openframeworks.ofToUpper + +def ofTrimFront(*args): + return _openframeworks.ofTrimFront(*args) +ofTrimFront = _openframeworks.ofTrimFront + +def ofTrimBack(*args): + return _openframeworks.ofTrimBack(*args) +ofTrimBack = _openframeworks.ofTrimBack + +def ofTrim(*args): + return _openframeworks.ofTrim(*args) +ofTrim = _openframeworks.ofTrim -def ofToInt(*args): - return _openframeworks.ofToInt(*args) +def ofAppendUTF8(str, utf8): + return _openframeworks.ofAppendUTF8(str, utf8) +ofAppendUTF8 = _openframeworks.ofAppendUTF8 + +def ofToInt(intString): + return _openframeworks.ofToInt(intString) ofToInt = _openframeworks.ofToInt -def ofToChar(*args): - return _openframeworks.ofToChar(*args) -ofToChar = _openframeworks.ofToChar +def ofToInt64(intString): + return _openframeworks.ofToInt64(intString) +ofToInt64 = _openframeworks.ofToInt64 -def ofToFloat(*args): - return _openframeworks.ofToFloat(*args) +def ofToFloat(floatString): + return _openframeworks.ofToFloat(floatString) ofToFloat = _openframeworks.ofToFloat -def ofToDouble(*args): - return _openframeworks.ofToDouble(*args) +def ofToDouble(doubleString): + return _openframeworks.ofToDouble(doubleString) ofToDouble = _openframeworks.ofToDouble -def ofToBool(*args): - return _openframeworks.ofToBool(*args) +def ofToBool(boolString): + return _openframeworks.ofToBool(boolString) ofToBool = _openframeworks.ofToBool -def ofToBinary(*args): - return _openframeworks.ofToBinary(*args) +def ofToHex(value): + return _openframeworks.ofToHex(value) +ofToHex = _openframeworks.ofToHex + +def ofHexToInt(intHexString): + return _openframeworks.ofHexToInt(intHexString) +ofHexToInt = _openframeworks.ofHexToInt + +def ofHexToChar(charHexString): + return _openframeworks.ofHexToChar(charHexString) +ofHexToChar = _openframeworks.ofHexToChar + +def ofHexToFloat(floatHexString): + return _openframeworks.ofHexToFloat(floatHexString) +ofHexToFloat = _openframeworks.ofHexToFloat + +def ofHexToString(stringHexString): + return _openframeworks.ofHexToString(stringHexString) +ofHexToString = _openframeworks.ofHexToString + +def ofToChar(charString): + return _openframeworks.ofToChar(charString) +ofToChar = _openframeworks.ofToChar + +def ofToBinary(value): + return _openframeworks.ofToBinary(value) ofToBinary = _openframeworks.ofToBinary -def ofBinaryToInt(*args): - return _openframeworks.ofBinaryToInt(*args) +def ofBinaryToInt(value): + return _openframeworks.ofBinaryToInt(value) ofBinaryToInt = _openframeworks.ofBinaryToInt -def ofBinaryToChar(*args): - return _openframeworks.ofBinaryToChar(*args) +def ofBinaryToChar(value): + return _openframeworks.ofBinaryToChar(value) ofBinaryToChar = _openframeworks.ofBinaryToChar -def ofBinaryToFloat(*args): - return _openframeworks.ofBinaryToFloat(*args) +def ofBinaryToFloat(value): + return _openframeworks.ofBinaryToFloat(value) ofBinaryToFloat = _openframeworks.ofBinaryToFloat -def ofBinaryToString(*args): - return _openframeworks.ofBinaryToString(*args) +def ofBinaryToString(value): + return _openframeworks.ofBinaryToString(value) ofBinaryToString = _openframeworks.ofBinaryToString def ofGetVersionInfo(): - return _openframeworks.ofGetVersionInfo() + return _openframeworks.ofGetVersionInfo() ofGetVersionInfo = _openframeworks.ofGetVersionInfo def ofGetVersionMajor(): - return _openframeworks.ofGetVersionMajor() + return _openframeworks.ofGetVersionMajor() ofGetVersionMajor = _openframeworks.ofGetVersionMajor def ofGetVersionMinor(): - return _openframeworks.ofGetVersionMinor() + return _openframeworks.ofGetVersionMinor() ofGetVersionMinor = _openframeworks.ofGetVersionMinor def ofGetVersionPatch(): - return _openframeworks.ofGetVersionPatch() + return _openframeworks.ofGetVersionPatch() ofGetVersionPatch = _openframeworks.ofGetVersionPatch -def ofSaveScreen(*args): - return _openframeworks.ofSaveScreen(*args) +def ofGetVersionPreRelease(): + return _openframeworks.ofGetVersionPreRelease() +ofGetVersionPreRelease = _openframeworks.ofGetVersionPreRelease + +def ofSaveScreen(filename): + return _openframeworks.ofSaveScreen(filename) ofSaveScreen = _openframeworks.ofSaveScreen def ofSaveFrame(bUseViewport=False): - return _openframeworks.ofSaveFrame(bUseViewport) + return _openframeworks.ofSaveFrame(bUseViewport) ofSaveFrame = _openframeworks.ofSaveFrame -def ofSaveViewport(*args): - return _openframeworks.ofSaveViewport(*args) +def ofSaveViewport(filename): + return _openframeworks.ofSaveViewport(filename) ofSaveViewport = _openframeworks.ofSaveViewport -def ofSplitString(*args): - return _openframeworks.ofSplitString(*args) -ofSplitString = _openframeworks.ofSplitString +def ofLaunchBrowser(url, uriEncodeQuery=False): + return _openframeworks.ofLaunchBrowser(url, uriEncodeQuery) +ofLaunchBrowser = _openframeworks.ofLaunchBrowser -def ofJoinString(*args): - return _openframeworks.ofJoinString(*args) -ofJoinString = _openframeworks.ofJoinString +def ofSystem(command): + return _openframeworks.ofSystem(command) +ofSystem = _openframeworks.ofSystem -def ofStringReplace(*args): - return _openframeworks.ofStringReplace(*args) -ofStringReplace = _openframeworks.ofStringReplace +def ofGetTargetPlatform(): + return _openframeworks.ofGetTargetPlatform() +ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform -def ofIsStringInString(*args): - return _openframeworks.ofIsStringInString(*args) -ofIsStringInString = _openframeworks.ofIsStringInString +def ofGetEnv(var): + return _openframeworks.ofGetEnv(var) +ofGetEnv = _openframeworks.ofGetEnv +class ofUTF8Iterator(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofUTF8Iterator, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofUTF8Iterator, name) + __repr__ = _swig_repr -def ofStringTimesInString(*args): - return _openframeworks.ofStringTimesInString(*args) -ofStringTimesInString = _openframeworks.ofStringTimesInString + def __init__(self, str): + this = _openframeworks.new_ofUTF8Iterator(str) + try: + self.this.append(this) + except Exception: + self.this = this -def ofToLower(*args): - return _openframeworks.ofToLower(*args) -ofToLower = _openframeworks.ofToLower + def begin(self): + return _openframeworks.ofUTF8Iterator_begin(self) -def ofToUpper(*args): - return _openframeworks.ofToUpper(*args) -ofToUpper = _openframeworks.ofToUpper + def end(self): + return _openframeworks.ofUTF8Iterator_end(self) -def ofSystem(*args): - return _openframeworks.ofSystem(*args) -ofSystem = _openframeworks.ofSystem + def rbegin(self): + return _openframeworks.ofUTF8Iterator_rbegin(self) -def ofGetTargetPlatform(): - return _openframeworks.ofGetTargetPlatform() -ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform + def rend(self): + return _openframeworks.ofUTF8Iterator_rend(self) + __swig_destroy__ = _openframeworks.delete_ofUTF8Iterator + __del__ = lambda self: None +ofUTF8Iterator_swigregister = _openframeworks.ofUTF8Iterator_swigregister +ofUTF8Iterator_swigregister(ofUTF8Iterator) + + +def setWorkingDirectoryToDefault(): + return _openframeworks.setWorkingDirectoryToDefault() +setWorkingDirectoryToDefault = _openframeworks.setWorkingDirectoryToDefault + +def initutils(): + return _openframeworks.initutils() +initutils = _openframeworks.initutils + +def endutils(): + return _openframeworks.endutils() +endutils = _openframeworks.endutils class ofBuffer(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofBuffer, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofBuffer, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBuffer(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofBuffer_set(self, *args) + + def append(self, *args): + return _openframeworks.ofBuffer_append(self, *args) + + def writeTo(self, stream): + return _openframeworks.ofBuffer_writeTo(self, stream) + + def clear(self): + return _openframeworks.ofBuffer_clear(self) + + def allocate(self, _size): + return _openframeworks.ofBuffer_allocate(self, _size) + + def getData(self, *args): + return _openframeworks.ofBuffer_getData(self, *args) + + def getBinaryBuffer(self, *args): + return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) + + def getText(self): + return _openframeworks.ofBuffer_getText(self) + + def size(self): + return _openframeworks.ofBuffer_size(self) + + def getNextLine(self): + return _openframeworks.ofBuffer_getNextLine(self) + + def getFirstLine(self): + return _openframeworks.ofBuffer_getFirstLine(self) + + def isLastLine(self): + return _openframeworks.ofBuffer_isLastLine(self) + + def resetLineReader(self): + return _openframeworks.ofBuffer_resetLineReader(self) + + def begin(self, *args): + return _openframeworks.ofBuffer_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofBuffer_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofBuffer_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofBuffer_rend(self, *args) + + def getLines(self): + return _openframeworks.ofBuffer_getLines(self) __swig_destroy__ = _openframeworks.delete_ofBuffer - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBuffer_set(self, *args) - def append(self, *args): return _openframeworks.ofBuffer_append(self, *args) - def writeTo(self, *args): return _openframeworks.ofBuffer_writeTo(self, *args) - def clear(self): return _openframeworks.ofBuffer_clear(self) - def allocate(self, *args): return _openframeworks.ofBuffer_allocate(self, *args) - def getBinaryBuffer(self, *args): return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) - def getText(self): return _openframeworks.ofBuffer_getText(self) - def size(self): return _openframeworks.ofBuffer_size(self) - def getNextLine(self): return _openframeworks.ofBuffer_getNextLine(self) - def getFirstLine(self): return _openframeworks.ofBuffer_getFirstLine(self) - def isLastLine(self): return _openframeworks.ofBuffer_isLastLine(self) - def resetLineReader(self): return _openframeworks.ofBuffer_resetLineReader(self) + __del__ = lambda self: None ofBuffer_swigregister = _openframeworks.ofBuffer_swigregister ofBuffer_swigregister(ofBuffer) -def ofBufferFromFile(*args): - return _openframeworks.ofBufferFromFile(*args) +def ofBufferFromFile(path, binary=False): + return _openframeworks.ofBufferFromFile(path, binary) ofBufferFromFile = _openframeworks.ofBufferFromFile -def ofBufferToFile(*args): - return _openframeworks.ofBufferToFile(*args) +def ofBufferToFile(path, buffer, binary=False): + return _openframeworks.ofBufferToFile(path, buffer, binary) ofBufferToFile = _openframeworks.ofBufferToFile class ofFilePath(_object): __swig_setmethods__ = {} @@ -1942,116 +3691,143 @@ class ofFilePath(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofFilePath, name) __repr__ = _swig_repr __swig_getmethods__["getFileExt"] = lambda x: _openframeworks.ofFilePath_getFileExt - if _newclass:getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) + if _newclass: + getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) __swig_getmethods__["removeExt"] = lambda x: _openframeworks.ofFilePath_removeExt - if _newclass:removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) + if _newclass: + removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) __swig_getmethods__["addLeadingSlash"] = lambda x: _openframeworks.ofFilePath_addLeadingSlash - if _newclass:addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) + if _newclass: + addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) __swig_getmethods__["addTrailingSlash"] = lambda x: _openframeworks.ofFilePath_addTrailingSlash - if _newclass:addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) + if _newclass: + addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) __swig_getmethods__["removeTrailingSlash"] = lambda x: _openframeworks.ofFilePath_removeTrailingSlash - if _newclass:removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) + if _newclass: + removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) __swig_getmethods__["getPathForDirectory"] = lambda x: _openframeworks.ofFilePath_getPathForDirectory - if _newclass:getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) + if _newclass: + getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) __swig_getmethods__["getAbsolutePath"] = lambda x: _openframeworks.ofFilePath_getAbsolutePath - if _newclass:getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) + if _newclass: + getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) __swig_getmethods__["isAbsolute"] = lambda x: _openframeworks.ofFilePath_isAbsolute - if _newclass:isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) + if _newclass: + isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) __swig_getmethods__["getFileName"] = lambda x: _openframeworks.ofFilePath_getFileName - if _newclass:getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) + if _newclass: + getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) __swig_getmethods__["getBaseName"] = lambda x: _openframeworks.ofFilePath_getBaseName - if _newclass:getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) + if _newclass: + getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) __swig_getmethods__["getEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_getEnclosingDirectory - if _newclass:getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) + if _newclass: + getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) __swig_getmethods__["createEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_createEnclosingDirectory - if _newclass:createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) + if _newclass: + createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) __swig_getmethods__["getCurrentWorkingDirectory"] = lambda x: _openframeworks.ofFilePath_getCurrentWorkingDirectory - if _newclass:getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) + if _newclass: + getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) __swig_getmethods__["join"] = lambda x: _openframeworks.ofFilePath_join - if _newclass:join = staticmethod(_openframeworks.ofFilePath_join) + if _newclass: + join = staticmethod(_openframeworks.ofFilePath_join) __swig_getmethods__["getCurrentExePath"] = lambda x: _openframeworks.ofFilePath_getCurrentExePath - if _newclass:getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) + if _newclass: + getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) __swig_getmethods__["getCurrentExeDir"] = lambda x: _openframeworks.ofFilePath_getCurrentExeDir - if _newclass:getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) + if _newclass: + getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) __swig_getmethods__["getUserHomeDir"] = lambda x: _openframeworks.ofFilePath_getUserHomeDir - if _newclass:getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) - def __init__(self): + if _newclass: + getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) + __swig_getmethods__["makeRelative"] = lambda x: _openframeworks.ofFilePath_makeRelative + if _newclass: + makeRelative = staticmethod(_openframeworks.ofFilePath_makeRelative) + + def __init__(self): this = _openframeworks.new_ofFilePath() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFilePath - __del__ = lambda self : None; + __del__ = lambda self: None ofFilePath_swigregister = _openframeworks.ofFilePath_swigregister ofFilePath_swigregister(ofFilePath) -def ofFilePath_getFileExt(*args): - return _openframeworks.ofFilePath_getFileExt(*args) +def ofFilePath_getFileExt(filename): + return _openframeworks.ofFilePath_getFileExt(filename) ofFilePath_getFileExt = _openframeworks.ofFilePath_getFileExt -def ofFilePath_removeExt(*args): - return _openframeworks.ofFilePath_removeExt(*args) +def ofFilePath_removeExt(filename): + return _openframeworks.ofFilePath_removeExt(filename) ofFilePath_removeExt = _openframeworks.ofFilePath_removeExt -def ofFilePath_addLeadingSlash(*args): - return _openframeworks.ofFilePath_addLeadingSlash(*args) +def ofFilePath_addLeadingSlash(path): + return _openframeworks.ofFilePath_addLeadingSlash(path) ofFilePath_addLeadingSlash = _openframeworks.ofFilePath_addLeadingSlash -def ofFilePath_addTrailingSlash(*args): - return _openframeworks.ofFilePath_addTrailingSlash(*args) +def ofFilePath_addTrailingSlash(path): + return _openframeworks.ofFilePath_addTrailingSlash(path) ofFilePath_addTrailingSlash = _openframeworks.ofFilePath_addTrailingSlash -def ofFilePath_removeTrailingSlash(*args): - return _openframeworks.ofFilePath_removeTrailingSlash(*args) +def ofFilePath_removeTrailingSlash(path): + return _openframeworks.ofFilePath_removeTrailingSlash(path) ofFilePath_removeTrailingSlash = _openframeworks.ofFilePath_removeTrailingSlash -def ofFilePath_getPathForDirectory(*args): - return _openframeworks.ofFilePath_getPathForDirectory(*args) +def ofFilePath_getPathForDirectory(path): + return _openframeworks.ofFilePath_getPathForDirectory(path) ofFilePath_getPathForDirectory = _openframeworks.ofFilePath_getPathForDirectory -def ofFilePath_getAbsolutePath(*args): - return _openframeworks.ofFilePath_getAbsolutePath(*args) +def ofFilePath_getAbsolutePath(path, bRelativeToData=True): + return _openframeworks.ofFilePath_getAbsolutePath(path, bRelativeToData) ofFilePath_getAbsolutePath = _openframeworks.ofFilePath_getAbsolutePath -def ofFilePath_isAbsolute(*args): - return _openframeworks.ofFilePath_isAbsolute(*args) +def ofFilePath_isAbsolute(path): + return _openframeworks.ofFilePath_isAbsolute(path) ofFilePath_isAbsolute = _openframeworks.ofFilePath_isAbsolute -def ofFilePath_getFileName(*args): - return _openframeworks.ofFilePath_getFileName(*args) +def ofFilePath_getFileName(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getFileName(filePath, bRelativeToData) ofFilePath_getFileName = _openframeworks.ofFilePath_getFileName -def ofFilePath_getBaseName(*args): - return _openframeworks.ofFilePath_getBaseName(*args) +def ofFilePath_getBaseName(filePath): + return _openframeworks.ofFilePath_getBaseName(filePath) ofFilePath_getBaseName = _openframeworks.ofFilePath_getBaseName -def ofFilePath_getEnclosingDirectory(*args): - return _openframeworks.ofFilePath_getEnclosingDirectory(*args) +def ofFilePath_getEnclosingDirectory(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getEnclosingDirectory(filePath, bRelativeToData) ofFilePath_getEnclosingDirectory = _openframeworks.ofFilePath_getEnclosingDirectory -def ofFilePath_createEnclosingDirectory(*args): - return _openframeworks.ofFilePath_createEnclosingDirectory(*args) +def ofFilePath_createEnclosingDirectory(filePath, bRelativeToData=True, bRecursive=True): + return _openframeworks.ofFilePath_createEnclosingDirectory(filePath, bRelativeToData, bRecursive) ofFilePath_createEnclosingDirectory = _openframeworks.ofFilePath_createEnclosingDirectory def ofFilePath_getCurrentWorkingDirectory(): - return _openframeworks.ofFilePath_getCurrentWorkingDirectory() + return _openframeworks.ofFilePath_getCurrentWorkingDirectory() ofFilePath_getCurrentWorkingDirectory = _openframeworks.ofFilePath_getCurrentWorkingDirectory -def ofFilePath_join(*args): - return _openframeworks.ofFilePath_join(*args) +def ofFilePath_join(path1, path2): + return _openframeworks.ofFilePath_join(path1, path2) ofFilePath_join = _openframeworks.ofFilePath_join def ofFilePath_getCurrentExePath(): - return _openframeworks.ofFilePath_getCurrentExePath() + return _openframeworks.ofFilePath_getCurrentExePath() ofFilePath_getCurrentExePath = _openframeworks.ofFilePath_getCurrentExePath def ofFilePath_getCurrentExeDir(): - return _openframeworks.ofFilePath_getCurrentExeDir() + return _openframeworks.ofFilePath_getCurrentExeDir() ofFilePath_getCurrentExeDir = _openframeworks.ofFilePath_getCurrentExeDir def ofFilePath_getUserHomeDir(): - return _openframeworks.ofFilePath_getUserHomeDir() + return _openframeworks.ofFilePath_getUserHomeDir() ofFilePath_getUserHomeDir = _openframeworks.ofFilePath_getUserHomeDir +def ofFilePath_makeRelative(arg2, to): + return _openframeworks.ofFilePath_makeRelative(arg2, to) +ofFilePath_makeRelative = _openframeworks.ofFilePath_makeRelative + class ofFile(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFile, name, value) @@ -2063,74 +3839,152 @@ class ofFile(_object): WriteOnly = _openframeworks.ofFile_WriteOnly ReadWrite = _openframeworks.ofFile_ReadWrite Append = _openframeworks.ofFile_Append - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFile(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFile - __del__ = lambda self : None; - def open(self, *args): return _openframeworks.ofFile_open(self, *args) - def changeMode(self, *args): return _openframeworks.ofFile_changeMode(self, *args) - def close(self): return _openframeworks.ofFile_close(self) - def create(self): return _openframeworks.ofFile_create(self) - def exists(self): return _openframeworks.ofFile_exists(self) - def path(self): return _openframeworks.ofFile_path(self) - def getExtension(self): return _openframeworks.ofFile_getExtension(self) - def getFileName(self): return _openframeworks.ofFile_getFileName(self) - def getBaseName(self): return _openframeworks.ofFile_getBaseName(self) - def getEnclosingDirectory(self): return _openframeworks.ofFile_getEnclosingDirectory(self) - def getAbsolutePath(self): return _openframeworks.ofFile_getAbsolutePath(self) - def canRead(self): return _openframeworks.ofFile_canRead(self) - def canWrite(self): return _openframeworks.ofFile_canWrite(self) - def canExecute(self): return _openframeworks.ofFile_canExecute(self) - def isFile(self): return _openframeworks.ofFile_isFile(self) - def isLink(self): return _openframeworks.ofFile_isLink(self) - def isDirectory(self): return _openframeworks.ofFile_isDirectory(self) - def isDevice(self): return _openframeworks.ofFile_isDevice(self) - def isHidden(self): return _openframeworks.ofFile_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofFile_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofFile_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofFile_setExecutable(self, executable) - def copyTo(self, *args): return _openframeworks.ofFile_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofFile_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofFile_renameTo(self, *args) - def remove(self, recursive=False): return _openframeworks.ofFile_remove(self, recursive) - def getSize(self): return _openframeworks.ofFile_getSize(self) - def getPocoFile(self): return _openframeworks.ofFile_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofFile___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFile___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofFile___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofFile___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofFile___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofFile___ge__(self, *args) - def readToBuffer(self): return _openframeworks.ofFile_readToBuffer(self) - def writeFromBuffer(self, *args): return _openframeworks.ofFile_writeFromBuffer(self, *args) - def getFileBuffer(self): return _openframeworks.ofFile_getFileBuffer(self) + __del__ = lambda self: None + + def open(self, *args): + return _openframeworks.ofFile_open(self, *args) + + def changeMode(self, mode, binary=False): + return _openframeworks.ofFile_changeMode(self, mode, binary) + + def close(self): + return _openframeworks.ofFile_close(self) + + def create(self): + return _openframeworks.ofFile_create(self) + + def exists(self): + return _openframeworks.ofFile_exists(self) + + def path(self): + return _openframeworks.ofFile_path(self) + + def getExtension(self): + return _openframeworks.ofFile_getExtension(self) + + def getFileName(self): + return _openframeworks.ofFile_getFileName(self) + + def getBaseName(self): + return _openframeworks.ofFile_getBaseName(self) + + def getEnclosingDirectory(self): + return _openframeworks.ofFile_getEnclosingDirectory(self) + + def getAbsolutePath(self): + return _openframeworks.ofFile_getAbsolutePath(self) + + def canRead(self): + return _openframeworks.ofFile_canRead(self) + + def canWrite(self): + return _openframeworks.ofFile_canWrite(self) + + def canExecute(self): + return _openframeworks.ofFile_canExecute(self) + + def isFile(self): + return _openframeworks.ofFile_isFile(self) + + def isLink(self): + return _openframeworks.ofFile_isLink(self) + + def isDirectory(self): + return _openframeworks.ofFile_isDirectory(self) + + def isDevice(self): + return _openframeworks.ofFile_isDevice(self) + + def isHidden(self): + return _openframeworks.ofFile_isHidden(self) + + def setWriteable(self, writeable=True): + return _openframeworks.ofFile_setWriteable(self, writeable) + + def setReadOnly(self, readable=True): + return _openframeworks.ofFile_setReadOnly(self, readable) + + def setExecutable(self, executable=True): + return _openframeworks.ofFile_setExecutable(self, executable) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive=False): + return _openframeworks.ofFile_remove(self, recursive) + + def getSize(self): + return _openframeworks.ofFile_getSize(self) + + def __eq__(self, file): + return _openframeworks.ofFile___eq__(self, file) + + def __ne__(self, file): + return _openframeworks.ofFile___ne__(self, file) + + def __lt__(self, file): + return _openframeworks.ofFile___lt__(self, file) + + def __le__(self, file): + return _openframeworks.ofFile___le__(self, file) + + def __gt__(self, file): + return _openframeworks.ofFile___gt__(self, file) + + def __ge__(self, file): + return _openframeworks.ofFile___ge__(self, file) + + def readToBuffer(self): + return _openframeworks.ofFile_readToBuffer(self) + + def writeFromBuffer(self, buffer): + return _openframeworks.ofFile_writeFromBuffer(self, buffer) + + def getFileBuffer(self): + return _openframeworks.ofFile_getFileBuffer(self) __swig_getmethods__["copyFromTo"] = lambda x: _openframeworks.ofFile_copyFromTo - if _newclass:copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) + if _newclass: + copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) __swig_getmethods__["moveFromTo"] = lambda x: _openframeworks.ofFile_moveFromTo - if _newclass:moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) + if _newclass: + moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) __swig_getmethods__["doesFileExist"] = lambda x: _openframeworks.ofFile_doesFileExist - if _newclass:doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) + if _newclass: + doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) __swig_getmethods__["removeFile"] = lambda x: _openframeworks.ofFile_removeFile - if _newclass:removeFile = staticmethod(_openframeworks.ofFile_removeFile) + if _newclass: + removeFile = staticmethod(_openframeworks.ofFile_removeFile) ofFile_swigregister = _openframeworks.ofFile_swigregister ofFile_swigregister(ofFile) -def ofFile_copyFromTo(*args): - return _openframeworks.ofFile_copyFromTo(*args) +def ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_copyFromTo = _openframeworks.ofFile_copyFromTo -def ofFile_moveFromTo(*args): - return _openframeworks.ofFile_moveFromTo(*args) +def ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_moveFromTo = _openframeworks.ofFile_moveFromTo -def ofFile_doesFileExist(*args): - return _openframeworks.ofFile_doesFileExist(*args) +def ofFile_doesFileExist(fPath, bRelativeToData=True): + return _openframeworks.ofFile_doesFileExist(fPath, bRelativeToData) ofFile_doesFileExist = _openframeworks.ofFile_doesFileExist -def ofFile_removeFile(*args): - return _openframeworks.ofFile_removeFile(*args) +def ofFile_removeFile(path, bRelativeToData=True): + return _openframeworks.ofFile_removeFile(path, bRelativeToData) ofFile_removeFile = _openframeworks.ofFile_removeFile class ofDirectory(_object): @@ -2139,146 +3993,259 @@ class ofDirectory(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofDirectory, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofDirectory(*args) - try: self.this.append(this) - except: self.this = this - def open(self, *args): return _openframeworks.ofDirectory_open(self, *args) - def close(self): return _openframeworks.ofDirectory_close(self) - def create(self, recursive=False): return _openframeworks.ofDirectory_create(self, recursive) - def exists(self): return _openframeworks.ofDirectory_exists(self) - def path(self): return _openframeworks.ofDirectory_path(self) - def getAbsolutePath(self): return _openframeworks.ofDirectory_getAbsolutePath(self) - def isDirectory(self): return _openframeworks.ofDirectory_isDirectory(self) - def isHidden(self): return _openframeworks.ofDirectory_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofDirectory_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofDirectory_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofDirectory_setExecutable(self, executable) - def setShowHidden(self, *args): return _openframeworks.ofDirectory_setShowHidden(self, *args) - def copyTo(self, *args): return _openframeworks.ofDirectory_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofDirectory_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofDirectory_renameTo(self, *args) - def remove(self, *args): return _openframeworks.ofDirectory_remove(self, *args) - def allowExt(self, *args): return _openframeworks.ofDirectory_allowExt(self, *args) - def listDir(self, *args): return _openframeworks.ofDirectory_listDir(self, *args) - def getOriginalDirectory(self): return _openframeworks.ofDirectory_getOriginalDirectory(self) - def getName(self, *args): return _openframeworks.ofDirectory_getName(self, *args) - def getPath(self, *args): return _openframeworks.ofDirectory_getPath(self, *args) - def getFile(self, *args): return _openframeworks.ofDirectory_getFile(self, *args) - def getFiles(self): return _openframeworks.ofDirectory_getFiles(self) - def __getitem__(self, *args): return _openframeworks.ofDirectory___getitem__(self, *args) - def getShowHidden(self): return _openframeworks.ofDirectory_getShowHidden(self) - def reset(self): return _openframeworks.ofDirectory_reset(self) - def sort(self): return _openframeworks.ofDirectory_sort(self) - def size(self): return _openframeworks.ofDirectory_size(self) - def numFiles(self): return _openframeworks.ofDirectory_numFiles(self) - def getPocoFile(self): return _openframeworks.ofDirectory_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofDirectory___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofDirectory___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofDirectory___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofDirectory___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofDirectory___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofDirectory___ge__(self, *args) - __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory - if _newclass:createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) - __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty - if _newclass:isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) - __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist - if _newclass:doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) - __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory - if _newclass:removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) - __swig_destroy__ = _openframeworks.delete_ofDirectory - __del__ = lambda self : None; -ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister -ofDirectory_swigregister(ofDirectory) + try: + self.this.append(this) + except Exception: + self.this = this -def ofDirectory_createDirectory(*args): - return _openframeworks.ofDirectory_createDirectory(*args) -ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + def open(self, path): + return _openframeworks.ofDirectory_open(self, path) -def ofDirectory_isDirectoryEmpty(*args): - return _openframeworks.ofDirectory_isDirectoryEmpty(*args) -ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + def close(self): + return _openframeworks.ofDirectory_close(self) -def ofDirectory_doesDirectoryExist(*args): - return _openframeworks.ofDirectory_doesDirectoryExist(*args) -ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + def create(self, recursive=False): + return _openframeworks.ofDirectory_create(self, recursive) -def ofDirectory_removeDirectory(*args): - return _openframeworks.ofDirectory_removeDirectory(*args) -ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + def exists(self): + return _openframeworks.ofDirectory_exists(self) + def path(self): + return _openframeworks.ofDirectory_path(self) -def log(*args): - return _openframeworks.log(*args) -log = _openframeworks.log -OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE -OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE -OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING -OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR -OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR -OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + def getAbsolutePath(self): + return _openframeworks.ofDirectory_getAbsolutePath(self) -def ofSetLogLevel(*args): - return _openframeworks.ofSetLogLevel(*args) -ofSetLogLevel = _openframeworks.ofSetLogLevel + def isDirectory(self): + return _openframeworks.ofDirectory_isDirectory(self) -def ofGetLogLevel(): - return _openframeworks.ofGetLogLevel() -ofGetLogLevel = _openframeworks.ofGetLogLevel + def isHidden(self): + return _openframeworks.ofDirectory_isHidden(self) -def ofGetLogLevelName(*args): - return _openframeworks.ofGetLogLevelName(*args) -ofGetLogLevelName = _openframeworks.ofGetLogLevelName + def setWriteable(self, writeable=True): + return _openframeworks.ofDirectory_setWriteable(self, writeable) -def ofLogToFile(*args): - return _openframeworks.ofLogToFile(*args) -ofLogToFile = _openframeworks.ofLogToFile + def setReadOnly(self, readable=True): + return _openframeworks.ofDirectory_setReadOnly(self, readable) -def ofLogToConsole(): - return _openframeworks.ofLogToConsole() -ofLogToConsole = _openframeworks.ofLogToConsole -class ofFileDialogResult(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofFileDialogResult() - try: self.this.append(this) - except: self.this = this - def getName(self): return _openframeworks.ofFileDialogResult_getName(self) - def getPath(self): return _openframeworks.ofFileDialogResult_getPath(self) - __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set - __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get - if _newclass:filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) - __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set - __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get - if _newclass:fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) - __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set + def setExecutable(self, executable=True): + return _openframeworks.ofDirectory_setExecutable(self, executable) + + def setShowHidden(self, showHidden): + return _openframeworks.ofDirectory_setShowHidden(self, showHidden) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive): + return _openframeworks.ofDirectory_remove(self, recursive) + + def allowExt(self, extension): + return _openframeworks.ofDirectory_allowExt(self, extension) + + def listDir(self, *args): + return _openframeworks.ofDirectory_listDir(self, *args) + + def getOriginalDirectory(self): + return _openframeworks.ofDirectory_getOriginalDirectory(self) + + def getName(self, position): + return _openframeworks.ofDirectory_getName(self, position) + + def getPath(self, position): + return _openframeworks.ofDirectory_getPath(self, position) + + def getFile(self, *args): + return _openframeworks.ofDirectory_getFile(self, *args) + + def getFiles(self): + return _openframeworks.ofDirectory_getFiles(self) + + def __getitem__(self, position): + return _openframeworks.ofDirectory___getitem__(self, position) + + def getShowHidden(self): + return _openframeworks.ofDirectory_getShowHidden(self) + + def reset(self): + return _openframeworks.ofDirectory_reset(self) + + def sort(self): + return _openframeworks.ofDirectory_sort(self) + + def getSorted(self): + return _openframeworks.ofDirectory_getSorted(self) + + def size(self): + return _openframeworks.ofDirectory_size(self) + + def numFiles(self): + return _openframeworks.ofDirectory_numFiles(self) + + def __eq__(self, dir): + return _openframeworks.ofDirectory___eq__(self, dir) + + def __ne__(self, dir): + return _openframeworks.ofDirectory___ne__(self, dir) + + def __lt__(self, dir): + return _openframeworks.ofDirectory___lt__(self, dir) + + def __le__(self, dir): + return _openframeworks.ofDirectory___le__(self, dir) + + def __gt__(self, dir): + return _openframeworks.ofDirectory___gt__(self, dir) + + def __ge__(self, dir): + return _openframeworks.ofDirectory___ge__(self, dir) + __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory + if _newclass: + createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) + __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty + if _newclass: + isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) + __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist + if _newclass: + doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) + __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory + if _newclass: + removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) + + def begin(self): + return _openframeworks.ofDirectory_begin(self) + + def end(self): + return _openframeworks.ofDirectory_end(self) + + def rbegin(self): + return _openframeworks.ofDirectory_rbegin(self) + + def rend(self): + return _openframeworks.ofDirectory_rend(self) + __swig_destroy__ = _openframeworks.delete_ofDirectory + __del__ = lambda self: None +ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister +ofDirectory_swigregister(ofDirectory) + +def ofDirectory_createDirectory(dirPath, bRelativeToData=True, recursive=False): + return _openframeworks.ofDirectory_createDirectory(dirPath, bRelativeToData, recursive) +ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + +def ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData) +ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + +def ofDirectory_doesDirectoryExist(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_doesDirectoryExist(dirPath, bRelativeToData) +ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + +def ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData=True): + return _openframeworks.ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData) +ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + + +def log(level, message): + return _openframeworks.log(level, message) +log = _openframeworks.log + +_openframeworks.OF_LOG_VERBOSE_swigconstant(_openframeworks) +OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE + +_openframeworks.OF_LOG_NOTICE_swigconstant(_openframeworks) +OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE + +_openframeworks.OF_LOG_WARNING_swigconstant(_openframeworks) +OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING + +_openframeworks.OF_LOG_ERROR_swigconstant(_openframeworks) +OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR + +_openframeworks.OF_LOG_FATAL_ERROR_swigconstant(_openframeworks) +OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR + +_openframeworks.OF_LOG_SILENT_swigconstant(_openframeworks) +OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + +def ofSetLogLevel(*args): + return _openframeworks.ofSetLogLevel(*args) +ofSetLogLevel = _openframeworks.ofSetLogLevel + +def ofGetLogLevel(): + return _openframeworks.ofGetLogLevel() +ofGetLogLevel = _openframeworks.ofGetLogLevel + +def ofGetLogLevelName(level, pad=False): + return _openframeworks.ofGetLogLevelName(level, pad) +ofGetLogLevelName = _openframeworks.ofGetLogLevelName + +def ofLogToFile(path, append=False): + return _openframeworks.ofLogToFile(path, append) +ofLogToFile = _openframeworks.ofLogToFile + +def ofLogToConsole(): + return _openframeworks.ofLogToConsole() +ofLogToConsole = _openframeworks.ofLogToConsole +class ofFileDialogResult(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofFileDialogResult() + try: + self.this.append(this) + except Exception: + self.this = this + + def getName(self): + return _openframeworks.ofFileDialogResult_getName(self) + + def getPath(self): + return _openframeworks.ofFileDialogResult_getPath(self) + __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set + __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get + if _newclass: + filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) + __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set + __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get + if _newclass: + fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) + __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set __swig_getmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_get - if _newclass:bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) + if _newclass: + bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) __swig_destroy__ = _openframeworks.delete_ofFileDialogResult - __del__ = lambda self : None; + __del__ = lambda self: None ofFileDialogResult_swigregister = _openframeworks.ofFileDialogResult_swigregister ofFileDialogResult_swigregister(ofFileDialogResult) -def ofSystemAlertDialog(*args): - return _openframeworks.ofSystemAlertDialog(*args) +def ofSystemAlertDialog(errorMessage): + return _openframeworks.ofSystemAlertDialog(errorMessage) ofSystemAlertDialog = _openframeworks.ofSystemAlertDialog -def ofSystemLoadDialog(windowTitle="", bFolderSelection=False, defaultPath=""): - return _openframeworks.ofSystemLoadDialog(windowTitle, bFolderSelection, defaultPath) +def ofSystemLoadDialog(*args): + return _openframeworks.ofSystemLoadDialog(*args) ofSystemLoadDialog = _openframeworks.ofSystemLoadDialog -def ofSystemSaveDialog(*args): - return _openframeworks.ofSystemSaveDialog(*args) +def ofSystemSaveDialog(defaultName, messageName): + return _openframeworks.ofSystemSaveDialog(defaultName, messageName) ofSystemSaveDialog = _openframeworks.ofSystemSaveDialog def ofSystemTextBoxDialog(*args): - return _openframeworks.ofSystemTextBoxDialog(*args) + return _openframeworks.ofSystemTextBoxDialog(*args) ofSystemTextBoxDialog = _openframeworks.ofSystemTextBoxDialog class ofHttpRequest(_object): __swig_setmethods__ = {} @@ -2286,22 +4253,37 @@ class ofHttpRequest(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpRequest, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpRequest(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["url"] = _openframeworks.ofHttpRequest_url_set __swig_getmethods__["url"] = _openframeworks.ofHttpRequest_url_get - if _newclass:url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) + if _newclass: + url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) __swig_setmethods__["name"] = _openframeworks.ofHttpRequest_name_set __swig_getmethods__["name"] = _openframeworks.ofHttpRequest_name_get - if _newclass:name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) + if _newclass: + name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) __swig_setmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_set __swig_getmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_get - if _newclass:saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) - def getID(self): return _openframeworks.ofHttpRequest_getID(self) + if _newclass: + saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) + __swig_setmethods__["headers"] = _openframeworks.ofHttpRequest_headers_set + __swig_getmethods__["headers"] = _openframeworks.ofHttpRequest_headers_get + if _newclass: + headers = _swig_property(_openframeworks.ofHttpRequest_headers_get, _openframeworks.ofHttpRequest_headers_set) + + def getId(self): + return _openframeworks.ofHttpRequest_getId(self) + + def getID(self): + return _openframeworks.ofHttpRequest_getID(self) __swig_destroy__ = _openframeworks.delete_ofHttpRequest - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpRequest_swigregister = _openframeworks.ofHttpRequest_swigregister ofHttpRequest_swigregister(ofHttpRequest) @@ -2311,58 +4293,65 @@ class ofHttpResponse(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpResponse, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpResponse(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["request"] = _openframeworks.ofHttpResponse_request_set __swig_getmethods__["request"] = _openframeworks.ofHttpResponse_request_get - if _newclass:request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) + if _newclass: + request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) __swig_setmethods__["data"] = _openframeworks.ofHttpResponse_data_set __swig_getmethods__["data"] = _openframeworks.ofHttpResponse_data_get - if _newclass:data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) + if _newclass: + data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) __swig_setmethods__["status"] = _openframeworks.ofHttpResponse_status_set __swig_getmethods__["status"] = _openframeworks.ofHttpResponse_status_get - if _newclass:status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) + if _newclass: + status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) __swig_setmethods__["error"] = _openframeworks.ofHttpResponse_error_set __swig_getmethods__["error"] = _openframeworks.ofHttpResponse_error_get - if _newclass:error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) + if _newclass: + error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) __swig_destroy__ = _openframeworks.delete_ofHttpResponse - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpResponse_swigregister = _openframeworks.ofHttpResponse_swigregister ofHttpResponse_swigregister(ofHttpResponse) -def ofLoadURL(*args): - return _openframeworks.ofLoadURL(*args) +def ofLoadURL(url): + return _openframeworks.ofLoadURL(url) ofLoadURL = _openframeworks.ofLoadURL def ofLoadURLAsync(*args): - return _openframeworks.ofLoadURLAsync(*args) + return _openframeworks.ofLoadURLAsync(*args) ofLoadURLAsync = _openframeworks.ofLoadURLAsync -def ofSaveURLTo(*args): - return _openframeworks.ofSaveURLTo(*args) +def ofSaveURLTo(url, path): + return _openframeworks.ofSaveURLTo(url, path) ofSaveURLTo = _openframeworks.ofSaveURLTo -def ofSaveURLAsync(*args): - return _openframeworks.ofSaveURLAsync(*args) +def ofSaveURLAsync(url, path): + return _openframeworks.ofSaveURLAsync(url, path) ofSaveURLAsync = _openframeworks.ofSaveURLAsync -def ofRemoveURLRequest(*args): - return _openframeworks.ofRemoveURLRequest(*args) +def ofRemoveURLRequest(id): + return _openframeworks.ofRemoveURLRequest(id) ofRemoveURLRequest = _openframeworks.ofRemoveURLRequest def ofRemoveAllURLRequests(): - return _openframeworks.ofRemoveAllURLRequests() + return _openframeworks.ofRemoveAllURLRequests() ofRemoveAllURLRequests = _openframeworks.ofRemoveAllURLRequests def ofStopURLLoader(): - return _openframeworks.ofStopURLLoader() + return _openframeworks.ofStopURLLoader() ofStopURLLoader = _openframeworks.ofStopURLLoader def ofURLResponseEvent(): - return _openframeworks.ofURLResponseEvent() + return _openframeworks.ofURLResponseEvent() ofURLResponseEvent = _openframeworks.ofURLResponseEvent class ofURLFileLoader(_object): __swig_setmethods__ = {} @@ -2370,19 +4359,39 @@ class ofURLFileLoader(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofURLFileLoader, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofURLFileLoader() - try: self.this.append(this) - except: self.this = this - def get(self, *args): return _openframeworks.ofURLFileLoader_get(self, *args) - def getAsync(self, *args): return _openframeworks.ofURLFileLoader_getAsync(self, *args) - def saveTo(self, *args): return _openframeworks.ofURLFileLoader_saveTo(self, *args) - def saveAsync(self, *args): return _openframeworks.ofURLFileLoader_saveAsync(self, *args) - def remove(self, *args): return _openframeworks.ofURLFileLoader_remove(self, *args) - def clear(self): return _openframeworks.ofURLFileLoader_clear(self) - def stop(self): return _openframeworks.ofURLFileLoader_stop(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def get(self, url): + return _openframeworks.ofURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofURLFileLoader_handleRequest(self, request) __swig_destroy__ = _openframeworks.delete_ofURLFileLoader - __del__ = lambda self : None; + __del__ = lambda self: None ofURLFileLoader_swigregister = _openframeworks.ofURLFileLoader_swigregister ofURLFileLoader_swigregister(ofURLFileLoader) @@ -2392,86 +4401,221 @@ class ofRectangle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofRectangle, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofRectangle - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofRectangle(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofRectangle_set(self, *args) - def setX(self, *args): return _openframeworks.ofRectangle_setX(self, *args) - def setY(self, *args): return _openframeworks.ofRectangle_setY(self, *args) - def setWidth(self, *args): return _openframeworks.ofRectangle_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofRectangle_setHeight(self, *args) - def setPosition(self, *args): return _openframeworks.ofRectangle_setPosition(self, *args) - def setFromCenter(self, *args): return _openframeworks.ofRectangle_setFromCenter(self, *args) - def translate(self, *args): return _openframeworks.ofRectangle_translate(self, *args) - def translateX(self, *args): return _openframeworks.ofRectangle_translateX(self, *args) - def translateY(self, *args): return _openframeworks.ofRectangle_translateY(self, *args) - def scale(self, *args): return _openframeworks.ofRectangle_scale(self, *args) - def scaleWidth(self, *args): return _openframeworks.ofRectangle_scaleWidth(self, *args) - def scaleHeight(self, *args): return _openframeworks.ofRectangle_scaleHeight(self, *args) - def scaleFromCenter(self, *args): return _openframeworks.ofRectangle_scaleFromCenter(self, *args) - def scaleToScaleMode(self, *args): return _openframeworks.ofRectangle_scaleToScaleMode(self, *args) - def scaleToAspectRatio(self, *args): return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) - def scaleTo(self, *args): return _openframeworks.ofRectangle_scaleTo(self, *args) - def alignToHorz(self, *args): return _openframeworks.ofRectangle_alignToHorz(self, *args) - def alignToVert(self, *args): return _openframeworks.ofRectangle_alignToVert(self, *args) - def alignTo(self, *args): return _openframeworks.ofRectangle_alignTo(self, *args) - def inside(self, *args): return _openframeworks.ofRectangle_inside(self, *args) - def intersects(self, *args): return _openframeworks.ofRectangle_intersects(self, *args) - def growToInclude(self, *args): return _openframeworks.ofRectangle_growToInclude(self, *args) - def getIntersection(self, *args): return _openframeworks.ofRectangle_getIntersection(self, *args) - def getUnion(self, *args): return _openframeworks.ofRectangle_getUnion(self, *args) - def standardize(self): return _openframeworks.ofRectangle_standardize(self) - def getStandardized(self): return _openframeworks.ofRectangle_getStandardized(self) - def isStandardized(self): return _openframeworks.ofRectangle_isStandardized(self) - def getArea(self): return _openframeworks.ofRectangle_getArea(self) - def getPerimeter(self): return _openframeworks.ofRectangle_getPerimeter(self) - def getAspectRatio(self): return _openframeworks.ofRectangle_getAspectRatio(self) - def isEmpty(self): return _openframeworks.ofRectangle_isEmpty(self) - def getMin(self): return _openframeworks.ofRectangle_getMin(self) - def getMax(self): return _openframeworks.ofRectangle_getMax(self) - def getMinX(self): return _openframeworks.ofRectangle_getMinX(self) - def getMaxX(self): return _openframeworks.ofRectangle_getMaxX(self) - def getMinY(self): return _openframeworks.ofRectangle_getMinY(self) - def getMaxY(self): return _openframeworks.ofRectangle_getMaxY(self) - def getLeft(self): return _openframeworks.ofRectangle_getLeft(self) - def getRight(self): return _openframeworks.ofRectangle_getRight(self) - def getTop(self): return _openframeworks.ofRectangle_getTop(self) - def getBottom(self): return _openframeworks.ofRectangle_getBottom(self) - def getTopLeft(self): return _openframeworks.ofRectangle_getTopLeft(self) - def getTopRight(self): return _openframeworks.ofRectangle_getTopRight(self) - def getBottomLeft(self): return _openframeworks.ofRectangle_getBottomLeft(self) - def getBottomRight(self): return _openframeworks.ofRectangle_getBottomRight(self) - def getHorzAnchor(self, *args): return _openframeworks.ofRectangle_getHorzAnchor(self, *args) - def getVertAnchor(self, *args): return _openframeworks.ofRectangle_getVertAnchor(self, *args) - def getPosition(self): return _openframeworks.ofRectangle_getPosition(self) - def getPositionRef(self): return _openframeworks.ofRectangle_getPositionRef(self) - def getCenter(self): return _openframeworks.ofRectangle_getCenter(self) - def getX(self): return _openframeworks.ofRectangle_getX(self) - def getY(self): return _openframeworks.ofRectangle_getY(self) - def getWidth(self): return _openframeworks.ofRectangle_getWidth(self) - def getHeight(self): return _openframeworks.ofRectangle_getHeight(self) - def __add__(self, *args): return _openframeworks.ofRectangle___add__(self, *args) - def __eq__(self, *args): return _openframeworks.ofRectangle___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofRectangle___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofRectangle + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofRectangle_set(self, *args) + + def setX(self, px): + return _openframeworks.ofRectangle_setX(self, px) + + def setY(self, py): + return _openframeworks.ofRectangle_setY(self, py) + + def setWidth(self, w): + return _openframeworks.ofRectangle_setWidth(self, w) + + def setHeight(self, h): + return _openframeworks.ofRectangle_setHeight(self, h) + + def setPosition(self, *args): + return _openframeworks.ofRectangle_setPosition(self, *args) + + def setSize(self, w, h): + return _openframeworks.ofRectangle_setSize(self, w, h) + + def setFromCenter(self, *args): + return _openframeworks.ofRectangle_setFromCenter(self, *args) + + def translate(self, *args): + return _openframeworks.ofRectangle_translate(self, *args) + + def translateX(self, dx): + return _openframeworks.ofRectangle_translateX(self, dx) + + def translateY(self, dy): + return _openframeworks.ofRectangle_translateY(self, dy) + + def scale(self, *args): + return _openframeworks.ofRectangle_scale(self, *args) + + def scaleWidth(self, sX): + return _openframeworks.ofRectangle_scaleWidth(self, sX) + + def scaleHeight(self, sY): + return _openframeworks.ofRectangle_scaleHeight(self, sY) + + def scaleFromCenter(self, *args): + return _openframeworks.ofRectangle_scaleFromCenter(self, *args) + + def scaleToScaleMode(self, targetRect, scaleMode=OF_SCALEMODE_FIT): + return _openframeworks.ofRectangle_scaleToScaleMode(self, targetRect, scaleMode) + + def scaleToAspectRatio(self, *args): + return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) + + def scaleTo(self, *args): + return _openframeworks.ofRectangle_scaleTo(self, *args) + + def alignToHorz(self, *args): + return _openframeworks.ofRectangle_alignToHorz(self, *args) + + def alignToVert(self, *args): + return _openframeworks.ofRectangle_alignToVert(self, *args) + + def alignTo(self, *args): + return _openframeworks.ofRectangle_alignTo(self, *args) + + def inside(self, *args): + return _openframeworks.ofRectangle_inside(self, *args) + + def intersects(self, *args): + return _openframeworks.ofRectangle_intersects(self, *args) + + def growToInclude(self, *args): + return _openframeworks.ofRectangle_growToInclude(self, *args) + + def getIntersection(self, rect): + return _openframeworks.ofRectangle_getIntersection(self, rect) + + def getUnion(self, rect): + return _openframeworks.ofRectangle_getUnion(self, rect) + + def standardize(self): + return _openframeworks.ofRectangle_standardize(self) + + def getStandardized(self): + return _openframeworks.ofRectangle_getStandardized(self) + + def isStandardized(self): + return _openframeworks.ofRectangle_isStandardized(self) + + def getArea(self): + return _openframeworks.ofRectangle_getArea(self) + + def getPerimeter(self): + return _openframeworks.ofRectangle_getPerimeter(self) + + def getAspectRatio(self): + return _openframeworks.ofRectangle_getAspectRatio(self) + + def isEmpty(self): + return _openframeworks.ofRectangle_isEmpty(self) + + def getMin(self): + return _openframeworks.ofRectangle_getMin(self) + + def getMax(self): + return _openframeworks.ofRectangle_getMax(self) + + def getMinX(self): + return _openframeworks.ofRectangle_getMinX(self) + + def getMaxX(self): + return _openframeworks.ofRectangle_getMaxX(self) + + def getMinY(self): + return _openframeworks.ofRectangle_getMinY(self) + + def getMaxY(self): + return _openframeworks.ofRectangle_getMaxY(self) + + def getLeft(self): + return _openframeworks.ofRectangle_getLeft(self) + + def getRight(self): + return _openframeworks.ofRectangle_getRight(self) + + def getTop(self): + return _openframeworks.ofRectangle_getTop(self) + + def getBottom(self): + return _openframeworks.ofRectangle_getBottom(self) + + def getTopLeft(self): + return _openframeworks.ofRectangle_getTopLeft(self) + + def getTopRight(self): + return _openframeworks.ofRectangle_getTopRight(self) + + def getBottomLeft(self): + return _openframeworks.ofRectangle_getBottomLeft(self) + + def getBottomRight(self): + return _openframeworks.ofRectangle_getBottomRight(self) + + def getHorzAnchor(self, anchor): + return _openframeworks.ofRectangle_getHorzAnchor(self, anchor) + + def getVertAnchor(self, anchor): + return _openframeworks.ofRectangle_getVertAnchor(self, anchor) + + def getPosition(self): + return _openframeworks.ofRectangle_getPosition(self) + + def getPositionRef(self): + return _openframeworks.ofRectangle_getPositionRef(self) + + def getCenter(self): + return _openframeworks.ofRectangle_getCenter(self) + + def getX(self): + return _openframeworks.ofRectangle_getX(self) + + def getY(self): + return _openframeworks.ofRectangle_getY(self) + + def getWidth(self): + return _openframeworks.ofRectangle_getWidth(self) + + def getHeight(self): + return _openframeworks.ofRectangle_getHeight(self) + + def __add__(self, p): + return _openframeworks.ofRectangle___add__(self, p) + + def __sub__(self, p): + return _openframeworks.ofRectangle___sub__(self, p) + + def __eq__(self, rect): + return _openframeworks.ofRectangle___eq__(self, rect) + + def __ne__(self, rect): + return _openframeworks.ofRectangle___ne__(self, rect) + + def isZero(self): + return _openframeworks.ofRectangle_isZero(self) __swig_setmethods__["position"] = _openframeworks.ofRectangle_position_set __swig_getmethods__["position"] = _openframeworks.ofRectangle_position_get - if _newclass:position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) + if _newclass: + position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) __swig_setmethods__["width"] = _openframeworks.ofRectangle_width_set __swig_getmethods__["width"] = _openframeworks.ofRectangle_width_get - if _newclass:width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) __swig_setmethods__["height"] = _openframeworks.ofRectangle_height_set __swig_getmethods__["height"] = _openframeworks.ofRectangle_height_get - if _newclass:height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) __swig_setmethods__["x"] = _openframeworks.ofRectangle_x_set __swig_getmethods__["x"] = _openframeworks.ofRectangle_x_get - if _newclass:x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) __swig_setmethods__["y"] = _openframeworks.ofRectangle_y_set __swig_getmethods__["y"] = _openframeworks.ofRectangle_y_get - if _newclass:y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) - def __str__(self): return _openframeworks.ofRectangle___str__(self) + if _newclass: + y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) + + def __str__(self): + return _openframeworks.ofRectangle___str__(self) ofRectangle_swigregister = _openframeworks.ofRectangle_swigregister ofRectangle_swigregister(ofRectangle) @@ -2481,309 +4625,700 @@ class ofNode(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofNode, name) __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofNode() - try: self.this.append(this) - except: self.this = this __swig_destroy__ = _openframeworks.delete_ofNode - __del__ = lambda self : None; - def setParent(self, *args): return _openframeworks.ofNode_setParent(self, *args) - def clearParent(self, bMaintainGlobalTransform=False): return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) - def getParent(self): return _openframeworks.ofNode_getParent(self) - def getPosition(self): return _openframeworks.ofNode_getPosition(self) - def getX(self): return _openframeworks.ofNode_getX(self) - def getY(self): return _openframeworks.ofNode_getY(self) - def getZ(self): return _openframeworks.ofNode_getZ(self) - def getXAxis(self): return _openframeworks.ofNode_getXAxis(self) - def getYAxis(self): return _openframeworks.ofNode_getYAxis(self) - def getZAxis(self): return _openframeworks.ofNode_getZAxis(self) - def getSideDir(self): return _openframeworks.ofNode_getSideDir(self) - def getLookAtDir(self): return _openframeworks.ofNode_getLookAtDir(self) - def getUpDir(self): return _openframeworks.ofNode_getUpDir(self) - def getPitch(self): return _openframeworks.ofNode_getPitch(self) - def getHeading(self): return _openframeworks.ofNode_getHeading(self) - def getRoll(self): return _openframeworks.ofNode_getRoll(self) - def getOrientationQuat(self): return _openframeworks.ofNode_getOrientationQuat(self) - def getOrientationEuler(self): return _openframeworks.ofNode_getOrientationEuler(self) - def getScale(self): return _openframeworks.ofNode_getScale(self) - def getLocalTransformMatrix(self): return _openframeworks.ofNode_getLocalTransformMatrix(self) - def getGlobalTransformMatrix(self): return _openframeworks.ofNode_getGlobalTransformMatrix(self) - def getGlobalPosition(self): return _openframeworks.ofNode_getGlobalPosition(self) - def getGlobalOrientation(self): return _openframeworks.ofNode_getGlobalOrientation(self) - def getGlobalScale(self): return _openframeworks.ofNode_getGlobalScale(self) - def setTransformMatrix(self, *args): return _openframeworks.ofNode_setTransformMatrix(self, *args) - def setPosition(self, *args): return _openframeworks.ofNode_setPosition(self, *args) - def setGlobalPosition(self, *args): return _openframeworks.ofNode_setGlobalPosition(self, *args) - def setOrientation(self, *args): return _openframeworks.ofNode_setOrientation(self, *args) - def setGlobalOrientation(self, *args): return _openframeworks.ofNode_setGlobalOrientation(self, *args) - def setScale(self, *args): return _openframeworks.ofNode_setScale(self, *args) - def move(self, *args): return _openframeworks.ofNode_move(self, *args) - def truck(self, *args): return _openframeworks.ofNode_truck(self, *args) - def boom(self, *args): return _openframeworks.ofNode_boom(self, *args) - def dolly(self, *args): return _openframeworks.ofNode_dolly(self, *args) - def tilt(self, *args): return _openframeworks.ofNode_tilt(self, *args) - def pan(self, *args): return _openframeworks.ofNode_pan(self, *args) - def roll(self, *args): return _openframeworks.ofNode_roll(self, *args) - def rotate(self, *args): return _openframeworks.ofNode_rotate(self, *args) - def rotateAround(self, *args): return _openframeworks.ofNode_rotateAround(self, *args) - def lookAt(self, *args): return _openframeworks.ofNode_lookAt(self, *args) - def orbit(self, *args): return _openframeworks.ofNode_orbit(self, *args) - def transformGL(self): return _openframeworks.ofNode_transformGL(self) - def restoreTransformGL(self): return _openframeworks.ofNode_restoreTransformGL(self) - def resetTransform(self): return _openframeworks.ofNode_resetTransform(self) - def customDraw(self): return _openframeworks.ofNode_customDraw(self) - def draw(self): return _openframeworks.ofNode_draw(self) + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofNode(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setParent(self, parent, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_setParent(self, parent, bMaintainGlobalTransform) + + def clearParent(self, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) + + def getParent(self): + return _openframeworks.ofNode_getParent(self) + + def getPosition(self): + return _openframeworks.ofNode_getPosition(self) + + def getX(self): + return _openframeworks.ofNode_getX(self) + + def getY(self): + return _openframeworks.ofNode_getY(self) + + def getZ(self): + return _openframeworks.ofNode_getZ(self) + + def getXAxis(self): + return _openframeworks.ofNode_getXAxis(self) + + def getYAxis(self): + return _openframeworks.ofNode_getYAxis(self) + + def getZAxis(self): + return _openframeworks.ofNode_getZAxis(self) + + def getSideDir(self): + return _openframeworks.ofNode_getSideDir(self) + + def getLookAtDir(self): + return _openframeworks.ofNode_getLookAtDir(self) + + def getUpDir(self): + return _openframeworks.ofNode_getUpDir(self) + + def getPitch(self): + return _openframeworks.ofNode_getPitch(self) + + def getHeading(self): + return _openframeworks.ofNode_getHeading(self) + + def getRoll(self): + return _openframeworks.ofNode_getRoll(self) + + def getOrientationQuat(self): + return _openframeworks.ofNode_getOrientationQuat(self) + + def getOrientationEuler(self): + return _openframeworks.ofNode_getOrientationEuler(self) + + def getScale(self): + return _openframeworks.ofNode_getScale(self) + + def getLocalTransformMatrix(self): + return _openframeworks.ofNode_getLocalTransformMatrix(self) + + def getGlobalTransformMatrix(self): + return _openframeworks.ofNode_getGlobalTransformMatrix(self) + + def getGlobalPosition(self): + return _openframeworks.ofNode_getGlobalPosition(self) + + def getGlobalOrientation(self): + return _openframeworks.ofNode_getGlobalOrientation(self) + + def getGlobalScale(self): + return _openframeworks.ofNode_getGlobalScale(self) + + def setTransformMatrix(self, m44): + return _openframeworks.ofNode_setTransformMatrix(self, m44) + + def setPosition(self, *args): + return _openframeworks.ofNode_setPosition(self, *args) + + def setGlobalPosition(self, *args): + return _openframeworks.ofNode_setGlobalPosition(self, *args) + + def setOrientation(self, *args): + return _openframeworks.ofNode_setOrientation(self, *args) + + def setGlobalOrientation(self, q): + return _openframeworks.ofNode_setGlobalOrientation(self, q) + + def setScale(self, *args): + return _openframeworks.ofNode_setScale(self, *args) + + def move(self, *args): + return _openframeworks.ofNode_move(self, *args) + + def truck(self, amount): + return _openframeworks.ofNode_truck(self, amount) + + def boom(self, amount): + return _openframeworks.ofNode_boom(self, amount) + + def dolly(self, amount): + return _openframeworks.ofNode_dolly(self, amount) + + def tilt(self, degrees): + return _openframeworks.ofNode_tilt(self, degrees) + + def pan(self, degrees): + return _openframeworks.ofNode_pan(self, degrees) + + def roll(self, degrees): + return _openframeworks.ofNode_roll(self, degrees) + + def rotate(self, *args): + return _openframeworks.ofNode_rotate(self, *args) + + def rotateAround(self, *args): + return _openframeworks.ofNode_rotateAround(self, *args) + + def lookAt(self, *args): + return _openframeworks.ofNode_lookAt(self, *args) + + def orbit(self, *args): + return _openframeworks.ofNode_orbit(self, *args) + + def transformGL(self, renderer=None): + return _openframeworks.ofNode_transformGL(self, renderer) + + def restoreTransformGL(self, renderer=None): + return _openframeworks.ofNode_restoreTransformGL(self, renderer) + + def resetTransform(self): + return _openframeworks.ofNode_resetTransform(self) + + def customDraw(self, *args): + return _openframeworks.ofNode_customDraw(self, *args) + + def draw(self): + return _openframeworks.ofNode_draw(self) ofNode_swigregister = _openframeworks.ofNode_swigregister ofNode_swigregister(ofNode) -def ofDrawAxis(*args): - return _openframeworks.ofDrawAxis(*args) +def ofDrawAxis(size): + return _openframeworks.ofDrawAxis(size) ofDrawAxis = _openframeworks.ofDrawAxis -def ofDrawGrid(scale=10.0, ticks=8.0, labels=False, x=True, y=True, z=True): - return _openframeworks.ofDrawGrid(scale, ticks, labels, x, y, z) +def ofDrawGrid(stepSize=1.25, numberOfSteps=8, labels=False, x=True, y=True, z=True): + return _openframeworks.ofDrawGrid(stepSize, numberOfSteps, labels, x, y, z) ofDrawGrid = _openframeworks.ofDrawGrid -def ofDrawGridPlane(*args): - return _openframeworks.ofDrawGridPlane(*args) +def ofDrawGridPlane(stepSize=1.25, numberOfSteps=8, labels=False): + return _openframeworks.ofDrawGridPlane(stepSize, numberOfSteps, labels) ofDrawGridPlane = _openframeworks.ofDrawGridPlane -def ofDrawArrow(*args): - return _openframeworks.ofDrawArrow(*args) +def ofDrawArrow(start, end, headSize=0.05): + return _openframeworks.ofDrawArrow(start, end, headSize) ofDrawArrow = _openframeworks.ofDrawArrow -def ofDrawRotationAxes(*args): - return _openframeworks.ofDrawRotationAxes(*args) +def ofDrawRotationAxes(radius, stripWidth=10, circleRes=60): + return _openframeworks.ofDrawRotationAxes(radius, stripWidth, circleRes) ofDrawRotationAxes = _openframeworks.ofDrawRotationAxes class ofCamera(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofCamera, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofCamera, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofCamera() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCamera - __del__ = lambda self : None; - def setFov(self, *args): return _openframeworks.ofCamera_setFov(self, *args) - def setNearClip(self, *args): return _openframeworks.ofCamera_setNearClip(self, *args) - def setFarClip(self, *args): return _openframeworks.ofCamera_setFarClip(self, *args) - def setLensOffset(self, *args): return _openframeworks.ofCamera_setLensOffset(self, *args) - def setAspectRatio(self, *args): return _openframeworks.ofCamera_setAspectRatio(self, *args) - def setForceAspectRatio(self, *args): return _openframeworks.ofCamera_setForceAspectRatio(self, *args) - def getFov(self): return _openframeworks.ofCamera_getFov(self) - def getNearClip(self): return _openframeworks.ofCamera_getNearClip(self) - def getFarClip(self): return _openframeworks.ofCamera_getFarClip(self) - def getLensOffset(self): return _openframeworks.ofCamera_getLensOffset(self) - def getForceAspectRatio(self): return _openframeworks.ofCamera_getForceAspectRatio(self) - def getAspectRatio(self): return _openframeworks.ofCamera_getAspectRatio(self) - def setupPerspective(self, *args): return _openframeworks.ofCamera_setupPerspective(self, *args) - def setupOffAxisViewPortal(self, *args): return _openframeworks.ofCamera_setupOffAxisViewPortal(self, *args) - def setVFlip(self, *args): return _openframeworks.ofCamera_setVFlip(self, *args) - def isVFlipped(self): return _openframeworks.ofCamera_isVFlipped(self) - def enableOrtho(self): return _openframeworks.ofCamera_enableOrtho(self) - def disableOrtho(self): return _openframeworks.ofCamera_disableOrtho(self) - def getOrtho(self): return _openframeworks.ofCamera_getOrtho(self) - def getImagePlaneDistance(self, *args): return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) - def begin(self, *args): return _openframeworks.ofCamera_begin(self, *args) - def end(self): return _openframeworks.ofCamera_end(self) - def getProjectionMatrix(self, *args): return _openframeworks.ofCamera_getProjectionMatrix(self, *args) - def getModelViewMatrix(self): return _openframeworks.ofCamera_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self, *args): return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) - def worldToScreen(self, *args): return _openframeworks.ofCamera_worldToScreen(self, *args) - def screenToWorld(self, *args): return _openframeworks.ofCamera_screenToWorld(self, *args) - def worldToCamera(self, *args): return _openframeworks.ofCamera_worldToCamera(self, *args) - def cameraToWorld(self, *args): return _openframeworks.ofCamera_cameraToWorld(self, *args) + __del__ = lambda self: None + + def setFov(self, f): + return _openframeworks.ofCamera_setFov(self, f) + + def setNearClip(self, f): + return _openframeworks.ofCamera_setNearClip(self, f) + + def setFarClip(self, f): + return _openframeworks.ofCamera_setFarClip(self, f) + + def setLensOffset(self, lensOffset): + return _openframeworks.ofCamera_setLensOffset(self, lensOffset) + + def setAspectRatio(self, aspectRatio): + return _openframeworks.ofCamera_setAspectRatio(self, aspectRatio) + + def setForceAspectRatio(self, forceAspectRatio): + return _openframeworks.ofCamera_setForceAspectRatio(self, forceAspectRatio) + + def getFov(self): + return _openframeworks.ofCamera_getFov(self) + + def getNearClip(self): + return _openframeworks.ofCamera_getNearClip(self) + + def getFarClip(self): + return _openframeworks.ofCamera_getFarClip(self) + + def getLensOffset(self): + return _openframeworks.ofCamera_getLensOffset(self) + + def getForceAspectRatio(self): + return _openframeworks.ofCamera_getForceAspectRatio(self) + + def getAspectRatio(self): + return _openframeworks.ofCamera_getAspectRatio(self) + + def setupPerspective(self, *args): + return _openframeworks.ofCamera_setupPerspective(self, *args) + + def setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight): + return _openframeworks.ofCamera_setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight) + + def setVFlip(self, vflip): + return _openframeworks.ofCamera_setVFlip(self, vflip) + + def isVFlipped(self): + return _openframeworks.ofCamera_isVFlipped(self) + + def enableOrtho(self): + return _openframeworks.ofCamera_enableOrtho(self) + + def disableOrtho(self): + return _openframeworks.ofCamera_disableOrtho(self) + + def getOrtho(self): + return _openframeworks.ofCamera_getOrtho(self) + + def getImagePlaneDistance(self, *args): + return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) + + def begin(self, *args): + return _openframeworks.ofCamera_begin(self, *args) + + def end(self): + return _openframeworks.ofCamera_end(self) + + def getProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getProjectionMatrix(self, *args) + + def getModelViewMatrix(self): + return _openframeworks.ofCamera_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) + + def worldToScreen(self, *args): + return _openframeworks.ofCamera_worldToScreen(self, *args) + + def screenToWorld(self, *args): + return _openframeworks.ofCamera_screenToWorld(self, *args) + + def worldToCamera(self, *args): + return _openframeworks.ofCamera_worldToCamera(self, *args) + + def cameraToWorld(self, *args): + return _openframeworks.ofCamera_cameraToWorld(self, *args) + + def setRenderer(self, renderer): + return _openframeworks.ofCamera_setRenderer(self, renderer) ofCamera_swigregister = _openframeworks.ofCamera_swigregister ofCamera_swigregister(ofCamera) class ofEasyCam(ofCamera): __swig_setmethods__ = {} - for _s in [ofCamera]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofCamera]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofEasyCam, name, value) __swig_getmethods__ = {} - for _s in [ofCamera]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofCamera]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofEasyCam, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofEasyCam() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofEasyCam - __del__ = lambda self : None; - def begin(self, *args): return _openframeworks.ofEasyCam_begin(self, *args) - def reset(self): return _openframeworks.ofEasyCam_reset(self) - def setTarget(self, *args): return _openframeworks.ofEasyCam_setTarget(self, *args) - def getTarget(self): return _openframeworks.ofEasyCam_getTarget(self) - def setDistance(self, *args): return _openframeworks.ofEasyCam_setDistance(self, *args) - def getDistance(self): return _openframeworks.ofEasyCam_getDistance(self) - def setDrag(self, *args): return _openframeworks.ofEasyCam_setDrag(self, *args) - def getDrag(self): return _openframeworks.ofEasyCam_getDrag(self) - def setTranslationKey(self, *args): return _openframeworks.ofEasyCam_setTranslationKey(self, *args) - def getTranslationKey(self): return _openframeworks.ofEasyCam_getTranslationKey(self) - def enableMouseInput(self): return _openframeworks.ofEasyCam_enableMouseInput(self) - def disableMouseInput(self): return _openframeworks.ofEasyCam_disableMouseInput(self) - def getMouseInputEnabled(self): return _openframeworks.ofEasyCam_getMouseInputEnabled(self) - def enableMouseMiddleButton(self): return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) - def disableMouseMiddleButton(self): return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) - def getMouseMiddleButtonEnabled(self): return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) - def setAutoDistance(self, *args): return _openframeworks.ofEasyCam_setAutoDistance(self, *args) -ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister -ofEasyCam_swigregister(ofEasyCam) + __del__ = lambda self: None -class ofMesh(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) - __swig_getmethods__ = {} + def begin(self, *args): + return _openframeworks.ofEasyCam_begin(self, *args) + + def reset(self): + return _openframeworks.ofEasyCam_reset(self) + + def setTarget(self, *args): + return _openframeworks.ofEasyCam_setTarget(self, *args) + + def getTarget(self): + return _openframeworks.ofEasyCam_getTarget(self) + + def setDistance(self, distance): + return _openframeworks.ofEasyCam_setDistance(self, distance) + + def getDistance(self): + return _openframeworks.ofEasyCam_getDistance(self) + + def setDrag(self, drag): + return _openframeworks.ofEasyCam_setDrag(self, drag) + + def getDrag(self): + return _openframeworks.ofEasyCam_getDrag(self) + + def setAutoDistance(self, bAutoDistance): + return _openframeworks.ofEasyCam_setAutoDistance(self, bAutoDistance) + + def setEvents(self, events): + return _openframeworks.ofEasyCam_setEvents(self, events) + + def setTranslationKey(self, key): + return _openframeworks.ofEasyCam_setTranslationKey(self, key) + + def getTranslationKey(self): + return _openframeworks.ofEasyCam_getTranslationKey(self) + + def enableMouseInput(self): + return _openframeworks.ofEasyCam_enableMouseInput(self) + + def disableMouseInput(self): + return _openframeworks.ofEasyCam_disableMouseInput(self) + + def getMouseInputEnabled(self): + return _openframeworks.ofEasyCam_getMouseInputEnabled(self) + + def enableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) + + def disableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) + + def getMouseMiddleButtonEnabled(self): + return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) +ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister +ofEasyCam_swigregister(ofEasyCam) + +class ofMesh(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) + __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMesh, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofMesh(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _openframeworks.delete_ofMesh - __del__ = lambda self : None; - def setMode(self, *args): return _openframeworks.ofMesh_setMode(self, *args) - def getMode(self): return _openframeworks.ofMesh_getMode(self) - def clear(self): return _openframeworks.ofMesh_clear(self) - def setupIndicesAuto(self): return _openframeworks.ofMesh_setupIndicesAuto(self) - def getVertex(self, *args): return _openframeworks.ofMesh_getVertex(self, *args) - def addVertex(self, *args): return _openframeworks.ofMesh_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofMesh_addVertices(self, *args) - def removeVertex(self, *args): return _openframeworks.ofMesh_removeVertex(self, *args) - def setVertex(self, *args): return _openframeworks.ofMesh_setVertex(self, *args) - def clearVertices(self): return _openframeworks.ofMesh_clearVertices(self) - def getNormal(self, *args): return _openframeworks.ofMesh_getNormal(self, *args) - def addNormal(self, *args): return _openframeworks.ofMesh_addNormal(self, *args) - def addNormals(self, *args): return _openframeworks.ofMesh_addNormals(self, *args) - def removeNormal(self, *args): return _openframeworks.ofMesh_removeNormal(self, *args) - def setNormal(self, *args): return _openframeworks.ofMesh_setNormal(self, *args) - def clearNormals(self): return _openframeworks.ofMesh_clearNormals(self) - def getColor(self, *args): return _openframeworks.ofMesh_getColor(self, *args) - def addColor(self, *args): return _openframeworks.ofMesh_addColor(self, *args) - def addColors(self, *args): return _openframeworks.ofMesh_addColors(self, *args) - def removeColor(self, *args): return _openframeworks.ofMesh_removeColor(self, *args) - def setColor(self, *args): return _openframeworks.ofMesh_setColor(self, *args) - def clearColors(self): return _openframeworks.ofMesh_clearColors(self) - def getTexCoord(self, *args): return _openframeworks.ofMesh_getTexCoord(self, *args) - def addTexCoord(self, *args): return _openframeworks.ofMesh_addTexCoord(self, *args) - def addTexCoords(self, *args): return _openframeworks.ofMesh_addTexCoords(self, *args) - def removeTexCoord(self, *args): return _openframeworks.ofMesh_removeTexCoord(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMesh_setTexCoord(self, *args) - def clearTexCoords(self): return _openframeworks.ofMesh_clearTexCoords(self) - def getIndex(self, *args): return _openframeworks.ofMesh_getIndex(self, *args) - def addIndex(self, *args): return _openframeworks.ofMesh_addIndex(self, *args) - def addIndices(self, *args): return _openframeworks.ofMesh_addIndices(self, *args) - def removeIndex(self, *args): return _openframeworks.ofMesh_removeIndex(self, *args) - def setIndex(self, *args): return _openframeworks.ofMesh_setIndex(self, *args) - def clearIndices(self): return _openframeworks.ofMesh_clearIndices(self) - def addTriangle(self, *args): return _openframeworks.ofMesh_addTriangle(self, *args) - def getNumVertices(self): return _openframeworks.ofMesh_getNumVertices(self) - def getNumColors(self): return _openframeworks.ofMesh_getNumColors(self) - def getNumNormals(self): return _openframeworks.ofMesh_getNumNormals(self) - def getNumTexCoords(self): return _openframeworks.ofMesh_getNumTexCoords(self) - def getNumIndices(self): return _openframeworks.ofMesh_getNumIndices(self) - def getVerticesPointer(self, *args): return _openframeworks.ofMesh_getVerticesPointer(self, *args) - def getColorsPointer(self, *args): return _openframeworks.ofMesh_getColorsPointer(self, *args) - def getNormalsPointer(self, *args): return _openframeworks.ofMesh_getNormalsPointer(self, *args) - def getTexCoordsPointer(self, *args): return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) - def getIndexPointer(self, *args): return _openframeworks.ofMesh_getIndexPointer(self, *args) - def getVertices(self, *args): return _openframeworks.ofMesh_getVertices(self, *args) - def getColors(self, *args): return _openframeworks.ofMesh_getColors(self, *args) - def getNormals(self, *args): return _openframeworks.ofMesh_getNormals(self, *args) - def getTexCoords(self, *args): return _openframeworks.ofMesh_getTexCoords(self, *args) - def getIndices(self, *args): return _openframeworks.ofMesh_getIndices(self, *args) - def getCentroid(self): return _openframeworks.ofMesh_getCentroid(self) - def haveVertsChanged(self): return _openframeworks.ofMesh_haveVertsChanged(self) - def haveColorsChanged(self): return _openframeworks.ofMesh_haveColorsChanged(self) - def haveNormalsChanged(self): return _openframeworks.ofMesh_haveNormalsChanged(self) - def haveTexCoordsChanged(self): return _openframeworks.ofMesh_haveTexCoordsChanged(self) - def haveIndicesChanged(self): return _openframeworks.ofMesh_haveIndicesChanged(self) - def hasVertices(self): return _openframeworks.ofMesh_hasVertices(self) - def hasColors(self): return _openframeworks.ofMesh_hasColors(self) - def hasNormals(self): return _openframeworks.ofMesh_hasNormals(self) - def hasTexCoords(self): return _openframeworks.ofMesh_hasTexCoords(self) - def hasIndices(self): return _openframeworks.ofMesh_hasIndices(self) - def drawVertices(self): return _openframeworks.ofMesh_drawVertices(self) - def drawWireframe(self): return _openframeworks.ofMesh_drawWireframe(self) - def drawFaces(self): return _openframeworks.ofMesh_drawFaces(self) - def load(self, *args): return _openframeworks.ofMesh_load(self, *args) - def save(self, *args): return _openframeworks.ofMesh_save(self, *args) - def enableColors(self): return _openframeworks.ofMesh_enableColors(self) - def enableTextures(self): return _openframeworks.ofMesh_enableTextures(self) - def enableNormals(self): return _openframeworks.ofMesh_enableNormals(self) - def enableIndices(self): return _openframeworks.ofMesh_enableIndices(self) - def disableColors(self): return _openframeworks.ofMesh_disableColors(self) - def disableTextures(self): return _openframeworks.ofMesh_disableTextures(self) - def disableNormals(self): return _openframeworks.ofMesh_disableNormals(self) - def disableIndices(self): return _openframeworks.ofMesh_disableIndices(self) - def usingColors(self): return _openframeworks.ofMesh_usingColors(self) - def usingTextures(self): return _openframeworks.ofMesh_usingTextures(self) - def usingNormals(self): return _openframeworks.ofMesh_usingNormals(self) - def usingIndices(self): return _openframeworks.ofMesh_usingIndices(self) - def append(self, *args): return _openframeworks.ofMesh_append(self, *args) - def setColorForIndices(self, *args): return _openframeworks.ofMesh_setColorForIndices(self, *args) - def getMeshForIndices(self, *args): return _openframeworks.ofMesh_getMeshForIndices(self, *args) - def mergeDuplicateVertices(self): return _openframeworks.ofMesh_mergeDuplicateVertices(self) - def getUniqueFaces(self): return _openframeworks.ofMesh_getUniqueFaces(self) - def getFaceNormals(self, perVetex=False): return _openframeworks.ofMesh_getFaceNormals(self, perVetex) - def setFromTriangles(self, *args): return _openframeworks.ofMesh_setFromTriangles(self, *args) - def smoothNormals(self, *args): return _openframeworks.ofMesh_smoothNormals(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setFromTriangles(self, tris, bUseFaceNormal=False): + return _openframeworks.ofMesh_setFromTriangles(self, tris, bUseFaceNormal) + + def setMode(self, mode): + return _openframeworks.ofMesh_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofMesh_getMode(self) __swig_getmethods__["plane"] = lambda x: _openframeworks.ofMesh_plane - if _newclass:plane = staticmethod(_openframeworks.ofMesh_plane) + if _newclass: + plane = staticmethod(_openframeworks.ofMesh_plane) __swig_getmethods__["sphere"] = lambda x: _openframeworks.ofMesh_sphere - if _newclass:sphere = staticmethod(_openframeworks.ofMesh_sphere) + if _newclass: + sphere = staticmethod(_openframeworks.ofMesh_sphere) __swig_getmethods__["icosahedron"] = lambda x: _openframeworks.ofMesh_icosahedron - if _newclass:icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) + if _newclass: + icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) __swig_getmethods__["icosphere"] = lambda x: _openframeworks.ofMesh_icosphere - if _newclass:icosphere = staticmethod(_openframeworks.ofMesh_icosphere) + if _newclass: + icosphere = staticmethod(_openframeworks.ofMesh_icosphere) __swig_getmethods__["cylinder"] = lambda x: _openframeworks.ofMesh_cylinder - if _newclass:cylinder = staticmethod(_openframeworks.ofMesh_cylinder) + if _newclass: + cylinder = staticmethod(_openframeworks.ofMesh_cylinder) __swig_getmethods__["cone"] = lambda x: _openframeworks.ofMesh_cone - if _newclass:cone = staticmethod(_openframeworks.ofMesh_cone) + if _newclass: + cone = staticmethod(_openframeworks.ofMesh_cone) __swig_getmethods__["box"] = lambda x: _openframeworks.ofMesh_box - if _newclass:box = staticmethod(_openframeworks.ofMesh_box) + if _newclass: + box = staticmethod(_openframeworks.ofMesh_box) __swig_getmethods__["axis"] = lambda x: _openframeworks.ofMesh_axis - if _newclass:axis = staticmethod(_openframeworks.ofMesh_axis) - def draw(self, *args): return _openframeworks.ofMesh_draw(self, *args) + if _newclass: + axis = staticmethod(_openframeworks.ofMesh_axis) + + def addVertex(self, v): + return _openframeworks.ofMesh_addVertex(self, v) + + def addVertices(self, *args): + return _openframeworks.ofMesh_addVertices(self, *args) + + def removeVertex(self, index): + return _openframeworks.ofMesh_removeVertex(self, index) + + def setVertex(self, index, v): + return _openframeworks.ofMesh_setVertex(self, index, v) + + def clearVertices(self): + return _openframeworks.ofMesh_clearVertices(self) + + def clear(self): + return _openframeworks.ofMesh_clear(self) + + def getNumVertices(self): + return _openframeworks.ofMesh_getNumVertices(self) + + def getVerticesPointer(self, *args): + return _openframeworks.ofMesh_getVerticesPointer(self, *args) + + def getVertex(self, i): + return _openframeworks.ofMesh_getVertex(self, i) + + def getVertices(self, *args): + return _openframeworks.ofMesh_getVertices(self, *args) + + def haveVertsChanged(self): + return _openframeworks.ofMesh_haveVertsChanged(self) + + def hasVertices(self): + return _openframeworks.ofMesh_hasVertices(self) + + def append(self, mesh): + return _openframeworks.ofMesh_append(self, mesh) + + def mergeDuplicateVertices(self): + return _openframeworks.ofMesh_mergeDuplicateVertices(self) + + def getCentroid(self): + return _openframeworks.ofMesh_getCentroid(self) + + def getNormal(self, i): + return _openframeworks.ofMesh_getNormal(self, i) + + def addNormal(self, n): + return _openframeworks.ofMesh_addNormal(self, n) + + def addNormals(self, *args): + return _openframeworks.ofMesh_addNormals(self, *args) + + def removeNormal(self, index): + return _openframeworks.ofMesh_removeNormal(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMesh_setNormal(self, index, n) + + def clearNormals(self): + return _openframeworks.ofMesh_clearNormals(self) + + def getNumNormals(self): + return _openframeworks.ofMesh_getNumNormals(self) + + def getNormalsPointer(self, *args): + return _openframeworks.ofMesh_getNormalsPointer(self, *args) + + def getNormals(self, *args): + return _openframeworks.ofMesh_getNormals(self, *args) + + def haveNormalsChanged(self): + return _openframeworks.ofMesh_haveNormalsChanged(self) + + def hasNormals(self): + return _openframeworks.ofMesh_hasNormals(self) + + def enableNormals(self): + return _openframeworks.ofMesh_enableNormals(self) + + def disableNormals(self): + return _openframeworks.ofMesh_disableNormals(self) + + def usingNormals(self): + return _openframeworks.ofMesh_usingNormals(self) + + def smoothNormals(self, angle): + return _openframeworks.ofMesh_smoothNormals(self, angle) + + def getFace(self, faceId): + return _openframeworks.ofMesh_getFace(self, faceId) + + def getFaceNormals(self, perVetex=False): + return _openframeworks.ofMesh_getFaceNormals(self, perVetex) + + def getUniqueFaces(self): + return _openframeworks.ofMesh_getUniqueFaces(self) + + def getColor(self, i): + return _openframeworks.ofMesh_getColor(self, i) + + def addColor(self, c): + return _openframeworks.ofMesh_addColor(self, c) + + def addColors(self, *args): + return _openframeworks.ofMesh_addColors(self, *args) + + def removeColor(self, index): + return _openframeworks.ofMesh_removeColor(self, index) + + def setColor(self, index, c): + return _openframeworks.ofMesh_setColor(self, index, c) + + def clearColors(self): + return _openframeworks.ofMesh_clearColors(self) + + def getNumColors(self): + return _openframeworks.ofMesh_getNumColors(self) + + def getColorsPointer(self, *args): + return _openframeworks.ofMesh_getColorsPointer(self, *args) + + def getColors(self, *args): + return _openframeworks.ofMesh_getColors(self, *args) + + def haveColorsChanged(self): + return _openframeworks.ofMesh_haveColorsChanged(self) + + def hasColors(self): + return _openframeworks.ofMesh_hasColors(self) + + def enableColors(self): + return _openframeworks.ofMesh_enableColors(self) + + def disableColors(self): + return _openframeworks.ofMesh_disableColors(self) + + def usingColors(self): + return _openframeworks.ofMesh_usingColors(self) + + def getTexCoord(self, i): + return _openframeworks.ofMesh_getTexCoord(self, i) + + def addTexCoord(self, t): + return _openframeworks.ofMesh_addTexCoord(self, t) + + def addTexCoords(self, *args): + return _openframeworks.ofMesh_addTexCoords(self, *args) + + def removeTexCoord(self, index): + return _openframeworks.ofMesh_removeTexCoord(self, index) + + def setTexCoord(self, index, t): + return _openframeworks.ofMesh_setTexCoord(self, index, t) + + def clearTexCoords(self): + return _openframeworks.ofMesh_clearTexCoords(self) + + def getNumTexCoords(self): + return _openframeworks.ofMesh_getNumTexCoords(self) + + def getTexCoordsPointer(self, *args): + return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) + + def getTexCoords(self, *args): + return _openframeworks.ofMesh_getTexCoords(self, *args) + + def haveTexCoordsChanged(self): + return _openframeworks.ofMesh_haveTexCoordsChanged(self) + + def hasTexCoords(self): + return _openframeworks.ofMesh_hasTexCoords(self) + + def enableTextures(self): + return _openframeworks.ofMesh_enableTextures(self) + + def disableTextures(self): + return _openframeworks.ofMesh_disableTextures(self) + + def usingTextures(self): + return _openframeworks.ofMesh_usingTextures(self) + + def setupIndicesAuto(self): + return _openframeworks.ofMesh_setupIndicesAuto(self) + + def getIndex(self, i): + return _openframeworks.ofMesh_getIndex(self, i) + + def addIndex(self, i): + return _openframeworks.ofMesh_addIndex(self, i) + + def addIndices(self, *args): + return _openframeworks.ofMesh_addIndices(self, *args) + + def removeIndex(self, index): + return _openframeworks.ofMesh_removeIndex(self, index) + + def setIndex(self, index, val): + return _openframeworks.ofMesh_setIndex(self, index, val) + + def clearIndices(self): + return _openframeworks.ofMesh_clearIndices(self) + + def getNumIndices(self): + return _openframeworks.ofMesh_getNumIndices(self) + + def getIndexPointer(self, *args): + return _openframeworks.ofMesh_getIndexPointer(self, *args) + + def getIndices(self, *args): + return _openframeworks.ofMesh_getIndices(self, *args) + + def haveIndicesChanged(self): + return _openframeworks.ofMesh_haveIndicesChanged(self) + + def hasIndices(self): + return _openframeworks.ofMesh_hasIndices(self) + + def addTriangle(self, index1, index2, index3): + return _openframeworks.ofMesh_addTriangle(self, index1, index2, index3) + + def enableIndices(self): + return _openframeworks.ofMesh_enableIndices(self) + + def disableIndices(self): + return _openframeworks.ofMesh_disableIndices(self) + + def usingIndices(self): + return _openframeworks.ofMesh_usingIndices(self) + + def setColorForIndices(self, startIndex, endIndex, color): + return _openframeworks.ofMesh_setColorForIndices(self, startIndex, endIndex, color) + + def getMeshForIndices(self, *args): + return _openframeworks.ofMesh_getMeshForIndices(self, *args) + + def drawVertices(self): + return _openframeworks.ofMesh_drawVertices(self) + + def drawWireframe(self): + return _openframeworks.ofMesh_drawWireframe(self) + + def drawFaces(self): + return _openframeworks.ofMesh_drawFaces(self) + + def draw(self, *args): + return _openframeworks.ofMesh_draw(self, *args) + + def load(self, path): + return _openframeworks.ofMesh_load(self, path) + + def save(self, path, useBinary=False): + return _openframeworks.ofMesh_save(self, path, useBinary) + __swig_destroy__ = _openframeworks.delete_ofMesh + __del__ = lambda self: None ofMesh_swigregister = _openframeworks.ofMesh_swigregister ofMesh_swigregister(ofMesh) def ofMesh_plane(*args): - return _openframeworks.ofMesh_plane(*args) + return _openframeworks.ofMesh_plane(*args) ofMesh_plane = _openframeworks.ofMesh_plane def ofMesh_sphere(*args): - return _openframeworks.ofMesh_sphere(*args) + return _openframeworks.ofMesh_sphere(*args) ofMesh_sphere = _openframeworks.ofMesh_sphere -def ofMesh_icosahedron(*args): - return _openframeworks.ofMesh_icosahedron(*args) +def ofMesh_icosahedron(radius): + return _openframeworks.ofMesh_icosahedron(radius) ofMesh_icosahedron = _openframeworks.ofMesh_icosahedron -def ofMesh_icosphere(*args): - return _openframeworks.ofMesh_icosphere(*args) +def ofMesh_icosphere(radius, iterations=2): + return _openframeworks.ofMesh_icosphere(radius, iterations) ofMesh_icosphere = _openframeworks.ofMesh_icosphere def ofMesh_cylinder(*args): - return _openframeworks.ofMesh_cylinder(*args) + return _openframeworks.ofMesh_cylinder(*args) ofMesh_cylinder = _openframeworks.ofMesh_cylinder def ofMesh_cone(*args): - return _openframeworks.ofMesh_cone(*args) + return _openframeworks.ofMesh_cone(*args) ofMesh_cone = _openframeworks.ofMesh_cone -def ofMesh_box(*args): - return _openframeworks.ofMesh_box(*args) +def ofMesh_box(width, height, depth, resX=2, resY=2, resZ=2): + return _openframeworks.ofMesh_box(width, height, depth, resX, resY, resZ) ofMesh_box = _openframeworks.ofMesh_box def ofMesh_axis(size=1.0): - return _openframeworks.ofMesh_axis(size) + return _openframeworks.ofMesh_axis(size) ofMesh_axis = _openframeworks.ofMesh_axis class ofMeshFace(_object): @@ -2792,27 +5327,60 @@ class ofMeshFace(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMeshFace, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMeshFace() - try: self.this.append(this) - except: self.this = this - def getFaceNormal(self): return _openframeworks.ofMeshFace_getFaceNormal(self) - def setVertex(self, *args): return _openframeworks.ofMeshFace_setVertex(self, *args) - def getVertex(self, *args): return _openframeworks.ofMeshFace_getVertex(self, *args) - def setNormal(self, *args): return _openframeworks.ofMeshFace_setNormal(self, *args) - def getNormal(self, *args): return _openframeworks.ofMeshFace_getNormal(self, *args) - def setColor(self, *args): return _openframeworks.ofMeshFace_setColor(self, *args) - def getColor(self, *args): return _openframeworks.ofMeshFace_getColor(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMeshFace_setTexCoord(self, *args) - def getTexCoord(self, *args): return _openframeworks.ofMeshFace_getTexCoord(self, *args) - def setHasColors(self, *args): return _openframeworks.ofMeshFace_setHasColors(self, *args) - def setHasNormals(self, *args): return _openframeworks.ofMeshFace_setHasNormals(self, *args) - def setHasTexcoords(self, *args): return _openframeworks.ofMeshFace_setHasTexcoords(self, *args) - def hasColors(self): return _openframeworks.ofMeshFace_hasColors(self) - def hasNormals(self): return _openframeworks.ofMeshFace_hasNormals(self) - def hasTexcoords(self): return _openframeworks.ofMeshFace_hasTexcoords(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getFaceNormal(self): + return _openframeworks.ofMeshFace_getFaceNormal(self) + + def setVertex(self, index, v): + return _openframeworks.ofMeshFace_setVertex(self, index, v) + + def getVertex(self, index): + return _openframeworks.ofMeshFace_getVertex(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMeshFace_setNormal(self, index, n) + + def getNormal(self, index): + return _openframeworks.ofMeshFace_getNormal(self, index) + + def setColor(self, index, color): + return _openframeworks.ofMeshFace_setColor(self, index, color) + + def getColor(self, index): + return _openframeworks.ofMeshFace_getColor(self, index) + + def setTexCoord(self, index, tCoord): + return _openframeworks.ofMeshFace_setTexCoord(self, index, tCoord) + + def getTexCoord(self, index): + return _openframeworks.ofMeshFace_getTexCoord(self, index) + + def setHasColors(self, bColors): + return _openframeworks.ofMeshFace_setHasColors(self, bColors) + + def setHasNormals(self, bNormals): + return _openframeworks.ofMeshFace_setHasNormals(self, bNormals) + + def setHasTexcoords(self, bTexcoords): + return _openframeworks.ofMeshFace_setHasTexcoords(self, bTexcoords) + + def hasColors(self): + return _openframeworks.ofMeshFace_hasColors(self) + + def hasNormals(self): + return _openframeworks.ofMeshFace_hasNormals(self) + + def hasTexcoords(self): + return _openframeworks.ofMeshFace_hasTexcoords(self) __swig_destroy__ = _openframeworks.delete_ofMeshFace - __del__ = lambda self : None; + __del__ = lambda self: None ofMeshFace_swigregister = _openframeworks.ofMeshFace_swigregister ofMeshFace_swigregister(ofMeshFace) @@ -2822,25 +5390,54 @@ class ofPlanePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPlanePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPlanePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofPlanePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofPlanePrimitive_set(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofPlanePrimitive_resizeToTexture(self, *args) - def setWidth(self, *args): return _openframeworks.ofPlanePrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofPlanePrimitive_setHeight(self, *args) - def setColumns(self, *args): return _openframeworks.ofPlanePrimitive_setColumns(self, *args) - def setRows(self, *args): return _openframeworks.ofPlanePrimitive_setRows(self, *args) - def setResolution(self, *args): return _openframeworks.ofPlanePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofPlanePrimitive_setMode(self, *args) - def getNumColumns(self): return _openframeworks.ofPlanePrimitive_getNumColumns(self) - def getNumRows(self): return _openframeworks.ofPlanePrimitive_getNumRows(self) - def getResolution(self): return _openframeworks.ofPlanePrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofPlanePrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofPlanePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofPlanePrimitive_set(self, *args) + + def resizeToTexture(self, inTexture, scale=1.): + return _openframeworks.ofPlanePrimitive_resizeToTexture(self, inTexture, scale) + + def setWidth(self, width): + return _openframeworks.ofPlanePrimitive_setWidth(self, width) + + def setHeight(self, height): + return _openframeworks.ofPlanePrimitive_setHeight(self, height) + + def setColumns(self, columns): + return _openframeworks.ofPlanePrimitive_setColumns(self, columns) + + def setRows(self, rows): + return _openframeworks.ofPlanePrimitive_setRows(self, rows) + + def setResolution(self, columns, rows): + return _openframeworks.ofPlanePrimitive_setResolution(self, columns, rows) + + def setMode(self, mode): + return _openframeworks.ofPlanePrimitive_setMode(self, mode) + + def getNumColumns(self): + return _openframeworks.ofPlanePrimitive_getNumColumns(self) + + def getNumRows(self): + return _openframeworks.ofPlanePrimitive_getNumRows(self) + + def getResolution(self): + return _openframeworks.ofPlanePrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofPlanePrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPlanePrimitive_getHeight(self) ofPlanePrimitive_swigregister = _openframeworks.ofPlanePrimitive_swigregister ofPlanePrimitive_swigregister(ofPlanePrimitive) @@ -2850,18 +5447,33 @@ class ofSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofSpherePrimitive_set(self, *args) + + def setResolution(self, res): + return _openframeworks.ofSpherePrimitive_setResolution(self, res) + + def setRadius(self, radius): + return _openframeworks.ofSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofSpherePrimitive_getResolution(self) ofSpherePrimitive_swigregister = _openframeworks.ofSpherePrimitive_swigregister ofSpherePrimitive_swigregister(ofSpherePrimitive) @@ -2871,18 +5483,33 @@ class ofIcoSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofIcoSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofIcoSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofIcoSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofIcoSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofIcoSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofIcoSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofIcoSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofIcoSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofIcoSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, radius, res): + return _openframeworks.ofIcoSpherePrimitive_set(self, radius, res) + + def setResolution(self, iterations): + return _openframeworks.ofIcoSpherePrimitive_setResolution(self, iterations) + + def setRadius(self, radius): + return _openframeworks.ofIcoSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofIcoSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofIcoSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofIcoSpherePrimitive_getResolution(self) ofIcoSpherePrimitive_swigregister = _openframeworks.ofIcoSpherePrimitive_swigregister ofIcoSpherePrimitive_swigregister(ofIcoSpherePrimitive) @@ -2892,37 +5519,90 @@ class ofCylinderPrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofCylinderPrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofCylinderPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCylinderPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofCylinderPrimitive_set(self, *args) - def setRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setHeight(self, *args) - def setCapped(self, *args): return _openframeworks.ofCylinderPrimitive_setCapped(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofCylinderPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofCylinderPrimitive_setMode(self, *args) - def setTopCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, *args) - def setCylinderColor(self, *args): return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, *args) - def setBottomCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, *args) - def getTopCapIndices(self): return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) - def getTopCapMesh(self): return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) - def getCylinderIndices(self): return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) - def getCylinderMesh(self): return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) - def getBottomCapIndices(self): return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) - def getBottomCapMesh(self): return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofCylinderPrimitive_getResolution(self) - def getHeight(self): return _openframeworks.ofCylinderPrimitive_getHeight(self) - def getRadius(self): return _openframeworks.ofCylinderPrimitive_getRadius(self) - def getCapped(self): return _openframeworks.ofCylinderPrimitive_getCapped(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofCylinderPrimitive_set(self, *args) + + def setRadius(self, radius): + return _openframeworks.ofCylinderPrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofCylinderPrimitive_setHeight(self, height) + + def setCapped(self, bCapped): + return _openframeworks.ofCylinderPrimitive_setCapped(self, bCapped) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofCylinderPrimitive_setResolution(self, radiusSegments, heightSegments, capSegments) + + def setMode(self, mode): + return _openframeworks.ofCylinderPrimitive_setMode(self, mode) + + def setTopCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, color) + + def setCylinderColor(self, color): + return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, color) + + def setBottomCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, color) + + def getTopCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) + + def getTopCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) + + def getCylinderIndices(self): + return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) + + def getCylinderMesh(self): + return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) + + def getBottomCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) + + def getBottomCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofCylinderPrimitive_getResolution(self) + + def getHeight(self): + return _openframeworks.ofCylinderPrimitive_getHeight(self) + + def getRadius(self): + return _openframeworks.ofCylinderPrimitive_getRadius(self) + + def getCapped(self): + return _openframeworks.ofCylinderPrimitive_getCapped(self) ofCylinderPrimitive_swigregister = _openframeworks.ofCylinderPrimitive_swigregister ofCylinderPrimitive_swigregister(ofCylinderPrimitive) @@ -2932,32 +5612,75 @@ class ofConePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofConePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofConePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofConePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofConePrimitive_set(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofConePrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofConePrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofConePrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofConePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofConePrimitive_setMode(self, *args) - def setRadius(self, *args): return _openframeworks.ofConePrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofConePrimitive_setHeight(self, *args) - def setTopColor(self, *args): return _openframeworks.ofConePrimitive_setTopColor(self, *args) - def setCapColor(self, *args): return _openframeworks.ofConePrimitive_setCapColor(self, *args) - def getConeIndices(self): return _openframeworks.ofConePrimitive_getConeIndices(self) - def getConeMesh(self): return _openframeworks.ofConePrimitive_getConeMesh(self) - def getCapIndices(self): return _openframeworks.ofConePrimitive_getCapIndices(self) - def getCapMesh(self): return _openframeworks.ofConePrimitive_getCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofConePrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofConePrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofConePrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofConePrimitive_getResolution(self) - def getRadius(self): return _openframeworks.ofConePrimitive_getRadius(self) - def getHeight(self): return _openframeworks.ofConePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofConePrimitive_set(self, *args) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofConePrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofConePrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofConePrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusRes, heightRes, capRes): + return _openframeworks.ofConePrimitive_setResolution(self, radiusRes, heightRes, capRes) + + def setMode(self, mode): + return _openframeworks.ofConePrimitive_setMode(self, mode) + + def setRadius(self, radius): + return _openframeworks.ofConePrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofConePrimitive_setHeight(self, height) + + def setTopColor(self, color): + return _openframeworks.ofConePrimitive_setTopColor(self, color) + + def setCapColor(self, color): + return _openframeworks.ofConePrimitive_setCapColor(self, color) + + def getConeIndices(self): + return _openframeworks.ofConePrimitive_getConeIndices(self) + + def getConeMesh(self): + return _openframeworks.ofConePrimitive_getConeMesh(self) + + def getCapIndices(self): + return _openframeworks.ofConePrimitive_getCapIndices(self) + + def getCapMesh(self): + return _openframeworks.ofConePrimitive_getCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofConePrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofConePrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofConePrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofConePrimitive_getResolution(self) + + def getRadius(self): + return _openframeworks.ofConePrimitive_getRadius(self) + + def getHeight(self): + return _openframeworks.ofConePrimitive_getHeight(self) ofConePrimitive_swigregister = _openframeworks.ofConePrimitive_swigregister ofConePrimitive_swigregister(ofConePrimitive) @@ -2974,226 +5697,421 @@ class ofBoxPrimitive(_object): SIDE_TOP = _openframeworks.ofBoxPrimitive_SIDE_TOP SIDE_BOTTOM = _openframeworks.ofBoxPrimitive_SIDE_BOTTOM SIDES_TOTAL = _openframeworks.ofBoxPrimitive_SIDES_TOTAL - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBoxPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofBoxPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBoxPrimitive_set(self, *args) - def setWidth(self, *args): return _openframeworks.ofBoxPrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofBoxPrimitive_setHeight(self, *args) - def setDepth(self, *args): return _openframeworks.ofBoxPrimitive_setDepth(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofBoxPrimitive_resizeToTexture(self, *args) - def getSideIndices(self, *args): return _openframeworks.ofBoxPrimitive_getSideIndices(self, *args) - def getSideMesh(self, *args): return _openframeworks.ofBoxPrimitive_getSideMesh(self, *args) - def setResolutionWidth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, *args) - def setResolutionDepth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, *args) - def setResolution(self, *args): return _openframeworks.ofBoxPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofBoxPrimitive_setMode(self, *args) - def setSideColor(self, *args): return _openframeworks.ofBoxPrimitive_setSideColor(self, *args) - def getResolutionWidth(self): return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) - def getResolutionHeight(self): return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) - def getResolutionDepth(self): return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) - def getResolution(self): return _openframeworks.ofBoxPrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofBoxPrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofBoxPrimitive_getHeight(self) - def getDepth(self): return _openframeworks.ofBoxPrimitive_getDepth(self) - def getSize(self): return _openframeworks.ofBoxPrimitive_getSize(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofBoxPrimitive_set(self, *args) + + def setWidth(self, a_width): + return _openframeworks.ofBoxPrimitive_setWidth(self, a_width) + + def setHeight(self, a_height): + return _openframeworks.ofBoxPrimitive_setHeight(self, a_height) + + def setDepth(self, a_depth): + return _openframeworks.ofBoxPrimitive_setDepth(self, a_depth) + + def resizeToTexture(self, inTexture): + return _openframeworks.ofBoxPrimitive_resizeToTexture(self, inTexture) + + def getSideIndices(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideIndices(self, sideIndex) + + def getSideMesh(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideMesh(self, sideIndex) + + def setResolutionWidth(self, widthRes): + return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, widthRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionDepth(self, depthRes): + return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, depthRes) + + def setResolution(self, *args): + return _openframeworks.ofBoxPrimitive_setResolution(self, *args) + + def setMode(self, mode): + return _openframeworks.ofBoxPrimitive_setMode(self, mode) + + def setSideColor(self, sideIndex, color): + return _openframeworks.ofBoxPrimitive_setSideColor(self, sideIndex, color) + + def getResolutionWidth(self): + return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) + + def getResolutionHeight(self): + return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) + + def getResolutionDepth(self): + return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) + + def getResolution(self): + return _openframeworks.ofBoxPrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofBoxPrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofBoxPrimitive_getHeight(self) + + def getDepth(self): + return _openframeworks.ofBoxPrimitive_getDepth(self) + + def getSize(self): + return _openframeworks.ofBoxPrimitive_getSize(self) ofBoxPrimitive_swigregister = _openframeworks.ofBoxPrimitive_swigregister ofBoxPrimitive_swigregister(ofBoxPrimitive) +def ofInit(): + return _openframeworks.ofInit() +ofInit = _openframeworks.ofInit + +def ofCreateWindow(settings): + return _openframeworks.ofCreateWindow(settings) +ofCreateWindow = _openframeworks.ofCreateWindow + +def ofGetMainLoop(): + return _openframeworks.ofGetMainLoop() +ofGetMainLoop = _openframeworks.ofGetMainLoop + +def ofSetMainLoop(mainLoop): + return _openframeworks.ofSetMainLoop(mainLoop) +ofSetMainLoop = _openframeworks.ofSetMainLoop + def ofSetupOpenGL(*args): - return _openframeworks.ofSetupOpenGL(*args) + return _openframeworks.ofSetupOpenGL(*args) ofSetupOpenGL = _openframeworks.ofSetupOpenGL -def ofRunApp(OFSA=None): - return _openframeworks.ofRunApp(OFSA) +def ofRunApp(*args): + return _openframeworks.ofRunApp(*args) ofRunApp = _openframeworks.ofRunApp +def ofRunMainLoop(): + return _openframeworks.ofRunMainLoop() +ofRunMainLoop = _openframeworks.ofRunMainLoop + def ofGetAppPtr(): - return _openframeworks.ofGetAppPtr() + return _openframeworks.ofGetAppPtr() ofGetAppPtr = _openframeworks.ofGetAppPtr def ofExit(status=0): - return _openframeworks.ofExit(status) + return _openframeworks.ofExit(status) ofExit = _openframeworks.ofExit def ofGetFrameRate(): - return _openframeworks.ofGetFrameRate() + return _openframeworks.ofGetFrameRate() ofGetFrameRate = _openframeworks.ofGetFrameRate def ofGetTargetFrameRate(): - return _openframeworks.ofGetTargetFrameRate() + return _openframeworks.ofGetTargetFrameRate() ofGetTargetFrameRate = _openframeworks.ofGetTargetFrameRate -def ofSetFrameRate(*args): - return _openframeworks.ofSetFrameRate(*args) +def ofSetFrameRate(targetRate): + return _openframeworks.ofSetFrameRate(targetRate) ofSetFrameRate = _openframeworks.ofSetFrameRate -def ofSleepMillis(*args): - return _openframeworks.ofSleepMillis(*args) -ofSleepMillis = _openframeworks.ofSleepMillis - def ofGetLastFrameTime(): - return _openframeworks.ofGetLastFrameTime() + return _openframeworks.ofGetLastFrameTime() ofGetLastFrameTime = _openframeworks.ofGetLastFrameTime -def ofSetOrientation(*args): - return _openframeworks.ofSetOrientation(*args) +def ofSetOrientation(orientation, vFlip=True): + return _openframeworks.ofSetOrientation(orientation, vFlip) ofSetOrientation = _openframeworks.ofSetOrientation def ofGetOrientation(): - return _openframeworks.ofGetOrientation() + return _openframeworks.ofGetOrientation() ofGetOrientation = _openframeworks.ofGetOrientation def ofHideCursor(): - return _openframeworks.ofHideCursor() + return _openframeworks.ofHideCursor() ofHideCursor = _openframeworks.ofHideCursor def ofShowCursor(): - return _openframeworks.ofShowCursor() + return _openframeworks.ofShowCursor() ofShowCursor = _openframeworks.ofShowCursor def ofGetWindowPositionX(): - return _openframeworks.ofGetWindowPositionX() + return _openframeworks.ofGetWindowPositionX() ofGetWindowPositionX = _openframeworks.ofGetWindowPositionX def ofGetWindowPositionY(): - return _openframeworks.ofGetWindowPositionY() + return _openframeworks.ofGetWindowPositionY() ofGetWindowPositionY = _openframeworks.ofGetWindowPositionY def ofGetScreenWidth(): - return _openframeworks.ofGetScreenWidth() + return _openframeworks.ofGetScreenWidth() ofGetScreenWidth = _openframeworks.ofGetScreenWidth def ofGetScreenHeight(): - return _openframeworks.ofGetScreenHeight() + return _openframeworks.ofGetScreenHeight() ofGetScreenHeight = _openframeworks.ofGetScreenHeight def ofGetWindowMode(): - return _openframeworks.ofGetWindowMode() + return _openframeworks.ofGetWindowMode() ofGetWindowMode = _openframeworks.ofGetWindowMode def ofGetWidth(): - return _openframeworks.ofGetWidth() + return _openframeworks.ofGetWidth() ofGetWidth = _openframeworks.ofGetWidth def ofGetHeight(): - return _openframeworks.ofGetHeight() + return _openframeworks.ofGetHeight() ofGetHeight = _openframeworks.ofGetHeight def ofGetWindowWidth(): - return _openframeworks.ofGetWindowWidth() + return _openframeworks.ofGetWindowWidth() ofGetWindowWidth = _openframeworks.ofGetWindowWidth def ofGetWindowHeight(): - return _openframeworks.ofGetWindowHeight() + return _openframeworks.ofGetWindowHeight() ofGetWindowHeight = _openframeworks.ofGetWindowHeight +def ofRandomWidth(): + return _openframeworks.ofRandomWidth() +ofRandomWidth = _openframeworks.ofRandomWidth + +def ofRandomHeight(): + return _openframeworks.ofRandomHeight() +ofRandomHeight = _openframeworks.ofRandomHeight + def ofDoesHWOrientation(): - return _openframeworks.ofDoesHWOrientation() + return _openframeworks.ofDoesHWOrientation() ofDoesHWOrientation = _openframeworks.ofDoesHWOrientation def ofGetWindowSize(): - return _openframeworks.ofGetWindowSize() + return _openframeworks.ofGetWindowSize() ofGetWindowSize = _openframeworks.ofGetWindowSize def ofGetWindowRect(): - return _openframeworks.ofGetWindowRect() + return _openframeworks.ofGetWindowRect() ofGetWindowRect = _openframeworks.ofGetWindowRect def ofGetWindowPtr(): - return _openframeworks.ofGetWindowPtr() + return _openframeworks.ofGetWindowPtr() ofGetWindowPtr = _openframeworks.ofGetWindowPtr -def ofSetWindowPosition(*args): - return _openframeworks.ofSetWindowPosition(*args) +def ofSetWindowPosition(x, y): + return _openframeworks.ofSetWindowPosition(x, y) ofSetWindowPosition = _openframeworks.ofSetWindowPosition -def ofSetWindowShape(*args): - return _openframeworks.ofSetWindowShape(*args) +def ofSetWindowShape(width, height): + return _openframeworks.ofSetWindowShape(width, height) ofSetWindowShape = _openframeworks.ofSetWindowShape -def ofSetWindowTitle(*args): - return _openframeworks.ofSetWindowTitle(*args) +def ofSetWindowTitle(title): + return _openframeworks.ofSetWindowTitle(title) ofSetWindowTitle = _openframeworks.ofSetWindowTitle def ofEnableSetupScreen(): - return _openframeworks.ofEnableSetupScreen() + return _openframeworks.ofEnableSetupScreen() ofEnableSetupScreen = _openframeworks.ofEnableSetupScreen def ofDisableSetupScreen(): - return _openframeworks.ofDisableSetupScreen() + return _openframeworks.ofDisableSetupScreen() ofDisableSetupScreen = _openframeworks.ofDisableSetupScreen -def ofSetFullscreen(*args): - return _openframeworks.ofSetFullscreen(*args) +def ofSetFullscreen(fullscreen): + return _openframeworks.ofSetFullscreen(fullscreen) ofSetFullscreen = _openframeworks.ofSetFullscreen def ofToggleFullscreen(): - return _openframeworks.ofToggleFullscreen() + return _openframeworks.ofToggleFullscreen() ofToggleFullscreen = _openframeworks.ofToggleFullscreen -def ofSetVerticalSync(*args): - return _openframeworks.ofSetVerticalSync(*args) +def ofSetVerticalSync(bSync): + return _openframeworks.ofSetVerticalSync(bSync) ofSetVerticalSync = _openframeworks.ofSetVerticalSync + +def ofEvents(): + return _openframeworks.ofEvents() +ofEvents = _openframeworks.ofEvents + +def ofSetCurrentRenderer(renderer, setDefaults=False): + return _openframeworks.ofSetCurrentRenderer(renderer, setDefaults) +ofSetCurrentRenderer = _openframeworks.ofSetCurrentRenderer + +def ofGetCurrentRenderer(): + return _openframeworks.ofGetCurrentRenderer() +ofGetCurrentRenderer = _openframeworks.ofGetCurrentRenderer + +def ofSetEscapeQuitsApp(bQuitOnEsc): + return _openframeworks.ofSetEscapeQuitsApp(bQuitOnEsc) +ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp + +_openframeworks.FIRMATA_MAJOR_VERSION_swigconstant(_openframeworks) FIRMATA_MAJOR_VERSION = _openframeworks.FIRMATA_MAJOR_VERSION + +_openframeworks.FIRMATA_MINOR_VERSION_swigconstant(_openframeworks) FIRMATA_MINOR_VERSION = _openframeworks.FIRMATA_MINOR_VERSION + +_openframeworks.FIRMATA_MAX_DATA_BYTES_swigconstant(_openframeworks) FIRMATA_MAX_DATA_BYTES = _openframeworks.FIRMATA_MAX_DATA_BYTES + +_openframeworks.FIRMATA_DIGITAL_MESSAGE_swigconstant(_openframeworks) FIRMATA_DIGITAL_MESSAGE = _openframeworks.FIRMATA_DIGITAL_MESSAGE + +_openframeworks.FIRMATA_ANALOG_MESSAGE_swigconstant(_openframeworks) FIRMATA_ANALOG_MESSAGE = _openframeworks.FIRMATA_ANALOG_MESSAGE + +_openframeworks.FIRMATA_REPORT_ANALOG_swigconstant(_openframeworks) FIRMATA_REPORT_ANALOG = _openframeworks.FIRMATA_REPORT_ANALOG + +_openframeworks.FIRMATA_REPORT_DIGITAL_swigconstant(_openframeworks) FIRMATA_REPORT_DIGITAL = _openframeworks.FIRMATA_REPORT_DIGITAL + +_openframeworks.FIRMATA_SET_PIN_MODE_swigconstant(_openframeworks) FIRMATA_SET_PIN_MODE = _openframeworks.FIRMATA_SET_PIN_MODE + +_openframeworks.FIRMATA_REPORT_VERSION_swigconstant(_openframeworks) FIRMATA_REPORT_VERSION = _openframeworks.FIRMATA_REPORT_VERSION + +_openframeworks.FIRMATA_SYSTEM_RESET_swigconstant(_openframeworks) FIRMATA_SYSTEM_RESET = _openframeworks.FIRMATA_SYSTEM_RESET + +_openframeworks.FIRMATA_START_SYSEX_swigconstant(_openframeworks) FIRMATA_START_SYSEX = _openframeworks.FIRMATA_START_SYSEX + +_openframeworks.FIRMATA_END_SYSEX_swigconstant(_openframeworks) FIRMATA_END_SYSEX = _openframeworks.FIRMATA_END_SYSEX + +_openframeworks.FIRMATA_INPUT_swigconstant(_openframeworks) FIRMATA_INPUT = _openframeworks.FIRMATA_INPUT + +_openframeworks.FIRMATA_OUTPUT_swigconstant(_openframeworks) FIRMATA_OUTPUT = _openframeworks.FIRMATA_OUTPUT + +_openframeworks.FIRMATA_ANALOG_swigconstant(_openframeworks) FIRMATA_ANALOG = _openframeworks.FIRMATA_ANALOG + +_openframeworks.FIRMATA_PWM_swigconstant(_openframeworks) FIRMATA_PWM = _openframeworks.FIRMATA_PWM + +_openframeworks.FIRMATA_SERVO_swigconstant(_openframeworks) FIRMATA_SERVO = _openframeworks.FIRMATA_SERVO + +_openframeworks.SHIFT_swigconstant(_openframeworks) SHIFT = _openframeworks.SHIFT + +_openframeworks.I2C_swigconstant(_openframeworks) I2C = _openframeworks.I2C + +_openframeworks.TOTAL_PIN_MODES_swigconstant(_openframeworks) TOTAL_PIN_MODES = _openframeworks.TOTAL_PIN_MODES + +_openframeworks.FIRMATA_SYSEX_SERVO_CONFIG_swigconstant(_openframeworks) FIRMATA_SYSEX_SERVO_CONFIG = _openframeworks.FIRMATA_SYSEX_SERVO_CONFIG + +_openframeworks.FIRMATA_SYSEX_FIRMATA_STRING_swigconstant(_openframeworks) FIRMATA_SYSEX_FIRMATA_STRING = _openframeworks.FIRMATA_SYSEX_FIRMATA_STRING + +_openframeworks.SHIFT_DATA_swigconstant(_openframeworks) SHIFT_DATA = _openframeworks.SHIFT_DATA + +_openframeworks.I2C_REQUEST_swigconstant(_openframeworks) I2C_REQUEST = _openframeworks.I2C_REQUEST + +_openframeworks.I2C_REPLY_swigconstant(_openframeworks) I2C_REPLY = _openframeworks.I2C_REPLY + +_openframeworks.I2C_CONFIG_swigconstant(_openframeworks) I2C_CONFIG = _openframeworks.I2C_CONFIG + +_openframeworks.EXTENDED_ANALOG_swigconstant(_openframeworks) EXTENDED_ANALOG = _openframeworks.EXTENDED_ANALOG + +_openframeworks.PIN_STATE_QUERY_swigconstant(_openframeworks) PIN_STATE_QUERY = _openframeworks.PIN_STATE_QUERY + +_openframeworks.PIN_STATE_RESPONSE_swigconstant(_openframeworks) PIN_STATE_RESPONSE = _openframeworks.PIN_STATE_RESPONSE + +_openframeworks.CAPABILITY_QUERY_swigconstant(_openframeworks) CAPABILITY_QUERY = _openframeworks.CAPABILITY_QUERY + +_openframeworks.CAPABILITY_RESPONSE_swigconstant(_openframeworks) CAPABILITY_RESPONSE = _openframeworks.CAPABILITY_RESPONSE + +_openframeworks.ANALOG_MAPPING_QUERY_swigconstant(_openframeworks) ANALOG_MAPPING_QUERY = _openframeworks.ANALOG_MAPPING_QUERY + +_openframeworks.ANALOG_MAPPING_RESPONSE_swigconstant(_openframeworks) ANALOG_MAPPING_RESPONSE = _openframeworks.ANALOG_MAPPING_RESPONSE + +_openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant(_openframeworks) FIRMATA_SYSEX_REPORT_FIRMWARE = _openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE + +_openframeworks.SAMPLING_INTERVAL_swigconstant(_openframeworks) SAMPLING_INTERVAL = _openframeworks.SAMPLING_INTERVAL + +_openframeworks.FIRMATA_SYSEX_NON_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_NON_REALTIME = _openframeworks.FIRMATA_SYSEX_NON_REALTIME + +_openframeworks.FIRMATA_SYSEX_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_REALTIME = _openframeworks.FIRMATA_SYSEX_REALTIME + +_openframeworks.ARD_TOTAL_DIGITAL_PINS_swigconstant(_openframeworks) ARD_TOTAL_DIGITAL_PINS = _openframeworks.ARD_TOTAL_DIGITAL_PINS + +_openframeworks.ARD_TOTAL_ANALOG_PINS_swigconstant(_openframeworks) ARD_TOTAL_ANALOG_PINS = _openframeworks.ARD_TOTAL_ANALOG_PINS + +_openframeworks.ARD_TOTAL_PORTS_swigconstant(_openframeworks) ARD_TOTAL_PORTS = _openframeworks.ARD_TOTAL_PORTS + +_openframeworks.ARD_INPUT_swigconstant(_openframeworks) ARD_INPUT = _openframeworks.ARD_INPUT + +_openframeworks.ARD_OUTPUT_swigconstant(_openframeworks) ARD_OUTPUT = _openframeworks.ARD_OUTPUT + +_openframeworks.ARD_ANALOG_swigconstant(_openframeworks) ARD_ANALOG = _openframeworks.ARD_ANALOG + +_openframeworks.ARD_PWM_swigconstant(_openframeworks) ARD_PWM = _openframeworks.ARD_PWM + +_openframeworks.ARD_SERVO_swigconstant(_openframeworks) ARD_SERVO = _openframeworks.ARD_SERVO + +_openframeworks.ARD_HIGH_swigconstant(_openframeworks) ARD_HIGH = _openframeworks.ARD_HIGH + +_openframeworks.ARD_LOW_swigconstant(_openframeworks) ARD_LOW = _openframeworks.ARD_LOW + +_openframeworks.ARD_ON_swigconstant(_openframeworks) ARD_ON = _openframeworks.ARD_ON + +_openframeworks.ARD_OFF_swigconstant(_openframeworks) ARD_OFF = _openframeworks.ARD_OFF + +_openframeworks.SYSEX_SERVO_ATTACH_swigconstant(_openframeworks) SYSEX_SERVO_ATTACH = _openframeworks.SYSEX_SERVO_ATTACH + +_openframeworks.SYSEX_SERVO_DETACH_swigconstant(_openframeworks) SYSEX_SERVO_DETACH = _openframeworks.SYSEX_SERVO_DETACH + +_openframeworks.SYSEX_SERVO_WRITE_swigconstant(_openframeworks) SYSEX_SERVO_WRITE = _openframeworks.SYSEX_SERVO_WRITE + +_openframeworks.OF_ARDUINO_DELAY_LENGTH_swigconstant(_openframeworks) OF_ARDUINO_DELAY_LENGTH = _openframeworks.OF_ARDUINO_DELAY_LENGTH + +_openframeworks.FIRMWARE2_2_swigconstant(_openframeworks) FIRMWARE2_2 = _openframeworks.FIRMWARE2_2 + +_openframeworks.FIRMWARE2_3_swigconstant(_openframeworks) FIRMWARE2_3 = _openframeworks.FIRMWARE2_3 class ofArduino(_object): __swig_setmethods__ = {} @@ -3201,77 +6119,175 @@ class ofArduino(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofArduino, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofArduino() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofArduino - __del__ = lambda self : None; - def connect(self, *args): return _openframeworks.ofArduino_connect(self, *args) - def disconnect(self): return _openframeworks.ofArduino_disconnect(self) - def isArduinoReady(self): return _openframeworks.ofArduino_isArduinoReady(self) - def setUseDelay(self, *args): return _openframeworks.ofArduino_setUseDelay(self, *args) - def update(self): return _openframeworks.ofArduino_update(self) - def isInitialized(self): return _openframeworks.ofArduino_isInitialized(self) - def setDigitalHistoryLength(self, *args): return _openframeworks.ofArduino_setDigitalHistoryLength(self, *args) - def setAnalogHistoryLength(self, *args): return _openframeworks.ofArduino_setAnalogHistoryLength(self, *args) - def setStringHistoryLength(self, *args): return _openframeworks.ofArduino_setStringHistoryLength(self, *args) - def setSysExHistoryLength(self, *args): return _openframeworks.ofArduino_setSysExHistoryLength(self, *args) - def sendDigitalPinMode(self, *args): return _openframeworks.ofArduino_sendDigitalPinMode(self, *args) - def sendAnalogPinReporting(self, *args): return _openframeworks.ofArduino_sendAnalogPinReporting(self, *args) - def sendDigital(self, *args): return _openframeworks.ofArduino_sendDigital(self, *args) - def sendPwm(self, *args): return _openframeworks.ofArduino_sendPwm(self, *args) - def sendSysEx(self, *args): return _openframeworks.ofArduino_sendSysEx(self, *args) - def sendString(self, *args): return _openframeworks.ofArduino_sendString(self, *args) - def sendProtocolVersionRequest(self): return _openframeworks.ofArduino_sendProtocolVersionRequest(self) - def sendFirmwareVersionRequest(self): return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) - def sendReset(self): return _openframeworks.ofArduino_sendReset(self) - def sendSysExBegin(self): return _openframeworks.ofArduino_sendSysExBegin(self) - def sendSysExEnd(self): return _openframeworks.ofArduino_sendSysExEnd(self) - def sendByte(self, *args): return _openframeworks.ofArduino_sendByte(self, *args) - def sendValueAsTwo7bitBytes(self, *args): return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, *args) - def getPwm(self, *args): return _openframeworks.ofArduino_getPwm(self, *args) - def getDigital(self, *args): return _openframeworks.ofArduino_getDigital(self, *args) - def getAnalog(self, *args): return _openframeworks.ofArduino_getAnalog(self, *args) - def getSysEx(self): return _openframeworks.ofArduino_getSysEx(self) - def getString(self): return _openframeworks.ofArduino_getString(self) - def getMajorProtocolVersion(self): return _openframeworks.ofArduino_getMajorProtocolVersion(self) - def getMinorProtocolVersion(self): return _openframeworks.ofArduino_getMinorProtocolVersion(self) - def getMajorFirmwareVersion(self): return _openframeworks.ofArduino_getMajorFirmwareVersion(self) - def getMinorFirmwareVersion(self): return _openframeworks.ofArduino_getMinorFirmwareVersion(self) - def getFirmwareName(self): return _openframeworks.ofArduino_getFirmwareName(self) - def getDigitalHistory(self, *args): return _openframeworks.ofArduino_getDigitalHistory(self, *args) - def getAnalogHistory(self, *args): return _openframeworks.ofArduino_getAnalogHistory(self, *args) - def getSysExHistory(self): return _openframeworks.ofArduino_getSysExHistory(self) - def getStringHistory(self): return _openframeworks.ofArduino_getStringHistory(self) - def getDigitalPinMode(self, *args): return _openframeworks.ofArduino_getDigitalPinMode(self, *args) - def getAnalogPinReporting(self, *args): return _openframeworks.ofArduino_getAnalogPinReporting(self, *args) - def getValueFromTwo7bitBytes(self, *args): return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, *args) + __del__ = lambda self: None + + def connect(self, device, baud=57600): + return _openframeworks.ofArduino_connect(self, device, baud) + + def isInitialized(self): + return _openframeworks.ofArduino_isInitialized(self) + + def isArduinoReady(self): + return _openframeworks.ofArduino_isArduinoReady(self) + + def disconnect(self): + return _openframeworks.ofArduino_disconnect(self) + + def update(self): + return _openframeworks.ofArduino_update(self) + + def sendDigitalPinMode(self, pin, mode): + return _openframeworks.ofArduino_sendDigitalPinMode(self, pin, mode) + + def sendAnalogPinReporting(self, pin, mode): + return _openframeworks.ofArduino_sendAnalogPinReporting(self, pin, mode) + + def setUseDelay(self, bDelay): + return _openframeworks.ofArduino_setUseDelay(self, bDelay) + + def setDigitalHistoryLength(self, length): + return _openframeworks.ofArduino_setDigitalHistoryLength(self, length) + + def setAnalogHistoryLength(self, length): + return _openframeworks.ofArduino_setAnalogHistoryLength(self, length) + + def setStringHistoryLength(self, length): + return _openframeworks.ofArduino_setStringHistoryLength(self, length) + + def setSysExHistoryLength(self, nSysEx): + return _openframeworks.ofArduino_setSysExHistoryLength(self, nSysEx) + + def sendDigital(self, pin, value, force=False): + return _openframeworks.ofArduino_sendDigital(self, pin, value, force) + + def sendPwm(self, pin, value, force=False): + return _openframeworks.ofArduino_sendPwm(self, pin, value, force) + + def sendSysEx(self, command, data): + return _openframeworks.ofArduino_sendSysEx(self, command, data) + + def sendString(self, str): + return _openframeworks.ofArduino_sendString(self, str) + + def sendProtocolVersionRequest(self): + return _openframeworks.ofArduino_sendProtocolVersionRequest(self) + + def sendFirmwareVersionRequest(self): + return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) + + def sendReset(self): + return _openframeworks.ofArduino_sendReset(self) + + def sendSysExBegin(self): + return _openframeworks.ofArduino_sendSysExBegin(self) + + def sendSysExEnd(self): + return _openframeworks.ofArduino_sendSysExEnd(self) + + def sendByte(self, byte): + return _openframeworks.ofArduino_sendByte(self, byte) + + def sendValueAsTwo7bitBytes(self, value): + return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, value) + + def getPwm(self, pin): + return _openframeworks.ofArduino_getPwm(self, pin) + + def getDigital(self, pin): + return _openframeworks.ofArduino_getDigital(self, pin) + + def getAnalog(self, pin): + return _openframeworks.ofArduino_getAnalog(self, pin) + + def getSysEx(self): + return _openframeworks.ofArduino_getSysEx(self) + + def getString(self): + return _openframeworks.ofArduino_getString(self) + + def getMajorProtocolVersion(self): + return _openframeworks.ofArduino_getMajorProtocolVersion(self) + + def getMinorProtocolVersion(self): + return _openframeworks.ofArduino_getMinorProtocolVersion(self) + + def getMajorFirmwareVersion(self): + return _openframeworks.ofArduino_getMajorFirmwareVersion(self) + + def getMinorFirmwareVersion(self): + return _openframeworks.ofArduino_getMinorFirmwareVersion(self) + + def getFirmwareName(self): + return _openframeworks.ofArduino_getFirmwareName(self) + + def getDigitalHistory(self, pin): + return _openframeworks.ofArduino_getDigitalHistory(self, pin) + + def getAnalogHistory(self, pin): + return _openframeworks.ofArduino_getAnalogHistory(self, pin) + + def getSysExHistory(self): + return _openframeworks.ofArduino_getSysExHistory(self) + + def getStringHistory(self): + return _openframeworks.ofArduino_getStringHistory(self) + + def getDigitalPinMode(self, pin): + return _openframeworks.ofArduino_getDigitalPinMode(self, pin) + + def getAnalogPinReporting(self, pin): + return _openframeworks.ofArduino_getAnalogPinReporting(self, pin) + + def getValueFromTwo7bitBytes(self, lsb, msb): + return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, lsb, msb) __swig_setmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_set __swig_getmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_get - if _newclass:EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) + if _newclass: + EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) __swig_setmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_set __swig_getmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_get - if _newclass:EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) + if _newclass: + EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) __swig_setmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_set __swig_getmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_get - if _newclass:ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) + if _newclass: + ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) __swig_setmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_set __swig_getmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_get - if _newclass:EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) + if _newclass: + EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) __swig_setmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_set __swig_getmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_get - if _newclass:EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) + if _newclass: + EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) __swig_setmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_set __swig_getmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_get - if _newclass:EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) + if _newclass: + EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) __swig_setmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_set __swig_getmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_get - if _newclass:EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) - def sendServo(self, *args): return _openframeworks.ofArduino_sendServo(self, *args) - def sendServoAttach(self, *args): return _openframeworks.ofArduino_sendServoAttach(self, *args) - def sendServoDetach(self, *args): return _openframeworks.ofArduino_sendServoDetach(self, *args) - def getServo(self, *args): return _openframeworks.ofArduino_getServo(self, *args) + if _newclass: + EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) + + def sendServo(self, pin, value, force=False): + return _openframeworks.ofArduino_sendServo(self, pin, value, force) + + def sendServoAttach(self, pin, minPulse=544, maxPulse=2400, angle=180): + return _openframeworks.ofArduino_sendServoAttach(self, pin, minPulse, maxPulse, angle) + + def sendServoDetach(self, pin): + return _openframeworks.ofArduino_sendServoDetach(self, pin) + + def getServo(self, pin): + return _openframeworks.ofArduino_getServo(self, pin) ofArduino_swigregister = _openframeworks.ofArduino_swigregister ofArduino_swigregister(ofArduino) @@ -3281,129 +6297,254 @@ class ofSerial(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSerial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSerial - __del__ = lambda self : None; - def listDevices(self): return _openframeworks.ofSerial_listDevices(self) - def enumerateDevices(self): return _openframeworks.ofSerial_enumerateDevices(self) - def getDeviceList(self): return _openframeworks.ofSerial_getDeviceList(self) - def close(self): return _openframeworks.ofSerial_close(self) - def setup(self, *args): return _openframeworks.ofSerial_setup(self, *args) - def readBytes(self, *args): return _openframeworks.ofSerial_readBytes(self, *args) - def writeBytes(self, *args): return _openframeworks.ofSerial_writeBytes(self, *args) - def writeByte(self, *args): return _openframeworks.ofSerial_writeByte(self, *args) - def readByte(self): return _openframeworks.ofSerial_readByte(self) - def flush(self, flushIn=True, flushOut=True): return _openframeworks.ofSerial_flush(self, flushIn, flushOut) - def available(self): return _openframeworks.ofSerial_available(self) - def drain(self): return _openframeworks.ofSerial_drain(self) - def isInitialized(self): return _openframeworks.ofSerial_isInitialized(self) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofSerial_listDevices(self) + + def enumerateDevices(self): + return _openframeworks.ofSerial_enumerateDevices(self) + + def getDeviceList(self): + return _openframeworks.ofSerial_getDeviceList(self) + + def setup(self, *args): + return _openframeworks.ofSerial_setup(self, *args) + + def isInitialized(self): + return _openframeworks.ofSerial_isInitialized(self) + + def close(self): + return _openframeworks.ofSerial_close(self) + + def available(self): + return _openframeworks.ofSerial_available(self) + + def readBytes(self, buffer, length): + return _openframeworks.ofSerial_readBytes(self, buffer, length) + + def readByte(self): + return _openframeworks.ofSerial_readByte(self) + + def writeBytes(self, buffer, length): + return _openframeworks.ofSerial_writeBytes(self, buffer, length) + + def writeByte(self, singleByte): + return _openframeworks.ofSerial_writeByte(self, singleByte) + + def flush(self, flushIn=True, flushOut=True): + return _openframeworks.ofSerial_flush(self, flushIn, flushOut) + + def drain(self): + return _openframeworks.ofSerial_drain(self) ofSerial_swigregister = _openframeworks.ofSerial_swigregister ofSerial_swigregister(ofSerial) -OF_MAX_LIGHTS = _openframeworks.OF_MAX_LIGHTS + +_openframeworks.OF_LIGHT_POINT_swigconstant(_openframeworks) OF_LIGHT_POINT = _openframeworks.OF_LIGHT_POINT -OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_DIRECTIONAL_swigconstant(_openframeworks) OF_LIGHT_DIRECTIONAL = _openframeworks.OF_LIGHT_DIRECTIONAL +_openframeworks.OF_LIGHT_SPOT_swigconstant(_openframeworks) +OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_AREA_swigconstant(_openframeworks) +OF_LIGHT_AREA = _openframeworks.OF_LIGHT_AREA + def ofEnableLighting(): - return _openframeworks.ofEnableLighting() + return _openframeworks.ofEnableLighting() ofEnableLighting = _openframeworks.ofEnableLighting def ofDisableLighting(): - return _openframeworks.ofDisableLighting() + return _openframeworks.ofDisableLighting() ofDisableLighting = _openframeworks.ofDisableLighting def ofEnableSeparateSpecularLight(): - return _openframeworks.ofEnableSeparateSpecularLight() + return _openframeworks.ofEnableSeparateSpecularLight() ofEnableSeparateSpecularLight = _openframeworks.ofEnableSeparateSpecularLight def ofDisableSeparateSpecularLight(): - return _openframeworks.ofDisableSeparateSpecularLight() + return _openframeworks.ofDisableSeparateSpecularLight() ofDisableSeparateSpecularLight = _openframeworks.ofDisableSeparateSpecularLight def ofGetLightingEnabled(): - return _openframeworks.ofGetLightingEnabled() + return _openframeworks.ofGetLightingEnabled() ofGetLightingEnabled = _openframeworks.ofGetLightingEnabled -def ofSetSmoothLighting(*args): - return _openframeworks.ofSetSmoothLighting(*args) +def ofSetSmoothLighting(b): + return _openframeworks.ofSetSmoothLighting(b) ofSetSmoothLighting = _openframeworks.ofSetSmoothLighting -def ofSetGlobalAmbientColor(*args): - return _openframeworks.ofSetGlobalAmbientColor(*args) +def ofSetGlobalAmbientColor(c): + return _openframeworks.ofSetGlobalAmbientColor(c) ofSetGlobalAmbientColor = _openframeworks.ofSetGlobalAmbientColor + +def ofGetGlobalAmbientColor(): + return _openframeworks.ofGetGlobalAmbientColor() +ofGetGlobalAmbientColor = _openframeworks.ofGetGlobalAmbientColor class ofLight(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofLight, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofLight, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofLight(*args) - try: self.this.append(this) - except: self.this = this + + def __init__(self): + this = _openframeworks.new_ofLight() + try: + self.this.append(this) + except Exception: + self.this = this + + def setup(self): + return _openframeworks.ofLight_setup(self) + + def enable(self): + return _openframeworks.ofLight_enable(self) + + def disable(self): + return _openframeworks.ofLight_disable(self) + + def getIsEnabled(self): + return _openframeworks.ofLight_getIsEnabled(self) + + def setDirectional(self): + return _openframeworks.ofLight_setDirectional(self) + + def getIsDirectional(self): + return _openframeworks.ofLight_getIsDirectional(self) + + def setSpotlight(self, spotCutOff=45., exponent=0.): + return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) + + def getIsSpotlight(self): + return _openframeworks.ofLight_getIsSpotlight(self) + + def setSpotlightCutOff(self, spotCutOff): + return _openframeworks.ofLight_setSpotlightCutOff(self, spotCutOff) + + def getSpotlightCutOff(self): + return _openframeworks.ofLight_getSpotlightCutOff(self) + + def setSpotConcentration(self, exponent): + return _openframeworks.ofLight_setSpotConcentration(self, exponent) + + def getSpotConcentration(self): + return _openframeworks.ofLight_getSpotConcentration(self) + + def setPointLight(self): + return _openframeworks.ofLight_setPointLight(self) + + def getIsPointLight(self): + return _openframeworks.ofLight_getIsPointLight(self) + + def setAttenuation(self, constant=1., linear=0., quadratic=0.): + return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) + + def getAttenuationConstant(self): + return _openframeworks.ofLight_getAttenuationConstant(self) + + def getAttenuationLinear(self): + return _openframeworks.ofLight_getAttenuationLinear(self) + + def getAttenuationQuadratic(self): + return _openframeworks.ofLight_getAttenuationQuadratic(self) + + def setAreaLight(self, width, height): + return _openframeworks.ofLight_setAreaLight(self, width, height) + + def getIsAreaLight(self): + return _openframeworks.ofLight_getIsAreaLight(self) + + def getType(self): + return _openframeworks.ofLight_getType(self) + + def setAmbientColor(self, c): + return _openframeworks.ofLight_setAmbientColor(self, c) + + def setDiffuseColor(self, c): + return _openframeworks.ofLight_setDiffuseColor(self, c) + + def setSpecularColor(self, c): + return _openframeworks.ofLight_setSpecularColor(self, c) + + def getAmbientColor(self): + return _openframeworks.ofLight_getAmbientColor(self) + + def getDiffuseColor(self): + return _openframeworks.ofLight_getDiffuseColor(self) + + def getSpecularColor(self): + return _openframeworks.ofLight_getSpecularColor(self) + + def getLightID(self): + return _openframeworks.ofLight_getLightID(self) __swig_destroy__ = _openframeworks.delete_ofLight - __del__ = lambda self : None; - def destroy(self): return _openframeworks.ofLight_destroy(self) - def setup(self): return _openframeworks.ofLight_setup(self) - def enable(self): return _openframeworks.ofLight_enable(self) - def disable(self): return _openframeworks.ofLight_disable(self) - def getIsEnabled(self): return _openframeworks.ofLight_getIsEnabled(self) - def setDirectional(self): return _openframeworks.ofLight_setDirectional(self) - def getIsDirectional(self): return _openframeworks.ofLight_getIsDirectional(self) - def setSpotlight(self, spotCutOff=45., exponent=0.): return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) - def getIsSpotlight(self): return _openframeworks.ofLight_getIsSpotlight(self) - def setSpotlightCutOff(self, *args): return _openframeworks.ofLight_setSpotlightCutOff(self, *args) - def getSpotlightCutOff(self): return _openframeworks.ofLight_getSpotlightCutOff(self) - def setSpotConcentration(self, *args): return _openframeworks.ofLight_setSpotConcentration(self, *args) - def getSpotConcentration(self): return _openframeworks.ofLight_getSpotConcentration(self) - def setPointLight(self): return _openframeworks.ofLight_setPointLight(self) - def getIsPointLight(self): return _openframeworks.ofLight_getIsPointLight(self) - def setAttenuation(self, constant=1., linear=0., quadratic=0.): return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) - def getAttenuationConstant(self): return _openframeworks.ofLight_getAttenuationConstant(self) - def getAttenuationLinear(self): return _openframeworks.ofLight_getAttenuationLinear(self) - def getAttenuationQuadratic(self): return _openframeworks.ofLight_getAttenuationQuadratic(self) - def getType(self): return _openframeworks.ofLight_getType(self) - def setAmbientColor(self, *args): return _openframeworks.ofLight_setAmbientColor(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofLight_setDiffuseColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofLight_setSpecularColor(self, *args) - def getAmbientColor(self): return _openframeworks.ofLight_getAmbientColor(self) - def getDiffuseColor(self): return _openframeworks.ofLight_getDiffuseColor(self) - def getSpecularColor(self): return _openframeworks.ofLight_getSpecularColor(self) - def getLightID(self): return _openframeworks.ofLight_getLightID(self) + __del__ = lambda self: None ofLight_swigregister = _openframeworks.ofLight_swigregister ofLight_swigregister(ofLight) -class ofMaterial(_object): + +def ofLightsData(): + return _openframeworks.ofLightsData() +ofLightsData = _openframeworks.ofLightsData +class ofMaterial(ofBaseMaterial): __swig_setmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofMaterial, name, value) __swig_getmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofMaterial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMaterial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMaterial - __del__ = lambda self : None; - def setColors(self, *args): return _openframeworks.ofMaterial_setColors(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofMaterial_setDiffuseColor(self, *args) - def setAmbientColor(self, *args): return _openframeworks.ofMaterial_setAmbientColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofMaterial_setSpecularColor(self, *args) - def setEmissiveColor(self, *args): return _openframeworks.ofMaterial_setEmissiveColor(self, *args) - def setShininess(self, *args): return _openframeworks.ofMaterial_setShininess(self, *args) - def getDiffuseColor(self): return _openframeworks.ofMaterial_getDiffuseColor(self) - def getAmbientColor(self): return _openframeworks.ofMaterial_getAmbientColor(self) - def getSpecularColor(self): return _openframeworks.ofMaterial_getSpecularColor(self) - def getEmissiveColor(self): return _openframeworks.ofMaterial_getEmissiveColor(self) - def getShininess(self): return _openframeworks.ofMaterial_getShininess(self) - def begin(self): return _openframeworks.ofMaterial_begin(self) - def end(self): return _openframeworks.ofMaterial_end(self) + __del__ = lambda self: None + + def setColors(self, oDiffuse, oAmbient, oSpecular, emissive): + return _openframeworks.ofMaterial_setColors(self, oDiffuse, oAmbient, oSpecular, emissive) + + def setDiffuseColor(self, oDiffuse): + return _openframeworks.ofMaterial_setDiffuseColor(self, oDiffuse) + + def setAmbientColor(self, oAmbient): + return _openframeworks.ofMaterial_setAmbientColor(self, oAmbient) + + def setSpecularColor(self, oSpecular): + return _openframeworks.ofMaterial_setSpecularColor(self, oSpecular) + + def setEmissiveColor(self, oEmmisive): + return _openframeworks.ofMaterial_setEmissiveColor(self, oEmmisive) + + def setShininess(self, nShininess): + return _openframeworks.ofMaterial_setShininess(self, nShininess) + + def getData(self): + return _openframeworks.ofMaterial_getData(self) + + def setData(self, data): + return _openframeworks.ofMaterial_setData(self, data) ofMaterial_swigregister = _openframeworks.ofMaterial_swigregister ofMaterial_swigregister(ofMaterial) @@ -3414,71 +6555,196 @@ class ofShader(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShader, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShader - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShader(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofShader_load(self, *args) - def setGeometryInputType(self, *args): return _openframeworks.ofShader_setGeometryInputType(self, *args) - def setGeometryOutputType(self, *args): return _openframeworks.ofShader_setGeometryOutputType(self, *args) - def setGeometryOutputCount(self, *args): return _openframeworks.ofShader_setGeometryOutputCount(self, *args) - def getGeometryMaxOutputCount(self): return _openframeworks.ofShader_getGeometryMaxOutputCount(self) - def unload(self): return _openframeworks.ofShader_unload(self) - def isLoaded(self): return _openframeworks.ofShader_isLoaded(self) - def begin(self): return _openframeworks.ofShader_begin(self) - def end(self): return _openframeworks.ofShader_end(self) - def setUniformTexture(self, *args): return _openframeworks.ofShader_setUniformTexture(self, *args) - def setUniform1i(self, *args): return _openframeworks.ofShader_setUniform1i(self, *args) - def setUniform2i(self, *args): return _openframeworks.ofShader_setUniform2i(self, *args) - def setUniform3i(self, *args): return _openframeworks.ofShader_setUniform3i(self, *args) - def setUniform4i(self, *args): return _openframeworks.ofShader_setUniform4i(self, *args) - def setUniform1f(self, *args): return _openframeworks.ofShader_setUniform1f(self, *args) - def setUniform2f(self, *args): return _openframeworks.ofShader_setUniform2f(self, *args) - def setUniform3f(self, *args): return _openframeworks.ofShader_setUniform3f(self, *args) - def setUniform4f(self, *args): return _openframeworks.ofShader_setUniform4f(self, *args) - def setUniform1iv(self, *args): return _openframeworks.ofShader_setUniform1iv(self, *args) - def setUniform2iv(self, *args): return _openframeworks.ofShader_setUniform2iv(self, *args) - def setUniform3iv(self, *args): return _openframeworks.ofShader_setUniform3iv(self, *args) - def setUniform4iv(self, *args): return _openframeworks.ofShader_setUniform4iv(self, *args) - def setUniform1fv(self, *args): return _openframeworks.ofShader_setUniform1fv(self, *args) - def setUniform2fv(self, *args): return _openframeworks.ofShader_setUniform2fv(self, *args) - def setUniform3fv(self, *args): return _openframeworks.ofShader_setUniform3fv(self, *args) - def setUniform4fv(self, *args): return _openframeworks.ofShader_setUniform4fv(self, *args) - def setUniformMatrix4f(self, *args): return _openframeworks.ofShader_setUniformMatrix4f(self, *args) - def getAttributeLocation(self, *args): return _openframeworks.ofShader_getAttributeLocation(self, *args) - def setAttribute1s(self, *args): return _openframeworks.ofShader_setAttribute1s(self, *args) - def setAttribute2s(self, *args): return _openframeworks.ofShader_setAttribute2s(self, *args) - def setAttribute3s(self, *args): return _openframeworks.ofShader_setAttribute3s(self, *args) - def setAttribute4s(self, *args): return _openframeworks.ofShader_setAttribute4s(self, *args) - def setAttribute1f(self, *args): return _openframeworks.ofShader_setAttribute1f(self, *args) - def setAttribute2f(self, *args): return _openframeworks.ofShader_setAttribute2f(self, *args) - def setAttribute3f(self, *args): return _openframeworks.ofShader_setAttribute3f(self, *args) - def setAttribute4f(self, *args): return _openframeworks.ofShader_setAttribute4f(self, *args) - def setAttribute1d(self, *args): return _openframeworks.ofShader_setAttribute1d(self, *args) - def setAttribute2d(self, *args): return _openframeworks.ofShader_setAttribute2d(self, *args) - def setAttribute3d(self, *args): return _openframeworks.ofShader_setAttribute3d(self, *args) - def setAttribute4d(self, *args): return _openframeworks.ofShader_setAttribute4d(self, *args) - def setAttribute1fv(self, *args): return _openframeworks.ofShader_setAttribute1fv(self, *args) - def setAttribute2fv(self, *args): return _openframeworks.ofShader_setAttribute2fv(self, *args) - def setAttribute3fv(self, *args): return _openframeworks.ofShader_setAttribute3fv(self, *args) - def setAttribute4fv(self, *args): return _openframeworks.ofShader_setAttribute4fv(self, *args) - def bindAttribute(self, *args): return _openframeworks.ofShader_bindAttribute(self, *args) - def printActiveUniforms(self): return _openframeworks.ofShader_printActiveUniforms(self) - def printActiveAttributes(self): return _openframeworks.ofShader_printActiveAttributes(self) - def setupShaderFromSource(self, *args): return _openframeworks.ofShader_setupShaderFromSource(self, *args) - def setupShaderFromFile(self, *args): return _openframeworks.ofShader_setupShaderFromFile(self, *args) - def linkProgram(self): return _openframeworks.ofShader_linkProgram(self) - def bindDefaults(self): return _openframeworks.ofShader_bindDefaults(self) - def getProgram(self): return _openframeworks.ofShader_getProgram(self) - def getShader(self, *args): return _openframeworks.ofShader_getShader(self, *args) - def __eq__(self, *args): return _openframeworks.ofShader___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShader___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, *args): + return _openframeworks.ofShader_load(self, *args) + + def setGeometryInputType(self, type): + return _openframeworks.ofShader_setGeometryInputType(self, type) + + def setGeometryOutputType(self, type): + return _openframeworks.ofShader_setGeometryOutputType(self, type) + + def setGeometryOutputCount(self, count): + return _openframeworks.ofShader_setGeometryOutputCount(self, count) + + def getGeometryMaxOutputCount(self): + return _openframeworks.ofShader_getGeometryMaxOutputCount(self) + + def unload(self): + return _openframeworks.ofShader_unload(self) + + def isLoaded(self): + return _openframeworks.ofShader_isLoaded(self) + + def begin(self): + return _openframeworks.ofShader_begin(self) + + def end(self): + return _openframeworks.ofShader_end(self) + + def setUniformTexture(self, *args): + return _openframeworks.ofShader_setUniformTexture(self, *args) + + def setUniform1i(self, name, v1): + return _openframeworks.ofShader_setUniform1i(self, name, v1) + + def setUniform2i(self, name, v1, v2): + return _openframeworks.ofShader_setUniform2i(self, name, v1, v2) + + def setUniform3i(self, name, v1, v2, v3): + return _openframeworks.ofShader_setUniform3i(self, name, v1, v2, v3) + + def setUniform4i(self, name, v1, v2, v3, v4): + return _openframeworks.ofShader_setUniform4i(self, name, v1, v2, v3, v4) + + def setUniform1f(self, name, v1): + return _openframeworks.ofShader_setUniform1f(self, name, v1) + + def setUniform2f(self, *args): + return _openframeworks.ofShader_setUniform2f(self, *args) + + def setUniform3f(self, *args): + return _openframeworks.ofShader_setUniform3f(self, *args) + + def setUniform4f(self, *args): + return _openframeworks.ofShader_setUniform4f(self, *args) + + def setUniform1iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1iv(self, name, v, count) + + def setUniform2iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2iv(self, name, v, count) + + def setUniform3iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3iv(self, name, v, count) + + def setUniform4iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4iv(self, name, v, count) + + def setUniform1fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1fv(self, name, v, count) + + def setUniform2fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2fv(self, name, v, count) + + def setUniform3fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3fv(self, name, v, count) + + def setUniform4fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4fv(self, name, v, count) + + def setUniforms(self, parameters): + return _openframeworks.ofShader_setUniforms(self, parameters) + + def setUniformMatrix3f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix3f(self, name, m, count) + + def setUniformMatrix4f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix4f(self, name, m, count) + + def getUniformLocation(self, name): + return _openframeworks.ofShader_getUniformLocation(self, name) + + def getAttributeLocation(self, name): + return _openframeworks.ofShader_getAttributeLocation(self, name) + + def setAttribute1s(self, location, v1): + return _openframeworks.ofShader_setAttribute1s(self, location, v1) + + def setAttribute2s(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2s(self, location, v1, v2) + + def setAttribute3s(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3s(self, location, v1, v2, v3) + + def setAttribute4s(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4s(self, location, v1, v2, v3, v4) + + def setAttribute1f(self, location, v1): + return _openframeworks.ofShader_setAttribute1f(self, location, v1) + + def setAttribute2f(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2f(self, location, v1, v2) + + def setAttribute3f(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3f(self, location, v1, v2, v3) + + def setAttribute4f(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4f(self, location, v1, v2, v3, v4) + + def setAttribute1d(self, location, v1): + return _openframeworks.ofShader_setAttribute1d(self, location, v1) + + def setAttribute2d(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2d(self, location, v1, v2) + + def setAttribute3d(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3d(self, location, v1, v2, v3) + + def setAttribute4d(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4d(self, location, v1, v2, v3, v4) + + def setAttribute1fv(self, *args): + return _openframeworks.ofShader_setAttribute1fv(self, *args) + + def setAttribute2fv(self, *args): + return _openframeworks.ofShader_setAttribute2fv(self, *args) + + def setAttribute3fv(self, *args): + return _openframeworks.ofShader_setAttribute3fv(self, *args) + + def setAttribute4fv(self, *args): + return _openframeworks.ofShader_setAttribute4fv(self, *args) + + def bindAttribute(self, location, name): + return _openframeworks.ofShader_bindAttribute(self, location, name) + + def printActiveUniforms(self): + return _openframeworks.ofShader_printActiveUniforms(self) + + def printActiveAttributes(self): + return _openframeworks.ofShader_printActiveAttributes(self) + + def setupShaderFromSource(self, *args): + return _openframeworks.ofShader_setupShaderFromSource(self, *args) + + def setupShaderFromFile(self, type, filename): + return _openframeworks.ofShader_setupShaderFromFile(self, type, filename) + + def linkProgram(self): + return _openframeworks.ofShader_linkProgram(self) + + def bindDefaults(self): + return _openframeworks.ofShader_bindDefaults(self) + + def getProgram(self): + return _openframeworks.ofShader_getProgram(self) + + def getShader(self, type): + return _openframeworks.ofShader_getShader(self, type) + + def __eq__(self, other): + return _openframeworks.ofShader___eq__(self, other) + + def __ne__(self, other): + return _openframeworks.ofShader___ne__(self, other) POSITION_ATTRIBUTE = _openframeworks.ofShader_POSITION_ATTRIBUTE COLOR_ATTRIBUTE = _openframeworks.ofShader_COLOR_ATTRIBUTE NORMAL_ATTRIBUTE = _openframeworks.ofShader_NORMAL_ATTRIBUTE TEXCOORD_ATTRIBUTE = _openframeworks.ofShader_TEXCOORD_ATTRIBUTE - def getShaderSource(self, *args): return _openframeworks.ofShader_getShaderSource(self, *args) + INDEX_ATTRIBUTE = _openframeworks.ofShader_INDEX_ATTRIBUTE + + def getShaderSource(self, type): + return _openframeworks.ofShader_getShaderSource(self, type) ofShader_swigregister = _openframeworks.ofShader_swigregister ofShader_swigregister(ofShader) @@ -3488,206 +6754,635 @@ class ofVbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofVbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVbo - __del__ = lambda self : None; - def setMesh(self, *args): return _openframeworks.ofVbo_setMesh(self, *args) - def setIndexData(self, *args): return _openframeworks.ofVbo_setIndexData(self, *args) - def setVertexData(self, *args): return _openframeworks.ofVbo_setVertexData(self, *args) - def setColorData(self, *args): return _openframeworks.ofVbo_setColorData(self, *args) - def setNormalData(self, *args): return _openframeworks.ofVbo_setNormalData(self, *args) - def setTexCoordData(self, *args): return _openframeworks.ofVbo_setTexCoordData(self, *args) - def setAttributeData(self, *args): return _openframeworks.ofVbo_setAttributeData(self, *args) - def updateMesh(self, *args): return _openframeworks.ofVbo_updateMesh(self, *args) - def updateIndexData(self, *args): return _openframeworks.ofVbo_updateIndexData(self, *args) - def updateVertexData(self, *args): return _openframeworks.ofVbo_updateVertexData(self, *args) - def updateColorData(self, *args): return _openframeworks.ofVbo_updateColorData(self, *args) - def updateNormalData(self, *args): return _openframeworks.ofVbo_updateNormalData(self, *args) - def updateTexCoordData(self, *args): return _openframeworks.ofVbo_updateTexCoordData(self, *args) - def updateAttributeData(self, *args): return _openframeworks.ofVbo_updateAttributeData(self, *args) - def enableColors(self): return _openframeworks.ofVbo_enableColors(self) - def enableNormals(self): return _openframeworks.ofVbo_enableNormals(self) - def enableTexCoords(self): return _openframeworks.ofVbo_enableTexCoords(self) - def enableIndices(self): return _openframeworks.ofVbo_enableIndices(self) - def disableColors(self): return _openframeworks.ofVbo_disableColors(self) - def disableNormals(self): return _openframeworks.ofVbo_disableNormals(self) - def disableTexCoords(self): return _openframeworks.ofVbo_disableTexCoords(self) - def disableIndices(self): return _openframeworks.ofVbo_disableIndices(self) - def getVertId(self): return _openframeworks.ofVbo_getVertId(self) - def getColorId(self): return _openframeworks.ofVbo_getColorId(self) - def getNormalId(self): return _openframeworks.ofVbo_getNormalId(self) - def getTexCoordId(self): return _openframeworks.ofVbo_getTexCoordId(self) - def getIndexId(self): return _openframeworks.ofVbo_getIndexId(self) - def getIsAllocated(self): return _openframeworks.ofVbo_getIsAllocated(self) - def getUsingVerts(self): return _openframeworks.ofVbo_getUsingVerts(self) - def getUsingColors(self): return _openframeworks.ofVbo_getUsingColors(self) - def getUsingNormals(self): return _openframeworks.ofVbo_getUsingNormals(self) - def getUsingTexCoords(self): return _openframeworks.ofVbo_getUsingTexCoords(self) - def getUsingIndices(self): return _openframeworks.ofVbo_getUsingIndices(self) - def draw(self, *args): return _openframeworks.ofVbo_draw(self, *args) - def drawElements(self, *args): return _openframeworks.ofVbo_drawElements(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVbo_drawInstanced(self, *args) - def drawElementsInstanced(self, *args): return _openframeworks.ofVbo_drawElementsInstanced(self, *args) - def bind(self): return _openframeworks.ofVbo_bind(self) - def unbind(self): return _openframeworks.ofVbo_unbind(self) - def clear(self): return _openframeworks.ofVbo_clear(self) - def clearVertices(self): return _openframeworks.ofVbo_clearVertices(self) - def clearNormals(self): return _openframeworks.ofVbo_clearNormals(self) - def clearColors(self): return _openframeworks.ofVbo_clearColors(self) - def clearTexCoords(self): return _openframeworks.ofVbo_clearTexCoords(self) - def clearIndices(self): return _openframeworks.ofVbo_clearIndices(self) - def getNumVertices(self): return _openframeworks.ofVbo_getNumVertices(self) - def getNumIndices(self): return _openframeworks.ofVbo_getNumIndices(self) - __swig_getmethods__["disableVAOs"] = lambda x: _openframeworks.ofVbo_disableVAOs - if _newclass:disableVAOs = staticmethod(_openframeworks.ofVbo_disableVAOs) - __swig_getmethods__["enableVAOs"] = lambda x: _openframeworks.ofVbo_enableVAOs - if _newclass:enableVAOs = staticmethod(_openframeworks.ofVbo_enableVAOs) -ofVbo_swigregister = _openframeworks.ofVbo_swigregister -ofVbo_swigregister(ofVbo) + __del__ = lambda self: None -def ofVbo_disableVAOs(): - return _openframeworks.ofVbo_disableVAOs() -ofVbo_disableVAOs = _openframeworks.ofVbo_disableVAOs + def setMesh(self, *args): + return _openframeworks.ofVbo_setMesh(self, *args) -def ofVbo_enableVAOs(): - return _openframeworks.ofVbo_enableVAOs() -ofVbo_enableVAOs = _openframeworks.ofVbo_enableVAOs + def setIndexData(self, indices, total, usage): + return _openframeworks.ofVbo_setIndexData(self, indices, total, usage) -class ofVboMesh(ofMesh): - __swig_setmethods__ = {} - for _s in [ofMesh]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) - __swig_getmethods__ = {} - for _s in [ofMesh]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofVboMesh(*args) - try: self.this.append(this) - except: self.this = this - def setUsage(self, *args): return _openframeworks.ofVboMesh_setUsage(self, *args) - def draw(self, *args): return _openframeworks.ofVboMesh_draw(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVboMesh_drawInstanced(self, *args) - def getVbo(self): return _openframeworks.ofVboMesh_getVbo(self) - __swig_destroy__ = _openframeworks.delete_ofVboMesh - __del__ = lambda self : None; -ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister -ofVboMesh_swigregister(ofVboMesh) + def setVertexData(self, *args): + return _openframeworks.ofVbo_setVertexData(self, *args) -OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR -OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR -OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC -class ofPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofPixels - __del__ = lambda self : None; - def __init__(self, *args): - this = _openframeworks.new_ofPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofPixels_swapRgb(self) - def clear(self): return _openframeworks.ofPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofPixels_size(self) -ofPixels_swigregister = _openframeworks.ofPixels_swigregister -ofPixels_swigregister(ofPixels) + def setColorData(self, *args): + return _openframeworks.ofVbo_setColorData(self, *args) -class ofFloatPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) - __repr__ = _swig_repr + def setNormalData(self, *args): + return _openframeworks.ofVbo_setNormalData(self, *args) + + def setTexCoordData(self, *args): + return _openframeworks.ofVbo_setTexCoordData(self, *args) + + def setAttributeData(self, location, vert0x, numCoords, total, usage, stride=0): + return _openframeworks.ofVbo_setAttributeData(self, location, vert0x, numCoords, total, usage, stride) + + def setAttributeDivisor(self, location, divisor): + return _openframeworks.ofVbo_setAttributeDivisor(self, location, divisor) + + def setVertexBuffer(self, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setVertexBuffer(self, buffer, numCoords, stride, offset) + + def setColorBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setColorBuffer(self, buffer, stride, offset) + + def setNormalBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setNormalBuffer(self, buffer, stride, offset) + + def setTexCoordBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setTexCoordBuffer(self, buffer, stride, offset) + + def setIndexBuffer(self, buffer): + return _openframeworks.ofVbo_setIndexBuffer(self, buffer) + + def setAttributeBuffer(self, location, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setAttributeBuffer(self, location, buffer, numCoords, stride, offset) + + def getVertexBuffer(self, *args): + return _openframeworks.ofVbo_getVertexBuffer(self, *args) + + def getColorBuffer(self, *args): + return _openframeworks.ofVbo_getColorBuffer(self, *args) + + def getNormalBuffer(self, *args): + return _openframeworks.ofVbo_getNormalBuffer(self, *args) + + def getTexCoordBuffer(self, *args): + return _openframeworks.ofVbo_getTexCoordBuffer(self, *args) + + def getIndexBuffer(self, *args): + return _openframeworks.ofVbo_getIndexBuffer(self, *args) + + def getAttributeBuffer(self, *args): + return _openframeworks.ofVbo_getAttributeBuffer(self, *args) + + def updateMesh(self, mesh): + return _openframeworks.ofVbo_updateMesh(self, mesh) + + def updateIndexData(self, indices, total): + return _openframeworks.ofVbo_updateIndexData(self, indices, total) + + def updateVertexData(self, *args): + return _openframeworks.ofVbo_updateVertexData(self, *args) + + def updateColorData(self, *args): + return _openframeworks.ofVbo_updateColorData(self, *args) + + def updateNormalData(self, *args): + return _openframeworks.ofVbo_updateNormalData(self, *args) + + def updateTexCoordData(self, *args): + return _openframeworks.ofVbo_updateTexCoordData(self, *args) + + def updateAttributeData(self, location, vert0x, total): + return _openframeworks.ofVbo_updateAttributeData(self, location, vert0x, total) + + def enableColors(self): + return _openframeworks.ofVbo_enableColors(self) + + def enableNormals(self): + return _openframeworks.ofVbo_enableNormals(self) + + def enableTexCoords(self): + return _openframeworks.ofVbo_enableTexCoords(self) + + def enableIndices(self): + return _openframeworks.ofVbo_enableIndices(self) + + def disableColors(self): + return _openframeworks.ofVbo_disableColors(self) + + def disableNormals(self): + return _openframeworks.ofVbo_disableNormals(self) + + def disableTexCoords(self): + return _openframeworks.ofVbo_disableTexCoords(self) + + def disableIndices(self): + return _openframeworks.ofVbo_disableIndices(self) + + def getVaoId(self): + return _openframeworks.ofVbo_getVaoId(self) + + def getVertId(self): + return _openframeworks.ofVbo_getVertId(self) + + def getColorId(self): + return _openframeworks.ofVbo_getColorId(self) + + def getNormalId(self): + return _openframeworks.ofVbo_getNormalId(self) + + def getTexCoordId(self): + return _openframeworks.ofVbo_getTexCoordId(self) + + def getIndexId(self): + return _openframeworks.ofVbo_getIndexId(self) + + def getAttributeId(self, AttrPos_): + return _openframeworks.ofVbo_getAttributeId(self, AttrPos_) + + def getIsAllocated(self): + return _openframeworks.ofVbo_getIsAllocated(self) + + def getUsingVerts(self): + return _openframeworks.ofVbo_getUsingVerts(self) + + def getUsingColors(self): + return _openframeworks.ofVbo_getUsingColors(self) + + def getUsingNormals(self): + return _openframeworks.ofVbo_getUsingNormals(self) + + def getUsingTexCoords(self): + return _openframeworks.ofVbo_getUsingTexCoords(self) + + def getUsingIndices(self): + return _openframeworks.ofVbo_getUsingIndices(self) + + def draw(self, drawMode, first, total): + return _openframeworks.ofVbo_draw(self, drawMode, first, total) + + def drawElements(self, drawMode, amt, offsetelements=0): + return _openframeworks.ofVbo_drawElements(self, drawMode, amt, offsetelements) + + def drawInstanced(self, drawMode, first, total, primCount): + return _openframeworks.ofVbo_drawInstanced(self, drawMode, first, total, primCount) + + def drawElementsInstanced(self, drawMode, amt, primCount): + return _openframeworks.ofVbo_drawElementsInstanced(self, drawMode, amt, primCount) + + def bind(self): + return _openframeworks.ofVbo_bind(self) + + def unbind(self): + return _openframeworks.ofVbo_unbind(self) + + def clear(self): + return _openframeworks.ofVbo_clear(self) + + def clearVertices(self): + return _openframeworks.ofVbo_clearVertices(self) + + def clearNormals(self): + return _openframeworks.ofVbo_clearNormals(self) + + def clearColors(self): + return _openframeworks.ofVbo_clearColors(self) + + def clearTexCoords(self): + return _openframeworks.ofVbo_clearTexCoords(self) + + def clearIndices(self): + return _openframeworks.ofVbo_clearIndices(self) + + def clearAttribute(self, attributePos_): + return _openframeworks.ofVbo_clearAttribute(self, attributePos_) + + def getNumVertices(self): + return _openframeworks.ofVbo_getNumVertices(self) + + def getNumIndices(self): + return _openframeworks.ofVbo_getNumIndices(self) + + def hasAttribute(self, attributePos_): + return _openframeworks.ofVbo_hasAttribute(self, attributePos_) +ofVbo_swigregister = _openframeworks.ofVbo_swigregister +ofVbo_swigregister(ofVbo) + +class ofVboMesh(ofMesh): + __swig_setmethods__ = {} + for _s in [ofMesh]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) + __swig_getmethods__ = {} + for _s in [ofMesh]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) + __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofVboMesh(*args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofVboMesh + __del__ = lambda self: None + + def setUsage(self, usage): + return _openframeworks.ofVboMesh_setUsage(self, usage) + + def draw(self, *args): + return _openframeworks.ofVboMesh_draw(self, *args) + + def drawInstanced(self, drawMode, primCount): + return _openframeworks.ofVboMesh_drawInstanced(self, drawMode, primCount) + + def getVbo(self, *args): + return _openframeworks.ofVboMesh_getVbo(self, *args) +ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister +ofVboMesh_swigregister(ofVboMesh) + + +_openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant(_openframeworks) +OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR + +_openframeworks.OF_INTERPOLATE_BILINEAR_swigconstant(_openframeworks) +OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR + +_openframeworks.OF_INTERPOLATE_BICUBIC_swigconstant(_openframeworks) +OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC +class ofPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofPixels + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofPixels(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofPixels_size(self) + + def getImageType(self): + return _openframeworks.ofPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofPixels_getConstPixelsIter(self) +ofPixels_swigregister = _openframeworks.ofPixels_swigregister +ofPixels_swigregister(ofPixels) + +def ofPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofPixels_pixelBitsFromPixelFormat(format) +ofPixels_pixelBitsFromPixelFormat = _openframeworks.ofPixels_pixelBitsFromPixelFormat + +def ofPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofPixels_bytesFromPixelFormat(w, h, format) +ofPixels_bytesFromPixelFormat = _openframeworks.ofPixels_bytesFromPixelFormat + +class ofFloatPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) + __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofFloatPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofFloatPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofFloatPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofFloatPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofFloatPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofFloatPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofFloatPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofFloatPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofFloatPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofFloatPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofFloatPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofFloatPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofFloatPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofFloatPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofFloatPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofFloatPixels_swapRgb(self) - def clear(self): return _openframeworks.ofFloatPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofFloatPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofFloatPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofFloatPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofFloatPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofFloatPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofFloatPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofFloatPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofFloatPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofFloatPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofFloatPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofFloatPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofFloatPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofFloatPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofFloatPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofFloatPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofFloatPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofFloatPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofFloatPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFloatPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofFloatPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofFloatPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofFloatPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofFloatPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofFloatPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofFloatPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofFloatPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofFloatPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofFloatPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofFloatPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofFloatPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofFloatPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFloatPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofFloatPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofFloatPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofFloatPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofFloatPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofFloatPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofFloatPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofFloatPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofFloatPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofFloatPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofFloatPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofFloatPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofFloatPixels_size(self) + + def getImageType(self): + return _openframeworks.ofFloatPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofFloatPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofFloatPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofFloatPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofFloatPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofFloatPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofFloatPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofFloatPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofFloatPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofFloatPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofFloatPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofFloatPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofFloatPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofFloatPixels_getConstPixelsIter(self) ofFloatPixels_swigregister = _openframeworks.ofFloatPixels_swigregister ofFloatPixels_swigregister(ofFloatPixels) +def ofFloatPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat(format) +ofFloatPixels_pixelBitsFromPixelFormat = _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + +def ofFloatPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofFloatPixels_bytesFromPixelFormat(w, h, format) +ofFloatPixels_bytesFromPixelFormat = _openframeworks.ofFloatPixels_bytesFromPixelFormat + class ofShortPixels(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortPixels, name, value) @@ -3695,115 +7390,348 @@ class ofShortPixels(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShortPixels, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShortPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShortPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofShortPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofShortPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofShortPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofShortPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofShortPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofShortPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofShortPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofShortPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofShortPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofShortPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofShortPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofShortPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofShortPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofShortPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofShortPixels_swapRgb(self) - def clear(self): return _openframeworks.ofShortPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofShortPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofShortPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofShortPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofShortPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofShortPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofShortPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofShortPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofShortPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofShortPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofShortPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofShortPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofShortPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofShortPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofShortPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofShortPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofShortPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofShortPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofShortPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofShortPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofShortPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofShortPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofShortPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofShortPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofShortPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofShortPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofShortPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofShortPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofShortPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofShortPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofShortPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofShortPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofShortPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofShortPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofShortPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofShortPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofShortPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofShortPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofShortPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofShortPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofShortPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofShortPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofShortPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofShortPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofShortPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofShortPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofShortPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofShortPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofShortPixels_size(self) + + def getImageType(self): + return _openframeworks.ofShortPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofShortPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofShortPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofShortPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofShortPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofShortPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofShortPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofShortPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofShortPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofShortPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofShortPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofShortPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofShortPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofShortPixels_getConstPixelsIter(self) ofShortPixels_swigregister = _openframeworks.ofShortPixels_swigregister ofShortPixels_swigregister(ofShortPixels) +def ofShortPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofShortPixels_pixelBitsFromPixelFormat(format) +ofShortPixels_pixelBitsFromPixelFormat = _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + +def ofShortPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofShortPixels_bytesFromPixelFormat(w, h, format) +ofShortPixels_bytesFromPixelFormat = _openframeworks.ofShortPixels_bytesFromPixelFormat + class ofPath(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofPath, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPath, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofPath() - try: self.this.append(this) - except: self.this = this - def clear(self): return _openframeworks.ofPath_clear(self) - def newSubPath(self): return _openframeworks.ofPath_newSubPath(self) - def close(self): return _openframeworks.ofPath_close(self) - def lineTo(self, *args): return _openframeworks.ofPath_lineTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofPath_moveTo(self, *args) - def curveTo(self, *args): return _openframeworks.ofPath_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPath_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPath_quadBezierTo(self, *args) - def arc(self, *args): return _openframeworks.ofPath_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPath_arcNegative(self, *args) - def triangle(self, *args): return _openframeworks.ofPath_triangle(self, *args) - def circle(self, *args): return _openframeworks.ofPath_circle(self, *args) - def ellipse(self, *args): return _openframeworks.ofPath_ellipse(self, *args) - def rectangle(self, *args): return _openframeworks.ofPath_rectangle(self, *args) - def rectRounded(self, *args): return _openframeworks.ofPath_rectRounded(self, *args) - def setPolyWindingMode(self, *args): return _openframeworks.ofPath_setPolyWindingMode(self, *args) - def setFilled(self, *args): return _openframeworks.ofPath_setFilled(self, *args) - def setStrokeWidth(self, *args): return _openframeworks.ofPath_setStrokeWidth(self, *args) - def setColor(self, *args): return _openframeworks.ofPath_setColor(self, *args) - def setHexColor(self, *args): return _openframeworks.ofPath_setHexColor(self, *args) - def setFillColor(self, *args): return _openframeworks.ofPath_setFillColor(self, *args) - def setFillHexColor(self, *args): return _openframeworks.ofPath_setFillHexColor(self, *args) - def setStrokeColor(self, *args): return _openframeworks.ofPath_setStrokeColor(self, *args) - def setStrokeHexColor(self, *args): return _openframeworks.ofPath_setStrokeHexColor(self, *args) - def getWindingMode(self): return _openframeworks.ofPath_getWindingMode(self) - def isFilled(self): return _openframeworks.ofPath_isFilled(self) - def getFillColor(self): return _openframeworks.ofPath_getFillColor(self) - def getStrokeColor(self): return _openframeworks.ofPath_getStrokeColor(self) - def getStrokeWidth(self): return _openframeworks.ofPath_getStrokeWidth(self) - def hasOutline(self): return _openframeworks.ofPath_hasOutline(self) - def draw(self, *args): return _openframeworks.ofPath_draw(self, *args) - def getOutline(self): return _openframeworks.ofPath_getOutline(self) - def getTessellation(self): return _openframeworks.ofPath_getTessellation(self) - def simplify(self, tolerance=0.3): return _openframeworks.ofPath_simplify(self, tolerance) - def flagShapeChanged(self): return _openframeworks.ofPath_flagShapeChanged(self) - def hasChanged(self): return _openframeworks.ofPath_hasChanged(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def clear(self): + return _openframeworks.ofPath_clear(self) + + def newSubPath(self): + return _openframeworks.ofPath_newSubPath(self) + + def close(self): + return _openframeworks.ofPath_close(self) + + def lineTo(self, *args): + return _openframeworks.ofPath_lineTo(self, *args) + + def moveTo(self, *args): + return _openframeworks.ofPath_moveTo(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPath_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPath_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPath_quadBezierTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPath_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPath_arcNegative(self, *args) + + def triangle(self, *args): + return _openframeworks.ofPath_triangle(self, *args) + + def circle(self, *args): + return _openframeworks.ofPath_circle(self, *args) + + def ellipse(self, *args): + return _openframeworks.ofPath_ellipse(self, *args) + + def rectangle(self, *args): + return _openframeworks.ofPath_rectangle(self, *args) + + def rectRounded(self, *args): + return _openframeworks.ofPath_rectRounded(self, *args) + + def setPolyWindingMode(self, mode): + return _openframeworks.ofPath_setPolyWindingMode(self, mode) + + def getWindingMode(self): + return _openframeworks.ofPath_getWindingMode(self) + + def setFilled(self, hasFill): + return _openframeworks.ofPath_setFilled(self, hasFill) + + def setStrokeWidth(self, width): + return _openframeworks.ofPath_setStrokeWidth(self, width) + + def setColor(self, color): + return _openframeworks.ofPath_setColor(self, color) + + def setHexColor(self, hex): + return _openframeworks.ofPath_setHexColor(self, hex) + + def setFillColor(self, color): + return _openframeworks.ofPath_setFillColor(self, color) + + def setFillHexColor(self, hex): + return _openframeworks.ofPath_setFillHexColor(self, hex) + + def setStrokeColor(self, color): + return _openframeworks.ofPath_setStrokeColor(self, color) + + def setStrokeHexColor(self, hex): + return _openframeworks.ofPath_setStrokeHexColor(self, hex) + + def isFilled(self): + return _openframeworks.ofPath_isFilled(self) + + def getFillColor(self): + return _openframeworks.ofPath_getFillColor(self) + + def getStrokeColor(self): + return _openframeworks.ofPath_getStrokeColor(self) + + def getStrokeWidth(self): + return _openframeworks.ofPath_getStrokeWidth(self) + + def hasOutline(self): + return _openframeworks.ofPath_hasOutline(self) + + def setCurveResolution(self, curveResolution): + return _openframeworks.ofPath_setCurveResolution(self, curveResolution) + + def setCircleResolution(self, circleResolution): + return _openframeworks.ofPath_setCircleResolution(self, circleResolution) + + def getCircleResolution(self): + return _openframeworks.ofPath_getCircleResolution(self) + + def setUseShapeColor(self, useColor): + return _openframeworks.ofPath_setUseShapeColor(self, useColor) + + def getUseShapeColor(self): + return _openframeworks.ofPath_getUseShapeColor(self) + + def draw(self, *args): + return _openframeworks.ofPath_draw(self, *args) + + def getOutline(self): + return _openframeworks.ofPath_getOutline(self) + + def tessellate(self): + return _openframeworks.ofPath_tessellate(self) + + def getTessellation(self): + return _openframeworks.ofPath_getTessellation(self) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPath_simplify(self, tolerance) + + def translate(self, p): + return _openframeworks.ofPath_translate(self, p) + + def rotate(self, az, axis): + return _openframeworks.ofPath_rotate(self, az, axis) + + def scale(self, x, y): + return _openframeworks.ofPath_scale(self, x, y) + + def append(self, path): + return _openframeworks.ofPath_append(self, path) COMMANDS = _openframeworks.ofPath_COMMANDS POLYLINES = _openframeworks.ofPath_POLYLINES - def setMode(self, *args): return _openframeworks.ofPath_setMode(self, *args) - def getMode(self): return _openframeworks.ofPath_getMode(self) - def setCurveResolution(self, *args): return _openframeworks.ofPath_setCurveResolution(self, *args) - def setCircleResolution(self, *args): return _openframeworks.ofPath_setCircleResolution(self, *args) - def getCircleResolution(self): return _openframeworks.ofPath_getCircleResolution(self) - def setUseShapeColor(self, *args): return _openframeworks.ofPath_setUseShapeColor(self, *args) - def getUseShapeColor(self): return _openframeworks.ofPath_getUseShapeColor(self) - def tessellate(self): return _openframeworks.ofPath_tessellate(self) - def translate(self, *args): return _openframeworks.ofPath_translate(self, *args) - def rotate(self, *args): return _openframeworks.ofPath_rotate(self, *args) - def scale(self, *args): return _openframeworks.ofPath_scale(self, *args) - def getCommands(self, *args): return _openframeworks.ofPath_getCommands(self, *args) + + def setMode(self, mode): + return _openframeworks.ofPath_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofPath_getMode(self) + + def getCommands(self, *args): + return _openframeworks.ofPath_getCommands(self, *args) __swig_destroy__ = _openframeworks.delete_ofPath - __del__ = lambda self : None; + __del__ = lambda self: None ofPath_swigregister = _openframeworks.ofPath_swigregister ofPath_swigregister(ofPath) @@ -3813,539 +7741,857 @@ class ofPolyline(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPolyline, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPolyline(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromRectangle"] = lambda x: _openframeworks.ofPolyline_fromRectangle - if _newclass:fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) - def clear(self): return _openframeworks.ofPolyline_clear(self) - def addVertex(self, *args): return _openframeworks.ofPolyline_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofPolyline_addVertices(self, *args) - def lineTo(self, *args): return _openframeworks.ofPolyline_lineTo(self, *args) - def insertVertex(self, *args): return _openframeworks.ofPolyline_insertVertex(self, *args) - def arc(self, *args): return _openframeworks.ofPolyline_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPolyline_arcNegative(self, *args) - def curveTo(self, *args): return _openframeworks.ofPolyline_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPolyline_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPolyline_quadBezierTo(self, *args) - def getSmoothed(self, *args): return _openframeworks.ofPolyline_getSmoothed(self, *args) - def getResampledBySpacing(self, *args): return _openframeworks.ofPolyline_getResampledBySpacing(self, *args) - def getResampledByCount(self, *args): return _openframeworks.ofPolyline_getResampledByCount(self, *args) - def getBoundingBox(self): return _openframeworks.ofPolyline_getBoundingBox(self) - def getClosestPoint(self, *args): return _openframeworks.ofPolyline_getClosestPoint(self, *args) - def inside(self, *args): return _openframeworks.ofPolyline_inside(self, *args) - def simplify(self, tolerance=0.3): return _openframeworks.ofPolyline_simplify(self, tolerance) - def size(self): return _openframeworks.ofPolyline_size(self) - def __getitem__(self, *args): return _openframeworks.ofPolyline___getitem__(self, *args) - def resize(self, *args): return _openframeworks.ofPolyline_resize(self, *args) - def setClosed(self, *args): return _openframeworks.ofPolyline_setClosed(self, *args) - def isClosed(self): return _openframeworks.ofPolyline_isClosed(self) - def close(self): return _openframeworks.ofPolyline_close(self) - def hasChanged(self): return _openframeworks.ofPolyline_hasChanged(self) - def flagHasChanged(self): return _openframeworks.ofPolyline_flagHasChanged(self) - def getVertices(self, *args): return _openframeworks.ofPolyline_getVertices(self, *args) - def getPerimeter(self): return _openframeworks.ofPolyline_getPerimeter(self) - def getArea(self): return _openframeworks.ofPolyline_getArea(self) - def getCentroid2D(self): return _openframeworks.ofPolyline_getCentroid2D(self) - def draw(self): return _openframeworks.ofPolyline_draw(self) - def setRightVector(self, *args): return _openframeworks.ofPolyline_setRightVector(self, *args) - def getRightVector(self): return _openframeworks.ofPolyline_getRightVector(self) - def getIndexAtLength(self, *args): return _openframeworks.ofPolyline_getIndexAtLength(self, *args) - def getIndexAtPercent(self, *args): return _openframeworks.ofPolyline_getIndexAtPercent(self, *args) - def getLengthAtIndex(self, *args): return _openframeworks.ofPolyline_getLengthAtIndex(self, *args) - def getLengthAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, *args) - def getPointAtLength(self, *args): return _openframeworks.ofPolyline_getPointAtLength(self, *args) - def getPointAtPercent(self, *args): return _openframeworks.ofPolyline_getPointAtPercent(self, *args) - def getPointAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, *args) - def getAngleAtIndex(self, *args): return _openframeworks.ofPolyline_getAngleAtIndex(self, *args) - def getAngleAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, *args) - def getRotationAtIndex(self, *args): return _openframeworks.ofPolyline_getRotationAtIndex(self, *args) - def getRotationAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, *args) - def getTangentAtIndex(self, *args): return _openframeworks.ofPolyline_getTangentAtIndex(self, *args) - def getTangentAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, *args) - def getNormalAtIndex(self, *args): return _openframeworks.ofPolyline_getNormalAtIndex(self, *args) - def getNormalAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, *args) - def getWrappedIndex(self, *args): return _openframeworks.ofPolyline_getWrappedIndex(self, *args) + if _newclass: + fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) + + def clear(self): + return _openframeworks.ofPolyline_clear(self) + + def addVertex(self, *args): + return _openframeworks.ofPolyline_addVertex(self, *args) + + def addVertices(self, *args): + return _openframeworks.ofPolyline_addVertices(self, *args) + + def insertVertex(self, *args): + return _openframeworks.ofPolyline_insertVertex(self, *args) + + def resize(self, size): + return _openframeworks.ofPolyline_resize(self, size) + + def size(self): + return _openframeworks.ofPolyline_size(self) + + def __getitem__(self, *args): + return _openframeworks.ofPolyline___getitem__(self, *args) + + def getVertices(self, *args): + return _openframeworks.ofPolyline_getVertices(self, *args) + + def begin(self, *args): + return _openframeworks.ofPolyline_begin(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPolyline_rbegin(self, *args) + + def end(self, *args): + return _openframeworks.ofPolyline_end(self, *args) + + def rend(self, *args): + return _openframeworks.ofPolyline_rend(self, *args) + + def lineTo(self, *args): + return _openframeworks.ofPolyline_lineTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPolyline_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPolyline_arcNegative(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPolyline_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPolyline_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPolyline_quadBezierTo(self, *args) + + def getSmoothed(self, smoothingSize, smoothingShape=0): + return _openframeworks.ofPolyline_getSmoothed(self, smoothingSize, smoothingShape) + + def getResampledBySpacing(self, spacing): + return _openframeworks.ofPolyline_getResampledBySpacing(self, spacing) + + def getResampledByCount(self, count): + return _openframeworks.ofPolyline_getResampledByCount(self, count) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPolyline_simplify(self, tolerance) + + def close(self): + return _openframeworks.ofPolyline_close(self) + + def setClosed(self, tf): + return _openframeworks.ofPolyline_setClosed(self, tf) + + def isClosed(self): + return _openframeworks.ofPolyline_isClosed(self) + + def hasChanged(self): + return _openframeworks.ofPolyline_hasChanged(self) + + def flagHasChanged(self): + return _openframeworks.ofPolyline_flagHasChanged(self) + + def inside(self, *args): + return _openframeworks.ofPolyline_inside(self, *args) + + def getBoundingBox(self): + return _openframeworks.ofPolyline_getBoundingBox(self) + + def getPerimeter(self): + return _openframeworks.ofPolyline_getPerimeter(self) + + def getArea(self): + return _openframeworks.ofPolyline_getArea(self) + + def getCentroid2D(self): + return _openframeworks.ofPolyline_getCentroid2D(self) + + def getClosestPoint(self, target, nearestIndex=None): + return _openframeworks.ofPolyline_getClosestPoint(self, target, nearestIndex) + + def getIndexAtLength(self, f): + return _openframeworks.ofPolyline_getIndexAtLength(self, f) + + def getIndexAtPercent(self, f): + return _openframeworks.ofPolyline_getIndexAtPercent(self, f) + + def getLengthAtIndex(self, index): + return _openframeworks.ofPolyline_getLengthAtIndex(self, index) + + def getLengthAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, findex) + + def getPointAtLength(self, f): + return _openframeworks.ofPolyline_getPointAtLength(self, f) + + def getPointAtPercent(self, f): + return _openframeworks.ofPolyline_getPointAtPercent(self, f) + + def getPointAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, findex) + + def getAngleAtIndex(self, index): + return _openframeworks.ofPolyline_getAngleAtIndex(self, index) + + def getAngleAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, findex) + + def getRotationAtIndex(self, index): + return _openframeworks.ofPolyline_getRotationAtIndex(self, index) + + def getRotationAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, findex) + + def getTangentAtIndex(self, index): + return _openframeworks.ofPolyline_getTangentAtIndex(self, index) + + def getTangentAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, findex) + + def getNormalAtIndex(self, index): + return _openframeworks.ofPolyline_getNormalAtIndex(self, index) + + def getNormalAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, findex) + + def getWrappedIndex(self, index): + return _openframeworks.ofPolyline_getWrappedIndex(self, index) + + def setRightVector(self, *args): + return _openframeworks.ofPolyline_setRightVector(self, *args) + + def getRightVector(self): + return _openframeworks.ofPolyline_getRightVector(self) + + def draw(self): + return _openframeworks.ofPolyline_draw(self) __swig_destroy__ = _openframeworks.delete_ofPolyline - __del__ = lambda self : None; + __del__ = lambda self: None ofPolyline_swigregister = _openframeworks.ofPolyline_swigregister ofPolyline_swigregister(ofPolyline) -def ofPolyline_fromRectangle(*args): - return _openframeworks.ofPolyline_fromRectangle(*args) -ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle +def ofPolyline_fromRectangle(rect): + return _openframeworks.ofPolyline_fromRectangle(rect) +ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle + + +_openframeworks.CIRC_RESOLUTION_swigconstant(_openframeworks) +CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION + +def ofSetColor(*args): + return _openframeworks.ofSetColor(*args) +ofSetColor = _openframeworks.ofSetColor + +def ofSetHexColor(hexColor): + return _openframeworks.ofSetHexColor(hexColor) +ofSetHexColor = _openframeworks.ofSetHexColor + +def ofNoFill(): + return _openframeworks.ofNoFill() +ofNoFill = _openframeworks.ofNoFill + +def ofFill(): + return _openframeworks.ofFill() +ofFill = _openframeworks.ofFill + +def ofGetFill(): + return _openframeworks.ofGetFill() +ofGetFill = _openframeworks.ofGetFill + +def ofGetBackgroundColor(): + return _openframeworks.ofGetBackgroundColor() +ofGetBackgroundColor = _openframeworks.ofGetBackgroundColor + +def ofGetBackground(): + return _openframeworks.ofGetBackground() +ofGetBackground = _openframeworks.ofGetBackground + +def ofBackground(*args): + return _openframeworks.ofBackground(*args) +ofBackground = _openframeworks.ofBackground + +def ofBackgroundHex(hexColor, alpha=255): + return _openframeworks.ofBackgroundHex(hexColor, alpha) +ofBackgroundHex = _openframeworks.ofBackgroundHex + +def ofBackgroundGradient(start, end, mode=OF_GRADIENT_CIRCULAR): + return _openframeworks.ofBackgroundGradient(start, end, mode) +ofBackgroundGradient = _openframeworks.ofBackgroundGradient + +def ofSetBackgroundColor(*args): + return _openframeworks.ofSetBackgroundColor(*args) +ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor + +def ofSetBackgroundColorHex(hexColor, alpha=255): + return _openframeworks.ofSetBackgroundColorHex(hexColor, alpha) +ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex + +def ofSetBackgroundAuto(bManual): + return _openframeworks.ofSetBackgroundAuto(bManual) +ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto -CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION +def ofGetBackgroundAuto(): + return _openframeworks.ofGetBackgroundAuto() +ofGetBackgroundAuto = _openframeworks.ofGetBackgroundAuto -def ofBeginSaveScreenAsPDF(*args): - return _openframeworks.ofBeginSaveScreenAsPDF(*args) -ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF +def ofClear(*args): + return _openframeworks.ofClear(*args) +ofClear = _openframeworks.ofClear -def ofEndSaveScreenAsPDF(): - return _openframeworks.ofEndSaveScreenAsPDF() -ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF +def ofClearAlpha(): + return _openframeworks.ofClearAlpha() +ofClearAlpha = _openframeworks.ofClearAlpha -def ofPushView(): - return _openframeworks.ofPushView() -ofPushView = _openframeworks.ofPushView +def ofDrawTriangle(*args): + return _openframeworks.ofDrawTriangle(*args) +ofDrawTriangle = _openframeworks.ofDrawTriangle -def ofPopView(): - return _openframeworks.ofPopView() -ofPopView = _openframeworks.ofPopView +def ofDrawCircle(*args): + return _openframeworks.ofDrawCircle(*args) +ofDrawCircle = _openframeworks.ofDrawCircle -def ofViewport(*args): - return _openframeworks.ofViewport(*args) -ofViewport = _openframeworks.ofViewport +def ofDrawEllipse(*args): + return _openframeworks.ofDrawEllipse(*args) +ofDrawEllipse = _openframeworks.ofDrawEllipse -def ofSetupScreenPerspective(*args): - return _openframeworks.ofSetupScreenPerspective(*args) -ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective +def ofDrawLine(*args): + return _openframeworks.ofDrawLine(*args) +ofDrawLine = _openframeworks.ofDrawLine -def ofSetupScreenOrtho(*args): - return _openframeworks.ofSetupScreenOrtho(*args) -ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho +def ofDrawRectangle(*args): + return _openframeworks.ofDrawRectangle(*args) +ofDrawRectangle = _openframeworks.ofDrawRectangle -def ofGetCurrentViewport(): - return _openframeworks.ofGetCurrentViewport() -ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport +def ofDrawRectRounded(*args): + return _openframeworks.ofDrawRectRounded(*args) +ofDrawRectRounded = _openframeworks.ofDrawRectRounded -def ofGetNativeViewport(): - return _openframeworks.ofGetNativeViewport() -ofGetNativeViewport = _openframeworks.ofGetNativeViewport +def ofDrawCurve(*args): + return _openframeworks.ofDrawCurve(*args) +ofDrawCurve = _openframeworks.ofDrawCurve -def ofGetViewportWidth(): - return _openframeworks.ofGetViewportWidth() -ofGetViewportWidth = _openframeworks.ofGetViewportWidth +def ofDrawBezier(*args): + return _openframeworks.ofDrawBezier(*args) +ofDrawBezier = _openframeworks.ofDrawBezier -def ofGetViewportHeight(): - return _openframeworks.ofGetViewportHeight() -ofGetViewportHeight = _openframeworks.ofGetViewportHeight +def ofTriangle(*args): + return _openframeworks.ofTriangle(*args) +ofTriangle = _openframeworks.ofTriangle -def ofOrientationToDegrees(*args): - return _openframeworks.ofOrientationToDegrees(*args) -ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees +def ofCircle(*args): + return _openframeworks.ofCircle(*args) +ofCircle = _openframeworks.ofCircle -def ofSetCoordHandedness(*args): - return _openframeworks.ofSetCoordHandedness(*args) -ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness +def ofEllipse(*args): + return _openframeworks.ofEllipse(*args) +ofEllipse = _openframeworks.ofEllipse -def ofGetCoordHandedness(): - return _openframeworks.ofGetCoordHandedness() -ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness +def ofLine(*args): + return _openframeworks.ofLine(*args) +ofLine = _openframeworks.ofLine -def ofPushMatrix(): - return _openframeworks.ofPushMatrix() -ofPushMatrix = _openframeworks.ofPushMatrix +def ofRect(*args): + return _openframeworks.ofRect(*args) +ofRect = _openframeworks.ofRect -def ofPopMatrix(): - return _openframeworks.ofPopMatrix() -ofPopMatrix = _openframeworks.ofPopMatrix +def ofRectRounded(*args): + return _openframeworks.ofRectRounded(*args) +ofRectRounded = _openframeworks.ofRectRounded -def ofGetCurrentMatrix(*args): - return _openframeworks.ofGetCurrentMatrix(*args) -ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix +def ofCurve(*args): + return _openframeworks.ofCurve(*args) +ofCurve = _openframeworks.ofCurve -def ofGetCurrentOrientationMatrix(): - return _openframeworks.ofGetCurrentOrientationMatrix() -ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix +def ofBezier(*args): + return _openframeworks.ofBezier(*args) +ofBezier = _openframeworks.ofBezier -def ofTranslate(*args): - return _openframeworks.ofTranslate(*args) -ofTranslate = _openframeworks.ofTranslate +def ofBeginShape(): + return _openframeworks.ofBeginShape() +ofBeginShape = _openframeworks.ofBeginShape -def ofScale(*args): - return _openframeworks.ofScale(*args) -ofScale = _openframeworks.ofScale +def ofVertex(*args): + return _openframeworks.ofVertex(*args) +ofVertex = _openframeworks.ofVertex -def ofRotateX(*args): - return _openframeworks.ofRotateX(*args) -ofRotateX = _openframeworks.ofRotateX +def ofVertices(polyPoints): + return _openframeworks.ofVertices(polyPoints) +ofVertices = _openframeworks.ofVertices -def ofRotateY(*args): - return _openframeworks.ofRotateY(*args) -ofRotateY = _openframeworks.ofRotateY +def ofCurveVertex(*args): + return _openframeworks.ofCurveVertex(*args) +ofCurveVertex = _openframeworks.ofCurveVertex -def ofRotateZ(*args): - return _openframeworks.ofRotateZ(*args) -ofRotateZ = _openframeworks.ofRotateZ +def ofCurveVertices(curvePoints): + return _openframeworks.ofCurveVertices(curvePoints) +ofCurveVertices = _openframeworks.ofCurveVertices -def ofRotate(*args): - return _openframeworks.ofRotate(*args) -ofRotate = _openframeworks.ofRotate +def ofBezierVertex(*args): + return _openframeworks.ofBezierVertex(*args) +ofBezierVertex = _openframeworks.ofBezierVertex -def ofLoadIdentityMatrix(): - return _openframeworks.ofLoadIdentityMatrix() -ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix +def ofEndShape(bClose=False): + return _openframeworks.ofEndShape(bClose) +ofEndShape = _openframeworks.ofEndShape -def ofLoadMatrix(*args): - return _openframeworks.ofLoadMatrix(*args) -ofLoadMatrix = _openframeworks.ofLoadMatrix +def ofNextContour(bClose=False): + return _openframeworks.ofNextContour(bClose) +ofNextContour = _openframeworks.ofNextContour -def ofMultMatrix(*args): - return _openframeworks.ofMultMatrix(*args) -ofMultMatrix = _openframeworks.ofMultMatrix +def ofSetDrawBitmapMode(mode): + return _openframeworks.ofSetDrawBitmapMode(mode) +ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode -def ofSetMatrixMode(*args): - return _openframeworks.ofSetMatrixMode(*args) -ofSetMatrixMode = _openframeworks.ofSetMatrixMode +def ofDrawBitmapStringHighlight(*args): + return _openframeworks.ofDrawBitmapStringHighlight(*args) +ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight def ofSetupGraphicDefaults(): - return _openframeworks.ofSetupGraphicDefaults() + return _openframeworks.ofSetupGraphicDefaults() ofSetupGraphicDefaults = _openframeworks.ofSetupGraphicDefaults def ofSetupScreen(): - return _openframeworks.ofSetupScreen() + return _openframeworks.ofSetupScreen() ofSetupScreen = _openframeworks.ofSetupScreen def ofGetRectMode(): - return _openframeworks.ofGetRectMode() + return _openframeworks.ofGetRectMode() ofGetRectMode = _openframeworks.ofGetRectMode -def ofSetCircleResolution(*args): - return _openframeworks.ofSetCircleResolution(*args) +def ofSetCircleResolution(res): + return _openframeworks.ofSetCircleResolution(res) ofSetCircleResolution = _openframeworks.ofSetCircleResolution -def ofSetCurveResolution(*args): - return _openframeworks.ofSetCurveResolution(*args) +def ofSetCurveResolution(res): + return _openframeworks.ofSetCurveResolution(res) ofSetCurveResolution = _openframeworks.ofSetCurveResolution -def ofNoFill(): - return _openframeworks.ofNoFill() -ofNoFill = _openframeworks.ofNoFill - -def ofFill(): - return _openframeworks.ofFill() -ofFill = _openframeworks.ofFill - -def ofGetFill(): - return _openframeworks.ofGetFill() -ofGetFill = _openframeworks.ofGetFill - -def ofSetLineWidth(*args): - return _openframeworks.ofSetLineWidth(*args) +def ofSetLineWidth(lineWidth): + return _openframeworks.ofSetLineWidth(lineWidth) ofSetLineWidth = _openframeworks.ofSetLineWidth -def ofSetDepthTest(*args): - return _openframeworks.ofSetDepthTest(*args) +def ofSetDepthTest(depthTest): + return _openframeworks.ofSetDepthTest(depthTest) ofSetDepthTest = _openframeworks.ofSetDepthTest def ofEnableDepthTest(): - return _openframeworks.ofEnableDepthTest() + return _openframeworks.ofEnableDepthTest() ofEnableDepthTest = _openframeworks.ofEnableDepthTest def ofDisableDepthTest(): - return _openframeworks.ofDisableDepthTest() + return _openframeworks.ofDisableDepthTest() ofDisableDepthTest = _openframeworks.ofDisableDepthTest -def ofSetColor(*args): - return _openframeworks.ofSetColor(*args) -ofSetColor = _openframeworks.ofSetColor - -def ofSetHexColor(*args): - return _openframeworks.ofSetHexColor(*args) -ofSetHexColor = _openframeworks.ofSetHexColor - -def ofEnableBlendMode(*args): - return _openframeworks.ofEnableBlendMode(*args) +def ofEnableBlendMode(blendMode): + return _openframeworks.ofEnableBlendMode(blendMode) ofEnableBlendMode = _openframeworks.ofEnableBlendMode def ofDisableBlendMode(): - return _openframeworks.ofDisableBlendMode() + return _openframeworks.ofDisableBlendMode() ofDisableBlendMode = _openframeworks.ofDisableBlendMode def ofEnablePointSprites(): - return _openframeworks.ofEnablePointSprites() + return _openframeworks.ofEnablePointSprites() ofEnablePointSprites = _openframeworks.ofEnablePointSprites def ofDisablePointSprites(): - return _openframeworks.ofDisablePointSprites() + return _openframeworks.ofDisablePointSprites() ofDisablePointSprites = _openframeworks.ofDisablePointSprites def ofEnableAlphaBlending(): - return _openframeworks.ofEnableAlphaBlending() + return _openframeworks.ofEnableAlphaBlending() ofEnableAlphaBlending = _openframeworks.ofEnableAlphaBlending def ofDisableAlphaBlending(): - return _openframeworks.ofDisableAlphaBlending() + return _openframeworks.ofDisableAlphaBlending() ofDisableAlphaBlending = _openframeworks.ofDisableAlphaBlending def ofEnableSmoothing(): - return _openframeworks.ofEnableSmoothing() + return _openframeworks.ofEnableSmoothing() ofEnableSmoothing = _openframeworks.ofEnableSmoothing def ofDisableSmoothing(): - return _openframeworks.ofDisableSmoothing() + return _openframeworks.ofDisableSmoothing() ofDisableSmoothing = _openframeworks.ofDisableSmoothing def ofEnableAntiAliasing(): - return _openframeworks.ofEnableAntiAliasing() + return _openframeworks.ofEnableAntiAliasing() ofEnableAntiAliasing = _openframeworks.ofEnableAntiAliasing def ofDisableAntiAliasing(): - return _openframeworks.ofDisableAntiAliasing() + return _openframeworks.ofDisableAntiAliasing() ofDisableAntiAliasing = _openframeworks.ofDisableAntiAliasing def ofGetStyle(): - return _openframeworks.ofGetStyle() + return _openframeworks.ofGetStyle() ofGetStyle = _openframeworks.ofGetStyle -def ofSetStyle(*args): - return _openframeworks.ofSetStyle(*args) +def ofSetStyle(style): + return _openframeworks.ofSetStyle(style) ofSetStyle = _openframeworks.ofSetStyle def ofPushStyle(): - return _openframeworks.ofPushStyle() + return _openframeworks.ofPushStyle() ofPushStyle = _openframeworks.ofPushStyle def ofPopStyle(): - return _openframeworks.ofPopStyle() + return _openframeworks.ofPopStyle() ofPopStyle = _openframeworks.ofPopStyle -def ofSetPolyMode(*args): - return _openframeworks.ofSetPolyMode(*args) +def ofSetPolyMode(mode): + return _openframeworks.ofSetPolyMode(mode) ofSetPolyMode = _openframeworks.ofSetPolyMode -def ofSetRectMode(*args): - return _openframeworks.ofSetRectMode(*args) +def ofSetRectMode(mode): + return _openframeworks.ofSetRectMode(mode) ofSetRectMode = _openframeworks.ofSetRectMode -def ofGetBackground(): - return _openframeworks.ofGetBackground() -ofGetBackground = _openframeworks.ofGetBackground +def ofPushMatrix(): + return _openframeworks.ofPushMatrix() +ofPushMatrix = _openframeworks.ofPushMatrix -def ofBackground(*args): - return _openframeworks.ofBackground(*args) -ofBackground = _openframeworks.ofBackground +def ofPopMatrix(): + return _openframeworks.ofPopMatrix() +ofPopMatrix = _openframeworks.ofPopMatrix -def ofBackgroundHex(*args): - return _openframeworks.ofBackgroundHex(*args) -ofBackgroundHex = _openframeworks.ofBackgroundHex +def ofGetCurrentMatrix(matrixMode): + return _openframeworks.ofGetCurrentMatrix(matrixMode) +ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix -def ofBackgroundGradient(*args): - return _openframeworks.ofBackgroundGradient(*args) -ofBackgroundGradient = _openframeworks.ofBackgroundGradient +def ofGetCurrentOrientationMatrix(): + return _openframeworks.ofGetCurrentOrientationMatrix() +ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix -def ofSetBackgroundColor(*args): - return _openframeworks.ofSetBackgroundColor(*args) -ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor +def ofGetCurrentNormalMatrix(): + return _openframeworks.ofGetCurrentNormalMatrix() +ofGetCurrentNormalMatrix = _openframeworks.ofGetCurrentNormalMatrix -def ofSetBackgroundColorHex(*args): - return _openframeworks.ofSetBackgroundColorHex(*args) -ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex +def ofTranslate(*args): + return _openframeworks.ofTranslate(*args) +ofTranslate = _openframeworks.ofTranslate -def ofSetBackgroundAuto(*args): - return _openframeworks.ofSetBackgroundAuto(*args) -ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto +def ofScale(*args): + return _openframeworks.ofScale(*args) +ofScale = _openframeworks.ofScale -def ofClear(*args): - return _openframeworks.ofClear(*args) -ofClear = _openframeworks.ofClear +def ofRotate(*args): + return _openframeworks.ofRotate(*args) +ofRotate = _openframeworks.ofRotate -def ofClearAlpha(): - return _openframeworks.ofClearAlpha() -ofClearAlpha = _openframeworks.ofClearAlpha +def ofRotateX(degrees): + return _openframeworks.ofRotateX(degrees) +ofRotateX = _openframeworks.ofRotateX -def ofTriangle(*args): - return _openframeworks.ofTriangle(*args) -ofTriangle = _openframeworks.ofTriangle +def ofRotateY(degrees): + return _openframeworks.ofRotateY(degrees) +ofRotateY = _openframeworks.ofRotateY -def ofCircle(*args): - return _openframeworks.ofCircle(*args) -ofCircle = _openframeworks.ofCircle +def ofRotateZ(degrees): + return _openframeworks.ofRotateZ(degrees) +ofRotateZ = _openframeworks.ofRotateZ -def ofEllipse(*args): - return _openframeworks.ofEllipse(*args) -ofEllipse = _openframeworks.ofEllipse +def ofLoadIdentityMatrix(): + return _openframeworks.ofLoadIdentityMatrix() +ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix -def ofLine(*args): - return _openframeworks.ofLine(*args) -ofLine = _openframeworks.ofLine +def ofLoadMatrix(*args): + return _openframeworks.ofLoadMatrix(*args) +ofLoadMatrix = _openframeworks.ofLoadMatrix -def ofRect(*args): - return _openframeworks.ofRect(*args) -ofRect = _openframeworks.ofRect +def ofMultMatrix(*args): + return _openframeworks.ofMultMatrix(*args) +ofMultMatrix = _openframeworks.ofMultMatrix -def ofRectRounded(*args): - return _openframeworks.ofRectRounded(*args) -ofRectRounded = _openframeworks.ofRectRounded +def ofSetMatrixMode(matrixMode): + return _openframeworks.ofSetMatrixMode(matrixMode) +ofSetMatrixMode = _openframeworks.ofSetMatrixMode -def ofCurve(*args): - return _openframeworks.ofCurve(*args) -ofCurve = _openframeworks.ofCurve +def ofLoadViewMatrix(m): + return _openframeworks.ofLoadViewMatrix(m) +ofLoadViewMatrix = _openframeworks.ofLoadViewMatrix -def ofBezier(*args): - return _openframeworks.ofBezier(*args) -ofBezier = _openframeworks.ofBezier +def ofMultViewMatrix(m): + return _openframeworks.ofMultViewMatrix(m) +ofMultViewMatrix = _openframeworks.ofMultViewMatrix -def ofBeginShape(): - return _openframeworks.ofBeginShape() -ofBeginShape = _openframeworks.ofBeginShape +def ofGetCurrentViewMatrix(): + return _openframeworks.ofGetCurrentViewMatrix() +ofGetCurrentViewMatrix = _openframeworks.ofGetCurrentViewMatrix -def ofVertex(*args): - return _openframeworks.ofVertex(*args) -ofVertex = _openframeworks.ofVertex +def ofPushView(): + return _openframeworks.ofPushView() +ofPushView = _openframeworks.ofPushView -def ofVertices(*args): - return _openframeworks.ofVertices(*args) -ofVertices = _openframeworks.ofVertices +def ofPopView(): + return _openframeworks.ofPopView() +ofPopView = _openframeworks.ofPopView -def ofCurveVertex(*args): - return _openframeworks.ofCurveVertex(*args) -ofCurveVertex = _openframeworks.ofCurveVertex +def ofViewport(*args): + return _openframeworks.ofViewport(*args) +ofViewport = _openframeworks.ofViewport -def ofCurveVertices(*args): - return _openframeworks.ofCurveVertices(*args) -ofCurveVertices = _openframeworks.ofCurveVertices +def ofGetCurrentViewport(): + return _openframeworks.ofGetCurrentViewport() +ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport -def ofBezierVertex(*args): - return _openframeworks.ofBezierVertex(*args) -ofBezierVertex = _openframeworks.ofBezierVertex +def ofGetNativeViewport(): + return _openframeworks.ofGetNativeViewport() +ofGetNativeViewport = _openframeworks.ofGetNativeViewport -def ofEndShape(bClose=False): - return _openframeworks.ofEndShape(bClose) -ofEndShape = _openframeworks.ofEndShape +def ofGetViewportWidth(): + return _openframeworks.ofGetViewportWidth() +ofGetViewportWidth = _openframeworks.ofGetViewportWidth -def ofNextContour(bClose=False): - return _openframeworks.ofNextContour(bClose) -ofNextContour = _openframeworks.ofNextContour +def ofGetViewportHeight(): + return _openframeworks.ofGetViewportHeight() +ofGetViewportHeight = _openframeworks.ofGetViewportHeight -def ofSetDrawBitmapMode(*args): - return _openframeworks.ofSetDrawBitmapMode(*args) -ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode +def ofSetupScreenPerspective(width=-1, height=-1, fov=60, nearDist=0, farDist=0): + return _openframeworks.ofSetupScreenPerspective(width, height, fov, nearDist, farDist) +ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective -def ofDrawBitmapString(*args): - return _openframeworks.ofDrawBitmapString(*args) -ofDrawBitmapString = _openframeworks.ofDrawBitmapString +def ofSetupScreenOrtho(width=-1, height=-1, nearDist=-1, farDist=1): + return _openframeworks.ofSetupScreenOrtho(width, height, nearDist, farDist) +ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho -def ofDrawBitmapStringHighlight(*args): - return _openframeworks.ofDrawBitmapStringHighlight(*args) -ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight +def ofOrientationToDegrees(orientation): + return _openframeworks.ofOrientationToDegrees(orientation) +ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees + +def ofSetCoordHandedness(handedness): + return _openframeworks.ofSetCoordHandedness(handedness) +ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness + +def ofGetCoordHandedness(): + return _openframeworks.ofGetCoordHandedness() +ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness + +def ofBeginSaveScreenAsPDF(*args): + return _openframeworks.ofBeginSaveScreenAsPDF(*args) +ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF + +def ofEndSaveScreenAsPDF(): + return _openframeworks.ofEndSaveScreenAsPDF() +ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF + +def ofBeginSaveScreenAsSVG(*args): + return _openframeworks.ofBeginSaveScreenAsSVG(*args) +ofBeginSaveScreenAsSVG = _openframeworks.ofBeginSaveScreenAsSVG -def ofSetPlaneResolution(*args): - return _openframeworks.ofSetPlaneResolution(*args) +def ofEndSaveScreenAsSVG(): + return _openframeworks.ofEndSaveScreenAsSVG() +ofEndSaveScreenAsSVG = _openframeworks.ofEndSaveScreenAsSVG + +def ofSetPlaneResolution(columns, rows): + return _openframeworks.ofSetPlaneResolution(columns, rows) ofSetPlaneResolution = _openframeworks.ofSetPlaneResolution def ofGetPlaneResolution(): - return _openframeworks.ofGetPlaneResolution() + return _openframeworks.ofGetPlaneResolution() ofGetPlaneResolution = _openframeworks.ofGetPlaneResolution def ofDrawPlane(*args): - return _openframeworks.ofDrawPlane(*args) + return _openframeworks.ofDrawPlane(*args) ofDrawPlane = _openframeworks.ofDrawPlane -def ofSetSphereResolution(*args): - return _openframeworks.ofSetSphereResolution(*args) +def ofSetSphereResolution(res): + return _openframeworks.ofSetSphereResolution(res) ofSetSphereResolution = _openframeworks.ofSetSphereResolution def ofGetSphereResolution(): - return _openframeworks.ofGetSphereResolution() + return _openframeworks.ofGetSphereResolution() ofGetSphereResolution = _openframeworks.ofGetSphereResolution def ofDrawSphere(*args): - return _openframeworks.ofDrawSphere(*args) + return _openframeworks.ofDrawSphere(*args) ofDrawSphere = _openframeworks.ofDrawSphere -def ofSetIcoSphereResolution(*args): - return _openframeworks.ofSetIcoSphereResolution(*args) +def ofSetIcoSphereResolution(res): + return _openframeworks.ofSetIcoSphereResolution(res) ofSetIcoSphereResolution = _openframeworks.ofSetIcoSphereResolution def ofGetIcoSphereResolution(): - return _openframeworks.ofGetIcoSphereResolution() + return _openframeworks.ofGetIcoSphereResolution() ofGetIcoSphereResolution = _openframeworks.ofGetIcoSphereResolution def ofDrawIcoSphere(*args): - return _openframeworks.ofDrawIcoSphere(*args) + return _openframeworks.ofDrawIcoSphere(*args) ofDrawIcoSphere = _openframeworks.ofDrawIcoSphere -def ofSetCylinderResolution(*args): - return _openframeworks.ofSetCylinderResolution(*args) +def ofSetCylinderResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetCylinderResolution(radiusSegments, heightSegments, capSegments) ofSetCylinderResolution = _openframeworks.ofSetCylinderResolution def ofGetCylinderResolution(): - return _openframeworks.ofGetCylinderResolution() + return _openframeworks.ofGetCylinderResolution() ofGetCylinderResolution = _openframeworks.ofGetCylinderResolution def ofDrawCylinder(*args): - return _openframeworks.ofDrawCylinder(*args) + return _openframeworks.ofDrawCylinder(*args) ofDrawCylinder = _openframeworks.ofDrawCylinder -def ofSetConeResolution(*args): - return _openframeworks.ofSetConeResolution(*args) +def ofSetConeResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetConeResolution(radiusSegments, heightSegments, capSegments) ofSetConeResolution = _openframeworks.ofSetConeResolution def ofGetConeResolution(): - return _openframeworks.ofGetConeResolution() + return _openframeworks.ofGetConeResolution() ofGetConeResolution = _openframeworks.ofGetConeResolution def ofDrawCone(*args): - return _openframeworks.ofDrawCone(*args) + return _openframeworks.ofDrawCone(*args) ofDrawCone = _openframeworks.ofDrawCone def ofSetBoxResolution(*args): - return _openframeworks.ofSetBoxResolution(*args) + return _openframeworks.ofSetBoxResolution(*args) ofSetBoxResolution = _openframeworks.ofSetBoxResolution def ofGetBoxResolution(): - return _openframeworks.ofGetBoxResolution() + return _openframeworks.ofGetBoxResolution() ofGetBoxResolution = _openframeworks.ofGetBoxResolution def ofDrawBox(*args): - return _openframeworks.ofDrawBox(*args) + return _openframeworks.ofDrawBox(*args) ofDrawBox = _openframeworks.ofDrawBox +class of3dGraphics(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, of3dGraphics, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, of3dGraphics, name) + __repr__ = _swig_repr + + def __init__(self, renderer): + this = _openframeworks.new_of3dGraphics(renderer) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlaneResolution(self, columns, rows): + return _openframeworks.of3dGraphics_setPlaneResolution(self, columns, rows) + + def getPlaneResolution(self): + return _openframeworks.of3dGraphics_getPlaneResolution(self) + + def drawPlane(self, *args): + return _openframeworks.of3dGraphics_drawPlane(self, *args) + + def setSphereResolution(self, res): + return _openframeworks.of3dGraphics_setSphereResolution(self, res) + + def getSphereResolution(self): + return _openframeworks.of3dGraphics_getSphereResolution(self) + + def drawSphere(self, *args): + return _openframeworks.of3dGraphics_drawSphere(self, *args) + + def setIcoSphereResolution(self, res): + return _openframeworks.of3dGraphics_setIcoSphereResolution(self, res) + + def getIcoSphereResolution(self): + return _openframeworks.of3dGraphics_getIcoSphereResolution(self) + + def drawIcoSphere(self, *args): + return _openframeworks.of3dGraphics_drawIcoSphere(self, *args) + + def setCylinderResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setCylinderResolution(self, radiusSegments, heightSegments, capSegments) + + def getCylinderResolution(self): + return _openframeworks.of3dGraphics_getCylinderResolution(self) + + def drawCylinder(self, *args): + return _openframeworks.of3dGraphics_drawCylinder(self, *args) + + def setConeResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setConeResolution(self, radiusSegments, heightSegments, capSegments) + + def getConeResolution(self): + return _openframeworks.of3dGraphics_getConeResolution(self) + + def drawCone(self, *args): + return _openframeworks.of3dGraphics_drawCone(self, *args) + + def setBoxResolution(self, *args): + return _openframeworks.of3dGraphics_setBoxResolution(self, *args) + + def getBoxResolution(self): + return _openframeworks.of3dGraphics_getBoxResolution(self) + + def drawBox(self, *args): + return _openframeworks.of3dGraphics_drawBox(self, *args) + + def drawAxis(self, size): + return _openframeworks.of3dGraphics_drawAxis(self, size) + + def drawGrid(self, stepSize, numberOfSteps, labels, x, y, z): + return _openframeworks.of3dGraphics_drawGrid(self, stepSize, numberOfSteps, labels, x, y, z) + + def drawGridPlane(self, stepSize, numberOfSteps, labels): + return _openframeworks.of3dGraphics_drawGridPlane(self, stepSize, numberOfSteps, labels) + + def drawArrow(self, start, end, headSize): + return _openframeworks.of3dGraphics_drawArrow(self, start, end, headSize) + + def drawRotationAxes(self, radius, stripWidth, circleRes): + return _openframeworks.of3dGraphics_drawRotationAxes(self, radius, stripWidth, circleRes) + __swig_destroy__ = _openframeworks.delete_of3dGraphics + __del__ = lambda self: None +of3dGraphics_swigregister = _openframeworks.of3dGraphics_swigregister +of3dGraphics_swigregister(of3dGraphics) + class ofTrueTypeFont(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofTrueTypeFont, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTrueTypeFont, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTrueTypeFont() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofTrueTypeFont - __del__ = lambda self : None; + __del__ = lambda self: None __swig_getmethods__["setGlobalDpi"] = lambda x: _openframeworks.ofTrueTypeFont_setGlobalDpi - if _newclass:setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) - def loadFont(self, *args): return _openframeworks.ofTrueTypeFont_loadFont(self, *args) - def isLoaded(self): return _openframeworks.ofTrueTypeFont_isLoaded(self) - def isAntiAliased(self): return _openframeworks.ofTrueTypeFont_isAntiAliased(self) - def hasFullCharacterSet(self): return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) - def getSize(self): return _openframeworks.ofTrueTypeFont_getSize(self) - def getLineHeight(self): return _openframeworks.ofTrueTypeFont_getLineHeight(self) - def setLineHeight(self, *args): return _openframeworks.ofTrueTypeFont_setLineHeight(self, *args) - def getLetterSpacing(self): return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) - def setLetterSpacing(self, *args): return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, *args) - def getSpaceSize(self): return _openframeworks.ofTrueTypeFont_getSpaceSize(self) - def setSpaceSize(self, *args): return _openframeworks.ofTrueTypeFont_setSpaceSize(self, *args) - def stringWidth(self, *args): return _openframeworks.ofTrueTypeFont_stringWidth(self, *args) - def stringHeight(self, *args): return _openframeworks.ofTrueTypeFont_stringHeight(self, *args) - def getStringBoundingBox(self, *args): return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, *args) - def drawString(self, *args): return _openframeworks.ofTrueTypeFont_drawString(self, *args) - def drawStringAsShapes(self, *args): return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, *args) - def getNumCharacters(self): return _openframeworks.ofTrueTypeFont_getNumCharacters(self) - def getCharacterAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) - def getStringAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) - def getStringMesh(self, *args): return _openframeworks.ofTrueTypeFont_getStringMesh(self, *args) - def getFontTexture(self): return _openframeworks.ofTrueTypeFont_getFontTexture(self) - def bind(self): return _openframeworks.ofTrueTypeFont_bind(self) - def unbind(self): return _openframeworks.ofTrueTypeFont_unbind(self) - def getEncoding(self): return _openframeworks.ofTrueTypeFont_getEncoding(self) - def setEncoding(self, *args): return _openframeworks.ofTrueTypeFont_setEncoding(self, *args) + if _newclass: + setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) + + def loadFont(self, filename, fontsize, _bAntiAliased=True, _bFullCharacterSet=False, makeContours=False, simplifyAmt=0.3, dpi=0): + return _openframeworks.ofTrueTypeFont_loadFont(self, filename, fontsize, _bAntiAliased, _bFullCharacterSet, makeContours, simplifyAmt, dpi) + + def isLoaded(self): + return _openframeworks.ofTrueTypeFont_isLoaded(self) + + def isAntiAliased(self): + return _openframeworks.ofTrueTypeFont_isAntiAliased(self) + + def hasFullCharacterSet(self): + return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) + + def getSize(self): + return _openframeworks.ofTrueTypeFont_getSize(self) + + def getLineHeight(self): + return _openframeworks.ofTrueTypeFont_getLineHeight(self) + + def setLineHeight(self, height): + return _openframeworks.ofTrueTypeFont_setLineHeight(self, height) + + def getLetterSpacing(self): + return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) + + def setLetterSpacing(self, spacing): + return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, spacing) + + def getSpaceSize(self): + return _openframeworks.ofTrueTypeFont_getSpaceSize(self) + + def setSpaceSize(self, size): + return _openframeworks.ofTrueTypeFont_setSpaceSize(self, size) + + def stringWidth(self, s): + return _openframeworks.ofTrueTypeFont_stringWidth(self, s) + + def stringHeight(self, s): + return _openframeworks.ofTrueTypeFont_stringHeight(self, s) + + def getStringBoundingBox(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, s, x, y) + + def drawString(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawString(self, s, x, y) + + def drawStringAsShapes(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, s, x, y) + + def getNumCharacters(self): + return _openframeworks.ofTrueTypeFont_getNumCharacters(self) + + def getCharacterAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) + + def getStringAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) + + def getStringMesh(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringMesh(self, s, x, y) + + def getFontTexture(self): + return _openframeworks.ofTrueTypeFont_getFontTexture(self) + + def bind(self): + return _openframeworks.ofTrueTypeFont_bind(self) + + def unbind(self): + return _openframeworks.ofTrueTypeFont_unbind(self) + + def getEncoding(self): + return _openframeworks.ofTrueTypeFont_getEncoding(self) + + def setEncoding(self, encoding): + return _openframeworks.ofTrueTypeFont_setEncoding(self, encoding) __swig_setmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_set __swig_getmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_get - if _newclass:lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) + if _newclass: + lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) __swig_setmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_set __swig_getmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_get - if _newclass:letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) + if _newclass: + letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) __swig_setmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_set __swig_getmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_get - if _newclass:spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) + if _newclass: + spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) ofTrueTypeFont_swigregister = _openframeworks.ofTrueTypeFont_swigregister ofTrueTypeFont_swigregister(ofTrueTypeFont) -def ofTrueTypeFont_setGlobalDpi(*args): - return _openframeworks.ofTrueTypeFont_setGlobalDpi(*args) +def ofTrueTypeFont_setGlobalDpi(newDpi): + return _openframeworks.ofTrueTypeFont_setGlobalDpi(newDpi) ofTrueTypeFont_setGlobalDpi = _openframeworks.ofTrueTypeFont_setGlobalDpi class ofMatrix3x3(_object): @@ -4356,53 +8602,97 @@ class ofMatrix3x3(_object): __repr__ = _swig_repr __swig_setmethods__["a"] = _openframeworks.ofMatrix3x3_a_set __swig_getmethods__["a"] = _openframeworks.ofMatrix3x3_a_get - if _newclass:a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) __swig_setmethods__["b"] = _openframeworks.ofMatrix3x3_b_set __swig_getmethods__["b"] = _openframeworks.ofMatrix3x3_b_get - if _newclass:b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) __swig_setmethods__["c"] = _openframeworks.ofMatrix3x3_c_set __swig_getmethods__["c"] = _openframeworks.ofMatrix3x3_c_get - if _newclass:c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) + if _newclass: + c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) __swig_setmethods__["d"] = _openframeworks.ofMatrix3x3_d_set __swig_getmethods__["d"] = _openframeworks.ofMatrix3x3_d_get - if _newclass:d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) + if _newclass: + d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) __swig_setmethods__["e"] = _openframeworks.ofMatrix3x3_e_set __swig_getmethods__["e"] = _openframeworks.ofMatrix3x3_e_get - if _newclass:e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) + if _newclass: + e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) __swig_setmethods__["f"] = _openframeworks.ofMatrix3x3_f_set __swig_getmethods__["f"] = _openframeworks.ofMatrix3x3_f_get - if _newclass:f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) + if _newclass: + f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) __swig_setmethods__["g"] = _openframeworks.ofMatrix3x3_g_set __swig_getmethods__["g"] = _openframeworks.ofMatrix3x3_g_get - if _newclass:g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) __swig_setmethods__["h"] = _openframeworks.ofMatrix3x3_h_set __swig_getmethods__["h"] = _openframeworks.ofMatrix3x3_h_get - if _newclass:h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) + if _newclass: + h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) __swig_setmethods__["i"] = _openframeworks.ofMatrix3x3_i_set __swig_getmethods__["i"] = _openframeworks.ofMatrix3x3_i_get - if _newclass:i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) - def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): + if _newclass: + i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) + + def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): this = _openframeworks.new_ofMatrix3x3(_a, _b, _c, _d, _e, _f, _g, _h, _i) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofMatrix3x3_set(self, *args) - def __getitem__(self, *args): return _openframeworks.ofMatrix3x3___getitem__(self, *args) - def transpose(self, *args): return _openframeworks.ofMatrix3x3_transpose(self, *args) - def determinant(self, *args): return _openframeworks.ofMatrix3x3_determinant(self, *args) - def invert(self): return _openframeworks.ofMatrix3x3_invert(self) - def inverse(self, *args): return _openframeworks.ofMatrix3x3_inverse(self, *args) - def __add__(self, *args): return _openframeworks.ofMatrix3x3___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofMatrix3x3___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofMatrix3x3___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofMatrix3x3___isub__(self, *args) - def entrywiseTimes(self, *args): return _openframeworks.ofMatrix3x3_entrywiseTimes(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix3x3___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix3x3___mul__(self, *args) - def __div__(self, *args): return _openframeworks.ofMatrix3x3___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofMatrix3x3___idiv__(self, *args) - def __str__(self): return _openframeworks.ofMatrix3x3___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i): + return _openframeworks.ofMatrix3x3_set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i) + + def __getitem__(self, index): + return _openframeworks.ofMatrix3x3___getitem__(self, index) + + def transpose(self, *args): + return _openframeworks.ofMatrix3x3_transpose(self, *args) + + def determinant(self, *args): + return _openframeworks.ofMatrix3x3_determinant(self, *args) + + def inverse(self, A): + return _openframeworks.ofMatrix3x3_inverse(self, A) + + def invert(self): + return _openframeworks.ofMatrix3x3_invert(self) + + def entrywiseTimes(self, A): + return _openframeworks.ofMatrix3x3_entrywiseTimes(self, A) + + def __add__(self, B): + return _openframeworks.ofMatrix3x3___add__(self, B) + + def __iadd__(self, B): + return _openframeworks.ofMatrix3x3___iadd__(self, B) + + def __sub__(self, B): + return _openframeworks.ofMatrix3x3___sub__(self, B) + + def __isub__(self, B): + return _openframeworks.ofMatrix3x3___isub__(self, B) + + def __imul__(self, *args): + return _openframeworks.ofMatrix3x3___imul__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofMatrix3x3___mul__(self, *args) + + def __div__(self, scalar): + return _openframeworks.ofMatrix3x3___div__(self, scalar) + + def __idiv__(self, *args): + return _openframeworks.ofMatrix3x3___idiv__(self, *args) + + def __str__(self): + return _openframeworks.ofMatrix3x3___str__(self) __swig_destroy__ = _openframeworks.delete_ofMatrix3x3 - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrix3x3_swigregister = _openframeworks.ofMatrix3x3_swigregister ofMatrix3x3_swigregister(ofMatrix3x3) @@ -4414,143 +8704,262 @@ class ofMatrix4x4(_object): __repr__ = _swig_repr __swig_setmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_set __swig_getmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_get - if _newclass:_mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) - def __init__(self, *args): + if _newclass: + _mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) + + def __init__(self, *args): this = _openframeworks.new_ofMatrix4x4(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMatrix4x4 - __del__ = lambda self : None; - def __call__(self, *args): return _openframeworks.ofMatrix4x4___call__(self, *args) - def getRowAsVec3f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, *args) - def getRowAsVec4f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, *args) - def isValid(self): return _openframeworks.ofMatrix4x4_isValid(self) - def isNaN(self): return _openframeworks.ofMatrix4x4_isNaN(self) - def set(self, *args): return _openframeworks.ofMatrix4x4_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofMatrix4x4_getPtr(self, *args) - def isIdentity(self): return _openframeworks.ofMatrix4x4_isIdentity(self) - def makeIdentityMatrix(self): return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) - def makeScaleMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) - def makeTranslationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) - def makeRotationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) - def makeInvertOf(self, *args): return _openframeworks.ofMatrix4x4_makeInvertOf(self, *args) - def makeOrthoNormalOf(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, *args) - def makeFromMultiplicationOf(self, *args): return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, *args) - def getInverse(self): return _openframeworks.ofMatrix4x4_getInverse(self) - def makeOrthoMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, *args) - def makeOrtho2DMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, *args) - def makeFrustumMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, *args) - def makePerspectiveMatrix(self, *args): return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, *args) - def makeLookAtMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, *args) - def makeLookAtViewMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, *args) - def getOrtho(self, *args): return _openframeworks.ofMatrix4x4_getOrtho(self, *args) - def getFrustum(self, *args): return _openframeworks.ofMatrix4x4_getFrustum(self, *args) - def getPerspective(self, *args): return _openframeworks.ofMatrix4x4_getPerspective(self, *args) - def getLookAt(self, *args): return _openframeworks.ofMatrix4x4_getLookAt(self, *args) - def decompose(self, *args): return _openframeworks.ofMatrix4x4_decompose(self, *args) + __del__ = lambda self: None + + def makeIdentityMatrix(self): + return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) + + def makeScaleMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) + + def makeTranslationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) + + def makeRotationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) + + def makeInvertOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeInvertOf(self, rhs) + + def makeOrthoNormalOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, rhs) + + def makeFromMultiplicationOf(self, arg2, arg3): + return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, arg2, arg3) + + def makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar) + + def makeOrtho2DMatrix(self, left, right, bottom, top): + return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, left, right, bottom, top) + + def makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar) + + def makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar) + + def makeLookAtMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, eye, center, up) + + def makeLookAtViewMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, eye, center, up) __swig_getmethods__["newIdentityMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newIdentityMatrix - if _newclass:newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) + if _newclass: + newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) __swig_getmethods__["newScaleMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newScaleMatrix - if _newclass:newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) + if _newclass: + newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) __swig_getmethods__["newTranslationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newTranslationMatrix - if _newclass:newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) + if _newclass: + newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) __swig_getmethods__["newRotationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newRotationMatrix - if _newclass:newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) - __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf - if _newclass:getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) - __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf - if _newclass:getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) - __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf - if _newclass:getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + if _newclass: + newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) __swig_getmethods__["newOrthoMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrthoMatrix - if _newclass:newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) + if _newclass: + newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) __swig_getmethods__["newOrtho2DMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrtho2DMatrix - if _newclass:newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) + if _newclass: + newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) __swig_getmethods__["newFrustumMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newFrustumMatrix - if _newclass:newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) + if _newclass: + newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) __swig_getmethods__["newPerspectiveMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newPerspectiveMatrix - if _newclass:newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) + if _newclass: + newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) __swig_getmethods__["newLookAtMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newLookAtMatrix - if _newclass:newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) - def setRotate(self, *args): return _openframeworks.ofMatrix4x4_setRotate(self, *args) - def setTranslation(self, *args): return _openframeworks.ofMatrix4x4_setTranslation(self, *args) - def rotateRad(self, *args): return _openframeworks.ofMatrix4x4_rotateRad(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrix4x4_rotate(self, *args) - def translate(self, *args): return _openframeworks.ofMatrix4x4_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrix4x4_scale(self, *args) - def glRotateRad(self, *args): return _openframeworks.ofMatrix4x4_glRotateRad(self, *args) - def glRotate(self, *args): return _openframeworks.ofMatrix4x4_glRotate(self, *args) - def glTranslate(self, *args): return _openframeworks.ofMatrix4x4_glTranslate(self, *args) - def glScale(self, *args): return _openframeworks.ofMatrix4x4_glScale(self, *args) - def getRotate(self): return _openframeworks.ofMatrix4x4_getRotate(self) - def getTranslation(self): return _openframeworks.ofMatrix4x4_getTranslation(self) - def getScale(self): return _openframeworks.ofMatrix4x4_getScale(self) + if _newclass: + newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) + + def __call__(self, *args): + return _openframeworks.ofMatrix4x4___call__(self, *args) + + def getRowAsVec3f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, i) + + def getRowAsVec4f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, i) + + def getPtr(self, *args): + return _openframeworks.ofMatrix4x4_getPtr(self, *args) + + def isValid(self): + return _openframeworks.ofMatrix4x4_isValid(self) + + def isNaN(self): + return _openframeworks.ofMatrix4x4_isNaN(self) + + def isIdentity(self): + return _openframeworks.ofMatrix4x4_isIdentity(self) + + def set(self, *args): + return _openframeworks.ofMatrix4x4_set(self, *args) + + def getInverse(self): + return _openframeworks.ofMatrix4x4_getInverse(self) + + def getOrtho(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getOrtho(self, left, right, bottom, top, zNear, zFar) + + def getFrustum(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getFrustum(self, left, right, bottom, top, zNear, zFar) + + def getPerspective(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_getPerspective(self, fovy, aspectRatio, zNear, zFar) + + def getLookAt(self, eye, center, up, lookDistance=1.0): + return _openframeworks.ofMatrix4x4_getLookAt(self, eye, center, up, lookDistance) + + def decompose(self, translation, rotation, scale, so): + return _openframeworks.ofMatrix4x4_decompose(self, translation, rotation, scale, so) + __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf + if _newclass: + getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) + __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf + if _newclass: + getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) + __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf + if _newclass: + getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + + def postMult(self, *args): + return _openframeworks.ofMatrix4x4_postMult(self, *args) + + def preMult(self, *args): + return _openframeworks.ofMatrix4x4_preMult(self, *args) + + def __imul__(self, other): + return _openframeworks.ofMatrix4x4___imul__(self, other) + + def __mul__(self, *args): + return _openframeworks.ofMatrix4x4___mul__(self, *args) + + def postMultTranslate(self, *args): + return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) + + def postMultRotate(self, *args): + return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) + + def postMultScale(self, *args): + return _openframeworks.ofMatrix4x4_postMultScale(self, *args) + + def preMultScale(self, v): + return _openframeworks.ofMatrix4x4_preMultScale(self, v) + + def preMultTranslate(self, v): + return _openframeworks.ofMatrix4x4_preMultTranslate(self, v) + + def preMultRotate(self, q): + return _openframeworks.ofMatrix4x4_preMultRotate(self, q) + + def setRotate(self, q): + return _openframeworks.ofMatrix4x4_setRotate(self, q) + + def setTranslation(self, *args): + return _openframeworks.ofMatrix4x4_setTranslation(self, *args) + + def rotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_rotateRad(self, angle, x, y, z) + + def rotate(self, *args): + return _openframeworks.ofMatrix4x4_rotate(self, *args) + + def translate(self, *args): + return _openframeworks.ofMatrix4x4_translate(self, *args) + + def scale(self, *args): + return _openframeworks.ofMatrix4x4_scale(self, *args) + + def glRotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_glRotateRad(self, angle, x, y, z) + + def glRotate(self, *args): + return _openframeworks.ofMatrix4x4_glRotate(self, *args) + + def glTranslate(self, *args): + return _openframeworks.ofMatrix4x4_glTranslate(self, *args) + + def glScale(self, *args): + return _openframeworks.ofMatrix4x4_glScale(self, *args) + + def getRotate(self): + return _openframeworks.ofMatrix4x4_getRotate(self) + + def getTranslation(self): + return _openframeworks.ofMatrix4x4_getTranslation(self) + + def getScale(self): + return _openframeworks.ofMatrix4x4_getScale(self) __swig_getmethods__["transform3x3"] = lambda x: _openframeworks.ofMatrix4x4_transform3x3 - if _newclass:transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) - def postMult(self, *args): return _openframeworks.ofMatrix4x4_postMult(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix4x4___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix4x4___mul__(self, *args) - def preMult(self, *args): return _openframeworks.ofMatrix4x4_preMult(self, *args) - def postMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) - def postMultRotate(self, *args): return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) - def postMultScale(self, *args): return _openframeworks.ofMatrix4x4_postMultScale(self, *args) - def preMultScale(self, *args): return _openframeworks.ofMatrix4x4_preMultScale(self, *args) - def preMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_preMultTranslate(self, *args) - def preMultRotate(self, *args): return _openframeworks.ofMatrix4x4_preMultRotate(self, *args) - def __str__(self): return _openframeworks.ofMatrix4x4___str__(self) + if _newclass: + transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) + + def __str__(self): + return _openframeworks.ofMatrix4x4___str__(self) ofMatrix4x4_swigregister = _openframeworks.ofMatrix4x4_swigregister ofMatrix4x4_swigregister(ofMatrix4x4) def ofMatrix4x4_newIdentityMatrix(): - return _openframeworks.ofMatrix4x4_newIdentityMatrix() + return _openframeworks.ofMatrix4x4_newIdentityMatrix() ofMatrix4x4_newIdentityMatrix = _openframeworks.ofMatrix4x4_newIdentityMatrix def ofMatrix4x4_newScaleMatrix(*args): - return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) + return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) ofMatrix4x4_newScaleMatrix = _openframeworks.ofMatrix4x4_newScaleMatrix def ofMatrix4x4_newTranslationMatrix(*args): - return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) + return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) ofMatrix4x4_newTranslationMatrix = _openframeworks.ofMatrix4x4_newTranslationMatrix def ofMatrix4x4_newRotationMatrix(*args): - return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) + return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) ofMatrix4x4_newRotationMatrix = _openframeworks.ofMatrix4x4_newRotationMatrix -def ofMatrix4x4_getInverseOf(*args): - return _openframeworks.ofMatrix4x4_getInverseOf(*args) -ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf - -def ofMatrix4x4_getTransposedOf(*args): - return _openframeworks.ofMatrix4x4_getTransposedOf(*args) -ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf - -def ofMatrix4x4_getOrthoNormalOf(*args): - return _openframeworks.ofMatrix4x4_getOrthoNormalOf(*args) -ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf - -def ofMatrix4x4_newOrthoMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrthoMatrix(*args) +def ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newOrthoMatrix = _openframeworks.ofMatrix4x4_newOrthoMatrix -def ofMatrix4x4_newOrtho2DMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(*args) +def ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top): + return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top) ofMatrix4x4_newOrtho2DMatrix = _openframeworks.ofMatrix4x4_newOrtho2DMatrix -def ofMatrix4x4_newFrustumMatrix(*args): - return _openframeworks.ofMatrix4x4_newFrustumMatrix(*args) +def ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newFrustumMatrix = _openframeworks.ofMatrix4x4_newFrustumMatrix -def ofMatrix4x4_newPerspectiveMatrix(*args): - return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(*args) +def ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar) ofMatrix4x4_newPerspectiveMatrix = _openframeworks.ofMatrix4x4_newPerspectiveMatrix -def ofMatrix4x4_newLookAtMatrix(*args): - return _openframeworks.ofMatrix4x4_newLookAtMatrix(*args) +def ofMatrix4x4_newLookAtMatrix(eye, center, up): + return _openframeworks.ofMatrix4x4_newLookAtMatrix(eye, center, up) ofMatrix4x4_newLookAtMatrix = _openframeworks.ofMatrix4x4_newLookAtMatrix +def ofMatrix4x4_getInverseOf(matrix): + return _openframeworks.ofMatrix4x4_getInverseOf(matrix) +ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf + +def ofMatrix4x4_getTransposedOf(matrix): + return _openframeworks.ofMatrix4x4_getTransposedOf(matrix) +ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf + +def ofMatrix4x4_getOrthoNormalOf(matrix): + return _openframeworks.ofMatrix4x4_getOrthoNormalOf(matrix) +ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf + def ofMatrix4x4_transform3x3(*args): - return _openframeworks.ofMatrix4x4_transform3x3(*args) + return _openframeworks.ofMatrix4x4_transform3x3(*args) ofMatrix4x4_transform3x3 = _openframeworks.ofMatrix4x4_transform3x3 class ofQuaternion(_object): @@ -4561,47 +8970,113 @@ class ofQuaternion(_object): __repr__ = _swig_repr __swig_setmethods__["_v"] = _openframeworks.ofQuaternion__v_set __swig_getmethods__["_v"] = _openframeworks.ofQuaternion__v_get - if _newclass:_v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) - def __init__(self, *args): + if _newclass: + _v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) + + def __init__(self, *args): this = _openframeworks.new_ofQuaternion(*args) - try: self.this.append(this) - except: self.this = this - def __eq__(self, *args): return _openframeworks.ofQuaternion___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofQuaternion___ne__(self, *args) - def __lshift__(self, *args): return _openframeworks.ofQuaternion___lshift__(self, *args) - def __rshift__(self, *args): return _openframeworks.ofQuaternion___rshift__(self, *args) - def asVec4(self): return _openframeworks.ofQuaternion_asVec4(self) - def asVec3(self): return _openframeworks.ofQuaternion_asVec3(self) - def set(self, *args): return _openframeworks.ofQuaternion_set(self, *args) - def get(self, *args): return _openframeworks.ofQuaternion_get(self, *args) - def __getitem__(self, *args): return _openframeworks.ofQuaternion___getitem__(self, *args) - def x(self): return _openframeworks.ofQuaternion_x(self) - def y(self): return _openframeworks.ofQuaternion_y(self) - def z(self): return _openframeworks.ofQuaternion_z(self) - def w(self): return _openframeworks.ofQuaternion_w(self) - def zeroRotation(self): return _openframeworks.ofQuaternion_zeroRotation(self) - def __imul__(self, *args): return _openframeworks.ofQuaternion___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofQuaternion___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofQuaternion___idiv__(self, *args) - def __add__(self, *args): return _openframeworks.ofQuaternion___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofQuaternion___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofQuaternion___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofQuaternion___isub__(self, *args) - def __neg__(self): return _openframeworks.ofQuaternion___neg__(self) - def __mul__(self, *args): return _openframeworks.ofQuaternion___mul__(self, *args) - def length(self): return _openframeworks.ofQuaternion_length(self) - def length2(self): return _openframeworks.ofQuaternion_length2(self) - def conj(self): return _openframeworks.ofQuaternion_conj(self) - def inverse(self): return _openframeworks.ofQuaternion_inverse(self) - def makeRotate(self, *args): return _openframeworks.ofQuaternion_makeRotate(self, *args) - def makeRotate_original(self, *args): return _openframeworks.ofQuaternion_makeRotate_original(self, *args) - def getRotate(self, *args): return _openframeworks.ofQuaternion_getRotate(self, *args) - def getEuler(self): return _openframeworks.ofQuaternion_getEuler(self) - def slerp(self, *args): return _openframeworks.ofQuaternion_slerp(self, *args) - def normalize(self): return _openframeworks.ofQuaternion_normalize(self) - def __str__(self): return _openframeworks.ofQuaternion___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofQuaternion_set(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofQuaternion___getitem__(self, *args) + + def get(self, matrix): + return _openframeworks.ofQuaternion_get(self, matrix) + + def x(self): + return _openframeworks.ofQuaternion_x(self) + + def y(self): + return _openframeworks.ofQuaternion_y(self) + + def z(self): + return _openframeworks.ofQuaternion_z(self) + + def w(self): + return _openframeworks.ofQuaternion_w(self) + + def asVec4(self): + return _openframeworks.ofQuaternion_asVec4(self) + + def asVec3(self): + return _openframeworks.ofQuaternion_asVec3(self) + + def zeroRotation(self): + return _openframeworks.ofQuaternion_zeroRotation(self) + + def length(self): + return _openframeworks.ofQuaternion_length(self) + + def length2(self): + return _openframeworks.ofQuaternion_length2(self) + + def conj(self): + return _openframeworks.ofQuaternion_conj(self) + + def inverse(self): + return _openframeworks.ofQuaternion_inverse(self) + + def makeRotate(self, *args): + return _openframeworks.ofQuaternion_makeRotate(self, *args) + + def makeRotate_original(self, vec1, vec2): + return _openframeworks.ofQuaternion_makeRotate_original(self, vec1, vec2) + + def getRotate(self, *args): + return _openframeworks.ofQuaternion_getRotate(self, *args) + + def getEuler(self): + return _openframeworks.ofQuaternion_getEuler(self) + + def slerp(self, t, arg3, to): + return _openframeworks.ofQuaternion_slerp(self, t, arg3, to) + + def normalize(self): + return _openframeworks.ofQuaternion_normalize(self) + + def __eq__(self, q): + return _openframeworks.ofQuaternion___eq__(self, q) + + def __ne__(self, q): + return _openframeworks.ofQuaternion___ne__(self, q) + + def __mul__(self, *args): + return _openframeworks.ofQuaternion___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofQuaternion___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofQuaternion___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofQuaternion___idiv__(self, *args) + + def __add__(self, rhs): + return _openframeworks.ofQuaternion___add__(self, rhs) + + def __iadd__(self, rhs): + return _openframeworks.ofQuaternion___iadd__(self, rhs) + + def __isub__(self, rhs): + return _openframeworks.ofQuaternion___isub__(self, rhs) + + def __sub__(self, rhs): + return _openframeworks.ofQuaternion___sub__(self, rhs) + + def __neg__(self): + return _openframeworks.ofQuaternion___neg__(self) + + def __str__(self): + return _openframeworks.ofQuaternion___str__(self) __swig_destroy__ = _openframeworks.delete_ofQuaternion - __del__ = lambda self : None; + __del__ = lambda self: None ofQuaternion_swigregister = _openframeworks.ofQuaternion_swigregister ofQuaternion_swigregister(ofQuaternion) @@ -4611,184 +9086,429 @@ class ofVec2f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec2f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec2f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec2f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec2f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec2f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec2f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) - DIM = _openframeworks.ofVec2f_DIM - def __init__(self, *args): + if _newclass: + y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec2f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec2f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec2f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec2f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec2f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec2f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec2f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec2f_isAligned(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec2f_isAlignedRad(self, *args) - def align(self, *args): return _openframeworks.ofVec2f_align(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec2f_alignRad(self, *args) - def __add__(self, *args): return _openframeworks.ofVec2f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec2f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec2f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec2f___isub__(self, *args) - def __neg__(self): return _openframeworks.ofVec2f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec2f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec2f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec2f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec2f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec2f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec2f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec2f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec2f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec2f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec2f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec2f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec2f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec2f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec2f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec2f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec2f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec2f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec2f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec2f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec2f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec2f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec2f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec2f_limit(self, *args) - def getPerpendicular(self): return _openframeworks.ofVec2f_getPerpendicular(self) - def perpendicular(self): return _openframeworks.ofVec2f_perpendicular(self) - def length(self): return _openframeworks.ofVec2f_length(self) - def lengthSquared(self): return _openframeworks.ofVec2f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec2f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec2f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec2f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec2f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec2f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec2f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec2f_limited(self, *args) - def perpendiculared(self): return _openframeworks.ofVec2f_perpendiculared(self) - def interpolated(self, *args): return _openframeworks.ofVec2f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec2f_middled(self, *args) - def mapped(self, *args): return _openframeworks.ofVec2f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec2f_distanceSquared(self, *args) - def rotated(self, *args): return _openframeworks.ofVec2f_rotated(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec2f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec2f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec2f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec2f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec2f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec2f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec2f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec2f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec2f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec2f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec2f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec2f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec2f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec2f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec2f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec2f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec2f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec2f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec2f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec2f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_getMapped(self, origin, vx, vy) + + def map(self, origin, vx, vy): + return _openframeworks.ofVec2f_map(self, origin, vx, vy) + + def distance(self, pnt): + return _openframeworks.ofVec2f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec2f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec2f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec2f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec2f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec2f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec2f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec2f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec2f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec2f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec2f_limit(self, max) + + def length(self): + return _openframeworks.ofVec2f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec2f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec2f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec2f_angleRad(self, vec) + + def getPerpendicular(self): + return _openframeworks.ofVec2f_getPerpendicular(self) + + def perpendicular(self): + return _openframeworks.ofVec2f_perpendicular(self) + + def dot(self, vec): + return _openframeworks.ofVec2f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec2f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec2f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec2f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec2f_limited(self, max) + + def perpendiculared(self): + return _openframeworks.ofVec2f_perpendiculared(self) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec2f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec2f_middled(self, pnt) + + def mapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_mapped(self, origin, vx, vy) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec2f_distanceSquared(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec2f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec2f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec2f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec2f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec2f_one - if _newclass:one = staticmethod(_openframeworks.ofVec2f_one) - def __str__(self): return _openframeworks.ofVec2f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec2f_one) + + def __str__(self): + return _openframeworks.ofVec2f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec2f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec2f_swigregister = _openframeworks.ofVec2f_swigregister ofVec2f_swigregister(ofVec2f) -def ofVec2f_zero(): - return _openframeworks.ofVec2f_zero() -ofVec2f_zero = _openframeworks.ofVec2f_zero +def ofVec2f_zero(): + return _openframeworks.ofVec2f_zero() +ofVec2f_zero = _openframeworks.ofVec2f_zero + +def ofVec2f_one(): + return _openframeworks.ofVec2f_one() +ofVec2f_one = _openframeworks.ofVec2f_one + +class ofVec3f(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) + __repr__ = _swig_repr + DIM = _openframeworks.ofVec3f_DIM + __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set + __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get + if _newclass: + x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) + __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set + __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get + if _newclass: + y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) + __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set + __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get + if _newclass: + z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) + + def __init__(self, *args): + this = _openframeworks.new_ofVec3f(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec3f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec3f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec3f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec3f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec3f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec3f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec3f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec3f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec3f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec3f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec3f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec3f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec3f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec3f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec3f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec3f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec3f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec3f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec3f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec3f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_getMapped(self, origin, vx, vy, vz) + + def map(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_map(self, origin, vx, vy, vz) + + def distance(self, pnt): + return _openframeworks.ofVec3f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec3f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec3f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec3f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec3f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec3f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec3f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec3f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec3f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec3f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec3f_limit(self, max) + + def length(self): + return _openframeworks.ofVec3f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec3f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec3f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec3f_angleRad(self, vec) + + def getPerpendicular(self, vec): + return _openframeworks.ofVec3f_getPerpendicular(self, vec) + + def perpendicular(self, vec): + return _openframeworks.ofVec3f_perpendicular(self, vec) + + def getCrossed(self, vec): + return _openframeworks.ofVec3f_getCrossed(self, vec) + + def cross(self, vec): + return _openframeworks.ofVec3f_cross(self, vec) + + def dot(self, vec): + return _openframeworks.ofVec3f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec3f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec3f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec3f_normalized(self) -def ofVec2f_one(): - return _openframeworks.ofVec2f_one() -ofVec2f_one = _openframeworks.ofVec2f_one + def limited(self, max): + return _openframeworks.ofVec3f_limited(self, max) -class ofVec3f(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) - __repr__ = _swig_repr - __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set - __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) - __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set - __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) - __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set - __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) - DIM = _openframeworks.ofVec3f_DIM - def __init__(self, *args): - this = _openframeworks.new_ofVec3f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec3f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec3f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec3f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec3f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec3f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec3f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec3f_isAligned(self, *args) - def align(self, *args): return _openframeworks.ofVec3f_align(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec3f_isAlignedRad(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec3f_alignRad(self, *args) - def __neg__(self): return _openframeworks.ofVec3f___neg__(self) - def __add__(self, *args): return _openframeworks.ofVec3f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec3f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec3f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec3f___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofVec3f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec3f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec3f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec3f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec3f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec3f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec3f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec3f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec3f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec3f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec3f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec3f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec3f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec3f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec3f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec3f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec3f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec3f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec3f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec3f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec3f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec3f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec3f_limit(self, *args) - def getCrossed(self, *args): return _openframeworks.ofVec3f_getCrossed(self, *args) - def cross(self, *args): return _openframeworks.ofVec3f_cross(self, *args) - def getPerpendicular(self, *args): return _openframeworks.ofVec3f_getPerpendicular(self, *args) - def perpendicular(self, *args): return _openframeworks.ofVec3f_perpendicular(self, *args) - def length(self): return _openframeworks.ofVec3f_length(self) - def lengthSquared(self): return _openframeworks.ofVec3f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec3f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec3f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec3f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec3f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec3f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec3f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec3f_limited(self, *args) - def crossed(self, *args): return _openframeworks.ofVec3f_crossed(self, *args) - def perpendiculared(self, *args): return _openframeworks.ofVec3f_perpendiculared(self, *args) - def mapped(self, *args): return _openframeworks.ofVec3f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec3f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec3f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec3f_middled(self, *args) - def rotated(self, *args): return _openframeworks.ofVec3f_rotated(self, *args) + def crossed(self, vec): + return _openframeworks.ofVec3f_crossed(self, vec) + + def perpendiculared(self, vec): + return _openframeworks.ofVec3f_perpendiculared(self, vec) + + def mapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_mapped(self, origin, vx, vy, vz) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec3f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec3f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec3f_middled(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec3f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec3f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec3f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec3f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec3f_one - if _newclass:one = staticmethod(_openframeworks.ofVec3f_one) - def __str__(self): return _openframeworks.ofVec3f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec3f_one) + + def __str__(self): + return _openframeworks.ofVec3f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec3f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec3f_swigregister = _openframeworks.ofVec3f_swigregister ofVec3f_swigregister(ofVec3f) def ofVec3f_zero(): - return _openframeworks.ofVec3f_zero() + return _openframeworks.ofVec3f_zero() ofVec3f_zero = _openframeworks.ofVec3f_zero def ofVec3f_one(): - return _openframeworks.ofVec3f_one() + return _openframeworks.ofVec3f_one() ofVec3f_one = _openframeworks.ofVec3f_one class ofVec4f(_object): @@ -4797,207 +9517,286 @@ class ofVec4f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec4f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec4f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec4f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec4f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec4f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec4f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) + if _newclass: + y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) __swig_setmethods__["z"] = _openframeworks.ofVec4f_z_set __swig_getmethods__["z"] = _openframeworks.ofVec4f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) + if _newclass: + z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) __swig_setmethods__["w"] = _openframeworks.ofVec4f_w_set __swig_getmethods__["w"] = _openframeworks.ofVec4f_w_get - if _newclass:w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) - DIM = _openframeworks.ofVec4f_DIM - def __init__(self, *args): + if _newclass: + w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec4f(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofVec4f_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofVec4f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec4f___getitem__(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec4f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec4f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec4f_match(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec4f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec4f___isub__(self, *args) - def __add__(self, *args): return _openframeworks.ofVec4f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec4f___iadd__(self, *args) - def __neg__(self): return _openframeworks.ofVec4f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec4f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec4f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec4f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec4f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec4f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec4f_scale(self, *args) - def distance(self, *args): return _openframeworks.ofVec4f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec4f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec4f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec4f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec4f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec4f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec4f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec4f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec4f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec4f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec4f_limit(self, *args) - def length(self): return _openframeworks.ofVec4f_length(self) - def lengthSquared(self): return _openframeworks.ofVec4f_lengthSquared(self) - def dot(self, *args): return _openframeworks.ofVec4f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec4f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec4f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec4f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec4f_limited(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec4f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec4f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec4f_middled(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec4f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec4f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec4f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec4f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec4f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec4f_match(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec4f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec4f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec4f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec4f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec4f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec4f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec4f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec4f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec4f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec4f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec4f_scale(self, length) + + def distance(self, pnt): + return _openframeworks.ofVec4f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec4f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec4f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec4f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec4f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec4f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec4f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec4f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec4f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec4f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec4f_limit(self, max) + + def length(self): + return _openframeworks.ofVec4f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec4f_lengthSquared(self) + + def dot(self, vec): + return _openframeworks.ofVec4f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec4f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec4f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec4f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec4f_limited(self, max) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec4f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec4f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec4f_middled(self, pnt) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec4f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec4f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec4f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec4f_one - if _newclass:one = staticmethod(_openframeworks.ofVec4f_one) - def __str__(self): return _openframeworks.ofVec4f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec4f_one) + + def __str__(self): + return _openframeworks.ofVec4f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec4f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec4f_swigregister = _openframeworks.ofVec4f_swigregister ofVec4f_swigregister(ofVec4f) def ofVec4f_zero(): - return _openframeworks.ofVec4f_zero() + return _openframeworks.ofVec4f_zero() ofVec4f_zero = _openframeworks.ofVec4f_zero def ofVec4f_one(): - return _openframeworks.ofVec4f_one() + return _openframeworks.ofVec4f_one() ofVec4f_one = _openframeworks.ofVec4f_one -def ofNextPow2(*args): - return _openframeworks.ofNextPow2(*args) -ofNextPow2 = _openframeworks.ofNextPow2 - -def ofSeedRandom(*args): - return _openframeworks.ofSeedRandom(*args) -ofSeedRandom = _openframeworks.ofSeedRandom - def ofRandom(*args): - return _openframeworks.ofRandom(*args) + return _openframeworks.ofRandom(*args) ofRandom = _openframeworks.ofRandom def ofRandomf(): - return _openframeworks.ofRandomf() + return _openframeworks.ofRandomf() ofRandomf = _openframeworks.ofRandomf def ofRandomuf(): - return _openframeworks.ofRandomuf() + return _openframeworks.ofRandomuf() ofRandomuf = _openframeworks.ofRandomuf -def ofNormalize(*args): - return _openframeworks.ofNormalize(*args) +def ofSeedRandom(*args): + return _openframeworks.ofSeedRandom(*args) +ofSeedRandom = _openframeworks.ofSeedRandom + +def ofNormalize(value, min, max): + return _openframeworks.ofNormalize(value, min, max) ofNormalize = _openframeworks.ofNormalize -def ofMap(*args): - return _openframeworks.ofMap(*args) +def ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp=False): + return _openframeworks.ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp) ofMap = _openframeworks.ofMap -def ofClamp(*args): - return _openframeworks.ofClamp(*args) +def ofClamp(value, min, max): + return _openframeworks.ofClamp(value, min, max) ofClamp = _openframeworks.ofClamp -def ofLerp(*args): - return _openframeworks.ofLerp(*args) +def ofInRange(t, min, max): + return _openframeworks.ofInRange(t, min, max) +ofInRange = _openframeworks.ofInRange + +def ofLerp(start, stop, amt): + return _openframeworks.ofLerp(start, stop, amt) ofLerp = _openframeworks.ofLerp def ofDist(*args): - return _openframeworks.ofDist(*args) + return _openframeworks.ofDist(*args) ofDist = _openframeworks.ofDist def ofDistSquared(*args): - return _openframeworks.ofDistSquared(*args) + return _openframeworks.ofDistSquared(*args) ofDistSquared = _openframeworks.ofDistSquared -def ofSign(*args): - return _openframeworks.ofSign(*args) -ofSign = _openframeworks.ofSign - -def ofInRange(*args): - return _openframeworks.ofInRange(*args) -ofInRange = _openframeworks.ofInRange - -def ofRadToDeg(*args): - return _openframeworks.ofRadToDeg(*args) +def ofRadToDeg(radians): + return _openframeworks.ofRadToDeg(radians) ofRadToDeg = _openframeworks.ofRadToDeg -def ofDegToRad(*args): - return _openframeworks.ofDegToRad(*args) +def ofDegToRad(degrees): + return _openframeworks.ofDegToRad(degrees) ofDegToRad = _openframeworks.ofDegToRad -def ofLerpDegrees(*args): - return _openframeworks.ofLerpDegrees(*args) +def ofLerpDegrees(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpDegrees(currentAngle, targetAngle, pct) ofLerpDegrees = _openframeworks.ofLerpDegrees -def ofLerpRadians(*args): - return _openframeworks.ofLerpRadians(*args) +def ofLerpRadians(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpRadians(currentAngle, targetAngle, pct) ofLerpRadians = _openframeworks.ofLerpRadians -def ofAngleDifferenceDegrees(*args): - return _openframeworks.ofAngleDifferenceDegrees(*args) +def ofAngleDifferenceDegrees(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceDegrees(currentAngle, targetAngle) ofAngleDifferenceDegrees = _openframeworks.ofAngleDifferenceDegrees -def ofAngleDifferenceRadians(*args): - return _openframeworks.ofAngleDifferenceRadians(*args) +def ofAngleDifferenceRadians(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceRadians(currentAngle, targetAngle) ofAngleDifferenceRadians = _openframeworks.ofAngleDifferenceRadians -def ofWrap(*args): - return _openframeworks.ofWrap(*args) +def ofWrap(value, arg2, to): + return _openframeworks.ofWrap(value, arg2, to) ofWrap = _openframeworks.ofWrap def ofWrapRadians(*args): - return _openframeworks.ofWrapRadians(*args) + return _openframeworks.ofWrapRadians(*args) ofWrapRadians = _openframeworks.ofWrapRadians -def ofWrapDegrees(*args): - return _openframeworks.ofWrapDegrees(*args) +def ofWrapDegrees(angle, arg2=-180, to=+180): + return _openframeworks.ofWrapDegrees(angle, arg2, to) ofWrapDegrees = _openframeworks.ofWrapDegrees -def ofRandomWidth(): - return _openframeworks.ofRandomWidth() -ofRandomWidth = _openframeworks.ofRandomWidth - -def ofRandomHeight(): - return _openframeworks.ofRandomHeight() -ofRandomHeight = _openframeworks.ofRandomHeight - def ofNoise(*args): - return _openframeworks.ofNoise(*args) + return _openframeworks.ofNoise(*args) ofNoise = _openframeworks.ofNoise def ofSignedNoise(*args): - return _openframeworks.ofSignedNoise(*args) + return _openframeworks.ofSignedNoise(*args) ofSignedNoise = _openframeworks.ofSignedNoise def ofInsidePoly(*args): - return _openframeworks.ofInsidePoly(*args) + return _openframeworks.ofInsidePoly(*args) ofInsidePoly = _openframeworks.ofInsidePoly -def ofLineSegmentIntersection(*args): - return _openframeworks.ofLineSegmentIntersection(*args) +def ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection): + return _openframeworks.ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection) ofLineSegmentIntersection = _openframeworks.ofLineSegmentIntersection -def ofBezierPoint(*args): - return _openframeworks.ofBezierPoint(*args) +def ofBezierPoint(a, b, c, d, t): + return _openframeworks.ofBezierPoint(a, b, c, d, t) ofBezierPoint = _openframeworks.ofBezierPoint -def ofCurvePoint(*args): - return _openframeworks.ofCurvePoint(*args) +def ofCurvePoint(a, b, c, d, t): + return _openframeworks.ofCurvePoint(a, b, c, d, t) ofCurvePoint = _openframeworks.ofCurvePoint -def ofBezierTangent(*args): - return _openframeworks.ofBezierTangent(*args) +def ofBezierTangent(a, b, c, d, t): + return _openframeworks.ofBezierTangent(a, b, c, d, t) ofBezierTangent = _openframeworks.ofBezierTangent -def ofCurveTangent(*args): - return _openframeworks.ofCurveTangent(*args) +def ofCurveTangent(a, b, c, d, t): + return _openframeworks.ofCurveTangent(a, b, c, d, t) ofCurveTangent = _openframeworks.ofCurveTangent + +def ofNextPow2(a): + return _openframeworks.ofNextPow2(a) +ofNextPow2 = _openframeworks.ofNextPow2 + +def ofSign(n): + return _openframeworks.ofSign(n) +ofSign = _openframeworks.ofSign class ofXml(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofXml, name, value) @@ -5005,50 +9804,121 @@ class ofXml(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofXml, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofXml - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofXml(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofXml_load(self, *args) - def save(self, *args): return _openframeworks.ofXml_save(self, *args) - def addChild(self, *args): return _openframeworks.ofXml_addChild(self, *args) - def addXml(self, *args): return _openframeworks.ofXml_addXml(self, *args) - def getValue(self, *args): return _openframeworks.ofXml_getValue(self, *args) - def getIntValue(self, *args): return _openframeworks.ofXml_getIntValue(self, *args) - def getFloatValue(self, *args): return _openframeworks.ofXml_getFloatValue(self, *args) - def getBoolValue(self, *args): return _openframeworks.ofXml_getBoolValue(self, *args) - def setValue(self, *args): return _openframeworks.ofXml_setValue(self, *args) - def getAttribute(self, *args): return _openframeworks.ofXml_getAttribute(self, *args) - def setAttribute(self, *args): return _openframeworks.ofXml_setAttribute(self, *args) - def getAttributes(self): return _openframeworks.ofXml_getAttributes(self) - def getNumChildren(self, *args): return _openframeworks.ofXml_getNumChildren(self, *args) - def removeAttribute(self, *args): return _openframeworks.ofXml_removeAttribute(self, *args) - def removeAttributes(self, *args): return _openframeworks.ofXml_removeAttributes(self, *args) - def removeContents(self, *args): return _openframeworks.ofXml_removeContents(self, *args) - def remove(self, *args): return _openframeworks.ofXml_remove(self, *args) - def exists(self, *args): return _openframeworks.ofXml_exists(self, *args) - def clear(self): return _openframeworks.ofXml_clear(self) - def getName(self): return _openframeworks.ofXml_getName(self) - def reset(self): return _openframeworks.ofXml_reset(self) - def setToChild(self, *args): return _openframeworks.ofXml_setToChild(self, *args) - def setTo(self, *args): return _openframeworks.ofXml_setTo(self, *args) - def setToParent(self, *args): return _openframeworks.ofXml_setToParent(self, *args) - def setToSibling(self): return _openframeworks.ofXml_setToSibling(self) - def setToPrevSibling(self): return _openframeworks.ofXml_setToPrevSibling(self) - def loadFromBuffer(self, *args): return _openframeworks.ofXml_loadFromBuffer(self, *args) - def toString(self): return _openframeworks.ofXml_toString(self) - def serialize(self, *args): return _openframeworks.ofXml_serialize(self, *args) - def deserialize(self, *args): return _openframeworks.ofXml_deserialize(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, path): + return _openframeworks.ofXml_load(self, path) + + def save(self, path): + return _openframeworks.ofXml_save(self, path) + + def addChild(self, path): + return _openframeworks.ofXml_addChild(self, path) + + def addXml(self, xml, copyAll=False): + return _openframeworks.ofXml_addXml(self, xml, copyAll) + + def getValue(self, *args): + return _openframeworks.ofXml_getValue(self, *args) + + def getIntValue(self, *args): + return _openframeworks.ofXml_getIntValue(self, *args) + + def getInt64Value(self, *args): + return _openframeworks.ofXml_getInt64Value(self, *args) + + def getFloatValue(self, *args): + return _openframeworks.ofXml_getFloatValue(self, *args) + + def getBoolValue(self, *args): + return _openframeworks.ofXml_getBoolValue(self, *args) + + def setValue(self, path, value): + return _openframeworks.ofXml_setValue(self, path, value) + + def getAttribute(self, path): + return _openframeworks.ofXml_getAttribute(self, path) + + def setAttribute(self, path, value): + return _openframeworks.ofXml_setAttribute(self, path, value) + + def getAttributes(self): + return _openframeworks.ofXml_getAttributes(self) + + def getNumChildren(self, *args): + return _openframeworks.ofXml_getNumChildren(self, *args) + + def removeAttribute(self, path): + return _openframeworks.ofXml_removeAttribute(self, path) + + def removeAttributes(self, *args): + return _openframeworks.ofXml_removeAttributes(self, *args) + + def removeContents(self, *args): + return _openframeworks.ofXml_removeContents(self, *args) + + def remove(self, *args): + return _openframeworks.ofXml_remove(self, *args) + + def exists(self, path): + return _openframeworks.ofXml_exists(self, path) + + def clear(self): + return _openframeworks.ofXml_clear(self) + + def getName(self): + return _openframeworks.ofXml_getName(self) + + def reset(self): + return _openframeworks.ofXml_reset(self) + + def setToChild(self, index): + return _openframeworks.ofXml_setToChild(self, index) + + def setTo(self, path): + return _openframeworks.ofXml_setTo(self, path) + + def setToParent(self, *args): + return _openframeworks.ofXml_setToParent(self, *args) + + def setToSibling(self): + return _openframeworks.ofXml_setToSibling(self) + + def setToPrevSibling(self): + return _openframeworks.ofXml_setToPrevSibling(self) + + def loadFromBuffer(self, buffer): + return _openframeworks.ofXml_loadFromBuffer(self, buffer) + + def toString(self): + return _openframeworks.ofXml_toString(self) + + def serialize(self, parameter): + return _openframeworks.ofXml_serialize(self, parameter) + + def deserialize(self, parameter): + return _openframeworks.ofXml_deserialize(self, parameter) __swig_getmethods__["tokenize"] = lambda x: _openframeworks.ofXml_tokenize - if _newclass:tokenize = staticmethod(_openframeworks.ofXml_tokenize) - def getPocoElement(self, *args): return _openframeworks.ofXml_getPocoElement(self, *args) - def getPocoDocument(self, *args): return _openframeworks.ofXml_getPocoDocument(self, *args) + if _newclass: + tokenize = staticmethod(_openframeworks.ofXml_tokenize) + + def getPocoElement(self, *args): + return _openframeworks.ofXml_getPocoElement(self, *args) + + def getPocoDocument(self, *args): + return _openframeworks.ofXml_getPocoDocument(self, *args) ofXml_swigregister = _openframeworks.ofXml_swigregister ofXml_swigregister(ofXml) -def ofXml_tokenize(*args): - return _openframeworks.ofXml_tokenize(*args) +def ofXml_tokenize(str, delim): + return _openframeworks.ofXml_tokenize(str, delim) ofXml_tokenize = _openframeworks.ofXml_tokenize class ofMatrixStack(_object): @@ -5057,43 +9927,123 @@ class ofMatrixStack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMatrixStack, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofMatrixStack(*args) - try: self.this.append(this) - except: self.this = this - def setRenderSurface(self, *args): return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) - def setOrientation(self, *args): return _openframeworks.ofMatrixStack_setOrientation(self, *args) - def getOrientation(self): return _openframeworks.ofMatrixStack_getOrientation(self) - def viewport(self, *args): return _openframeworks.ofMatrixStack_viewport(self, *args) - def nativeViewport(self, *args): return _openframeworks.ofMatrixStack_nativeViewport(self, *args) - def getCurrentViewport(self): return _openframeworks.ofMatrixStack_getCurrentViewport(self) - def getNativeViewport(self): return _openframeworks.ofMatrixStack_getNativeViewport(self) - def getProjectionMatrix(self): return _openframeworks.ofMatrixStack_getProjectionMatrix(self) - def getModelViewMatrix(self): return _openframeworks.ofMatrixStack_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self): return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) - def getTextureMatrix(self): return _openframeworks.ofMatrixStack_getTextureMatrix(self) - def getCurrentMatrix(self): return _openframeworks.ofMatrixStack_getCurrentMatrix(self) - def getProjectionMatrixNoOrientation(self): return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) - def getOrientationMatrix(self): return _openframeworks.ofMatrixStack_getOrientationMatrix(self) - def getOrientationMatrixInverse(self): return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) - def getCurrentMatrixMode(self): return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) - def getHandedness(self): return _openframeworks.ofMatrixStack_getHandedness(self) - def isVFlipped(self): return _openframeworks.ofMatrixStack_isVFlipped(self) - def customMatrixNeedsFlip(self): return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) - def pushView(self): return _openframeworks.ofMatrixStack_pushView(self) - def popView(self): return _openframeworks.ofMatrixStack_popView(self) - def pushMatrix(self): return _openframeworks.ofMatrixStack_pushMatrix(self) - def popMatrix(self): return _openframeworks.ofMatrixStack_popMatrix(self) - def translate(self, *args): return _openframeworks.ofMatrixStack_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrixStack_scale(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrixStack_rotate(self, *args) - def matrixMode(self, *args): return _openframeworks.ofMatrixStack_matrixMode(self, *args) - def loadIdentityMatrix(self): return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) - def loadMatrix(self, *args): return _openframeworks.ofMatrixStack_loadMatrix(self, *args) - def multMatrix(self, *args): return _openframeworks.ofMatrixStack_multMatrix(self, *args) - def clearStacks(self): return _openframeworks.ofMatrixStack_clearStacks(self) + + def __init__(self, window): + this = _openframeworks.new_ofMatrixStack(window) + try: + self.this.append(this) + except Exception: + self.this = this + + def setRenderSurface(self, *args): + return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) + + def setOrientation(self, orientation, vFlip): + return _openframeworks.ofMatrixStack_setOrientation(self, orientation, vFlip) + + def getOrientation(self): + return _openframeworks.ofMatrixStack_getOrientation(self) + + def viewport(self, x, y, width, height, vflip): + return _openframeworks.ofMatrixStack_viewport(self, x, y, width, height, vflip) + + def nativeViewport(self, viewport): + return _openframeworks.ofMatrixStack_nativeViewport(self, viewport) + + def getCurrentViewport(self): + return _openframeworks.ofMatrixStack_getCurrentViewport(self) + + def getNativeViewport(self): + return _openframeworks.ofMatrixStack_getNativeViewport(self) + + def getFullSurfaceViewport(self): + return _openframeworks.ofMatrixStack_getFullSurfaceViewport(self) + + def getProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getProjectionMatrix(self) + + def getViewMatrix(self): + return _openframeworks.ofMatrixStack_getViewMatrix(self) + + def getModelViewMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) + + def getTextureMatrix(self): + return _openframeworks.ofMatrixStack_getTextureMatrix(self) + + def getCurrentMatrix(self): + return _openframeworks.ofMatrixStack_getCurrentMatrix(self) + + def getProjectionMatrixNoOrientation(self): + return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) + + def getOrientationMatrix(self): + return _openframeworks.ofMatrixStack_getOrientationMatrix(self) + + def getOrientationMatrixInverse(self): + return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) + + def getCurrentMatrixMode(self): + return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) + + def getHandedness(self): + return _openframeworks.ofMatrixStack_getHandedness(self) + + def isVFlipped(self): + return _openframeworks.ofMatrixStack_isVFlipped(self) + + def customMatrixNeedsFlip(self): + return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) + + def pushView(self): + return _openframeworks.ofMatrixStack_pushView(self) + + def popView(self): + return _openframeworks.ofMatrixStack_popView(self) + + def pushMatrix(self): + return _openframeworks.ofMatrixStack_pushMatrix(self) + + def popMatrix(self): + return _openframeworks.ofMatrixStack_popMatrix(self) + + def translate(self, x, y, z=0): + return _openframeworks.ofMatrixStack_translate(self, x, y, z) + + def scale(self, xAmnt, yAmnt, zAmnt=1): + return _openframeworks.ofMatrixStack_scale(self, xAmnt, yAmnt, zAmnt) + + def rotate(self, degrees, vecX, vecY, vecZ): + return _openframeworks.ofMatrixStack_rotate(self, degrees, vecX, vecY, vecZ) + + def matrixMode(self, mode): + return _openframeworks.ofMatrixStack_matrixMode(self, mode) + + def loadIdentityMatrix(self): + return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) + + def loadMatrix(self, m): + return _openframeworks.ofMatrixStack_loadMatrix(self, m) + + def multMatrix(self, m): + return _openframeworks.ofMatrixStack_multMatrix(self, m) + + def loadViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_loadViewMatrix(self, matrix) + + def multViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_multViewMatrix(self, matrix) + + def clearStacks(self): + return _openframeworks.ofMatrixStack_clearStacks(self) + + def doesHardwareOrientation(self): + return _openframeworks.ofMatrixStack_doesHardwareOrientation(self) __swig_destroy__ = _openframeworks.delete_ofMatrixStack - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrixStack_swigregister = _openframeworks.ofMatrixStack_swigregister ofMatrixStack_swigregister(ofMatrixStack) @@ -5103,42 +10053,105 @@ class ofVideoGrabber(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoGrabber, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoGrabber() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVideoGrabber - __del__ = lambda self : None; - def setGrabber(self, *args): return _openframeworks.ofVideoGrabber_setGrabber(self, *args) - def getGrabber(self): return _openframeworks.ofVideoGrabber_getGrabber(self) - def listDevices(self): return _openframeworks.ofVideoGrabber_listDevices(self) - def isFrameNew(self): return _openframeworks.ofVideoGrabber_isFrameNew(self) - def update(self): return _openframeworks.ofVideoGrabber_update(self) - def close(self): return _openframeworks.ofVideoGrabber_close(self) - def initGrabber(self, *args): return _openframeworks.ofVideoGrabber_initGrabber(self, *args) - def setPixelFormat(self, *args): return _openframeworks.ofVideoGrabber_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoGrabber_getPixelFormat(self) - def videoSettings(self): return _openframeworks.ofVideoGrabber_videoSettings(self) - def getPixels(self): return _openframeworks.ofVideoGrabber_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoGrabber_getPixelsRef(self) - def getTextureReference(self): return _openframeworks.ofVideoGrabber_getTextureReference(self) - def setVerbose(self, *args): return _openframeworks.ofVideoGrabber_setVerbose(self, *args) - def setDeviceID(self, *args): return _openframeworks.ofVideoGrabber_setDeviceID(self, *args) - def setDesiredFrameRate(self, *args): return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoGrabber_setUseTexture(self, *args) - def draw(self, *args): return _openframeworks.ofVideoGrabber_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoGrabber_resetAnchor(self) - def getHeight(self): return _openframeworks.ofVideoGrabber_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoGrabber_getWidth(self) - def isInitialized(self): return _openframeworks.ofVideoGrabber_isInitialized(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoGrabber_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoGrabber_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoGrabber_height_get, _openframeworks.ofVideoGrabber_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoGrabber_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoGrabber_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoGrabber_width_get, _openframeworks.ofVideoGrabber_width_set) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofVideoGrabber_listDevices(self) + + def isFrameNew(self): + return _openframeworks.ofVideoGrabber_isFrameNew(self) + + def update(self): + return _openframeworks.ofVideoGrabber_update(self) + + def close(self): + return _openframeworks.ofVideoGrabber_close(self) + + def setup(self, *args): + return _openframeworks.ofVideoGrabber_setup(self, *args) + + def initGrabber(self, *args): + return _openframeworks.ofVideoGrabber_initGrabber(self, *args) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoGrabber_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoGrabber_getPixelFormat(self) + + def videoSettings(self): + return _openframeworks.ofVideoGrabber_videoSettings(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoGrabber_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoGrabber_getPixelsRef(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofVideoGrabber_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoGrabber_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoGrabber_getTexturePlanes(self, *args) + + def setVerbose(self, bTalkToMe): + return _openframeworks.ofVideoGrabber_setVerbose(self, bTalkToMe) + + def setDeviceID(self, _deviceID): + return _openframeworks.ofVideoGrabber_setDeviceID(self, _deviceID) + + def setDesiredFrameRate(self, framerate): + return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, framerate) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoGrabber_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoGrabber_isUsingTexture(self) + + def draw(self, *args): + return _openframeworks.ofVideoGrabber_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoGrabber_bind(self) + + def unbind(self): + return _openframeworks.ofVideoGrabber_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoGrabber_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoGrabber_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoGrabber_resetAnchor(self) + + def getHeight(self): + return _openframeworks.ofVideoGrabber_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoGrabber_getWidth(self) + + def isInitialized(self): + return _openframeworks.ofVideoGrabber_isInitialized(self) + + def setGrabber(self, newGrabber): + return _openframeworks.ofVideoGrabber_setGrabber(self, newGrabber) + + def getGrabber(self, *args): + return _openframeworks.ofVideoGrabber_getGrabber(self, *args) ofVideoGrabber_swigregister = _openframeworks.ofVideoGrabber_swigregister ofVideoGrabber_swigregister(ofVideoGrabber) @@ -5148,90 +10161,189 @@ class ofVideoPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofVideoPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofVideoPlayer_getPlayer(self) - def loadMovie(self, *args): return _openframeworks.ofVideoPlayer_loadMovie(self, *args) - def getMoviePath(self): return _openframeworks.ofVideoPlayer_getMoviePath(self) - def setPixelFormat(self, *args): return _openframeworks.ofVideoPlayer_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoPlayer_getPixelFormat(self) - def closeMovie(self): return _openframeworks.ofVideoPlayer_closeMovie(self) - def close(self): return _openframeworks.ofVideoPlayer_close(self) - def update(self): return _openframeworks.ofVideoPlayer_update(self) - def play(self): return _openframeworks.ofVideoPlayer_play(self) - def stop(self): return _openframeworks.ofVideoPlayer_stop(self) - def isFrameNew(self): return _openframeworks.ofVideoPlayer_isFrameNew(self) - def getPixels(self): return _openframeworks.ofVideoPlayer_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoPlayer_getPixelsRef(self) - def getPosition(self): return _openframeworks.ofVideoPlayer_getPosition(self) - def getSpeed(self): return _openframeworks.ofVideoPlayer_getSpeed(self) - def getDuration(self): return _openframeworks.ofVideoPlayer_getDuration(self) - def getIsMovieDone(self): return _openframeworks.ofVideoPlayer_getIsMovieDone(self) - def setPosition(self, *args): return _openframeworks.ofVideoPlayer_setPosition(self, *args) - def setVolume(self, *args): return _openframeworks.ofVideoPlayer_setVolume(self, *args) - def setLoopState(self, *args): return _openframeworks.ofVideoPlayer_setLoopState(self, *args) - def getLoopState(self): return _openframeworks.ofVideoPlayer_getLoopState(self) - def setSpeed(self, *args): return _openframeworks.ofVideoPlayer_setSpeed(self, *args) - def setFrame(self, *args): return _openframeworks.ofVideoPlayer_setFrame(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoPlayer_setUseTexture(self, *args) - def getTextureReference(self): return _openframeworks.ofVideoPlayer_getTextureReference(self) - def draw(self, *args): return _openframeworks.ofVideoPlayer_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoPlayer_resetAnchor(self) - def setPaused(self, *args): return _openframeworks.ofVideoPlayer_setPaused(self, *args) - def getCurrentFrame(self): return _openframeworks.ofVideoPlayer_getCurrentFrame(self) - def getTotalNumFrames(self): return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) - def firstFrame(self): return _openframeworks.ofVideoPlayer_firstFrame(self) - def nextFrame(self): return _openframeworks.ofVideoPlayer_nextFrame(self) - def previousFrame(self): return _openframeworks.ofVideoPlayer_previousFrame(self) - def getHeight(self): return _openframeworks.ofVideoPlayer_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoPlayer_getWidth(self) - def isPaused(self): return _openframeworks.ofVideoPlayer_isPaused(self) - def isLoaded(self): return _openframeworks.ofVideoPlayer_isLoaded(self) - def isPlaying(self): return _openframeworks.ofVideoPlayer_isPlaying(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoPlayer_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoPlayer_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoPlayer_height_get, _openframeworks.ofVideoPlayer_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoPlayer_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoPlayer_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoPlayer_width_get, _openframeworks.ofVideoPlayer_width_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, name): + return _openframeworks.ofVideoPlayer_load(self, name) + + def loadAsync(self, name): + return _openframeworks.ofVideoPlayer_loadAsync(self, name) + + def loadMovie(self, name): + return _openframeworks.ofVideoPlayer_loadMovie(self, name) + + def getMoviePath(self): + return _openframeworks.ofVideoPlayer_getMoviePath(self) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoPlayer_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoPlayer_getPixelFormat(self) + + def closeMovie(self): + return _openframeworks.ofVideoPlayer_closeMovie(self) + + def close(self): + return _openframeworks.ofVideoPlayer_close(self) + + def update(self): + return _openframeworks.ofVideoPlayer_update(self) + + def play(self): + return _openframeworks.ofVideoPlayer_play(self) + + def stop(self): + return _openframeworks.ofVideoPlayer_stop(self) + + def isFrameNew(self): + return _openframeworks.ofVideoPlayer_isFrameNew(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoPlayer_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoPlayer_getPixelsRef(self, *args) + + def getPosition(self): + return _openframeworks.ofVideoPlayer_getPosition(self) + + def getSpeed(self): + return _openframeworks.ofVideoPlayer_getSpeed(self) + + def getDuration(self): + return _openframeworks.ofVideoPlayer_getDuration(self) + + def getIsMovieDone(self): + return _openframeworks.ofVideoPlayer_getIsMovieDone(self) + + def setPosition(self, pct): + return _openframeworks.ofVideoPlayer_setPosition(self, pct) + + def setVolume(self, volume): + return _openframeworks.ofVideoPlayer_setVolume(self, volume) + + def setLoopState(self, state): + return _openframeworks.ofVideoPlayer_setLoopState(self, state) + + def getLoopState(self): + return _openframeworks.ofVideoPlayer_getLoopState(self) + + def setSpeed(self, speed): + return _openframeworks.ofVideoPlayer_setSpeed(self, speed) + + def setFrame(self, frame): + return _openframeworks.ofVideoPlayer_setFrame(self, frame) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoPlayer_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoPlayer_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofVideoPlayer_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoPlayer_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoPlayer_getTexturePlanes(self, *args) + + def draw(self, *args): + return _openframeworks.ofVideoPlayer_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoPlayer_bind(self) + + def unbind(self): + return _openframeworks.ofVideoPlayer_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoPlayer_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoPlayer_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoPlayer_resetAnchor(self) + + def setPaused(self, bPause): + return _openframeworks.ofVideoPlayer_setPaused(self, bPause) + + def getCurrentFrame(self): + return _openframeworks.ofVideoPlayer_getCurrentFrame(self) + + def getTotalNumFrames(self): + return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) + + def firstFrame(self): + return _openframeworks.ofVideoPlayer_firstFrame(self) + + def nextFrame(self): + return _openframeworks.ofVideoPlayer_nextFrame(self) + + def previousFrame(self): + return _openframeworks.ofVideoPlayer_previousFrame(self) + + def getHeight(self): + return _openframeworks.ofVideoPlayer_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoPlayer_getWidth(self) + + def isPaused(self): + return _openframeworks.ofVideoPlayer_isPaused(self) + + def isLoaded(self): + return _openframeworks.ofVideoPlayer_isLoaded(self) + + def isPlaying(self): + return _openframeworks.ofVideoPlayer_isPlaying(self) + + def isInitialized(self): + return _openframeworks.ofVideoPlayer_isInitialized(self) + + def setPlayer(self, newPlayer): + return _openframeworks.ofVideoPlayer_setPlayer(self, newPlayer) + + def getPlayer(self, *args): + return _openframeworks.ofVideoPlayer_getPlayer(self, *args) __swig_destroy__ = _openframeworks.delete_ofVideoPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofVideoPlayer_swigregister = _openframeworks.ofVideoPlayer_swigregister ofVideoPlayer_swigregister(ofVideoPlayer) -def ofGetMousePressed(*args): - return _openframeworks.ofGetMousePressed(*args) +def ofGetMousePressed(button=-1): + return _openframeworks.ofGetMousePressed(button) ofGetMousePressed = _openframeworks.ofGetMousePressed -def ofGetKeyPressed(*args): - return _openframeworks.ofGetKeyPressed(*args) +def ofGetKeyPressed(key=-1): + return _openframeworks.ofGetKeyPressed(key) ofGetKeyPressed = _openframeworks.ofGetKeyPressed def ofGetMouseX(): - return _openframeworks.ofGetMouseX() + return _openframeworks.ofGetMouseX() ofGetMouseX = _openframeworks.ofGetMouseX def ofGetMouseY(): - return _openframeworks.ofGetMouseY() + return _openframeworks.ofGetMouseY() ofGetMouseY = _openframeworks.ofGetMouseY def ofGetPreviousMouseX(): - return _openframeworks.ofGetPreviousMouseX() + return _openframeworks.ofGetPreviousMouseX() ofGetPreviousMouseX = _openframeworks.ofGetPreviousMouseX def ofGetPreviousMouseY(): - return _openframeworks.ofGetPreviousMouseY() + return _openframeworks.ofGetPreviousMouseY() ofGetPreviousMouseY = _openframeworks.ofGetPreviousMouseY - -def ofSetEscapeQuitsApp(*args): - return _openframeworks.ofSetEscapeQuitsApp(*args) -ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp class ofDragInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofDragInfo, name, value) @@ -5240,25 +10352,32 @@ class ofDragInfo(_object): __repr__ = _swig_repr __swig_setmethods__["files"] = _openframeworks.ofDragInfo_files_set __swig_getmethods__["files"] = _openframeworks.ofDragInfo_files_get - if _newclass:files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) + if _newclass: + files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) __swig_setmethods__["position"] = _openframeworks.ofDragInfo_position_set __swig_getmethods__["position"] = _openframeworks.ofDragInfo_position_get - if _newclass:position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) - def __init__(self): + if _newclass: + position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) + + def __init__(self): this = _openframeworks.new_ofDragInfo() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofDragInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofDragInfo_swigregister = _openframeworks.ofDragInfo_swigregister ofDragInfo_swigregister(ofDragInfo) class ofTouchEventArgs(ofVec2f): __swig_setmethods__ = {} - for _s in [ofVec2f]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofVec2f]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofTouchEventArgs, name, value) __swig_getmethods__ = {} - for _s in [ofVec2f]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofVec2f]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofTouchEventArgs, name) __repr__ = _swig_repr down = _openframeworks.ofTouchEventArgs_down @@ -5266,61 +10385,80 @@ class ofTouchEventArgs(ofVec2f): move = _openframeworks.ofTouchEventArgs_move doubleTap = _openframeworks.ofTouchEventArgs_doubleTap cancel = _openframeworks.ofTouchEventArgs_cancel + + def __init__(self, *args): + this = _openframeworks.new_ofTouchEventArgs(*args) + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["type"] = _openframeworks.ofTouchEventArgs_type_set __swig_getmethods__["type"] = _openframeworks.ofTouchEventArgs_type_get - if _newclass:type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) + if _newclass: + type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) __swig_setmethods__["id"] = _openframeworks.ofTouchEventArgs_id_set __swig_getmethods__["id"] = _openframeworks.ofTouchEventArgs_id_get - if _newclass:id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) + if _newclass: + id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) __swig_setmethods__["time"] = _openframeworks.ofTouchEventArgs_time_set __swig_getmethods__["time"] = _openframeworks.ofTouchEventArgs_time_get - if _newclass:time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) + if _newclass: + time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) __swig_setmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_set __swig_getmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_get - if _newclass:numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) + if _newclass: + numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) __swig_setmethods__["width"] = _openframeworks.ofTouchEventArgs_width_set __swig_getmethods__["width"] = _openframeworks.ofTouchEventArgs_width_get - if _newclass:width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) __swig_setmethods__["height"] = _openframeworks.ofTouchEventArgs_height_set __swig_getmethods__["height"] = _openframeworks.ofTouchEventArgs_height_get - if _newclass:height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) __swig_setmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_set __swig_getmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_get - if _newclass:angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) + if _newclass: + angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) __swig_setmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_set __swig_getmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_get - if _newclass:minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) + if _newclass: + minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) __swig_setmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_set __swig_getmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_get - if _newclass:majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) + if _newclass: + majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) __swig_setmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_set __swig_getmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_get - if _newclass:pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) + if _newclass: + pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) __swig_setmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_set __swig_getmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_get - if _newclass:xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) + if _newclass: + xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) __swig_setmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_set __swig_getmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_get - if _newclass:yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) + if _newclass: + yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) __swig_setmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_set __swig_getmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_get - if _newclass:xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) + if _newclass: + xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) __swig_setmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_set __swig_getmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_get - if _newclass:yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) - def __init__(self): - this = _openframeworks.new_ofTouchEventArgs() - try: self.this.append(this) - except: self.this = this + if _newclass: + yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) __swig_destroy__ = _openframeworks.delete_ofTouchEventArgs - __del__ = lambda self : None; + __del__ = lambda self: None ofTouchEventArgs_swigregister = _openframeworks.ofTouchEventArgs_swigregister ofTouchEventArgs_swigregister(ofTouchEventArgs) def ofSendMessage(*args): - return _openframeworks.ofSendMessage(*args) + return _openframeworks.ofSendMessage(*args) ofSendMessage = _openframeworks.ofSendMessage + + # handle typedefs which swig doesnt wrap ofPoint = ofVec3f diff --git a/example_Callbacks/bin/data/openframeworks_extra.py b/example_Callbacks/bin/data/openframeworks_extra.py old mode 100644 new mode 100755 index d5dd3b7..fce8e18 --- a/example_Callbacks/bin/data/openframeworks_extra.py +++ b/example_Callbacks/bin/data/openframeworks_extra.py @@ -1,13 +1,15 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 2.0.7 +# Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. + + from sys import version_info -if version_info >= (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -73,9 +96,12 @@ class CallBack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CallBack, name) __repr__ = _swig_repr - def _call(self): return _openframeworks_extra.CallBack__call(self) + + def _call(self): + return _openframeworks_extra.CallBack__call(self) __swig_destroy__ = _openframeworks_extra.delete_CallBack - __del__ = lambda self : None; + __del__ = lambda self: None + def call(self,*args,**kwargs): CallBack._args = args CallBack._kwargs = kwargs @@ -83,16 +109,19 @@ def call(self,*args,**kwargs): CallBack._args = None CallBack._kwargs = None - def __init__(self): + + def __init__(self): this = _openframeworks_extra.new_CallBack() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this CallBack_swigregister = _openframeworks_extra.CallBack_swigregister CallBack_swigregister(CallBack) def _getCallBackPointer(): - return _openframeworks_extra._getCallBackPointer() + return _openframeworks_extra._getCallBackPointer() _getCallBackPointer = _openframeworks_extra._getCallBackPointer # This file is compatible with both classic and new-style classes. diff --git a/example_Callbacks/config.make b/example_Callbacks/config.make old mode 100644 new mode 100755 diff --git a/example_Callbacks/example_Callbacks.sln b/example_Callbacks/example_Callbacks.sln old mode 100644 new mode 100755 diff --git a/example_Callbacks/example_Callbacks.vcxproj b/example_Callbacks/example_Callbacks.vcxproj old mode 100644 new mode 100755 diff --git a/example_Callbacks/example_Callbacks.vcxproj.filters b/example_Callbacks/example_Callbacks.vcxproj.filters old mode 100644 new mode 100755 diff --git a/example_Callbacks/example_Callbacks.vcxproj.user b/example_Callbacks/example_Callbacks.vcxproj.user old mode 100644 new mode 100755 diff --git a/example_Callbacks/example_Callbacks.xcodeproj/project.pbxproj b/example_Callbacks/example_Callbacks.xcodeproj/project.pbxproj index d026376..4a560ea 100755 --- a/example_Callbacks/example_Callbacks.xcodeproj/project.pbxproj +++ b/example_Callbacks/example_Callbacks.xcodeproj/project.pbxproj @@ -1,660 +1,928 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 3F89109986058DB93D8ABF82 /* ofxPython.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */; }; - 7B182901E12EF9C89017E436 /* ofxPythonCallBack.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */; }; - BBAB23CB13894F3D00AA2426 /* GLUT.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = BBAB23BE13894E4700AA2426 /* GLUT.framework */; }; - D7E6C194BDBE6C0950FED198 /* openFrameworks_extra_wrap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */; }; - E4328149138ABC9F0047C5CB /* openFrameworksDebug.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4328148138ABC890047C5CB /* openFrameworksDebug.a */; }; - E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9710E8CC7DD009D7055 /* AGL.framework */; }; - E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */; }; - E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */; }; - E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */; }; - E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */; }; - E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9770E8CC7DD009D7055 /* CoreServices.framework */; }; - E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9790E8CC7DD009D7055 /* OpenGL.framework */; }; - E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */; }; - E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1D0A3A1BDC003C02F2 /* main.cpp */; }; - E4B69E210A3A1BDC003C02F2 /* ofApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */; }; - E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424410CC5A17004149E2 /* AppKit.framework */; }; - E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424510CC5A17004149E2 /* Cocoa.framework */; }; - E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424610CC5A17004149E2 /* IOKit.framework */; }; - E4EB6799138ADC1D00A09F29 /* GLUT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBAB23BE13894E4700AA2426 /* GLUT.framework */; }; - E7E077E515D3B63C0020DFD4 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */; }; - E7E077E815D3B6510020DFD4 /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7E077E715D3B6510020DFD4 /* QTKit.framework */; }; - E7F985F815E0DEA3003869B5 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7F985F515E0DE99003869B5 /* Accelerate.framework */; }; - E8DB35E07D68B21B39114B9E /* openFrameworks_wrap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - E4328147138ABC890047C5CB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = E4B27C1510CBEB8E00536013; - remoteInfo = openFrameworks; - }; - E4EEB9AB138B136A00A80321 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = E4B27C1410CBEB8E00536013; - remoteInfo = openFrameworks; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - E4C2427710CC5ABF004149E2 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - BBAB23CB13894F3D00AA2426 /* GLUT.framework in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPython.cpp; path = ../src/ofxPython.cpp; sourceTree = SOURCE_ROOT; }; - 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_wrap.cpp; path = ../src/bindings/desktop/openFrameworks_wrap.cpp; sourceTree = SOURCE_ROOT; }; - 3CFF297A35409903661F3E82 /* openFrameworks_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_wrap.h; path = ../src/bindings/openFrameworks_wrap.h; sourceTree = SOURCE_ROOT; }; - 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_extra_wrap.cpp; path = ../src/bindings/openFrameworks_extra_wrap.cpp; sourceTree = SOURCE_ROOT; }; - 529DBC40B08D8781B5122672 /* openFrameworks_extra_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_extra_wrap.h; path = ../src/bindings/openFrameworks_extra_wrap.h; sourceTree = SOURCE_ROOT; }; - 652966E41B44E717210D73A9 /* ofxPython.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPython.h; path = ../src/ofxPython.h; sourceTree = SOURCE_ROOT; }; - 97D7D1AA2E988365FDA134F4 /* ofxPythonCallBackBase.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBackBase.h; path = ../src/ofxPythonCallBackBase.h; sourceTree = SOURCE_ROOT; }; - 99EDC8255C1E929CED636861 /* ofxPythonCallBack.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBack.h; path = ../src/ofxPythonCallBack.h; sourceTree = SOURCE_ROOT; }; - BBAB23BE13894E4700AA2426 /* GLUT.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLUT.framework; path = ../../../libs/glut/lib/osx/GLUT.framework; sourceTree = ""; }; - CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPythonCallBack.cpp; path = ../src/ofxPythonCallBack.cpp; sourceTree = SOURCE_ROOT; }; - E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = openFrameworksLib.xcodeproj; path = ../../../libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj; sourceTree = SOURCE_ROOT; }; - E45BE9710E8CC7DD009D7055 /* AGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AGL.framework; path = /System/Library/Frameworks/AGL.framework; sourceTree = ""; }; - E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = ""; }; - E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = ""; }; - E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = ""; }; - E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; - E45BE9770E8CC7DD009D7055 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; - E45BE9790E8CC7DD009D7055 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = ""; }; - E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = ""; }; - E4B69B5B0A3A1756003C02F2 /* example_CallbacksDebug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example_CallbacksDebug.app; sourceTree = BUILT_PRODUCTS_DIR; }; - E4B69E1D0A3A1BDC003C02F2 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = main.cpp; path = src/main.cpp; sourceTree = SOURCE_ROOT; }; - E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofApp.cpp; path = src/ofApp.cpp; sourceTree = SOURCE_ROOT; }; - E4B69E1F0A3A1BDC003C02F2 /* ofApp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ofApp.h; path = src/ofApp.h; sourceTree = SOURCE_ROOT; }; - E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.plist.xml; path = "openFrameworks-Info.plist"; sourceTree = ""; }; - E4C2424410CC5A17004149E2 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; - E4C2424510CC5A17004149E2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; - E4C2424610CC5A17004149E2 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; - E4EB691F138AFCF100A09F29 /* CoreOF.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = CoreOF.xcconfig; path = ../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig; sourceTree = SOURCE_ROOT; }; - E4EB6923138AFD0F00A09F29 /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = ""; }; - E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = /System/Library/Frameworks/CoreVideo.framework; sourceTree = ""; }; - E7E077E715D3B6510020DFD4 /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = ""; }; - E7F985F515E0DE99003869B5 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = /System/Library/Frameworks/Accelerate.framework; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - E4B69B590A3A1756003C02F2 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - E7F985F815E0DEA3003869B5 /* Accelerate.framework in Frameworks */, - E7E077E815D3B6510020DFD4 /* QTKit.framework in Frameworks */, - E4EB6799138ADC1D00A09F29 /* GLUT.framework in Frameworks */, - E4328149138ABC9F0047C5CB /* openFrameworksDebug.a in Frameworks */, - E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */, - E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */, - E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */, - E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */, - E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */, - E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */, - E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */, - E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */, - E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */, - E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */, - E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */, - E7E077E515D3B63C0020DFD4 /* CoreVideo.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 1EE564612E92DE7F272F8865 /* desktop */ = { - isa = PBXGroup; - children = ( - 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */, - ); - name = desktop; - sourceTree = ""; - }; - 31AA9B36154605316B795F10 /* ofxPython */ = { - isa = PBXGroup; - children = ( - FA2C3669CF0E6EF70240EBFF /* src */, - ); - name = ofxPython; - sourceTree = ""; - }; - 337B6DEC118C6F7544300AD1 /* bindings */ = { - isa = PBXGroup; - children = ( - 1EE564612E92DE7F272F8865 /* desktop */, - 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */, - 529DBC40B08D8781B5122672 /* openFrameworks_extra_wrap.h */, - 3CFF297A35409903661F3E82 /* openFrameworks_wrap.h */, - ); - name = bindings; - sourceTree = ""; - }; - BB4B014C10F69532006C3DED /* addons */ = { - isa = PBXGroup; - children = ( - 31AA9B36154605316B795F10 /* ofxPython */, - ); - name = addons; - sourceTree = ""; - }; - BBAB23C913894ECA00AA2426 /* system frameworks */ = { - isa = PBXGroup; - children = ( - E7F985F515E0DE99003869B5 /* Accelerate.framework */, - E4C2424410CC5A17004149E2 /* AppKit.framework */, - E4C2424510CC5A17004149E2 /* Cocoa.framework */, - E4C2424610CC5A17004149E2 /* IOKit.framework */, - E45BE9710E8CC7DD009D7055 /* AGL.framework */, - E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */, - E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */, - E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */, - E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */, - E45BE9770E8CC7DD009D7055 /* CoreServices.framework */, - E45BE9790E8CC7DD009D7055 /* OpenGL.framework */, - E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */, - E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */, - E7E077E715D3B6510020DFD4 /* QTKit.framework */, - ); - name = "system frameworks"; - sourceTree = ""; - }; - BBAB23CA13894EDB00AA2426 /* 3rd party frameworks */ = { - isa = PBXGroup; - children = ( - BBAB23BE13894E4700AA2426 /* GLUT.framework */, - ); - name = "3rd party frameworks"; - sourceTree = ""; - }; - E4328144138ABC890047C5CB /* Products */ = { - isa = PBXGroup; - children = ( - E4328148138ABC890047C5CB /* openFrameworksDebug.a */, - ); - name = Products; - sourceTree = ""; - }; - E45BE5980E8CC70C009D7055 /* frameworks */ = { - isa = PBXGroup; - children = ( - BBAB23CA13894EDB00AA2426 /* 3rd party frameworks */, - BBAB23C913894ECA00AA2426 /* system frameworks */, - ); - name = frameworks; - sourceTree = ""; - }; - E4B69B4A0A3A1720003C02F2 = { - isa = PBXGroup; - children = ( - E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */, - E4EB6923138AFD0F00A09F29 /* Project.xcconfig */, - E4B69E1C0A3A1BDC003C02F2 /* src */, - E4EEC9E9138DF44700A80321 /* openFrameworks */, - BB4B014C10F69532006C3DED /* addons */, - E45BE5980E8CC70C009D7055 /* frameworks */, - E4B69B5B0A3A1756003C02F2 /* example_CallbacksDebug.app */, - ); - sourceTree = ""; - }; - E4B69E1C0A3A1BDC003C02F2 /* src */ = { - isa = PBXGroup; - children = ( - E4B69E1D0A3A1BDC003C02F2 /* main.cpp */, - E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */, - E4B69E1F0A3A1BDC003C02F2 /* ofApp.h */, - ); - path = src; - sourceTree = SOURCE_ROOT; - }; - E4EEC9E9138DF44700A80321 /* openFrameworks */ = { - isa = PBXGroup; - children = ( - E4EB691F138AFCF100A09F29 /* CoreOF.xcconfig */, - E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */, - ); - name = openFrameworks; - sourceTree = ""; - }; - FA2C3669CF0E6EF70240EBFF /* src */ = { - isa = PBXGroup; - children = ( - 337B6DEC118C6F7544300AD1 /* bindings */, - 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */, - 652966E41B44E717210D73A9 /* ofxPython.h */, - CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */, - 99EDC8255C1E929CED636861 /* ofxPythonCallBack.h */, - 97D7D1AA2E988365FDA134F4 /* ofxPythonCallBackBase.h */, - ); - name = src; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - E4B69B5A0A3A1756003C02F2 /* example_Callbacks */ = { - isa = PBXNativeTarget; - buildConfigurationList = E4B69B5F0A3A1757003C02F2 /* Build configuration list for PBXNativeTarget "example_Callbacks" */; - buildPhases = ( - E4B69B580A3A1756003C02F2 /* Sources */, - E4B69B590A3A1756003C02F2 /* Frameworks */, - E4B6FFFD0C3F9AB9008CF71C /* ShellScript */, - E4C2427710CC5ABF004149E2 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - E4EEB9AC138B136A00A80321 /* PBXTargetDependency */, - ); - name = example_Callbacks; - productName = myOFApp; - productReference = E4B69B5B0A3A1756003C02F2 /* example_CallbacksDebug.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - E4B69B4C0A3A1720003C02F2 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0460; - }; - buildConfigurationList = E4B69B4D0A3A1720003C02F2 /* Build configuration list for PBXProject "example_Callbacks" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - English, - Japanese, - French, - German, - ); - mainGroup = E4B69B4A0A3A1720003C02F2; - productRefGroup = E4B69B4A0A3A1720003C02F2; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = E4328144138ABC890047C5CB /* Products */; - ProjectRef = E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - E4B69B5A0A3A1756003C02F2 /* example_Callbacks */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - E4328148138ABC890047C5CB /* openFrameworksDebug.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = openFrameworksDebug.a; - remoteRef = E4328147138ABC890047C5CB /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXShellScriptBuildPhase section */ - E4B6FFFD0C3F9AB9008CF71C /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "cp -f ../../../libs/fmodex/lib/osx/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libfmodex.dylib\"; install_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME\";\nmkdir -p \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\ncp -f \"$ICON_FILE\" \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - E4B69B580A3A1756003C02F2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */, - E4B69E210A3A1BDC003C02F2 /* ofApp.cpp in Sources */, - E8DB35E07D68B21B39114B9E /* openFrameworks_wrap.cpp in Sources */, - D7E6C194BDBE6C0950FED198 /* openFrameworks_extra_wrap.cpp in Sources */, - 3F89109986058DB93D8ABF82 /* ofxPython.cpp in Sources */, - 7B182901E12EF9C89017E436 /* ofxPythonCallBack.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - E4EEB9AC138B136A00A80321 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = openFrameworks; - targetProxy = E4EEB9AB138B136A00A80321 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - E4B69B4E0A3A1720003C02F2 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; - buildSettings = { - ARCHS = "$(NATIVE_ARCH)"; - CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - GCC_AUTO_VECTORIZATION = YES; - GCC_ENABLE_SSE3_EXTENSIONS = YES; - GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES; - GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; - GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; - GCC_WARN_UNINITIALIZED_AUTOS = NO; - GCC_WARN_UNUSED_VALUE = NO; - GCC_WARN_UNUSED_VARIABLE = NO; - HEADER_SEARCH_PATHS = ( - "$(OF_CORE_HEADERS)", - ../../../addons/ofxGestureAgents/libs, - ../../../addons/ofxGestureAgents/src, - ../../../addons/ofxPython/libs, - ../../../addons/ofxPython/src, - ../../../addons/ofxPython/src/bindings, - ../../../addons/ofxPython/src/bindings/desktop, - ../../../addons/ofxPython/src, - ); - MACOSX_DEPLOYMENT_TARGET = 10.6; - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - ); - SDKROOT = macosx; - }; - name = Debug; - }; - E4B69B4F0A3A1720003C02F2 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; - buildSettings = { - ARCHS = "$(NATIVE_ARCH)"; - CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; - COPY_PHASE_STRIP = YES; - DEAD_CODE_STRIPPING = YES; - GCC_AUTO_VECTORIZATION = YES; - GCC_ENABLE_SSE3_EXTENSIONS = YES; - GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_OPTIMIZATION_LEVEL = 3; - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_UNROLL_LOOPS = YES; - GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES; - GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; - GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; - GCC_WARN_UNINITIALIZED_AUTOS = NO; - GCC_WARN_UNUSED_VALUE = NO; - GCC_WARN_UNUSED_VARIABLE = NO; - HEADER_SEARCH_PATHS = ( - "$(OF_CORE_HEADERS)", - ../../../addons/ofxGestureAgents/libs, - ../../../addons/ofxGestureAgents/src, - ../../../addons/ofxPython/libs, - ../../../addons/ofxPython/src, - ../../../addons/ofxPython/src/bindings, - ../../../addons/ofxPython/src/bindings/desktop, - ../../../addons/ofxPython/src, - ); - MACOSX_DEPLOYMENT_TARGET = 10.6; - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - ); - SDKROOT = macosx; - }; - name = Release; - }; - E4B69B600A3A1757003C02F2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - ); - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; - GCC_DYNAMIC_NO_PIC = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_MODEL_TUNING = NONE; - ICON = "$(ICON_NAME_DEBUG)"; - ICON_FILE = "$(ICON_FILE_PATH)$(ICON)"; - INFOPLIST_FILE = "openFrameworks-Info.plist"; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_52)", - ); - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - ); - OTHER_LDFLAGS = ( - "-lpython2.7", - "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", - "$(OF_CORE_LIBS)", - ); - PRODUCT_NAME = example_CallbacksDebug; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - E4B69B610A3A1757003C02F2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - ); - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_MODEL_TUNING = NONE; - ICON = "$(ICON_NAME_RELEASE)"; - ICON_FILE = "$(ICON_FILE_PATH)$(ICON)"; - INFOPLIST_FILE = "openFrameworks-Info.plist"; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)", - ); - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - ); - OTHER_LDFLAGS = ( - "-lpython2.7", - "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", - "$(OF_CORE_LIBS)", - ); - PRODUCT_NAME = example_Callbacks; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - E4B69B4D0A3A1720003C02F2 /* Build configuration list for PBXProject "example_Callbacks" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - E4B69B4E0A3A1720003C02F2 /* Debug */, - E4B69B4F0A3A1720003C02F2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - E4B69B5F0A3A1757003C02F2 /* Build configuration list for PBXNativeTarget "example_Callbacks" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - E4B69B600A3A1757003C02F2 /* Debug */, - E4B69B610A3A1757003C02F2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = E4B69B4C0A3A1720003C02F2 /* Project object */; -} + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 97D7D1AA2E988365FDA134F4 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + ofxPythonCallBackBase.h + path + ../../../addons/ofxPython/src/ofxPythonCallBackBase.h + sourceTree + SOURCE_ROOT + + 99EDC8255C1E929CED636861 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + ofxPythonCallBack.h + path + ../../../addons/ofxPython/src/ofxPythonCallBack.h + sourceTree + SOURCE_ROOT + + 7B182901E12EF9C89017E436 + + fileRef + CD8E6B152563C1EFB697162D + isa + PBXBuildFile + + CD8E6B152563C1EFB697162D + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + ofxPythonCallBack.cpp + path + ../../../addons/ofxPython/src/ofxPythonCallBack.cpp + sourceTree + SOURCE_ROOT + + 652966E41B44E717210D73A9 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + ofxPython.h + path + ../../../addons/ofxPython/src/ofxPython.h + sourceTree + SOURCE_ROOT + + 3F89109986058DB93D8ABF82 + + fileRef + 142D2592CF197A9B6FBA8720 + isa + PBXBuildFile + + 142D2592CF197A9B6FBA8720 + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + ofxPython.cpp + path + ../../../addons/ofxPython/src/ofxPython.cpp + sourceTree + SOURCE_ROOT + + 3CFF297A35409903661F3E82 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_wrap.h + path + ../../../addons/ofxPython/src/bindings/openFrameworks_wrap.h + sourceTree + SOURCE_ROOT + + 529DBC40B08D8781B5122672 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_extra_wrap.h + path + ../../../addons/ofxPython/src/bindings/openFrameworks_extra_wrap.h + sourceTree + SOURCE_ROOT + + D7E6C194BDBE6C0950FED198 + + fileRef + 497FE87A08D2136837EB4A44 + isa + PBXBuildFile + + 497FE87A08D2136837EB4A44 + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_extra_wrap.cpp + path + ../../../addons/ofxPython/src/bindings/openFrameworks_extra_wrap.cpp + sourceTree + SOURCE_ROOT + + 1EE564612E92DE7F272F8865 + + children + + 1CDA3F00A44F5253DAE1870D + + isa + PBXGroup + name + desktop + sourceTree + <group> + + 337B6DEC118C6F7544300AD1 + + children + + 1EE564612E92DE7F272F8865 + 497FE87A08D2136837EB4A44 + 529DBC40B08D8781B5122672 + 3CFF297A35409903661F3E82 + + isa + PBXGroup + name + bindings + sourceTree + <group> + + FA2C3669CF0E6EF70240EBFF + + children + + 337B6DEC118C6F7544300AD1 + 142D2592CF197A9B6FBA8720 + 652966E41B44E717210D73A9 + CD8E6B152563C1EFB697162D + 99EDC8255C1E929CED636861 + 97D7D1AA2E988365FDA134F4 + + isa + PBXGroup + name + src + sourceTree + <group> + + 31AA9B36154605316B795F10 + + children + + FA2C3669CF0E6EF70240EBFF + + isa + PBXGroup + name + ofxPython + sourceTree + <group> + + E8DB35E07D68B21B39114B9E + + fileRef + 1CDA3F00A44F5253DAE1870D + isa + PBXBuildFile + + 1CDA3F00A44F5253DAE1870D + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_wrap.cpp + path + ../../../addons/ofxPython/src/bindings/desktop/openFrameworks_wrap.cpp + sourceTree + SOURCE_ROOT + + BB4B014C10F69532006C3DED + + children + + 31AA9B36154605316B795F10 + + isa + PBXGroup + name + addons + sourceTree + <group> + + 6948EE371B920CB800B5AC1A + + children + + isa + PBXGroup + name + local_addons + sourceTree + <group> + + E4328143138ABC890047C5CB + + isa + PBXFileReference + lastKnownFileType + wrapper.pb-project + name + openFrameworksLib.xcodeproj + path + ../../../libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj + sourceTree + SOURCE_ROOT + + E4328144138ABC890047C5CB + + children + + E4328148138ABC890047C5CB + + isa + PBXGroup + name + Products + sourceTree + <group> + + E4328147138ABC890047C5CB + + containerPortal + E4328143138ABC890047C5CB + isa + PBXContainerItemProxy + proxyType + 2 + remoteGlobalIDString + E4B27C1510CBEB8E00536013 + remoteInfo + openFrameworks + + E4328148138ABC890047C5CB + + fileType + archive.ar + isa + PBXReferenceProxy + path + openFrameworksDebug.a + remoteRef + E4328147138ABC890047C5CB + sourceTree + BUILT_PRODUCTS_DIR + + E4328149138ABC9F0047C5CB + + fileRef + E4328148138ABC890047C5CB + isa + PBXBuildFile + + E4B69B4A0A3A1720003C02F2 + + children + + E4B6FCAD0C3E899E008CF71C + E4EB6923138AFD0F00A09F29 + E4B69E1C0A3A1BDC003C02F2 + E4EEC9E9138DF44700A80321 + BB4B014C10F69532006C3DED + 6948EE371B920CB800B5AC1A + E4B69B5B0A3A1756003C02F2 + + isa + PBXGroup + sourceTree + <group> + + E4B69B4C0A3A1720003C02F2 + + attributes + + LastUpgradeCheck + 0600 + + buildConfigurationList + E4B69B4D0A3A1720003C02F2 + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + English + Japanese + French + German + + mainGroup + E4B69B4A0A3A1720003C02F2 + productRefGroup + E4B69B4A0A3A1720003C02F2 + projectDirPath + + projectReferences + + + ProductGroup + E4328144138ABC890047C5CB + ProjectRef + E4328143138ABC890047C5CB + + + projectRoot + + targets + + E4B69B5A0A3A1756003C02F2 + + + E4B69B4D0A3A1720003C02F2 + + buildConfigurations + + E4B69B4E0A3A1720003C02F2 + E4B69B4F0A3A1720003C02F2 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + E4B69B4E0A3A1720003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + CONFIGURATION_BUILD_DIR + $(SRCROOT)/bin/ + COPY_PHASE_STRIP + NO + DEAD_CODE_STRIPPING + YES + GCC_AUTO_VECTORIZATION + YES + GCC_ENABLE_SSE3_EXTENSIONS + YES + GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS + YES + GCC_INLINES_ARE_PRIVATE_EXTERN + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_SYMBOLS_PRIVATE_EXTERN + NO + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS + YES + GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO + NO + GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL + NO + GCC_WARN_UNINITIALIZED_AUTOS + NO + GCC_WARN_UNUSED_VALUE + NO + GCC_WARN_UNUSED_VARIABLE + NO + MACOSX_DEPLOYMENT_TARGET + 10.8 + ONLY_ACTIVE_ARCH + YES + OTHER_CPLUSPLUSFLAGS + + -D__MACOSX_CORE__ + -mtune=native + -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 + + SDKROOT + macosx + + isa + XCBuildConfiguration + name + Debug + + E4B69B4F0A3A1720003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + CONFIGURATION_BUILD_DIR + $(SRCROOT)/bin/ + COPY_PHASE_STRIP + YES + DEAD_CODE_STRIPPING + YES + GCC_AUTO_VECTORIZATION + YES + GCC_ENABLE_SSE3_EXTENSIONS + YES + GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS + YES + GCC_INLINES_ARE_PRIVATE_EXTERN + NO + GCC_OPTIMIZATION_LEVEL + 3 + GCC_SYMBOLS_PRIVATE_EXTERN + NO + GCC_UNROLL_LOOPS + YES + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS + YES + GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO + NO + GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL + NO + GCC_WARN_UNINITIALIZED_AUTOS + NO + GCC_WARN_UNUSED_VALUE + NO + GCC_WARN_UNUSED_VARIABLE + NO + MACOSX_DEPLOYMENT_TARGET + 10.8 + OTHER_CPLUSPLUSFLAGS + + -D__MACOSX_CORE__ + -mtune=native + -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 + + SDKROOT + macosx + + isa + XCBuildConfiguration + name + Release + + E4B69B580A3A1756003C02F2 + + buildActionMask + 2147483647 + files + + E4B69E200A3A1BDC003C02F2 + E4B69E210A3A1BDC003C02F2 + E8DB35E07D68B21B39114B9E + D7E6C194BDBE6C0950FED198 + 3F89109986058DB93D8ABF82 + 7B182901E12EF9C89017E436 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E4B69B590A3A1756003C02F2 + + buildActionMask + 2147483647 + files + + E4328149138ABC9F0047C5CB + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E4B69B5A0A3A1756003C02F2 + + buildConfigurationList + E4B69B5F0A3A1757003C02F2 + buildPhases + + E4B69B580A3A1756003C02F2 + E4B69B590A3A1756003C02F2 + E4B6FFFD0C3F9AB9008CF71C + E4C2427710CC5ABF004149E2 + + buildRules + + dependencies + + E4EEB9AC138B136A00A80321 + + isa + PBXNativeTarget + name + example_Callbacks + productName + myOFApp + productReference + E4B69B5B0A3A1756003C02F2 + productType + com.apple.product-type.application + + E4B69B5B0A3A1756003C02F2 + + explicitFileType + wrapper.application + includeInIndex + 0 + isa + PBXFileReference + path + example_CallbacksDebug.app + sourceTree + BUILT_PRODUCTS_DIR + + E4B69B5F0A3A1757003C02F2 + + buildConfigurations + + E4B69B600A3A1757003C02F2 + E4B69B610A3A1757003C02F2 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + E4B69B600A3A1757003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + COMBINE_HIDPI_IMAGES + YES + COPY_PHASE_STRIP + NO + FRAMEWORK_SEARCH_PATHS + + $(inherited) + $(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1) + + FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 + "$(SRCROOT)/../../../libs/glut/lib/osx" + GCC_DYNAMIC_NO_PIC + NO + GCC_GENERATE_DEBUGGING_SYMBOLS + YES + GCC_MODEL_TUNING + NONE + ICON + $(ICON_NAME_DEBUG) + ICON_FILE + $(ICON_FILE_PATH)$(ICON) + INFOPLIST_FILE + openFrameworks-Info.plist + INSTALL_PATH + $(HOME)/Applications + LIBRARY_SEARCH_PATHS + $(inherited) + PRODUCT_NAME + $(TARGET_NAME)Debug + WRAPPER_EXTENSION + app + + isa + XCBuildConfiguration + name + Debug + + E4B69B610A3A1757003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + COMBINE_HIDPI_IMAGES + YES + COPY_PHASE_STRIP + YES + FRAMEWORK_SEARCH_PATHS + + $(inherited) + $(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1) + + FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 + "$(SRCROOT)/../../../libs/glut/lib/osx" + GCC_GENERATE_DEBUGGING_SYMBOLS + YES + GCC_MODEL_TUNING + NONE + ICON + $(ICON_NAME_RELEASE) + ICON_FILE + $(ICON_FILE_PATH)$(ICON) + INFOPLIST_FILE + openFrameworks-Info.plist + INSTALL_PATH + $(HOME)/Applications + LIBRARY_SEARCH_PATHS + $(inherited) + PRODUCT_NAME + $(TARGET_NAME) + WRAPPER_EXTENSION + app + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + + isa + XCBuildConfiguration + name + Release + + E4B69E1C0A3A1BDC003C02F2 + + children + + E4B69E1D0A3A1BDC003C02F2 + E4B69E1E0A3A1BDC003C02F2 + E4B69E1F0A3A1BDC003C02F2 + + isa + PBXGroup + path + src + sourceTree + SOURCE_ROOT + + E4B69E1D0A3A1BDC003C02F2 + + fileEncoding + 30 + isa + PBXFileReference + lastKnownFileType + sourcecode.cpp.cpp + name + main.cpp + path + src/main.cpp + sourceTree + SOURCE_ROOT + + E4B69E1E0A3A1BDC003C02F2 + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + ofApp.cpp + path + src/ofApp.cpp + sourceTree + SOURCE_ROOT + + E4B69E1F0A3A1BDC003C02F2 + + fileEncoding + 30 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + ofApp.h + path + src/ofApp.h + sourceTree + SOURCE_ROOT + + E4B69E200A3A1BDC003C02F2 + + fileRef + E4B69E1D0A3A1BDC003C02F2 + isa + PBXBuildFile + + E4B69E210A3A1BDC003C02F2 + + fileRef + E4B69E1E0A3A1BDC003C02F2 + isa + PBXBuildFile + + E4B6FCAD0C3E899E008CF71C + + fileEncoding + 30 + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + openFrameworks-Info.plist + sourceTree + <group> + + E4B6FFFD0C3F9AB9008CF71C + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + rsync -aved ../../../libs/fmodex/lib/osx/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/"; install_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME"; +mkdir -p "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/" +rsync -aved "$ICON_FILE" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/" +rsync -aved ../../../libs/glut/lib/osx/GLUT.framework "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/" + + + E4C2427710CC5ABF004149E2 + + buildActionMask + 2147483647 + dstPath + + dstSubfolderSpec + 10 + files + + isa + PBXCopyFilesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E4EB691F138AFCF100A09F29 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + CoreOF.xcconfig + path + ../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig + sourceTree + SOURCE_ROOT + + E4EB6923138AFD0F00A09F29 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Project.xcconfig + sourceTree + <group> + + E4EEB9AB138B136A00A80321 + + containerPortal + E4328143138ABC890047C5CB + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + E4B27C1410CBEB8E00536013 + remoteInfo + openFrameworks + + E4EEB9AC138B136A00A80321 + + isa + PBXTargetDependency + name + openFrameworks + targetProxy + E4EEB9AB138B136A00A80321 + + E4EEC9E9138DF44700A80321 + + children + + E4EB691F138AFCF100A09F29 + E4328143138ABC890047C5CB + + isa + PBXGroup + name + openFrameworks + sourceTree + <group> + + + rootObject + E4B69B4C0A3A1720003C02F2 + + diff --git a/example_Callbacks/example_Callbacks.xcodeproj/xcshareddata/xcschemes/example_Callbacks Debug.xcscheme b/example_Callbacks/example_Callbacks.xcodeproj/xcshareddata/xcschemes/example_Callbacks Debug.xcscheme old mode 100644 new mode 100755 index ff7ee45..dd042d0 --- a/example_Callbacks/example_Callbacks.xcodeproj/xcshareddata/xcschemes/example_Callbacks Debug.xcscheme +++ b/example_Callbacks/example_Callbacks.xcodeproj/xcshareddata/xcschemes/example_Callbacks Debug.xcscheme @@ -1,6 +1,6 @@ - + - + - + - + = (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -72,27 +95,62 @@ class SwigPyIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_SwigPyIterator - __del__ = lambda self : None; - def value(self): return _openframeworks.SwigPyIterator_value(self) - def incr(self, n=1): return _openframeworks.SwigPyIterator_incr(self, n) - def decr(self, n=1): return _openframeworks.SwigPyIterator_decr(self, n) - def distance(self, *args): return _openframeworks.SwigPyIterator_distance(self, *args) - def equal(self, *args): return _openframeworks.SwigPyIterator_equal(self, *args) - def copy(self): return _openframeworks.SwigPyIterator_copy(self) - def next(self): return _openframeworks.SwigPyIterator_next(self) - def __next__(self): return _openframeworks.SwigPyIterator___next__(self) - def previous(self): return _openframeworks.SwigPyIterator_previous(self) - def advance(self, *args): return _openframeworks.SwigPyIterator_advance(self, *args) - def __eq__(self, *args): return _openframeworks.SwigPyIterator___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.SwigPyIterator___ne__(self, *args) - def __iadd__(self, *args): return _openframeworks.SwigPyIterator___iadd__(self, *args) - def __isub__(self, *args): return _openframeworks.SwigPyIterator___isub__(self, *args) - def __add__(self, *args): return _openframeworks.SwigPyIterator___add__(self, *args) - def __sub__(self, *args): return _openframeworks.SwigPyIterator___sub__(self, *args) - def __iter__(self): return self + __del__ = lambda self: None + + def value(self): + return _openframeworks.SwigPyIterator_value(self) + + def incr(self, n=1): + return _openframeworks.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _openframeworks.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _openframeworks.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _openframeworks.SwigPyIterator_equal(self, x) + + def copy(self): + return _openframeworks.SwigPyIterator_copy(self) + + def next(self): + return _openframeworks.SwigPyIterator_next(self) + + def __next__(self): + return _openframeworks.SwigPyIterator___next__(self) + + def previous(self): + return _openframeworks.SwigPyIterator_previous(self) + + def advance(self, n): + return _openframeworks.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _openframeworks.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _openframeworks.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _openframeworks.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _openframeworks.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _openframeworks.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _openframeworks.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self SwigPyIterator_swigregister = _openframeworks.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) @@ -102,44 +160,110 @@ class IntVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.IntVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.IntVector___nonzero__(self) - def __bool__(self): return _openframeworks.IntVector___bool__(self) - def __len__(self): return _openframeworks.IntVector___len__(self) - def pop(self): return _openframeworks.IntVector_pop(self) - def __getslice__(self, *args): return _openframeworks.IntVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.IntVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.IntVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.IntVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.IntVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.IntVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.IntVector_append(self, *args) - def empty(self): return _openframeworks.IntVector_empty(self) - def size(self): return _openframeworks.IntVector_size(self) - def clear(self): return _openframeworks.IntVector_clear(self) - def swap(self, *args): return _openframeworks.IntVector_swap(self, *args) - def get_allocator(self): return _openframeworks.IntVector_get_allocator(self) - def begin(self): return _openframeworks.IntVector_begin(self) - def end(self): return _openframeworks.IntVector_end(self) - def rbegin(self): return _openframeworks.IntVector_rbegin(self) - def rend(self): return _openframeworks.IntVector_rend(self) - def pop_back(self): return _openframeworks.IntVector_pop_back(self) - def erase(self, *args): return _openframeworks.IntVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.IntVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.IntVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.IntVector___bool__(self) + + def __len__(self): + return _openframeworks.IntVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.IntVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.IntVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.IntVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.IntVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.IntVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.IntVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.IntVector_pop(self) + + def append(self, x): + return _openframeworks.IntVector_append(self, x) + + def empty(self): + return _openframeworks.IntVector_empty(self) + + def size(self): + return _openframeworks.IntVector_size(self) + + def swap(self, v): + return _openframeworks.IntVector_swap(self, v) + + def begin(self): + return _openframeworks.IntVector_begin(self) + + def end(self): + return _openframeworks.IntVector_end(self) + + def rbegin(self): + return _openframeworks.IntVector_rbegin(self) + + def rend(self): + return _openframeworks.IntVector_rend(self) + + def clear(self): + return _openframeworks.IntVector_clear(self) + + def get_allocator(self): + return _openframeworks.IntVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.IntVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.IntVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_IntVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.IntVector_push_back(self, *args) - def front(self): return _openframeworks.IntVector_front(self) - def back(self): return _openframeworks.IntVector_back(self) - def assign(self, *args): return _openframeworks.IntVector_assign(self, *args) - def resize(self, *args): return _openframeworks.IntVector_resize(self, *args) - def insert(self, *args): return _openframeworks.IntVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.IntVector_reserve(self, *args) - def capacity(self): return _openframeworks.IntVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.IntVector_push_back(self, x) + + def front(self): + return _openframeworks.IntVector_front(self) + + def back(self): + return _openframeworks.IntVector_back(self) + + def assign(self, n, x): + return _openframeworks.IntVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.IntVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.IntVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.IntVector_reserve(self, n) + + def capacity(self): + return _openframeworks.IntVector_capacity(self) __swig_destroy__ = _openframeworks.delete_IntVector - __del__ = lambda self : None; + __del__ = lambda self: None IntVector_swigregister = _openframeworks.IntVector_swigregister IntVector_swigregister(IntVector) @@ -149,44 +273,110 @@ class FloatVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, FloatVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.FloatVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.FloatVector___nonzero__(self) - def __bool__(self): return _openframeworks.FloatVector___bool__(self) - def __len__(self): return _openframeworks.FloatVector___len__(self) - def pop(self): return _openframeworks.FloatVector_pop(self) - def __getslice__(self, *args): return _openframeworks.FloatVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.FloatVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.FloatVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.FloatVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.FloatVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.FloatVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.FloatVector_append(self, *args) - def empty(self): return _openframeworks.FloatVector_empty(self) - def size(self): return _openframeworks.FloatVector_size(self) - def clear(self): return _openframeworks.FloatVector_clear(self) - def swap(self, *args): return _openframeworks.FloatVector_swap(self, *args) - def get_allocator(self): return _openframeworks.FloatVector_get_allocator(self) - def begin(self): return _openframeworks.FloatVector_begin(self) - def end(self): return _openframeworks.FloatVector_end(self) - def rbegin(self): return _openframeworks.FloatVector_rbegin(self) - def rend(self): return _openframeworks.FloatVector_rend(self) - def pop_back(self): return _openframeworks.FloatVector_pop_back(self) - def erase(self, *args): return _openframeworks.FloatVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.FloatVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.FloatVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.FloatVector___bool__(self) + + def __len__(self): + return _openframeworks.FloatVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.FloatVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.FloatVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.FloatVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.FloatVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.FloatVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.FloatVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.FloatVector_pop(self) + + def append(self, x): + return _openframeworks.FloatVector_append(self, x) + + def empty(self): + return _openframeworks.FloatVector_empty(self) + + def size(self): + return _openframeworks.FloatVector_size(self) + + def swap(self, v): + return _openframeworks.FloatVector_swap(self, v) + + def begin(self): + return _openframeworks.FloatVector_begin(self) + + def end(self): + return _openframeworks.FloatVector_end(self) + + def rbegin(self): + return _openframeworks.FloatVector_rbegin(self) + + def rend(self): + return _openframeworks.FloatVector_rend(self) + + def clear(self): + return _openframeworks.FloatVector_clear(self) + + def get_allocator(self): + return _openframeworks.FloatVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.FloatVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.FloatVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_FloatVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.FloatVector_push_back(self, *args) - def front(self): return _openframeworks.FloatVector_front(self) - def back(self): return _openframeworks.FloatVector_back(self) - def assign(self, *args): return _openframeworks.FloatVector_assign(self, *args) - def resize(self, *args): return _openframeworks.FloatVector_resize(self, *args) - def insert(self, *args): return _openframeworks.FloatVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.FloatVector_reserve(self, *args) - def capacity(self): return _openframeworks.FloatVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.FloatVector_push_back(self, x) + + def front(self): + return _openframeworks.FloatVector_front(self) + + def back(self): + return _openframeworks.FloatVector_back(self) + + def assign(self, n, x): + return _openframeworks.FloatVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.FloatVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.FloatVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.FloatVector_reserve(self, n) + + def capacity(self): + return _openframeworks.FloatVector_capacity(self) __swig_destroy__ = _openframeworks.delete_FloatVector - __del__ = lambda self : None; + __del__ = lambda self: None FloatVector_swigregister = _openframeworks.FloatVector_swigregister FloatVector_swigregister(FloatVector) @@ -196,201 +386,631 @@ class StringVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, StringVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.StringVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.StringVector___nonzero__(self) - def __bool__(self): return _openframeworks.StringVector___bool__(self) - def __len__(self): return _openframeworks.StringVector___len__(self) - def pop(self): return _openframeworks.StringVector_pop(self) - def __getslice__(self, *args): return _openframeworks.StringVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.StringVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.StringVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.StringVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.StringVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.StringVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.StringVector_append(self, *args) - def empty(self): return _openframeworks.StringVector_empty(self) - def size(self): return _openframeworks.StringVector_size(self) - def clear(self): return _openframeworks.StringVector_clear(self) - def swap(self, *args): return _openframeworks.StringVector_swap(self, *args) - def get_allocator(self): return _openframeworks.StringVector_get_allocator(self) - def begin(self): return _openframeworks.StringVector_begin(self) - def end(self): return _openframeworks.StringVector_end(self) - def rbegin(self): return _openframeworks.StringVector_rbegin(self) - def rend(self): return _openframeworks.StringVector_rend(self) - def pop_back(self): return _openframeworks.StringVector_pop_back(self) - def erase(self, *args): return _openframeworks.StringVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.StringVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.StringVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.StringVector___bool__(self) + + def __len__(self): + return _openframeworks.StringVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.StringVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.StringVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.StringVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.StringVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.StringVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.StringVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.StringVector_pop(self) + + def append(self, x): + return _openframeworks.StringVector_append(self, x) + + def empty(self): + return _openframeworks.StringVector_empty(self) + + def size(self): + return _openframeworks.StringVector_size(self) + + def swap(self, v): + return _openframeworks.StringVector_swap(self, v) + + def begin(self): + return _openframeworks.StringVector_begin(self) + + def end(self): + return _openframeworks.StringVector_end(self) + + def rbegin(self): + return _openframeworks.StringVector_rbegin(self) + + def rend(self): + return _openframeworks.StringVector_rend(self) + + def clear(self): + return _openframeworks.StringVector_clear(self) + + def get_allocator(self): + return _openframeworks.StringVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.StringVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.StringVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_StringVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.StringVector_push_back(self, *args) - def front(self): return _openframeworks.StringVector_front(self) - def back(self): return _openframeworks.StringVector_back(self) - def assign(self, *args): return _openframeworks.StringVector_assign(self, *args) - def resize(self, *args): return _openframeworks.StringVector_resize(self, *args) - def insert(self, *args): return _openframeworks.StringVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.StringVector_reserve(self, *args) - def capacity(self): return _openframeworks.StringVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.StringVector_push_back(self, x) + + def front(self): + return _openframeworks.StringVector_front(self) + + def back(self): + return _openframeworks.StringVector_back(self) + + def assign(self, n, x): + return _openframeworks.StringVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.StringVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.StringVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.StringVector_reserve(self, n) + + def capacity(self): + return _openframeworks.StringVector_capacity(self) __swig_destroy__ = _openframeworks.delete_StringVector - __del__ = lambda self : None; + __del__ = lambda self: None StringVector_swigregister = _openframeworks.StringVector_swigregister StringVector_swigregister(StringVector) + +_openframeworks.OF_VERSION_MAJOR_swigconstant(_openframeworks) OF_VERSION_MAJOR = _openframeworks.OF_VERSION_MAJOR + +_openframeworks.OF_VERSION_MINOR_swigconstant(_openframeworks) OF_VERSION_MINOR = _openframeworks.OF_VERSION_MINOR + +_openframeworks.OF_VERSION_PATCH_swigconstant(_openframeworks) OF_VERSION_PATCH = _openframeworks.OF_VERSION_PATCH + +_openframeworks.OF_VERSION_PRE_RELEASE_swigconstant(_openframeworks) +OF_VERSION_PRE_RELEASE = _openframeworks.OF_VERSION_PRE_RELEASE + +_openframeworks.OF_LOOP_NONE_swigconstant(_openframeworks) OF_LOOP_NONE = _openframeworks.OF_LOOP_NONE + +_openframeworks.OF_LOOP_PALINDROME_swigconstant(_openframeworks) OF_LOOP_PALINDROME = _openframeworks.OF_LOOP_PALINDROME + +_openframeworks.OF_LOOP_NORMAL_swigconstant(_openframeworks) OF_LOOP_NORMAL = _openframeworks.OF_LOOP_NORMAL + +_openframeworks.OF_TARGET_OSX_swigconstant(_openframeworks) OF_TARGET_OSX = _openframeworks.OF_TARGET_OSX -OF_TARGET_WINGCC = _openframeworks.OF_TARGET_WINGCC + +_openframeworks.OF_TARGET_MINGW_swigconstant(_openframeworks) +OF_TARGET_MINGW = _openframeworks.OF_TARGET_MINGW + +_openframeworks.OF_TARGET_WINVS_swigconstant(_openframeworks) OF_TARGET_WINVS = _openframeworks.OF_TARGET_WINVS + +_openframeworks.OF_TARGET_IOS_swigconstant(_openframeworks) OF_TARGET_IOS = _openframeworks.OF_TARGET_IOS + +_openframeworks.OF_TARGET_ANDROID_swigconstant(_openframeworks) OF_TARGET_ANDROID = _openframeworks.OF_TARGET_ANDROID + +_openframeworks.OF_TARGET_LINUX_swigconstant(_openframeworks) OF_TARGET_LINUX = _openframeworks.OF_TARGET_LINUX + +_openframeworks.OF_TARGET_LINUX64_swigconstant(_openframeworks) OF_TARGET_LINUX64 = _openframeworks.OF_TARGET_LINUX64 + +_openframeworks.OF_TARGET_LINUXARMV6L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV6L = _openframeworks.OF_TARGET_LINUXARMV6L + +_openframeworks.OF_TARGET_LINUXARMV7L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV7L = _openframeworks.OF_TARGET_LINUXARMV7L + +_openframeworks.OF_TARGET_EMSCRIPTEN_swigconstant(_openframeworks) +OF_TARGET_EMSCRIPTEN = _openframeworks.OF_TARGET_EMSCRIPTEN + +_openframeworks.B14400_swigconstant(_openframeworks) B14400 = _openframeworks.B14400 + +_openframeworks.B28800_swigconstant(_openframeworks) B28800 = _openframeworks.B28800 + +_openframeworks.HAS_TLS_swigconstant(_openframeworks) +HAS_TLS = _openframeworks.HAS_TLS + +_openframeworks.OF_SERIAL_NO_DATA_swigconstant(_openframeworks) OF_SERIAL_NO_DATA = _openframeworks.OF_SERIAL_NO_DATA + +_openframeworks.OF_SERIAL_ERROR_swigconstant(_openframeworks) OF_SERIAL_ERROR = _openframeworks.OF_SERIAL_ERROR + +_openframeworks.PI_swigconstant(_openframeworks) PI = _openframeworks.PI + +_openframeworks.TWO_PI_swigconstant(_openframeworks) TWO_PI = _openframeworks.TWO_PI + +_openframeworks.M_TWO_PI_swigconstant(_openframeworks) M_TWO_PI = _openframeworks.M_TWO_PI + +_openframeworks.FOUR_PI_swigconstant(_openframeworks) FOUR_PI = _openframeworks.FOUR_PI + +_openframeworks.HALF_PI_swigconstant(_openframeworks) HALF_PI = _openframeworks.HALF_PI + +_openframeworks.DEG_TO_RAD_swigconstant(_openframeworks) DEG_TO_RAD = _openframeworks.DEG_TO_RAD + +_openframeworks.RAD_TO_DEG_swigconstant(_openframeworks) RAD_TO_DEG = _openframeworks.RAD_TO_DEG + +_openframeworks.OF_OUTLINE_swigconstant(_openframeworks) OF_OUTLINE = _openframeworks.OF_OUTLINE + +_openframeworks.OF_FILLED_swigconstant(_openframeworks) OF_FILLED = _openframeworks.OF_FILLED + +_openframeworks.OF_WINDOW_swigconstant(_openframeworks) OF_WINDOW = _openframeworks.OF_WINDOW + +_openframeworks.OF_FULLSCREEN_swigconstant(_openframeworks) OF_FULLSCREEN = _openframeworks.OF_FULLSCREEN + +_openframeworks.OF_GAME_MODE_swigconstant(_openframeworks) OF_GAME_MODE = _openframeworks.OF_GAME_MODE + +_openframeworks.OF_ASPECT_RATIO_IGNORE_swigconstant(_openframeworks) OF_ASPECT_RATIO_IGNORE = _openframeworks.OF_ASPECT_RATIO_IGNORE + +_openframeworks.OF_ASPECT_RATIO_KEEP_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP = _openframeworks.OF_ASPECT_RATIO_KEEP + +_openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP_BY_EXPANDING = _openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING + +_openframeworks.OF_ALIGN_VERT_IGNORE_swigconstant(_openframeworks) OF_ALIGN_VERT_IGNORE = _openframeworks.OF_ALIGN_VERT_IGNORE + +_openframeworks.OF_ALIGN_VERT_TOP_swigconstant(_openframeworks) OF_ALIGN_VERT_TOP = _openframeworks.OF_ALIGN_VERT_TOP + +_openframeworks.OF_ALIGN_VERT_BOTTOM_swigconstant(_openframeworks) OF_ALIGN_VERT_BOTTOM = _openframeworks.OF_ALIGN_VERT_BOTTOM + +_openframeworks.OF_ALIGN_VERT_CENTER_swigconstant(_openframeworks) OF_ALIGN_VERT_CENTER = _openframeworks.OF_ALIGN_VERT_CENTER + +_openframeworks.OF_ALIGN_HORZ_IGNORE_swigconstant(_openframeworks) OF_ALIGN_HORZ_IGNORE = _openframeworks.OF_ALIGN_HORZ_IGNORE + +_openframeworks.OF_ALIGN_HORZ_LEFT_swigconstant(_openframeworks) OF_ALIGN_HORZ_LEFT = _openframeworks.OF_ALIGN_HORZ_LEFT + +_openframeworks.OF_ALIGN_HORZ_RIGHT_swigconstant(_openframeworks) OF_ALIGN_HORZ_RIGHT = _openframeworks.OF_ALIGN_HORZ_RIGHT + +_openframeworks.OF_ALIGN_HORZ_CENTER_swigconstant(_openframeworks) OF_ALIGN_HORZ_CENTER = _openframeworks.OF_ALIGN_HORZ_CENTER + +_openframeworks.OF_RECTMODE_CORNER_swigconstant(_openframeworks) OF_RECTMODE_CORNER = _openframeworks.OF_RECTMODE_CORNER + +_openframeworks.OF_RECTMODE_CENTER_swigconstant(_openframeworks) OF_RECTMODE_CENTER = _openframeworks.OF_RECTMODE_CENTER + +_openframeworks.OF_SCALEMODE_FIT_swigconstant(_openframeworks) OF_SCALEMODE_FIT = _openframeworks.OF_SCALEMODE_FIT + +_openframeworks.OF_SCALEMODE_FILL_swigconstant(_openframeworks) OF_SCALEMODE_FILL = _openframeworks.OF_SCALEMODE_FILL + +_openframeworks.OF_SCALEMODE_CENTER_swigconstant(_openframeworks) OF_SCALEMODE_CENTER = _openframeworks.OF_SCALEMODE_CENTER + +_openframeworks.OF_SCALEMODE_STRETCH_TO_FILL_swigconstant(_openframeworks) OF_SCALEMODE_STRETCH_TO_FILL = _openframeworks.OF_SCALEMODE_STRETCH_TO_FILL + +_openframeworks.OF_IMAGE_GRAYSCALE_swigconstant(_openframeworks) OF_IMAGE_GRAYSCALE = _openframeworks.OF_IMAGE_GRAYSCALE + +_openframeworks.OF_IMAGE_COLOR_swigconstant(_openframeworks) OF_IMAGE_COLOR = _openframeworks.OF_IMAGE_COLOR + +_openframeworks.OF_IMAGE_COLOR_ALPHA_swigconstant(_openframeworks) OF_IMAGE_COLOR_ALPHA = _openframeworks.OF_IMAGE_COLOR_ALPHA + +_openframeworks.OF_IMAGE_UNDEFINED_swigconstant(_openframeworks) OF_IMAGE_UNDEFINED = _openframeworks.OF_IMAGE_UNDEFINED -OF_PIXELS_MONO = _openframeworks.OF_PIXELS_MONO -OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB -OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA -OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA -OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 -OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_MAX_STYLE_HISTORY_swigconstant(_openframeworks) OF_MAX_STYLE_HISTORY = _openframeworks.OF_MAX_STYLE_HISTORY + +_openframeworks.OF_MAX_VIEWPORT_HISTORY_swigconstant(_openframeworks) OF_MAX_VIEWPORT_HISTORY = _openframeworks.OF_MAX_VIEWPORT_HISTORY + +_openframeworks.OF_MAX_CIRCLE_PTS_swigconstant(_openframeworks) OF_MAX_CIRCLE_PTS = _openframeworks.OF_MAX_CIRCLE_PTS + +_openframeworks.OF_BLENDMODE_DISABLED_swigconstant(_openframeworks) OF_BLENDMODE_DISABLED = _openframeworks.OF_BLENDMODE_DISABLED + +_openframeworks.OF_BLENDMODE_ALPHA_swigconstant(_openframeworks) OF_BLENDMODE_ALPHA = _openframeworks.OF_BLENDMODE_ALPHA + +_openframeworks.OF_BLENDMODE_ADD_swigconstant(_openframeworks) OF_BLENDMODE_ADD = _openframeworks.OF_BLENDMODE_ADD + +_openframeworks.OF_BLENDMODE_SUBTRACT_swigconstant(_openframeworks) OF_BLENDMODE_SUBTRACT = _openframeworks.OF_BLENDMODE_SUBTRACT + +_openframeworks.OF_BLENDMODE_MULTIPLY_swigconstant(_openframeworks) OF_BLENDMODE_MULTIPLY = _openframeworks.OF_BLENDMODE_MULTIPLY + +_openframeworks.OF_BLENDMODE_SCREEN_swigconstant(_openframeworks) OF_BLENDMODE_SCREEN = _openframeworks.OF_BLENDMODE_SCREEN + +_openframeworks.OF_ORIENTATION_DEFAULT_swigconstant(_openframeworks) OF_ORIENTATION_DEFAULT = _openframeworks.OF_ORIENTATION_DEFAULT + +_openframeworks.OF_ORIENTATION_180_swigconstant(_openframeworks) OF_ORIENTATION_180 = _openframeworks.OF_ORIENTATION_180 + +_openframeworks.OF_ORIENTATION_90_LEFT_swigconstant(_openframeworks) OF_ORIENTATION_90_LEFT = _openframeworks.OF_ORIENTATION_90_LEFT + +_openframeworks.OF_ORIENTATION_90_RIGHT_swigconstant(_openframeworks) OF_ORIENTATION_90_RIGHT = _openframeworks.OF_ORIENTATION_90_RIGHT + +_openframeworks.OF_ORIENTATION_UNKNOWN_swigconstant(_openframeworks) OF_ORIENTATION_UNKNOWN = _openframeworks.OF_ORIENTATION_UNKNOWN + +_openframeworks.OF_GRADIENT_LINEAR_swigconstant(_openframeworks) OF_GRADIENT_LINEAR = _openframeworks.OF_GRADIENT_LINEAR + +_openframeworks.OF_GRADIENT_CIRCULAR_swigconstant(_openframeworks) OF_GRADIENT_CIRCULAR = _openframeworks.OF_GRADIENT_CIRCULAR + +_openframeworks.OF_GRADIENT_BAR_swigconstant(_openframeworks) OF_GRADIENT_BAR = _openframeworks.OF_GRADIENT_BAR + +_openframeworks.OF_POLY_WINDING_ODD_swigconstant(_openframeworks) OF_POLY_WINDING_ODD = _openframeworks.OF_POLY_WINDING_ODD + +_openframeworks.OF_POLY_WINDING_NONZERO_swigconstant(_openframeworks) OF_POLY_WINDING_NONZERO = _openframeworks.OF_POLY_WINDING_NONZERO + +_openframeworks.OF_POLY_WINDING_POSITIVE_swigconstant(_openframeworks) OF_POLY_WINDING_POSITIVE = _openframeworks.OF_POLY_WINDING_POSITIVE + +_openframeworks.OF_POLY_WINDING_NEGATIVE_swigconstant(_openframeworks) OF_POLY_WINDING_NEGATIVE = _openframeworks.OF_POLY_WINDING_NEGATIVE + +_openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant(_openframeworks) OF_POLY_WINDING_ABS_GEQ_TWO = _openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO + +_openframeworks.OF_CLOSE_swigconstant(_openframeworks) OF_CLOSE = _openframeworks.OF_CLOSE + +_openframeworks.OF_LEFT_HANDED_swigconstant(_openframeworks) OF_LEFT_HANDED = _openframeworks.OF_LEFT_HANDED + +_openframeworks.OF_RIGHT_HANDED_swigconstant(_openframeworks) OF_RIGHT_HANDED = _openframeworks.OF_RIGHT_HANDED + +_openframeworks.OF_MATRIX_MODELVIEW_swigconstant(_openframeworks) OF_MATRIX_MODELVIEW = _openframeworks.OF_MATRIX_MODELVIEW + +_openframeworks.OF_MATRIX_PROJECTION_swigconstant(_openframeworks) OF_MATRIX_PROJECTION = _openframeworks.OF_MATRIX_PROJECTION + +_openframeworks.OF_MATRIX_TEXTURE_swigconstant(_openframeworks) OF_MATRIX_TEXTURE = _openframeworks.OF_MATRIX_TEXTURE + +_openframeworks.OF_KEY_MODIFIER_swigconstant(_openframeworks) OF_KEY_MODIFIER = _openframeworks.OF_KEY_MODIFIER + +_openframeworks.OF_KEY_RETURN_swigconstant(_openframeworks) OF_KEY_RETURN = _openframeworks.OF_KEY_RETURN + +_openframeworks.OF_KEY_ESC_swigconstant(_openframeworks) OF_KEY_ESC = _openframeworks.OF_KEY_ESC + +_openframeworks.OF_KEY_TAB_swigconstant(_openframeworks) OF_KEY_TAB = _openframeworks.OF_KEY_TAB + +_openframeworks.OF_KEY_BACKSPACE_swigconstant(_openframeworks) OF_KEY_BACKSPACE = _openframeworks.OF_KEY_BACKSPACE + +_openframeworks.OF_KEY_DEL_swigconstant(_openframeworks) OF_KEY_DEL = _openframeworks.OF_KEY_DEL + +_openframeworks.OF_KEY_F1_swigconstant(_openframeworks) OF_KEY_F1 = _openframeworks.OF_KEY_F1 + +_openframeworks.OF_KEY_F2_swigconstant(_openframeworks) OF_KEY_F2 = _openframeworks.OF_KEY_F2 + +_openframeworks.OF_KEY_F3_swigconstant(_openframeworks) OF_KEY_F3 = _openframeworks.OF_KEY_F3 + +_openframeworks.OF_KEY_F4_swigconstant(_openframeworks) OF_KEY_F4 = _openframeworks.OF_KEY_F4 + +_openframeworks.OF_KEY_F5_swigconstant(_openframeworks) OF_KEY_F5 = _openframeworks.OF_KEY_F5 + +_openframeworks.OF_KEY_F6_swigconstant(_openframeworks) OF_KEY_F6 = _openframeworks.OF_KEY_F6 + +_openframeworks.OF_KEY_F7_swigconstant(_openframeworks) OF_KEY_F7 = _openframeworks.OF_KEY_F7 + +_openframeworks.OF_KEY_F8_swigconstant(_openframeworks) OF_KEY_F8 = _openframeworks.OF_KEY_F8 + +_openframeworks.OF_KEY_F9_swigconstant(_openframeworks) OF_KEY_F9 = _openframeworks.OF_KEY_F9 + +_openframeworks.OF_KEY_F10_swigconstant(_openframeworks) OF_KEY_F10 = _openframeworks.OF_KEY_F10 + +_openframeworks.OF_KEY_F11_swigconstant(_openframeworks) OF_KEY_F11 = _openframeworks.OF_KEY_F11 + +_openframeworks.OF_KEY_F12_swigconstant(_openframeworks) OF_KEY_F12 = _openframeworks.OF_KEY_F12 + +_openframeworks.OF_KEY_LEFT_swigconstant(_openframeworks) OF_KEY_LEFT = _openframeworks.OF_KEY_LEFT + +_openframeworks.OF_KEY_UP_swigconstant(_openframeworks) OF_KEY_UP = _openframeworks.OF_KEY_UP + +_openframeworks.OF_KEY_RIGHT_swigconstant(_openframeworks) OF_KEY_RIGHT = _openframeworks.OF_KEY_RIGHT + +_openframeworks.OF_KEY_DOWN_swigconstant(_openframeworks) OF_KEY_DOWN = _openframeworks.OF_KEY_DOWN + +_openframeworks.OF_KEY_PAGE_UP_swigconstant(_openframeworks) OF_KEY_PAGE_UP = _openframeworks.OF_KEY_PAGE_UP + +_openframeworks.OF_KEY_PAGE_DOWN_swigconstant(_openframeworks) OF_KEY_PAGE_DOWN = _openframeworks.OF_KEY_PAGE_DOWN + +_openframeworks.OF_KEY_HOME_swigconstant(_openframeworks) OF_KEY_HOME = _openframeworks.OF_KEY_HOME + +_openframeworks.OF_KEY_END_swigconstant(_openframeworks) OF_KEY_END = _openframeworks.OF_KEY_END + +_openframeworks.OF_KEY_INSERT_swigconstant(_openframeworks) OF_KEY_INSERT = _openframeworks.OF_KEY_INSERT + +_openframeworks.OF_KEY_CONTROL_swigconstant(_openframeworks) OF_KEY_CONTROL = _openframeworks.OF_KEY_CONTROL + +_openframeworks.OF_KEY_ALT_swigconstant(_openframeworks) OF_KEY_ALT = _openframeworks.OF_KEY_ALT + +_openframeworks.OF_KEY_SHIFT_swigconstant(_openframeworks) OF_KEY_SHIFT = _openframeworks.OF_KEY_SHIFT + +_openframeworks.OF_KEY_SUPER_swigconstant(_openframeworks) OF_KEY_SUPER = _openframeworks.OF_KEY_SUPER + +_openframeworks.OF_KEY_LEFT_SHIFT_swigconstant(_openframeworks) OF_KEY_LEFT_SHIFT = _openframeworks.OF_KEY_LEFT_SHIFT + +_openframeworks.OF_KEY_RIGHT_SHIFT_swigconstant(_openframeworks) OF_KEY_RIGHT_SHIFT = _openframeworks.OF_KEY_RIGHT_SHIFT + +_openframeworks.OF_KEY_LEFT_CONTROL_swigconstant(_openframeworks) OF_KEY_LEFT_CONTROL = _openframeworks.OF_KEY_LEFT_CONTROL + +_openframeworks.OF_KEY_RIGHT_CONTROL_swigconstant(_openframeworks) OF_KEY_RIGHT_CONTROL = _openframeworks.OF_KEY_RIGHT_CONTROL + +_openframeworks.OF_KEY_LEFT_ALT_swigconstant(_openframeworks) OF_KEY_LEFT_ALT = _openframeworks.OF_KEY_LEFT_ALT + +_openframeworks.OF_KEY_RIGHT_ALT_swigconstant(_openframeworks) OF_KEY_RIGHT_ALT = _openframeworks.OF_KEY_RIGHT_ALT + +_openframeworks.OF_KEY_LEFT_SUPER_swigconstant(_openframeworks) OF_KEY_LEFT_SUPER = _openframeworks.OF_KEY_LEFT_SUPER + +_openframeworks.OF_KEY_RIGHT_SUPER_swigconstant(_openframeworks) OF_KEY_RIGHT_SUPER = _openframeworks.OF_KEY_RIGHT_SUPER + +_openframeworks.OF_KEY_LEFT_COMMAND_swigconstant(_openframeworks) OF_KEY_LEFT_COMMAND = _openframeworks.OF_KEY_LEFT_COMMAND + +_openframeworks.OF_KEY_RIGHT_COMMAND_swigconstant(_openframeworks) OF_KEY_RIGHT_COMMAND = _openframeworks.OF_KEY_RIGHT_COMMAND + +_openframeworks.OF_MOUSE_BUTTON_1_swigconstant(_openframeworks) OF_MOUSE_BUTTON_1 = _openframeworks.OF_MOUSE_BUTTON_1 + +_openframeworks.OF_MOUSE_BUTTON_2_swigconstant(_openframeworks) OF_MOUSE_BUTTON_2 = _openframeworks.OF_MOUSE_BUTTON_2 + +_openframeworks.OF_MOUSE_BUTTON_3_swigconstant(_openframeworks) OF_MOUSE_BUTTON_3 = _openframeworks.OF_MOUSE_BUTTON_3 + +_openframeworks.OF_MOUSE_BUTTON_4_swigconstant(_openframeworks) OF_MOUSE_BUTTON_4 = _openframeworks.OF_MOUSE_BUTTON_4 + +_openframeworks.OF_MOUSE_BUTTON_5_swigconstant(_openframeworks) OF_MOUSE_BUTTON_5 = _openframeworks.OF_MOUSE_BUTTON_5 + +_openframeworks.OF_MOUSE_BUTTON_6_swigconstant(_openframeworks) OF_MOUSE_BUTTON_6 = _openframeworks.OF_MOUSE_BUTTON_6 + +_openframeworks.OF_MOUSE_BUTTON_7_swigconstant(_openframeworks) OF_MOUSE_BUTTON_7 = _openframeworks.OF_MOUSE_BUTTON_7 + +_openframeworks.OF_MOUSE_BUTTON_8_swigconstant(_openframeworks) OF_MOUSE_BUTTON_8 = _openframeworks.OF_MOUSE_BUTTON_8 + +_openframeworks.OF_MOUSE_BUTTON_LAST_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LAST = _openframeworks.OF_MOUSE_BUTTON_LAST + +_openframeworks.OF_MOUSE_BUTTON_LEFT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LEFT = _openframeworks.OF_MOUSE_BUTTON_LEFT + +_openframeworks.OF_MOUSE_BUTTON_MIDDLE_swigconstant(_openframeworks) OF_MOUSE_BUTTON_MIDDLE = _openframeworks.OF_MOUSE_BUTTON_MIDDLE + +_openframeworks.OF_MOUSE_BUTTON_RIGHT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_RIGHT = _openframeworks.OF_MOUSE_BUTTON_RIGHT + +_openframeworks.OF_CONSOLE_COLOR_RESTORE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RESTORE = _openframeworks.OF_CONSOLE_COLOR_RESTORE + +_openframeworks.OF_CONSOLE_COLOR_BLACK_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLACK = _openframeworks.OF_CONSOLE_COLOR_BLACK + +_openframeworks.OF_CONSOLE_COLOR_RED_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RED = _openframeworks.OF_CONSOLE_COLOR_RED + +_openframeworks.OF_CONSOLE_COLOR_GREEN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_GREEN = _openframeworks.OF_CONSOLE_COLOR_GREEN + +_openframeworks.OF_CONSOLE_COLOR_YELLOW_swigconstant(_openframeworks) OF_CONSOLE_COLOR_YELLOW = _openframeworks.OF_CONSOLE_COLOR_YELLOW + +_openframeworks.OF_CONSOLE_COLOR_BLUE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLUE = _openframeworks.OF_CONSOLE_COLOR_BLUE + +_openframeworks.OF_CONSOLE_COLOR_PURPLE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_PURPLE = _openframeworks.OF_CONSOLE_COLOR_PURPLE + +_openframeworks.OF_CONSOLE_COLOR_CYAN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_CYAN = _openframeworks.OF_CONSOLE_COLOR_CYAN + +_openframeworks.OF_CONSOLE_COLOR_WHITE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_WHITE = _openframeworks.OF_CONSOLE_COLOR_WHITE + +_openframeworks.OF_PIXELS_GRAY_swigconstant(_openframeworks) +OF_PIXELS_GRAY = _openframeworks.OF_PIXELS_GRAY + +_openframeworks.OF_PIXELS_GRAY_ALPHA_swigconstant(_openframeworks) +OF_PIXELS_GRAY_ALPHA = _openframeworks.OF_PIXELS_GRAY_ALPHA + +_openframeworks.OF_PIXELS_RGB_swigconstant(_openframeworks) +OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB + +_openframeworks.OF_PIXELS_BGR_swigconstant(_openframeworks) +OF_PIXELS_BGR = _openframeworks.OF_PIXELS_BGR + +_openframeworks.OF_PIXELS_RGBA_swigconstant(_openframeworks) +OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA + +_openframeworks.OF_PIXELS_BGRA_swigconstant(_openframeworks) +OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA + +_openframeworks.OF_PIXELS_RGB565_swigconstant(_openframeworks) +OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 + +_openframeworks.OF_PIXELS_NV12_swigconstant(_openframeworks) +OF_PIXELS_NV12 = _openframeworks.OF_PIXELS_NV12 + +_openframeworks.OF_PIXELS_NV21_swigconstant(_openframeworks) +OF_PIXELS_NV21 = _openframeworks.OF_PIXELS_NV21 + +_openframeworks.OF_PIXELS_YV12_swigconstant(_openframeworks) +OF_PIXELS_YV12 = _openframeworks.OF_PIXELS_YV12 + +_openframeworks.OF_PIXELS_I420_swigconstant(_openframeworks) +OF_PIXELS_I420 = _openframeworks.OF_PIXELS_I420 + +_openframeworks.OF_PIXELS_YUY2_swigconstant(_openframeworks) +OF_PIXELS_YUY2 = _openframeworks.OF_PIXELS_YUY2 + +_openframeworks.OF_PIXELS_UYVY_swigconstant(_openframeworks) +OF_PIXELS_UYVY = _openframeworks.OF_PIXELS_UYVY + +_openframeworks.OF_PIXELS_Y_swigconstant(_openframeworks) +OF_PIXELS_Y = _openframeworks.OF_PIXELS_Y + +_openframeworks.OF_PIXELS_U_swigconstant(_openframeworks) +OF_PIXELS_U = _openframeworks.OF_PIXELS_U + +_openframeworks.OF_PIXELS_V_swigconstant(_openframeworks) +OF_PIXELS_V = _openframeworks.OF_PIXELS_V + +_openframeworks.OF_PIXELS_UV_swigconstant(_openframeworks) +OF_PIXELS_UV = _openframeworks.OF_PIXELS_UV + +_openframeworks.OF_PIXELS_VU_swigconstant(_openframeworks) +OF_PIXELS_VU = _openframeworks.OF_PIXELS_VU + +_openframeworks.OF_PIXELS_NUM_FORMATS_swigconstant(_openframeworks) +OF_PIXELS_NUM_FORMATS = _openframeworks.OF_PIXELS_NUM_FORMATS + +_openframeworks.OF_PIXELS_UNKNOWN_swigconstant(_openframeworks) +OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_PIXELS_NATIVE_swigconstant(_openframeworks) +OF_PIXELS_NATIVE = _openframeworks.OF_PIXELS_NATIVE + +_openframeworks.OF_BITMAPMODE_SIMPLE_swigconstant(_openframeworks) OF_BITMAPMODE_SIMPLE = _openframeworks.OF_BITMAPMODE_SIMPLE + +_openframeworks.OF_BITMAPMODE_SCREEN_swigconstant(_openframeworks) OF_BITMAPMODE_SCREEN = _openframeworks.OF_BITMAPMODE_SCREEN + +_openframeworks.OF_BITMAPMODE_VIEWPORT_swigconstant(_openframeworks) OF_BITMAPMODE_VIEWPORT = _openframeworks.OF_BITMAPMODE_VIEWPORT + +_openframeworks.OF_BITMAPMODE_MODEL_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL = _openframeworks.OF_BITMAPMODE_MODEL + +_openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL_BILLBOARD = _openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD + +_openframeworks.OF_ENCODING_UTF8_swigconstant(_openframeworks) OF_ENCODING_UTF8 = _openframeworks.OF_ENCODING_UTF8 + +_openframeworks.OF_ENCODING_ISO_8859_15_swigconstant(_openframeworks) OF_ENCODING_ISO_8859_15 = _openframeworks.OF_ENCODING_ISO_8859_15 class ofFbo(_object): __swig_setmethods__ = {} @@ -398,95 +1018,192 @@ class ofFbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFbo - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFbo_allocate(self, *args) - def isAllocated(self): return _openframeworks.ofFbo_isAllocated(self) - def draw(self, *args): return _openframeworks.ofFbo_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofFbo_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFbo_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFbo_resetAnchor(self) - def setDefaultTextureIndex(self, *args): return _openframeworks.ofFbo_setDefaultTextureIndex(self, *args) - def getDefaultTextureIndex(self): return _openframeworks.ofFbo_getDefaultTextureIndex(self) - def getTextureReference(self, *args): return _openframeworks.ofFbo_getTextureReference(self, *args) - def getDepthTexture(self): return _openframeworks.ofFbo_getDepthTexture(self) - def setUseTexture(self, *args): return _openframeworks.ofFbo_setUseTexture(self, *args) - def begin(self, setupScreen=True): return _openframeworks.ofFbo_begin(self, setupScreen) - def end(self): return _openframeworks.ofFbo_end(self) - def readToPixels(self, *args): return _openframeworks.ofFbo_readToPixels(self, *args) - def getWidth(self): return _openframeworks.ofFbo_getWidth(self) - def getHeight(self): return _openframeworks.ofFbo_getHeight(self) - def bind(self): return _openframeworks.ofFbo_bind(self) - def unbind(self): return _openframeworks.ofFbo_unbind(self) - def checkStatus(self): return _openframeworks.ofFbo_checkStatus(self) - def createAndAttachTexture(self, *args): return _openframeworks.ofFbo_createAndAttachTexture(self, *args) - def attachTexture(self, *args): return _openframeworks.ofFbo_attachTexture(self, *args) - def createAndAttachRenderbuffer(self, *args): return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, *args) - def createAndAttachDepthStencilTexture(self, *args): return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) - def getNumTextures(self): return _openframeworks.ofFbo_getNumTextures(self) - def setActiveDrawBuffer(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffer(self, *args) - def setActiveDrawBuffers(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffers(self, *args) - def activateAllDrawBuffers(self): return _openframeworks.ofFbo_activateAllDrawBuffers(self) - def getFbo(self): return _openframeworks.ofFbo_getFbo(self) + __del__ = lambda self: None + + def allocate(self, *args): + return _openframeworks.ofFbo_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFbo_isAllocated(self) + + def destroy(self): + return _openframeworks.ofFbo_destroy(self) + + def clear(self): + return _openframeworks.ofFbo_clear(self) + + def draw(self, *args): + return _openframeworks.ofFbo_draw(self, *args) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFbo_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFbo_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFbo_resetAnchor(self) + + def setDefaultTextureIndex(self, defaultTexture): + return _openframeworks.ofFbo_setDefaultTextureIndex(self, defaultTexture) + + def getDefaultTextureIndex(self): + return _openframeworks.ofFbo_getDefaultTextureIndex(self) + + def getTextureReference(self, *args): + return _openframeworks.ofFbo_getTextureReference(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofFbo_getTexture(self, *args) + + def getDepthTexture(self, *args): + return _openframeworks.ofFbo_getDepthTexture(self, *args) + + def setUseTexture(self, arg2): + return _openframeworks.ofFbo_setUseTexture(self, arg2) + + def isUsingTexture(self): + return _openframeworks.ofFbo_isUsingTexture(self) + + def begin(self, setupScreen=True): + return _openframeworks.ofFbo_begin(self, setupScreen) + + def end(self): + return _openframeworks.ofFbo_end(self) + + def readToPixels(self, *args): + return _openframeworks.ofFbo_readToPixels(self, *args) + + def getWidth(self): + return _openframeworks.ofFbo_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFbo_getHeight(self) + + def bind(self): + return _openframeworks.ofFbo_bind(self) + + def unbind(self): + return _openframeworks.ofFbo_unbind(self) + + def flagDirty(self): + return _openframeworks.ofFbo_flagDirty(self) + + def updateTexture(self, attachmentPoint): + return _openframeworks.ofFbo_updateTexture(self, attachmentPoint) + + def checkStatus(self): + return _openframeworks.ofFbo_checkStatus(self) + + def createAndAttachTexture(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachTexture(self, internalFormat, attachmentPoint) + + def attachTexture(self, texture, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_attachTexture(self, texture, internalFormat, attachmentPoint) + + def createAndAttachRenderbuffer(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, internalFormat, attachmentPoint) + + def createAndAttachDepthStencilTexture(self, *args): + return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) + + def getNumTextures(self): + return _openframeworks.ofFbo_getNumTextures(self) + + def setActiveDrawBuffer(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffer(self, i) + + def setActiveDrawBuffers(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffers(self, i) + + def activateAllDrawBuffers(self): + return _openframeworks.ofFbo_activateAllDrawBuffers(self) + + def getFbo(self): + return _openframeworks.ofFbo_getFbo(self) + + def getId(self): + return _openframeworks.ofFbo_getId(self) + + def getIdDrawBuffer(self): + return _openframeworks.ofFbo_getIdDrawBuffer(self) __swig_getmethods__["checkGLSupport"] = lambda x: _openframeworks.ofFbo_checkGLSupport - if _newclass:checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) + if _newclass: + checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) __swig_getmethods__["maxColorAttachments"] = lambda x: _openframeworks.ofFbo_maxColorAttachments - if _newclass:maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) + if _newclass: + maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) __swig_getmethods__["maxDrawBuffers"] = lambda x: _openframeworks.ofFbo_maxDrawBuffers - if _newclass:maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) + if _newclass: + maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) __swig_getmethods__["maxSamples"] = lambda x: _openframeworks.ofFbo_maxSamples - if _newclass:maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) - def getDepthBuffer(self): return _openframeworks.ofFbo_getDepthBuffer(self) - def getStencilBuffer(self): return _openframeworks.ofFbo_getStencilBuffer(self) + if _newclass: + maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) + + def getDepthBuffer(self): + return _openframeworks.ofFbo_getDepthBuffer(self) + + def getStencilBuffer(self): + return _openframeworks.ofFbo_getStencilBuffer(self) ofFbo_swigregister = _openframeworks.ofFbo_swigregister ofFbo_swigregister(ofFbo) def ofFbo_checkGLSupport(): - return _openframeworks.ofFbo_checkGLSupport() + return _openframeworks.ofFbo_checkGLSupport() ofFbo_checkGLSupport = _openframeworks.ofFbo_checkGLSupport def ofFbo_maxColorAttachments(): - return _openframeworks.ofFbo_maxColorAttachments() + return _openframeworks.ofFbo_maxColorAttachments() ofFbo_maxColorAttachments = _openframeworks.ofFbo_maxColorAttachments def ofFbo_maxDrawBuffers(): - return _openframeworks.ofFbo_maxDrawBuffers() + return _openframeworks.ofFbo_maxDrawBuffers() ofFbo_maxDrawBuffers = _openframeworks.ofFbo_maxDrawBuffers def ofFbo_maxSamples(): - return _openframeworks.ofFbo_maxSamples() + return _openframeworks.ofFbo_maxSamples() ofFbo_maxSamples = _openframeworks.ofFbo_maxSamples def ofGetUsingArbTex(): - return _openframeworks.ofGetUsingArbTex() + return _openframeworks.ofGetUsingArbTex() ofGetUsingArbTex = _openframeworks.ofGetUsingArbTex def ofEnableArbTex(): - return _openframeworks.ofEnableArbTex() + return _openframeworks.ofEnableArbTex() ofEnableArbTex = _openframeworks.ofEnableArbTex def ofDisableArbTex(): - return _openframeworks.ofDisableArbTex() + return _openframeworks.ofDisableArbTex() ofDisableArbTex = _openframeworks.ofDisableArbTex def ofGetUsingNormalizedTexCoords(): - return _openframeworks.ofGetUsingNormalizedTexCoords() + return _openframeworks.ofGetUsingNormalizedTexCoords() ofGetUsingNormalizedTexCoords = _openframeworks.ofGetUsingNormalizedTexCoords def ofEnableNormalizedTexCoords(): - return _openframeworks.ofEnableNormalizedTexCoords() + return _openframeworks.ofEnableNormalizedTexCoords() ofEnableNormalizedTexCoords = _openframeworks.ofEnableNormalizedTexCoords def ofDisableNormalizedTexCoords(): - return _openframeworks.ofDisableNormalizedTexCoords() + return _openframeworks.ofDisableNormalizedTexCoords() ofDisableNormalizedTexCoords = _openframeworks.ofDisableNormalizedTexCoords + +_openframeworks.OF_COMPRESS_NONE_swigconstant(_openframeworks) OF_COMPRESS_NONE = _openframeworks.OF_COMPRESS_NONE + +_openframeworks.OF_COMPRESS_SRGB_swigconstant(_openframeworks) OF_COMPRESS_SRGB = _openframeworks.OF_COMPRESS_SRGB + +_openframeworks.OF_COMPRESS_ARB_swigconstant(_openframeworks) OF_COMPRESS_ARB = _openframeworks.OF_COMPRESS_ARB class ofTextureData(_object): __swig_setmethods__ = {} @@ -494,71 +1211,97 @@ class ofTextureData(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTextureData, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTextureData() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["textureID"] = _openframeworks.ofTextureData_textureID_set __swig_getmethods__["textureID"] = _openframeworks.ofTextureData_textureID_get - if _newclass:textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) + if _newclass: + textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) __swig_setmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_set __swig_getmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_get - if _newclass:textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) - __swig_setmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_set - __swig_getmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_get - if _newclass:glTypeInternal = _swig_property(_openframeworks.ofTextureData_glTypeInternal_get, _openframeworks.ofTextureData_glTypeInternal_set) + if _newclass: + textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) + __swig_setmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_set + __swig_getmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_get + if _newclass: + glInternalFormat = _swig_property(_openframeworks.ofTextureData_glInternalFormat_get, _openframeworks.ofTextureData_glInternalFormat_set) __swig_setmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_set __swig_getmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_get - if _newclass:tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) + if _newclass: + tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) __swig_setmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_set __swig_getmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_get - if _newclass:tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) + if _newclass: + tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) __swig_setmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_set __swig_getmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_get - if _newclass:tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) + if _newclass: + tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) __swig_setmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_set __swig_getmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_get - if _newclass:tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) + if _newclass: + tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) __swig_setmethods__["width"] = _openframeworks.ofTextureData_width_set __swig_getmethods__["width"] = _openframeworks.ofTextureData_width_get - if _newclass:width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) __swig_setmethods__["height"] = _openframeworks.ofTextureData_height_set __swig_getmethods__["height"] = _openframeworks.ofTextureData_height_get - if _newclass:height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) __swig_setmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_set __swig_getmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_get - if _newclass:bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) + if _newclass: + bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) __swig_setmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_set __swig_getmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_get - if _newclass:compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) + if _newclass: + compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) __swig_setmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_set __swig_getmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_get - if _newclass:bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) - __swig_setmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_set - __swig_getmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_get - if _newclass:bUseExternalTextureID = _swig_property(_openframeworks.ofTextureData_bUseExternalTextureID_get, _openframeworks.ofTextureData_bUseExternalTextureID_set) - __swig_setmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_set - __swig_getmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_get - if _newclass:textureMatrix = _swig_property(_openframeworks.ofTextureData_textureMatrix_get, _openframeworks.ofTextureData_textureMatrix_set) - __swig_setmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_set - __swig_getmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_get - if _newclass:useTextureMatrix = _swig_property(_openframeworks.ofTextureData_useTextureMatrix_get, _openframeworks.ofTextureData_useTextureMatrix_set) + if _newclass: + bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) + __swig_setmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_set + __swig_getmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_get + if _newclass: + minFilter = _swig_property(_openframeworks.ofTextureData_minFilter_get, _openframeworks.ofTextureData_minFilter_set) + __swig_setmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_set + __swig_getmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_get + if _newclass: + magFilter = _swig_property(_openframeworks.ofTextureData_magFilter_get, _openframeworks.ofTextureData_magFilter_set) + __swig_setmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_set + __swig_getmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_get + if _newclass: + wrapModeHorizontal = _swig_property(_openframeworks.ofTextureData_wrapModeHorizontal_get, _openframeworks.ofTextureData_wrapModeHorizontal_set) + __swig_setmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_set + __swig_getmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_get + if _newclass: + wrapModeVertical = _swig_property(_openframeworks.ofTextureData_wrapModeVertical_get, _openframeworks.ofTextureData_wrapModeVertical_set) + __swig_setmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_set + __swig_getmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_get + if _newclass: + bufferId = _swig_property(_openframeworks.ofTextureData_bufferId_get, _openframeworks.ofTextureData_bufferId_set) __swig_destroy__ = _openframeworks.delete_ofTextureData - __del__ = lambda self : None; + __del__ = lambda self: None ofTextureData_swigregister = _openframeworks.ofTextureData_swigregister ofTextureData_swigregister(ofTextureData) def ofEnableTextureEdgeHack(): - return _openframeworks.ofEnableTextureEdgeHack() + return _openframeworks.ofEnableTextureEdgeHack() ofEnableTextureEdgeHack = _openframeworks.ofEnableTextureEdgeHack def ofDisableTextureEdgeHack(): - return _openframeworks.ofDisableTextureEdgeHack() + return _openframeworks.ofDisableTextureEdgeHack() ofDisableTextureEdgeHack = _openframeworks.ofDisableTextureEdgeHack def ofIsTextureEdgeHackEnabled(): - return _openframeworks.ofIsTextureEdgeHackEnabled() + return _openframeworks.ofIsTextureEdgeHackEnabled() ofIsTextureEdgeHackEnabled = _openframeworks.ofIsTextureEdgeHackEnabled class ofTexture(_object): __swig_setmethods__ = {} @@ -566,82 +1309,264 @@ class ofTexture(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTexture, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofTexture(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofTexture_allocate(self, *args) + + def allocateAsBufferTexture(self, buffer, glInternalFormat): + return _openframeworks.ofTexture_allocateAsBufferTexture(self, buffer, glInternalFormat) + + def isAllocated(self): + return _openframeworks.ofTexture_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofTexture_bAllocated(self) __swig_destroy__ = _openframeworks.delete_ofTexture - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofTexture_allocate(self, *args) - def clear(self): return _openframeworks.ofTexture_clear(self) - def setUseExternalTextureID(self, *args): return _openframeworks.ofTexture_setUseExternalTextureID(self, *args) - def loadData(self, *args): return _openframeworks.ofTexture_loadData(self, *args) - def setRGToRGBASwizzles(self, *args): return _openframeworks.ofTexture_setRGToRGBASwizzles(self, *args) - def loadScreenData(self, *args): return _openframeworks.ofTexture_loadScreenData(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofTexture_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofTexture_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofTexture_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofTexture_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofTexture_drawSubsection(self, *args) - def readToPixels(self, *args): return _openframeworks.ofTexture_readToPixels(self, *args) - def bind(self): return _openframeworks.ofTexture_bind(self) - def unbind(self): return _openframeworks.ofTexture_unbind(self) - def getCoordFromPoint(self, *args): return _openframeworks.ofTexture_getCoordFromPoint(self, *args) - def getCoordFromPercent(self, *args): return _openframeworks.ofTexture_getCoordFromPercent(self, *args) - def setTextureWrap(self, *args): return _openframeworks.ofTexture_setTextureWrap(self, *args) - def setTextureMinMagFilter(self, *args): return _openframeworks.ofTexture_setTextureMinMagFilter(self, *args) - def setCompression(self, *args): return _openframeworks.ofTexture_setCompression(self, *args) - def bAllocated(self): return _openframeworks.ofTexture_bAllocated(self) - def isAllocated(self): return _openframeworks.ofTexture_isAllocated(self) - def getTextureData(self, *args): return _openframeworks.ofTexture_getTextureData(self, *args) + __del__ = lambda self: None + + def clear(self): + return _openframeworks.ofTexture_clear(self) + + def setUseExternalTextureID(self, externTexID): + return _openframeworks.ofTexture_setUseExternalTextureID(self, externTexID) + + def loadData(self, *args): + return _openframeworks.ofTexture_loadData(self, *args) + + def loadScreenData(self, x, y, w, h): + return _openframeworks.ofTexture_loadScreenData(self, x, y, w, h) + + def draw(self, *args): + return _openframeworks.ofTexture_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofTexture_drawSubsection(self, *args) + + def getQuad(self, p1, p2, p3, p4): + return _openframeworks.ofTexture_getQuad(self, p1, p2, p3, p4) + + def getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode): + return _openframeworks.ofTexture_getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode) + + def bind(self, textureLocation=0): + return _openframeworks.ofTexture_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofTexture_unbind(self, textureLocation) + + def getAlphaMask(self): + return _openframeworks.ofTexture_getAlphaMask(self) + + def getHeight(self): + return _openframeworks.ofTexture_getHeight(self) + + def getWidth(self): + return _openframeworks.ofTexture_getWidth(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofTexture_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofTexture_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofTexture_resetAnchor(self) + + def getCoordFromPoint(self, xPos, yPos): + return _openframeworks.ofTexture_getCoordFromPoint(self, xPos, yPos) + + def getCoordFromPercent(self, xPts, yPts): + return _openframeworks.ofTexture_getCoordFromPercent(self, xPts, yPts) + + def setAlphaMask(self, mask): + return _openframeworks.ofTexture_setAlphaMask(self, mask) + + def disableAlphaMask(self): + return _openframeworks.ofTexture_disableAlphaMask(self) + + def setTextureWrap(self, wrapModeHorizontal, wrapModeVertical): + return _openframeworks.ofTexture_setTextureWrap(self, wrapModeHorizontal, wrapModeVertical) + + def setTextureMinMagFilter(self, minFilter, magFilter): + return _openframeworks.ofTexture_setTextureMinMagFilter(self, minFilter, magFilter) + + def setTextureMatrix(self, m): + return _openframeworks.ofTexture_setTextureMatrix(self, m) + + def getTextureMatrix(self): + return _openframeworks.ofTexture_getTextureMatrix(self) + + def isUsingTextureMatrix(self): + return _openframeworks.ofTexture_isUsingTextureMatrix(self) + + def disableTextureMatrix(self): + return _openframeworks.ofTexture_disableTextureMatrix(self) + + def setCompression(self, compression): + return _openframeworks.ofTexture_setCompression(self, compression) + + def setRGToRGBASwizzles(self, rToRGBSwizzles): + return _openframeworks.ofTexture_setRGToRGBASwizzles(self, rToRGBSwizzles) + + def setSwizzle(self, srcSwizzle, dstChannel): + return _openframeworks.ofTexture_setSwizzle(self, srcSwizzle, dstChannel) + + def readToPixels(self, *args): + return _openframeworks.ofTexture_readToPixels(self, *args) + + def copyTo(self, buffer): + return _openframeworks.ofTexture_copyTo(self, buffer) + + def getTextureData(self, *args): + return _openframeworks.ofTexture_getTextureData(self, *args) + + def enableMipmap(self): + return _openframeworks.ofTexture_enableMipmap(self) + + def disableMipmap(self): + return _openframeworks.ofTexture_disableMipmap(self) + + def generateMipmap(self): + return _openframeworks.ofTexture_generateMipmap(self) + + def hasMipmap(self): + return _openframeworks.ofTexture_hasMipmap(self) __swig_setmethods__["texData"] = _openframeworks.ofTexture_texData_set __swig_getmethods__["texData"] = _openframeworks.ofTexture_texData_get - if _newclass:texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) - def getHeight(self): return _openframeworks.ofTexture_getHeight(self) - def getWidth(self): return _openframeworks.ofTexture_getWidth(self) + if _newclass: + texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) ofTexture_swigregister = _openframeworks.ofTexture_swigregister ofTexture_swigregister(ofTexture) + +_openframeworks.OF_IMAGE_QUALITY_BEST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_BEST = _openframeworks.OF_IMAGE_QUALITY_BEST + +_openframeworks.OF_IMAGE_QUALITY_HIGH_swigconstant(_openframeworks) OF_IMAGE_QUALITY_HIGH = _openframeworks.OF_IMAGE_QUALITY_HIGH + +_openframeworks.OF_IMAGE_QUALITY_MEDIUM_swigconstant(_openframeworks) OF_IMAGE_QUALITY_MEDIUM = _openframeworks.OF_IMAGE_QUALITY_MEDIUM + +_openframeworks.OF_IMAGE_QUALITY_LOW_swigconstant(_openframeworks) OF_IMAGE_QUALITY_LOW = _openframeworks.OF_IMAGE_QUALITY_LOW + +_openframeworks.OF_IMAGE_QUALITY_WORST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_WORST = _openframeworks.OF_IMAGE_QUALITY_WORST + +_openframeworks.OF_IMAGE_FORMAT_BMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_BMP = _openframeworks.OF_IMAGE_FORMAT_BMP + +_openframeworks.OF_IMAGE_FORMAT_ICO_swigconstant(_openframeworks) OF_IMAGE_FORMAT_ICO = _openframeworks.OF_IMAGE_FORMAT_ICO + +_openframeworks.OF_IMAGE_FORMAT_JPEG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JPEG = _openframeworks.OF_IMAGE_FORMAT_JPEG + +_openframeworks.OF_IMAGE_FORMAT_JNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JNG = _openframeworks.OF_IMAGE_FORMAT_JNG + +_openframeworks.OF_IMAGE_FORMAT_KOALA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_KOALA = _openframeworks.OF_IMAGE_FORMAT_KOALA + +_openframeworks.OF_IMAGE_FORMAT_LBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_LBM = _openframeworks.OF_IMAGE_FORMAT_LBM + +_openframeworks.OF_IMAGE_FORMAT_IFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_IFF = _openframeworks.OF_IMAGE_FORMAT_IFF + +_openframeworks.OF_IMAGE_FORMAT_MNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_MNG = _openframeworks.OF_IMAGE_FORMAT_MNG + +_openframeworks.OF_IMAGE_FORMAT_PBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBM = _openframeworks.OF_IMAGE_FORMAT_PBM + +_openframeworks.OF_IMAGE_FORMAT_PBMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBMRAW = _openframeworks.OF_IMAGE_FORMAT_PBMRAW + +_openframeworks.OF_IMAGE_FORMAT_PCD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCD = _openframeworks.OF_IMAGE_FORMAT_PCD + +_openframeworks.OF_IMAGE_FORMAT_PCX_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCX = _openframeworks.OF_IMAGE_FORMAT_PCX + +_openframeworks.OF_IMAGE_FORMAT_PGM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGM = _openframeworks.OF_IMAGE_FORMAT_PGM + +_openframeworks.OF_IMAGE_FORMAT_PGMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGMRAW = _openframeworks.OF_IMAGE_FORMAT_PGMRAW + +_openframeworks.OF_IMAGE_FORMAT_PNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PNG = _openframeworks.OF_IMAGE_FORMAT_PNG + +_openframeworks.OF_IMAGE_FORMAT_PPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPM = _openframeworks.OF_IMAGE_FORMAT_PPM + +_openframeworks.OF_IMAGE_FORMAT_PPMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPMRAW = _openframeworks.OF_IMAGE_FORMAT_PPMRAW + +_openframeworks.OF_IMAGE_FORMAT_RAS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAS = _openframeworks.OF_IMAGE_FORMAT_RAS + +_openframeworks.OF_IMAGE_FORMAT_TARGA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TARGA = _openframeworks.OF_IMAGE_FORMAT_TARGA + +_openframeworks.OF_IMAGE_FORMAT_TIFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TIFF = _openframeworks.OF_IMAGE_FORMAT_TIFF + +_openframeworks.OF_IMAGE_FORMAT_WBMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_WBMP = _openframeworks.OF_IMAGE_FORMAT_WBMP + +_openframeworks.OF_IMAGE_FORMAT_PSD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PSD = _openframeworks.OF_IMAGE_FORMAT_PSD + +_openframeworks.OF_IMAGE_FORMAT_CUT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_CUT = _openframeworks.OF_IMAGE_FORMAT_CUT + +_openframeworks.OF_IMAGE_FORMAT_XBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XBM = _openframeworks.OF_IMAGE_FORMAT_XBM + +_openframeworks.OF_IMAGE_FORMAT_XPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XPM = _openframeworks.OF_IMAGE_FORMAT_XPM + +_openframeworks.OF_IMAGE_FORMAT_DDS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_DDS = _openframeworks.OF_IMAGE_FORMAT_DDS + +_openframeworks.OF_IMAGE_FORMAT_GIF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_GIF = _openframeworks.OF_IMAGE_FORMAT_GIF + +_openframeworks.OF_IMAGE_FORMAT_HDR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_HDR = _openframeworks.OF_IMAGE_FORMAT_HDR + +_openframeworks.OF_IMAGE_FORMAT_FAXG3_swigconstant(_openframeworks) OF_IMAGE_FORMAT_FAXG3 = _openframeworks.OF_IMAGE_FORMAT_FAXG3 + +_openframeworks.OF_IMAGE_FORMAT_SGI_swigconstant(_openframeworks) OF_IMAGE_FORMAT_SGI = _openframeworks.OF_IMAGE_FORMAT_SGI + +_openframeworks.OF_IMAGE_FORMAT_EXR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_EXR = _openframeworks.OF_IMAGE_FORMAT_EXR + +_openframeworks.OF_IMAGE_FORMAT_J2K_swigconstant(_openframeworks) OF_IMAGE_FORMAT_J2K = _openframeworks.OF_IMAGE_FORMAT_J2K + +_openframeworks.OF_IMAGE_FORMAT_JP2_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JP2 = _openframeworks.OF_IMAGE_FORMAT_JP2 + +_openframeworks.OF_IMAGE_FORMAT_PFM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PFM = _openframeworks.OF_IMAGE_FORMAT_PFM + +_openframeworks.OF_IMAGE_FORMAT_PICT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PICT = _openframeworks.OF_IMAGE_FORMAT_PICT + +_openframeworks.OF_IMAGE_FORMAT_RAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAW = _openframeworks.OF_IMAGE_FORMAT_RAW class ofImage(_object): __swig_setmethods__ = {} @@ -649,57 +1574,123 @@ class ofImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofImage_allocate(self, *args) - def clear(self): return _openframeworks.ofImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofImage_getTextureReference(self) - def bind(self): return _openframeworks.ofImage_bind(self) - def unbind(self): return _openframeworks.ofImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofImage_mirror(self, *args) - def update(self): return _openframeworks.ofImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofImage_getHeight(self) - def getWidth(self): return _openframeworks.ofImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofImage_width_get, _openframeworks.ofImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofImage_height_get, _openframeworks.ofImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofImage_bpp_get, _openframeworks.ofImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofImage_type_get, _openframeworks.ofImage_type_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofImage_clear(self) + + def load(self, *args): + return _openframeworks.ofImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofImage_saveImage(self, *args) ofImage_swigregister = _openframeworks.ofImage_swigregister ofImage_swigregister(ofImage) @@ -709,167 +1700,344 @@ class ofFloatImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFloatImage_allocate(self, *args) - def clear(self): return _openframeworks.ofFloatImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofFloatImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofFloatImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofFloatImage_getTextureReference(self) - def bind(self): return _openframeworks.ofFloatImage_bind(self) - def unbind(self): return _openframeworks.ofFloatImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofFloatImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofFloatImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofFloatImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofFloatImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofFloatImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofFloatImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofFloatImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofFloatImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofFloatImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofFloatImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofFloatImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatImage_mirror(self, *args) - def update(self): return _openframeworks.ofFloatImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofFloatImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFloatImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFloatImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofFloatImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofFloatImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofFloatImage_getHeight(self) - def getWidth(self): return _openframeworks.ofFloatImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofFloatImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofFloatImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofFloatImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofFloatImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofFloatImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofFloatImage_width_get, _openframeworks.ofFloatImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofFloatImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofFloatImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofFloatImage_height_get, _openframeworks.ofFloatImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofFloatImage_bpp_get, _openframeworks.ofFloatImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofFloatImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofFloatImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofFloatImage_type_get, _openframeworks.ofFloatImage_type_set) -ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister -ofFloatImage_swigregister(ofFloatImage) + try: + self.this.append(this) + except Exception: + self.this = this -class ofShortImage(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofShortImage_allocate(self, *args) - def clear(self): return _openframeworks.ofShortImage_clear(self) - def __init__(self, *args): - this = _openframeworks.new_ofShortImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofShortImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofShortImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofShortImage_getTextureReference(self) - def bind(self): return _openframeworks.ofShortImage_bind(self) - def unbind(self): return _openframeworks.ofShortImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofShortImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofShortImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofShortImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofShortImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofShortImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofShortImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofShortImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofShortImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofShortImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofShortImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofShortImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofShortImage_mirror(self, *args) - def update(self): return _openframeworks.ofShortImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofShortImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofShortImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofShortImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofShortImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofShortImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofShortImage_getHeight(self) - def getWidth(self): return _openframeworks.ofShortImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofShortImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofShortImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofShortImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofShortImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofShortImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofShortImage_width_get, _openframeworks.ofShortImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofShortImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofShortImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofShortImage_height_get, _openframeworks.ofShortImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofShortImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofShortImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofShortImage_bpp_get, _openframeworks.ofShortImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofShortImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofShortImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofShortImage_type_get, _openframeworks.ofShortImage_type_set) -ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister -ofShortImage_swigregister(ofShortImage) + def allocate(self, w, h, type): + return _openframeworks.ofFloatImage_allocate(self, w, h, type) + def isAllocated(self): + return _openframeworks.ofFloatImage_isAllocated(self) -def ofSoundStreamSetup(*args): - return _openframeworks.ofSoundStreamSetup(*args) -ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + def bAllocated(self): + return _openframeworks.ofFloatImage_bAllocated(self) -def ofSoundStreamStop(): - return _openframeworks.ofSoundStreamStop() -ofSoundStreamStop = _openframeworks.ofSoundStreamStop + def clear(self): + return _openframeworks.ofFloatImage_clear(self) -def ofSoundStreamStart(): - return _openframeworks.ofSoundStreamStart() -ofSoundStreamStart = _openframeworks.ofSoundStreamStart + def load(self, *args): + return _openframeworks.ofFloatImage_load(self, *args) -def ofSoundStreamClose(): - return _openframeworks.ofSoundStreamClose() -ofSoundStreamClose = _openframeworks.ofSoundStreamClose + def loadImage(self, *args): + return _openframeworks.ofFloatImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofFloatImage + __del__ = lambda self: None -def ofSoundStreamListDevices(): - return _openframeworks.ofSoundStreamListDevices() -ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices -class ofSoundStream(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofSoundStream() - try: self.this.append(this) - except: self.this = this - def setSoundStream(self, *args): return _openframeworks.ofSoundStream_setSoundStream(self, *args) - def getSoundStream(self): return _openframeworks.ofSoundStream_getSoundStream(self) - def listDevices(self): return _openframeworks.ofSoundStream_listDevices(self) - def setDeviceID(self, *args): return _openframeworks.ofSoundStream_setDeviceID(self, *args) - def setup(self, *args): return _openframeworks.ofSoundStream_setup(self, *args) - def setInput(self, *args): return _openframeworks.ofSoundStream_setInput(self, *args) - def setOutput(self, *args): return _openframeworks.ofSoundStream_setOutput(self, *args) - def start(self): return _openframeworks.ofSoundStream_start(self) - def stop(self): return _openframeworks.ofSoundStream_stop(self) - def close(self): return _openframeworks.ofSoundStream_close(self) - def getTickCount(self): return _openframeworks.ofSoundStream_getTickCount(self) - def getNumInputChannels(self): return _openframeworks.ofSoundStream_getNumInputChannels(self) - def getNumOutputChannels(self): return _openframeworks.ofSoundStream_getNumOutputChannels(self) - def getSampleRate(self): return _openframeworks.ofSoundStream_getSampleRate(self) - def getBufferSize(self): return _openframeworks.ofSoundStream_getBufferSize(self) - __swig_destroy__ = _openframeworks.delete_ofSoundStream - __del__ = lambda self : None; + def draw(self, *args): + return _openframeworks.ofFloatImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofFloatImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofFloatImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofFloatImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofFloatImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofFloatImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofFloatImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofFloatImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofFloatImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofFloatImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofFloatImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofFloatImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofFloatImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofFloatImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofFloatImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofFloatImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofFloatImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofFloatImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofFloatImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofFloatImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofFloatImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofFloatImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofFloatImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofFloatImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFloatImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFloatImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFloatImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofFloatImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofFloatImage_saveImage(self, *args) +ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister +ofFloatImage_swigregister(ofFloatImage) + +class ofShortImage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofShortImage(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofShortImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofShortImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofShortImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofShortImage_clear(self) + + def load(self, *args): + return _openframeworks.ofShortImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofShortImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofShortImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofShortImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofShortImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofShortImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofShortImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofShortImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofShortImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofShortImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofShortImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofShortImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofShortImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofShortImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofShortImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofShortImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofShortImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofShortImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofShortImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofShortImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofShortImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofShortImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofShortImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofShortImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofShortImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofShortImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofShortImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofShortImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofShortImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofShortImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofShortImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofShortImage_saveImage(self, *args) +ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister +ofShortImage_swigregister(ofShortImage) + + +def ofSoundStreamSetup(*args): + return _openframeworks.ofSoundStreamSetup(*args) +ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + +def ofSoundStreamStop(): + return _openframeworks.ofSoundStreamStop() +ofSoundStreamStop = _openframeworks.ofSoundStreamStop + +def ofSoundStreamStart(): + return _openframeworks.ofSoundStreamStart() +ofSoundStreamStart = _openframeworks.ofSoundStreamStart + +def ofSoundStreamClose(): + return _openframeworks.ofSoundStreamClose() +ofSoundStreamClose = _openframeworks.ofSoundStreamClose + +def ofSoundStreamListDevices(): + return _openframeworks.ofSoundStreamListDevices() +ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices +class ofSoundStream(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofSoundStream() + try: + self.this.append(this) + except Exception: + self.this = this + + def setSoundStream(self, soundStreamPtr): + return _openframeworks.ofSoundStream_setSoundStream(self, soundStreamPtr) + + def getSoundStream(self): + return _openframeworks.ofSoundStream_getSoundStream(self) + + def printDeviceList(self): + return _openframeworks.ofSoundStream_printDeviceList(self) + + def getDeviceList(self): + return _openframeworks.ofSoundStream_getDeviceList(self) + + def getMatchingDevices(self, *args): + return _openframeworks.ofSoundStream_getMatchingDevices(self, *args) + + def setDeviceID(self, deviceID): + return _openframeworks.ofSoundStream_setDeviceID(self, deviceID) + + def setDevice(self, device): + return _openframeworks.ofSoundStream_setDevice(self, device) + + def setup(self, *args): + return _openframeworks.ofSoundStream_setup(self, *args) + + def setInput(self, *args): + return _openframeworks.ofSoundStream_setInput(self, *args) + + def setOutput(self, *args): + return _openframeworks.ofSoundStream_setOutput(self, *args) + + def start(self): + return _openframeworks.ofSoundStream_start(self) + + def stop(self): + return _openframeworks.ofSoundStream_stop(self) + + def close(self): + return _openframeworks.ofSoundStream_close(self) + + def getTickCount(self): + return _openframeworks.ofSoundStream_getTickCount(self) + + def getNumInputChannels(self): + return _openframeworks.ofSoundStream_getNumInputChannels(self) + + def getNumOutputChannels(self): + return _openframeworks.ofSoundStream_getNumOutputChannels(self) + + def getSampleRate(self): + return _openframeworks.ofSoundStream_getSampleRate(self) + + def getBufferSize(self): + return _openframeworks.ofSoundStream_getBufferSize(self) + + def listDevices(self): + return _openframeworks.ofSoundStream_listDevices(self) + __swig_destroy__ = _openframeworks.delete_ofSoundStream + __del__ = lambda self: None ofSoundStream_swigregister = _openframeworks.ofSoundStream_swigregister ofSoundStream_swigregister(ofSoundStream) @@ -879,33 +2047,87 @@ class ofSoundPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSoundPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSoundPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofSoundPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofSoundPlayer_getPlayer(self) - def loadSound(self, *args): return _openframeworks.ofSoundPlayer_loadSound(self, *args) - def unloadSound(self): return _openframeworks.ofSoundPlayer_unloadSound(self) - def play(self): return _openframeworks.ofSoundPlayer_play(self) - def stop(self): return _openframeworks.ofSoundPlayer_stop(self) - def setVolume(self, *args): return _openframeworks.ofSoundPlayer_setVolume(self, *args) - def setPan(self, *args): return _openframeworks.ofSoundPlayer_setPan(self, *args) - def setSpeed(self, *args): return _openframeworks.ofSoundPlayer_setSpeed(self, *args) - def setPaused(self, *args): return _openframeworks.ofSoundPlayer_setPaused(self, *args) - def setLoop(self, *args): return _openframeworks.ofSoundPlayer_setLoop(self, *args) - def setMultiPlay(self, *args): return _openframeworks.ofSoundPlayer_setMultiPlay(self, *args) - def setPosition(self, *args): return _openframeworks.ofSoundPlayer_setPosition(self, *args) - def setPositionMS(self, *args): return _openframeworks.ofSoundPlayer_setPositionMS(self, *args) - def getPositionMS(self): return _openframeworks.ofSoundPlayer_getPositionMS(self) - def getPosition(self): return _openframeworks.ofSoundPlayer_getPosition(self) - def getIsPlaying(self): return _openframeworks.ofSoundPlayer_getIsPlaying(self) - def getSpeed(self): return _openframeworks.ofSoundPlayer_getSpeed(self) - def getPan(self): return _openframeworks.ofSoundPlayer_getPan(self) - def getVolume(self): return _openframeworks.ofSoundPlayer_getVolume(self) - def isLoaded(self): return _openframeworks.ofSoundPlayer_isLoaded(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlayer(self, newPlayer): + return _openframeworks.ofSoundPlayer_setPlayer(self, newPlayer) + + def getPlayer(self): + return _openframeworks.ofSoundPlayer_getPlayer(self) + + def load(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_load(self, fileName, stream) + + def loadSound(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_loadSound(self, fileName, stream) + + def unload(self): + return _openframeworks.ofSoundPlayer_unload(self) + + def unloadSound(self): + return _openframeworks.ofSoundPlayer_unloadSound(self) + + def play(self): + return _openframeworks.ofSoundPlayer_play(self) + + def stop(self): + return _openframeworks.ofSoundPlayer_stop(self) + + def setVolume(self, vol): + return _openframeworks.ofSoundPlayer_setVolume(self, vol) + + def setPan(self, pan): + return _openframeworks.ofSoundPlayer_setPan(self, pan) + + def setSpeed(self, speed): + return _openframeworks.ofSoundPlayer_setSpeed(self, speed) + + def setPaused(self, paused): + return _openframeworks.ofSoundPlayer_setPaused(self, paused) + + def setLoop(self, loop): + return _openframeworks.ofSoundPlayer_setLoop(self, loop) + + def setMultiPlay(self, multiplay): + return _openframeworks.ofSoundPlayer_setMultiPlay(self, multiplay) + + def setPosition(self, percent): + return _openframeworks.ofSoundPlayer_setPosition(self, percent) + + def setPositionMS(self, ms): + return _openframeworks.ofSoundPlayer_setPositionMS(self, ms) + + def getPositionMS(self): + return _openframeworks.ofSoundPlayer_getPositionMS(self) + + def getPosition(self): + return _openframeworks.ofSoundPlayer_getPosition(self) + + def isPlaying(self): + return _openframeworks.ofSoundPlayer_isPlaying(self) + + def getIsPlaying(self): + return _openframeworks.ofSoundPlayer_getIsPlaying(self) + + def getSpeed(self): + return _openframeworks.ofSoundPlayer_getSpeed(self) + + def getPan(self): + return _openframeworks.ofSoundPlayer_getPan(self) + + def getVolume(self): + return _openframeworks.ofSoundPlayer_getVolume(self) + + def isLoaded(self): + return _openframeworks.ofSoundPlayer_isLoaded(self) __swig_destroy__ = _openframeworks.delete_ofSoundPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofSoundPlayer_swigregister = _openframeworks.ofSoundPlayer_swigregister ofSoundPlayer_swigregister(ofSoundPlayer) @@ -915,82 +2137,180 @@ class ofColor(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofColor_fromHex) - def set(self, *args): return _openframeworks.ofColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofColor_getHex(self) - def clamp(self): return _openframeworks.ofColor_clamp(self) - def invert(self): return _openframeworks.ofColor_invert(self) - def normalize(self): return _openframeworks.ofColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofColor_getClamped(self) - def getInverted(self): return _openframeworks.ofColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofColor_fromHex) + + def set(self, *args): + return _openframeworks.ofColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofColor_clamp(self) + + def invert(self): + return _openframeworks.ofColor_invert(self) + + def normalize(self): + return _openframeworks.ofColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofColor_getHex(self) + + def getHue(self): + return _openframeworks.ofColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofColor_limit) - def getR(self): return _openframeworks.ofColor_getR(self) - def getG(self): return _openframeworks.ofColor_getG(self) - def getB(self): return _openframeworks.ofColor_getB(self) - def getA(self): return _openframeworks.ofColor_getA(self) - def setR(self, *args): return _openframeworks.ofColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofColor_setA(self, *args) - def __str__(self): return _openframeworks.ofColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofColor_limit) + + def __eq__(self, color): + return _openframeworks.ofColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofColor_getR(self) + + def getG(self): + return _openframeworks.ofColor_getG(self) + + def getB(self): + return _openframeworks.ofColor_getB(self) + + def getA(self): + return _openframeworks.ofColor_getA(self) + + def setR(self, r): + return _openframeworks.ofColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofColor_r_set __swig_getmethods__["r"] = _openframeworks.ofColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofColor_g_set __swig_getmethods__["g"] = _openframeworks.ofColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofColor_b_set __swig_getmethods__["b"] = _openframeworks.ofColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofColor_a_set __swig_getmethods__["a"] = _openframeworks.ofColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofColor + __del__ = lambda self: None ofColor_swigregister = _openframeworks.ofColor_swigregister ofColor_swigregister(ofColor) def ofColor_fromHsb(*args): - return _openframeworks.ofColor_fromHsb(*args) + return _openframeworks.ofColor_fromHsb(*args) ofColor_fromHsb = _openframeworks.ofColor_fromHsb def ofColor_fromHex(*args): - return _openframeworks.ofColor_fromHex(*args) + return _openframeworks.ofColor_fromHex(*args) ofColor_fromHex = _openframeworks.ofColor_fromHex + +def ofColor_limit(): + return _openframeworks.ofColor_limit() +ofColor_limit = _openframeworks.ofColor_limit cvar = _openframeworks.cvar ofColor.white = _openframeworks.cvar.ofColor_white ofColor.gray = _openframeworks.cvar.ofColor_gray @@ -1141,92 +2461,186 @@ def ofColor_fromHex(*args): ofColor.whiteSmoke = _openframeworks.cvar.ofColor_whiteSmoke ofColor.yellowGreen = _openframeworks.cvar.ofColor_yellowGreen -def ofColor_limit(): - return _openframeworks.ofColor_limit() -ofColor_limit = _openframeworks.ofColor_limit - class ofFloatColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofFloatColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofFloatColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) - def set(self, *args): return _openframeworks.ofFloatColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofFloatColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofFloatColor_getHex(self) - def clamp(self): return _openframeworks.ofFloatColor_clamp(self) - def invert(self): return _openframeworks.ofFloatColor_invert(self) - def normalize(self): return _openframeworks.ofFloatColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofFloatColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofFloatColor_getClamped(self) - def getInverted(self): return _openframeworks.ofFloatColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofFloatColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofFloatColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofFloatColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofFloatColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofFloatColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofFloatColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofFloatColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofFloatColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofFloatColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofFloatColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofFloatColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofFloatColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofFloatColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofFloatColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFloatColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofFloatColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofFloatColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofFloatColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofFloatColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofFloatColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofFloatColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofFloatColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofFloatColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) + + def set(self, *args): + return _openframeworks.ofFloatColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofFloatColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofFloatColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofFloatColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofFloatColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofFloatColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofFloatColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofFloatColor_clamp(self) + + def invert(self): + return _openframeworks.ofFloatColor_invert(self) + + def normalize(self): + return _openframeworks.ofFloatColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofFloatColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofFloatColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofFloatColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofFloatColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofFloatColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofFloatColor_getHex(self) + + def getHue(self): + return _openframeworks.ofFloatColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofFloatColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofFloatColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofFloatColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofFloatColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofFloatColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofFloatColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofFloatColor_limit) - def getR(self): return _openframeworks.ofFloatColor_getR(self) - def getG(self): return _openframeworks.ofFloatColor_getG(self) - def getB(self): return _openframeworks.ofFloatColor_getB(self) - def getA(self): return _openframeworks.ofFloatColor_getA(self) - def setR(self, *args): return _openframeworks.ofFloatColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofFloatColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofFloatColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofFloatColor_setA(self, *args) - def __str__(self): return _openframeworks.ofFloatColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofFloatColor_limit) + + def __eq__(self, color): + return _openframeworks.ofFloatColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofFloatColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofFloatColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofFloatColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofFloatColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofFloatColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofFloatColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofFloatColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofFloatColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofFloatColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofFloatColor_getR(self) + + def getG(self): + return _openframeworks.ofFloatColor_getG(self) + + def getB(self): + return _openframeworks.ofFloatColor_getB(self) + + def getA(self): + return _openframeworks.ofFloatColor_getA(self) + + def setR(self, r): + return _openframeworks.ofFloatColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofFloatColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofFloatColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofFloatColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofFloatColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofFloatColor_r_set __swig_getmethods__["r"] = _openframeworks.ofFloatColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofFloatColor_g_set __swig_getmethods__["g"] = _openframeworks.ofFloatColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofFloatColor_b_set __swig_getmethods__["b"] = _openframeworks.ofFloatColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofFloatColor_a_set __swig_getmethods__["a"] = _openframeworks.ofFloatColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofFloatColor + __del__ = lambda self: None ofFloatColor_swigregister = _openframeworks.ofFloatColor_swigregister ofFloatColor_swigregister(ofFloatColor) def ofFloatColor_fromHsb(*args): - return _openframeworks.ofFloatColor_fromHsb(*args) + return _openframeworks.ofFloatColor_fromHsb(*args) ofFloatColor_fromHsb = _openframeworks.ofFloatColor_fromHsb def ofFloatColor_fromHex(*args): - return _openframeworks.ofFloatColor_fromHex(*args) + return _openframeworks.ofFloatColor_fromHex(*args) ofFloatColor_fromHex = _openframeworks.ofFloatColor_fromHex + +def ofFloatColor_limit(): + return _openframeworks.ofFloatColor_limit() +ofFloatColor_limit = _openframeworks.ofFloatColor_limit ofFloatColor.white = _openframeworks.cvar.ofFloatColor_white ofFloatColor.gray = _openframeworks.cvar.ofFloatColor_gray ofFloatColor.black = _openframeworks.cvar.ofFloatColor_black @@ -1376,92 +2790,186 @@ def ofFloatColor_fromHex(*args): ofFloatColor.whiteSmoke = _openframeworks.cvar.ofFloatColor_whiteSmoke ofFloatColor.yellowGreen = _openframeworks.cvar.ofFloatColor_yellowGreen -def ofFloatColor_limit(): - return _openframeworks.ofFloatColor_limit() -ofFloatColor_limit = _openframeworks.ofFloatColor_limit - class ofShortColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofShortColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofShortColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofShortColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofShortColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) - def set(self, *args): return _openframeworks.ofShortColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofShortColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofShortColor_getHex(self) - def clamp(self): return _openframeworks.ofShortColor_clamp(self) - def invert(self): return _openframeworks.ofShortColor_invert(self) - def normalize(self): return _openframeworks.ofShortColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofShortColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofShortColor_getClamped(self) - def getInverted(self): return _openframeworks.ofShortColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofShortColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofShortColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofShortColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofShortColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofShortColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofShortColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofShortColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofShortColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofShortColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofShortColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofShortColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofShortColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofShortColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofShortColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShortColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofShortColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofShortColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofShortColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofShortColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofShortColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofShortColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofShortColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofShortColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) + + def set(self, *args): + return _openframeworks.ofShortColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofShortColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofShortColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofShortColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofShortColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofShortColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofShortColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofShortColor_clamp(self) + + def invert(self): + return _openframeworks.ofShortColor_invert(self) + + def normalize(self): + return _openframeworks.ofShortColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofShortColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofShortColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofShortColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofShortColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofShortColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofShortColor_getHex(self) + + def getHue(self): + return _openframeworks.ofShortColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofShortColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofShortColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofShortColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofShortColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofShortColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofShortColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofShortColor_limit) - def getR(self): return _openframeworks.ofShortColor_getR(self) - def getG(self): return _openframeworks.ofShortColor_getG(self) - def getB(self): return _openframeworks.ofShortColor_getB(self) - def getA(self): return _openframeworks.ofShortColor_getA(self) - def setR(self, *args): return _openframeworks.ofShortColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofShortColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofShortColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofShortColor_setA(self, *args) - def __str__(self): return _openframeworks.ofShortColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofShortColor_limit) + + def __eq__(self, color): + return _openframeworks.ofShortColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofShortColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofShortColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofShortColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofShortColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofShortColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofShortColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofShortColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofShortColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofShortColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofShortColor_getR(self) + + def getG(self): + return _openframeworks.ofShortColor_getG(self) + + def getB(self): + return _openframeworks.ofShortColor_getB(self) + + def getA(self): + return _openframeworks.ofShortColor_getA(self) + + def setR(self, r): + return _openframeworks.ofShortColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofShortColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofShortColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofShortColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofShortColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofShortColor_r_set __swig_getmethods__["r"] = _openframeworks.ofShortColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofShortColor_g_set __swig_getmethods__["g"] = _openframeworks.ofShortColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofShortColor_b_set __swig_getmethods__["b"] = _openframeworks.ofShortColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofShortColor_a_set __swig_getmethods__["a"] = _openframeworks.ofShortColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofShortColor + __del__ = lambda self: None ofShortColor_swigregister = _openframeworks.ofShortColor_swigregister ofShortColor_swigregister(ofShortColor) def ofShortColor_fromHsb(*args): - return _openframeworks.ofShortColor_fromHsb(*args) + return _openframeworks.ofShortColor_fromHsb(*args) ofShortColor_fromHsb = _openframeworks.ofShortColor_fromHsb def ofShortColor_fromHex(*args): - return _openframeworks.ofShortColor_fromHex(*args) + return _openframeworks.ofShortColor_fromHex(*args) ofShortColor_fromHex = _openframeworks.ofShortColor_fromHex + +def ofShortColor_limit(): + return _openframeworks.ofShortColor_limit() +ofShortColor_limit = _openframeworks.ofShortColor_limit ofShortColor.white = _openframeworks.cvar.ofShortColor_white ofShortColor.gray = _openframeworks.cvar.ofShortColor_gray ofShortColor.black = _openframeworks.cvar.ofShortColor_black @@ -1611,29 +3119,136 @@ def ofShortColor_fromHex(*args): ofShortColor.whiteSmoke = _openframeworks.cvar.ofShortColor_whiteSmoke ofShortColor.yellowGreen = _openframeworks.cvar.ofShortColor_yellowGreen -def ofShortColor_limit(): - return _openframeworks.ofShortColor_limit() -ofShortColor_limit = _openframeworks.ofShortColor_limit - def ofIsVFlipped(): - return _openframeworks.ofIsVFlipped() + return _openframeworks.ofIsVFlipped() ofIsVFlipped = _openframeworks.ofIsVFlipped +class ofBaseHasTexturePlanes(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseHasTexturePlanes, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseHasTexturePlanes, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseHasTexturePlanes + __del__ = lambda self: None + + def getTexturePlanes(self, *args): + return _openframeworks.ofBaseHasTexturePlanes_getTexturePlanes(self, *args) +ofBaseHasTexturePlanes_swigregister = _openframeworks.ofBaseHasTexturePlanes_swigregister +ofBaseHasTexturePlanes_swigregister(ofBaseHasTexturePlanes) + +class ofBaseURLFileLoader(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseURLFileLoader, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseURLFileLoader, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseURLFileLoader + __del__ = lambda self: None + + def get(self, url): + return _openframeworks.ofBaseURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofBaseURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofBaseURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofBaseURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofBaseURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofBaseURLFileLoader_handleRequest(self, request) +ofBaseURLFileLoader_swigregister = _openframeworks.ofBaseURLFileLoader_swigregister +ofBaseURLFileLoader_swigregister(ofBaseURLFileLoader) + +class ofBaseMaterial(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseMaterial, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseMaterial, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseMaterial + __del__ = lambda self: None + + def getDiffuseColor(self): + return _openframeworks.ofBaseMaterial_getDiffuseColor(self) + + def getAmbientColor(self): + return _openframeworks.ofBaseMaterial_getAmbientColor(self) + + def getSpecularColor(self): + return _openframeworks.ofBaseMaterial_getSpecularColor(self) + + def getEmissiveColor(self): + return _openframeworks.ofBaseMaterial_getEmissiveColor(self) + + def getShininess(self): + return _openframeworks.ofBaseMaterial_getShininess(self) + + def begin(self): + return _openframeworks.ofBaseMaterial_begin(self) + + def end(self): + return _openframeworks.ofBaseMaterial_end(self) + + def getShader(self, textureTarget, renderer): + return _openframeworks.ofBaseMaterial_getShader(self, textureTarget, renderer) + + def uploadMatrices(self, shader, renderer): + return _openframeworks.ofBaseMaterial_uploadMatrices(self, shader, renderer) + + def updateMaterial(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateMaterial(self, shader, renderer) + + def updateLights(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateLights(self, shader, renderer) +ofBaseMaterial_swigregister = _openframeworks.ofBaseMaterial_swigregister +ofBaseMaterial_swigregister(ofBaseMaterial) + class ofSerialDeviceInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofSerialDeviceInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerialDeviceInfo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSerialDeviceInfo(*args) - try: self.this.append(this) - except: self.this = this - def getDevicePath(self): return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) - def getDeviceName(self): return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) - def getDeviceID(self): return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getDevicePath(self): + return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) + + def getDeviceName(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) + + def getDeviceID(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) __swig_destroy__ = _openframeworks.delete_ofSerialDeviceInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofSerialDeviceInfo_swigregister = _openframeworks.ofSerialDeviceInfo_swigregister ofSerialDeviceInfo_swigregister(ofSerialDeviceInfo) @@ -1643,297 +3258,431 @@ class ofStyle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofStyle, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofStyle() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofStyle - __del__ = lambda self : None; + __del__ = lambda self: None __swig_setmethods__["color"] = _openframeworks.ofStyle_color_set __swig_getmethods__["color"] = _openframeworks.ofStyle_color_get - if _newclass:color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) + if _newclass: + color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) __swig_setmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_set __swig_getmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_get - if _newclass:bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) + if _newclass: + bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) __swig_setmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_set __swig_getmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_get - if _newclass:polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) + if _newclass: + polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) __swig_setmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_set __swig_getmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_get - if _newclass:rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) + if _newclass: + rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) __swig_setmethods__["bFill"] = _openframeworks.ofStyle_bFill_set __swig_getmethods__["bFill"] = _openframeworks.ofStyle_bFill_get - if _newclass:bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) + if _newclass: + bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) __swig_setmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_set __swig_getmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_get - if _newclass:drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) + if _newclass: + drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) __swig_setmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_set __swig_getmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_get - if _newclass:blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) + if _newclass: + blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) __swig_setmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_set __swig_getmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_get - if _newclass:smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) + if _newclass: + smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) __swig_setmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_set __swig_getmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_get - if _newclass:circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) + if _newclass: + circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) __swig_setmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_set __swig_getmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_get - if _newclass:sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) + if _newclass: + sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) __swig_setmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_set __swig_getmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_get - if _newclass:curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) + if _newclass: + curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) __swig_setmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_set __swig_getmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_get - if _newclass:lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) + if _newclass: + lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) ofStyle_swigregister = _openframeworks.ofStyle_swigregister ofStyle_swigregister(ofStyle) def ofResetElapsedTimeCounter(): - return _openframeworks.ofResetElapsedTimeCounter() + return _openframeworks.ofResetElapsedTimeCounter() ofResetElapsedTimeCounter = _openframeworks.ofResetElapsedTimeCounter def ofGetElapsedTimef(): - return _openframeworks.ofGetElapsedTimef() + return _openframeworks.ofGetElapsedTimef() ofGetElapsedTimef = _openframeworks.ofGetElapsedTimef def ofGetElapsedTimeMillis(): - return _openframeworks.ofGetElapsedTimeMillis() + return _openframeworks.ofGetElapsedTimeMillis() ofGetElapsedTimeMillis = _openframeworks.ofGetElapsedTimeMillis def ofGetElapsedTimeMicros(): - return _openframeworks.ofGetElapsedTimeMicros() + return _openframeworks.ofGetElapsedTimeMicros() ofGetElapsedTimeMicros = _openframeworks.ofGetElapsedTimeMicros def ofGetFrameNum(): - return _openframeworks.ofGetFrameNum() + return _openframeworks.ofGetFrameNum() ofGetFrameNum = _openframeworks.ofGetFrameNum def ofGetSeconds(): - return _openframeworks.ofGetSeconds() + return _openframeworks.ofGetSeconds() ofGetSeconds = _openframeworks.ofGetSeconds def ofGetMinutes(): - return _openframeworks.ofGetMinutes() + return _openframeworks.ofGetMinutes() ofGetMinutes = _openframeworks.ofGetMinutes def ofGetHours(): - return _openframeworks.ofGetHours() + return _openframeworks.ofGetHours() ofGetHours = _openframeworks.ofGetHours def ofGetUnixTime(): - return _openframeworks.ofGetUnixTime() + return _openframeworks.ofGetUnixTime() ofGetUnixTime = _openframeworks.ofGetUnixTime def ofGetSystemTime(): - return _openframeworks.ofGetSystemTime() + return _openframeworks.ofGetSystemTime() ofGetSystemTime = _openframeworks.ofGetSystemTime def ofGetSystemTimeMicros(): - return _openframeworks.ofGetSystemTimeMicros() + return _openframeworks.ofGetSystemTimeMicros() ofGetSystemTimeMicros = _openframeworks.ofGetSystemTimeMicros +def ofSleepMillis(millis): + return _openframeworks.ofSleepMillis(millis) +ofSleepMillis = _openframeworks.ofSleepMillis + def ofGetTimestampString(*args): - return _openframeworks.ofGetTimestampString(*args) + return _openframeworks.ofGetTimestampString(*args) ofGetTimestampString = _openframeworks.ofGetTimestampString def ofGetYear(): - return _openframeworks.ofGetYear() + return _openframeworks.ofGetYear() ofGetYear = _openframeworks.ofGetYear def ofGetMonth(): - return _openframeworks.ofGetMonth() + return _openframeworks.ofGetMonth() ofGetMonth = _openframeworks.ofGetMonth def ofGetDay(): - return _openframeworks.ofGetDay() + return _openframeworks.ofGetDay() ofGetDay = _openframeworks.ofGetDay def ofGetWeekday(): - return _openframeworks.ofGetWeekday() + return _openframeworks.ofGetWeekday() ofGetWeekday = _openframeworks.ofGetWeekday -def ofLaunchBrowser(*args): - return _openframeworks.ofLaunchBrowser(*args) -ofLaunchBrowser = _openframeworks.ofLaunchBrowser - def ofEnableDataPath(): - return _openframeworks.ofEnableDataPath() + return _openframeworks.ofEnableDataPath() ofEnableDataPath = _openframeworks.ofEnableDataPath def ofDisableDataPath(): - return _openframeworks.ofDisableDataPath() + return _openframeworks.ofDisableDataPath() ofDisableDataPath = _openframeworks.ofDisableDataPath -def ofToDataPath(*args): - return _openframeworks.ofToDataPath(*args) +def ofToDataPath(path, absolute=False): + return _openframeworks.ofToDataPath(path, absolute) ofToDataPath = _openframeworks.ofToDataPath -def ofSetWorkingDirectoryToDefault(): - return _openframeworks.ofSetWorkingDirectoryToDefault() -ofSetWorkingDirectoryToDefault = _openframeworks.ofSetWorkingDirectoryToDefault +def ofRestoreWorkingDirectoryToDefault(): + return _openframeworks.ofRestoreWorkingDirectoryToDefault() +ofRestoreWorkingDirectoryToDefault = _openframeworks.ofRestoreWorkingDirectoryToDefault -def ofSetDataPathRoot(*args): - return _openframeworks.ofSetDataPathRoot(*args) +def ofSetDataPathRoot(root): + return _openframeworks.ofSetDataPathRoot(root) ofSetDataPathRoot = _openframeworks.ofSetDataPathRoot -def ofToHex(*args): - return _openframeworks.ofToHex(*args) -ofToHex = _openframeworks.ofToHex +def ofSplitString(source, delimiter, ignoreEmpty=False, trim=False): + return _openframeworks.ofSplitString(source, delimiter, ignoreEmpty, trim) +ofSplitString = _openframeworks.ofSplitString -def ofHexToInt(*args): - return _openframeworks.ofHexToInt(*args) -ofHexToInt = _openframeworks.ofHexToInt +def ofJoinString(stringElements, delimiter): + return _openframeworks.ofJoinString(stringElements, delimiter) +ofJoinString = _openframeworks.ofJoinString -def ofHexToChar(*args): - return _openframeworks.ofHexToChar(*args) -ofHexToChar = _openframeworks.ofHexToChar +def ofStringReplace(input, searchStr, replaceStr): + return _openframeworks.ofStringReplace(input, searchStr, replaceStr) +ofStringReplace = _openframeworks.ofStringReplace -def ofHexToFloat(*args): - return _openframeworks.ofHexToFloat(*args) -ofHexToFloat = _openframeworks.ofHexToFloat +def ofIsStringInString(haystack, needle): + return _openframeworks.ofIsStringInString(haystack, needle) +ofIsStringInString = _openframeworks.ofIsStringInString -def ofHexToString(*args): - return _openframeworks.ofHexToString(*args) -ofHexToString = _openframeworks.ofHexToString +def ofStringTimesInString(haystack, needle): + return _openframeworks.ofStringTimesInString(haystack, needle) +ofStringTimesInString = _openframeworks.ofStringTimesInString + +def ofToLower(*args): + return _openframeworks.ofToLower(*args) +ofToLower = _openframeworks.ofToLower + +def ofToUpper(*args): + return _openframeworks.ofToUpper(*args) +ofToUpper = _openframeworks.ofToUpper + +def ofTrimFront(*args): + return _openframeworks.ofTrimFront(*args) +ofTrimFront = _openframeworks.ofTrimFront + +def ofTrimBack(*args): + return _openframeworks.ofTrimBack(*args) +ofTrimBack = _openframeworks.ofTrimBack + +def ofTrim(*args): + return _openframeworks.ofTrim(*args) +ofTrim = _openframeworks.ofTrim -def ofToInt(*args): - return _openframeworks.ofToInt(*args) +def ofAppendUTF8(str, utf8): + return _openframeworks.ofAppendUTF8(str, utf8) +ofAppendUTF8 = _openframeworks.ofAppendUTF8 + +def ofToInt(intString): + return _openframeworks.ofToInt(intString) ofToInt = _openframeworks.ofToInt -def ofToChar(*args): - return _openframeworks.ofToChar(*args) -ofToChar = _openframeworks.ofToChar +def ofToInt64(intString): + return _openframeworks.ofToInt64(intString) +ofToInt64 = _openframeworks.ofToInt64 -def ofToFloat(*args): - return _openframeworks.ofToFloat(*args) +def ofToFloat(floatString): + return _openframeworks.ofToFloat(floatString) ofToFloat = _openframeworks.ofToFloat -def ofToDouble(*args): - return _openframeworks.ofToDouble(*args) +def ofToDouble(doubleString): + return _openframeworks.ofToDouble(doubleString) ofToDouble = _openframeworks.ofToDouble -def ofToBool(*args): - return _openframeworks.ofToBool(*args) +def ofToBool(boolString): + return _openframeworks.ofToBool(boolString) ofToBool = _openframeworks.ofToBool -def ofToBinary(*args): - return _openframeworks.ofToBinary(*args) +def ofToHex(value): + return _openframeworks.ofToHex(value) +ofToHex = _openframeworks.ofToHex + +def ofHexToInt(intHexString): + return _openframeworks.ofHexToInt(intHexString) +ofHexToInt = _openframeworks.ofHexToInt + +def ofHexToChar(charHexString): + return _openframeworks.ofHexToChar(charHexString) +ofHexToChar = _openframeworks.ofHexToChar + +def ofHexToFloat(floatHexString): + return _openframeworks.ofHexToFloat(floatHexString) +ofHexToFloat = _openframeworks.ofHexToFloat + +def ofHexToString(stringHexString): + return _openframeworks.ofHexToString(stringHexString) +ofHexToString = _openframeworks.ofHexToString + +def ofToChar(charString): + return _openframeworks.ofToChar(charString) +ofToChar = _openframeworks.ofToChar + +def ofToBinary(value): + return _openframeworks.ofToBinary(value) ofToBinary = _openframeworks.ofToBinary -def ofBinaryToInt(*args): - return _openframeworks.ofBinaryToInt(*args) +def ofBinaryToInt(value): + return _openframeworks.ofBinaryToInt(value) ofBinaryToInt = _openframeworks.ofBinaryToInt -def ofBinaryToChar(*args): - return _openframeworks.ofBinaryToChar(*args) +def ofBinaryToChar(value): + return _openframeworks.ofBinaryToChar(value) ofBinaryToChar = _openframeworks.ofBinaryToChar -def ofBinaryToFloat(*args): - return _openframeworks.ofBinaryToFloat(*args) +def ofBinaryToFloat(value): + return _openframeworks.ofBinaryToFloat(value) ofBinaryToFloat = _openframeworks.ofBinaryToFloat -def ofBinaryToString(*args): - return _openframeworks.ofBinaryToString(*args) +def ofBinaryToString(value): + return _openframeworks.ofBinaryToString(value) ofBinaryToString = _openframeworks.ofBinaryToString def ofGetVersionInfo(): - return _openframeworks.ofGetVersionInfo() + return _openframeworks.ofGetVersionInfo() ofGetVersionInfo = _openframeworks.ofGetVersionInfo def ofGetVersionMajor(): - return _openframeworks.ofGetVersionMajor() + return _openframeworks.ofGetVersionMajor() ofGetVersionMajor = _openframeworks.ofGetVersionMajor def ofGetVersionMinor(): - return _openframeworks.ofGetVersionMinor() + return _openframeworks.ofGetVersionMinor() ofGetVersionMinor = _openframeworks.ofGetVersionMinor def ofGetVersionPatch(): - return _openframeworks.ofGetVersionPatch() + return _openframeworks.ofGetVersionPatch() ofGetVersionPatch = _openframeworks.ofGetVersionPatch -def ofSaveScreen(*args): - return _openframeworks.ofSaveScreen(*args) +def ofGetVersionPreRelease(): + return _openframeworks.ofGetVersionPreRelease() +ofGetVersionPreRelease = _openframeworks.ofGetVersionPreRelease + +def ofSaveScreen(filename): + return _openframeworks.ofSaveScreen(filename) ofSaveScreen = _openframeworks.ofSaveScreen def ofSaveFrame(bUseViewport=False): - return _openframeworks.ofSaveFrame(bUseViewport) + return _openframeworks.ofSaveFrame(bUseViewport) ofSaveFrame = _openframeworks.ofSaveFrame -def ofSaveViewport(*args): - return _openframeworks.ofSaveViewport(*args) +def ofSaveViewport(filename): + return _openframeworks.ofSaveViewport(filename) ofSaveViewport = _openframeworks.ofSaveViewport -def ofSplitString(*args): - return _openframeworks.ofSplitString(*args) -ofSplitString = _openframeworks.ofSplitString +def ofLaunchBrowser(url, uriEncodeQuery=False): + return _openframeworks.ofLaunchBrowser(url, uriEncodeQuery) +ofLaunchBrowser = _openframeworks.ofLaunchBrowser -def ofJoinString(*args): - return _openframeworks.ofJoinString(*args) -ofJoinString = _openframeworks.ofJoinString +def ofSystem(command): + return _openframeworks.ofSystem(command) +ofSystem = _openframeworks.ofSystem -def ofStringReplace(*args): - return _openframeworks.ofStringReplace(*args) -ofStringReplace = _openframeworks.ofStringReplace +def ofGetTargetPlatform(): + return _openframeworks.ofGetTargetPlatform() +ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform -def ofIsStringInString(*args): - return _openframeworks.ofIsStringInString(*args) -ofIsStringInString = _openframeworks.ofIsStringInString +def ofGetEnv(var): + return _openframeworks.ofGetEnv(var) +ofGetEnv = _openframeworks.ofGetEnv +class ofUTF8Iterator(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofUTF8Iterator, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofUTF8Iterator, name) + __repr__ = _swig_repr -def ofStringTimesInString(*args): - return _openframeworks.ofStringTimesInString(*args) -ofStringTimesInString = _openframeworks.ofStringTimesInString + def __init__(self, str): + this = _openframeworks.new_ofUTF8Iterator(str) + try: + self.this.append(this) + except Exception: + self.this = this -def ofToLower(*args): - return _openframeworks.ofToLower(*args) -ofToLower = _openframeworks.ofToLower + def begin(self): + return _openframeworks.ofUTF8Iterator_begin(self) -def ofToUpper(*args): - return _openframeworks.ofToUpper(*args) -ofToUpper = _openframeworks.ofToUpper + def end(self): + return _openframeworks.ofUTF8Iterator_end(self) -def ofSystem(*args): - return _openframeworks.ofSystem(*args) -ofSystem = _openframeworks.ofSystem + def rbegin(self): + return _openframeworks.ofUTF8Iterator_rbegin(self) -def ofGetTargetPlatform(): - return _openframeworks.ofGetTargetPlatform() -ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform + def rend(self): + return _openframeworks.ofUTF8Iterator_rend(self) + __swig_destroy__ = _openframeworks.delete_ofUTF8Iterator + __del__ = lambda self: None +ofUTF8Iterator_swigregister = _openframeworks.ofUTF8Iterator_swigregister +ofUTF8Iterator_swigregister(ofUTF8Iterator) + + +def setWorkingDirectoryToDefault(): + return _openframeworks.setWorkingDirectoryToDefault() +setWorkingDirectoryToDefault = _openframeworks.setWorkingDirectoryToDefault + +def initutils(): + return _openframeworks.initutils() +initutils = _openframeworks.initutils + +def endutils(): + return _openframeworks.endutils() +endutils = _openframeworks.endutils class ofBuffer(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofBuffer, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofBuffer, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBuffer(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofBuffer_set(self, *args) + + def append(self, *args): + return _openframeworks.ofBuffer_append(self, *args) + + def writeTo(self, stream): + return _openframeworks.ofBuffer_writeTo(self, stream) + + def clear(self): + return _openframeworks.ofBuffer_clear(self) + + def allocate(self, _size): + return _openframeworks.ofBuffer_allocate(self, _size) + + def getData(self, *args): + return _openframeworks.ofBuffer_getData(self, *args) + + def getBinaryBuffer(self, *args): + return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) + + def getText(self): + return _openframeworks.ofBuffer_getText(self) + + def size(self): + return _openframeworks.ofBuffer_size(self) + + def getNextLine(self): + return _openframeworks.ofBuffer_getNextLine(self) + + def getFirstLine(self): + return _openframeworks.ofBuffer_getFirstLine(self) + + def isLastLine(self): + return _openframeworks.ofBuffer_isLastLine(self) + + def resetLineReader(self): + return _openframeworks.ofBuffer_resetLineReader(self) + + def begin(self, *args): + return _openframeworks.ofBuffer_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofBuffer_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofBuffer_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofBuffer_rend(self, *args) + + def getLines(self): + return _openframeworks.ofBuffer_getLines(self) __swig_destroy__ = _openframeworks.delete_ofBuffer - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBuffer_set(self, *args) - def append(self, *args): return _openframeworks.ofBuffer_append(self, *args) - def writeTo(self, *args): return _openframeworks.ofBuffer_writeTo(self, *args) - def clear(self): return _openframeworks.ofBuffer_clear(self) - def allocate(self, *args): return _openframeworks.ofBuffer_allocate(self, *args) - def getBinaryBuffer(self, *args): return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) - def getText(self): return _openframeworks.ofBuffer_getText(self) - def size(self): return _openframeworks.ofBuffer_size(self) - def getNextLine(self): return _openframeworks.ofBuffer_getNextLine(self) - def getFirstLine(self): return _openframeworks.ofBuffer_getFirstLine(self) - def isLastLine(self): return _openframeworks.ofBuffer_isLastLine(self) - def resetLineReader(self): return _openframeworks.ofBuffer_resetLineReader(self) + __del__ = lambda self: None ofBuffer_swigregister = _openframeworks.ofBuffer_swigregister ofBuffer_swigregister(ofBuffer) -def ofBufferFromFile(*args): - return _openframeworks.ofBufferFromFile(*args) +def ofBufferFromFile(path, binary=False): + return _openframeworks.ofBufferFromFile(path, binary) ofBufferFromFile = _openframeworks.ofBufferFromFile -def ofBufferToFile(*args): - return _openframeworks.ofBufferToFile(*args) +def ofBufferToFile(path, buffer, binary=False): + return _openframeworks.ofBufferToFile(path, buffer, binary) ofBufferToFile = _openframeworks.ofBufferToFile class ofFilePath(_object): __swig_setmethods__ = {} @@ -1942,116 +3691,143 @@ class ofFilePath(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofFilePath, name) __repr__ = _swig_repr __swig_getmethods__["getFileExt"] = lambda x: _openframeworks.ofFilePath_getFileExt - if _newclass:getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) + if _newclass: + getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) __swig_getmethods__["removeExt"] = lambda x: _openframeworks.ofFilePath_removeExt - if _newclass:removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) + if _newclass: + removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) __swig_getmethods__["addLeadingSlash"] = lambda x: _openframeworks.ofFilePath_addLeadingSlash - if _newclass:addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) + if _newclass: + addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) __swig_getmethods__["addTrailingSlash"] = lambda x: _openframeworks.ofFilePath_addTrailingSlash - if _newclass:addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) + if _newclass: + addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) __swig_getmethods__["removeTrailingSlash"] = lambda x: _openframeworks.ofFilePath_removeTrailingSlash - if _newclass:removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) + if _newclass: + removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) __swig_getmethods__["getPathForDirectory"] = lambda x: _openframeworks.ofFilePath_getPathForDirectory - if _newclass:getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) + if _newclass: + getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) __swig_getmethods__["getAbsolutePath"] = lambda x: _openframeworks.ofFilePath_getAbsolutePath - if _newclass:getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) + if _newclass: + getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) __swig_getmethods__["isAbsolute"] = lambda x: _openframeworks.ofFilePath_isAbsolute - if _newclass:isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) + if _newclass: + isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) __swig_getmethods__["getFileName"] = lambda x: _openframeworks.ofFilePath_getFileName - if _newclass:getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) + if _newclass: + getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) __swig_getmethods__["getBaseName"] = lambda x: _openframeworks.ofFilePath_getBaseName - if _newclass:getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) + if _newclass: + getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) __swig_getmethods__["getEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_getEnclosingDirectory - if _newclass:getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) + if _newclass: + getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) __swig_getmethods__["createEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_createEnclosingDirectory - if _newclass:createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) + if _newclass: + createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) __swig_getmethods__["getCurrentWorkingDirectory"] = lambda x: _openframeworks.ofFilePath_getCurrentWorkingDirectory - if _newclass:getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) + if _newclass: + getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) __swig_getmethods__["join"] = lambda x: _openframeworks.ofFilePath_join - if _newclass:join = staticmethod(_openframeworks.ofFilePath_join) + if _newclass: + join = staticmethod(_openframeworks.ofFilePath_join) __swig_getmethods__["getCurrentExePath"] = lambda x: _openframeworks.ofFilePath_getCurrentExePath - if _newclass:getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) + if _newclass: + getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) __swig_getmethods__["getCurrentExeDir"] = lambda x: _openframeworks.ofFilePath_getCurrentExeDir - if _newclass:getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) + if _newclass: + getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) __swig_getmethods__["getUserHomeDir"] = lambda x: _openframeworks.ofFilePath_getUserHomeDir - if _newclass:getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) - def __init__(self): + if _newclass: + getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) + __swig_getmethods__["makeRelative"] = lambda x: _openframeworks.ofFilePath_makeRelative + if _newclass: + makeRelative = staticmethod(_openframeworks.ofFilePath_makeRelative) + + def __init__(self): this = _openframeworks.new_ofFilePath() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFilePath - __del__ = lambda self : None; + __del__ = lambda self: None ofFilePath_swigregister = _openframeworks.ofFilePath_swigregister ofFilePath_swigregister(ofFilePath) -def ofFilePath_getFileExt(*args): - return _openframeworks.ofFilePath_getFileExt(*args) +def ofFilePath_getFileExt(filename): + return _openframeworks.ofFilePath_getFileExt(filename) ofFilePath_getFileExt = _openframeworks.ofFilePath_getFileExt -def ofFilePath_removeExt(*args): - return _openframeworks.ofFilePath_removeExt(*args) +def ofFilePath_removeExt(filename): + return _openframeworks.ofFilePath_removeExt(filename) ofFilePath_removeExt = _openframeworks.ofFilePath_removeExt -def ofFilePath_addLeadingSlash(*args): - return _openframeworks.ofFilePath_addLeadingSlash(*args) +def ofFilePath_addLeadingSlash(path): + return _openframeworks.ofFilePath_addLeadingSlash(path) ofFilePath_addLeadingSlash = _openframeworks.ofFilePath_addLeadingSlash -def ofFilePath_addTrailingSlash(*args): - return _openframeworks.ofFilePath_addTrailingSlash(*args) +def ofFilePath_addTrailingSlash(path): + return _openframeworks.ofFilePath_addTrailingSlash(path) ofFilePath_addTrailingSlash = _openframeworks.ofFilePath_addTrailingSlash -def ofFilePath_removeTrailingSlash(*args): - return _openframeworks.ofFilePath_removeTrailingSlash(*args) +def ofFilePath_removeTrailingSlash(path): + return _openframeworks.ofFilePath_removeTrailingSlash(path) ofFilePath_removeTrailingSlash = _openframeworks.ofFilePath_removeTrailingSlash -def ofFilePath_getPathForDirectory(*args): - return _openframeworks.ofFilePath_getPathForDirectory(*args) +def ofFilePath_getPathForDirectory(path): + return _openframeworks.ofFilePath_getPathForDirectory(path) ofFilePath_getPathForDirectory = _openframeworks.ofFilePath_getPathForDirectory -def ofFilePath_getAbsolutePath(*args): - return _openframeworks.ofFilePath_getAbsolutePath(*args) +def ofFilePath_getAbsolutePath(path, bRelativeToData=True): + return _openframeworks.ofFilePath_getAbsolutePath(path, bRelativeToData) ofFilePath_getAbsolutePath = _openframeworks.ofFilePath_getAbsolutePath -def ofFilePath_isAbsolute(*args): - return _openframeworks.ofFilePath_isAbsolute(*args) +def ofFilePath_isAbsolute(path): + return _openframeworks.ofFilePath_isAbsolute(path) ofFilePath_isAbsolute = _openframeworks.ofFilePath_isAbsolute -def ofFilePath_getFileName(*args): - return _openframeworks.ofFilePath_getFileName(*args) +def ofFilePath_getFileName(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getFileName(filePath, bRelativeToData) ofFilePath_getFileName = _openframeworks.ofFilePath_getFileName -def ofFilePath_getBaseName(*args): - return _openframeworks.ofFilePath_getBaseName(*args) +def ofFilePath_getBaseName(filePath): + return _openframeworks.ofFilePath_getBaseName(filePath) ofFilePath_getBaseName = _openframeworks.ofFilePath_getBaseName -def ofFilePath_getEnclosingDirectory(*args): - return _openframeworks.ofFilePath_getEnclosingDirectory(*args) +def ofFilePath_getEnclosingDirectory(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getEnclosingDirectory(filePath, bRelativeToData) ofFilePath_getEnclosingDirectory = _openframeworks.ofFilePath_getEnclosingDirectory -def ofFilePath_createEnclosingDirectory(*args): - return _openframeworks.ofFilePath_createEnclosingDirectory(*args) +def ofFilePath_createEnclosingDirectory(filePath, bRelativeToData=True, bRecursive=True): + return _openframeworks.ofFilePath_createEnclosingDirectory(filePath, bRelativeToData, bRecursive) ofFilePath_createEnclosingDirectory = _openframeworks.ofFilePath_createEnclosingDirectory def ofFilePath_getCurrentWorkingDirectory(): - return _openframeworks.ofFilePath_getCurrentWorkingDirectory() + return _openframeworks.ofFilePath_getCurrentWorkingDirectory() ofFilePath_getCurrentWorkingDirectory = _openframeworks.ofFilePath_getCurrentWorkingDirectory -def ofFilePath_join(*args): - return _openframeworks.ofFilePath_join(*args) +def ofFilePath_join(path1, path2): + return _openframeworks.ofFilePath_join(path1, path2) ofFilePath_join = _openframeworks.ofFilePath_join def ofFilePath_getCurrentExePath(): - return _openframeworks.ofFilePath_getCurrentExePath() + return _openframeworks.ofFilePath_getCurrentExePath() ofFilePath_getCurrentExePath = _openframeworks.ofFilePath_getCurrentExePath def ofFilePath_getCurrentExeDir(): - return _openframeworks.ofFilePath_getCurrentExeDir() + return _openframeworks.ofFilePath_getCurrentExeDir() ofFilePath_getCurrentExeDir = _openframeworks.ofFilePath_getCurrentExeDir def ofFilePath_getUserHomeDir(): - return _openframeworks.ofFilePath_getUserHomeDir() + return _openframeworks.ofFilePath_getUserHomeDir() ofFilePath_getUserHomeDir = _openframeworks.ofFilePath_getUserHomeDir +def ofFilePath_makeRelative(arg2, to): + return _openframeworks.ofFilePath_makeRelative(arg2, to) +ofFilePath_makeRelative = _openframeworks.ofFilePath_makeRelative + class ofFile(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFile, name, value) @@ -2063,74 +3839,152 @@ class ofFile(_object): WriteOnly = _openframeworks.ofFile_WriteOnly ReadWrite = _openframeworks.ofFile_ReadWrite Append = _openframeworks.ofFile_Append - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFile(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFile - __del__ = lambda self : None; - def open(self, *args): return _openframeworks.ofFile_open(self, *args) - def changeMode(self, *args): return _openframeworks.ofFile_changeMode(self, *args) - def close(self): return _openframeworks.ofFile_close(self) - def create(self): return _openframeworks.ofFile_create(self) - def exists(self): return _openframeworks.ofFile_exists(self) - def path(self): return _openframeworks.ofFile_path(self) - def getExtension(self): return _openframeworks.ofFile_getExtension(self) - def getFileName(self): return _openframeworks.ofFile_getFileName(self) - def getBaseName(self): return _openframeworks.ofFile_getBaseName(self) - def getEnclosingDirectory(self): return _openframeworks.ofFile_getEnclosingDirectory(self) - def getAbsolutePath(self): return _openframeworks.ofFile_getAbsolutePath(self) - def canRead(self): return _openframeworks.ofFile_canRead(self) - def canWrite(self): return _openframeworks.ofFile_canWrite(self) - def canExecute(self): return _openframeworks.ofFile_canExecute(self) - def isFile(self): return _openframeworks.ofFile_isFile(self) - def isLink(self): return _openframeworks.ofFile_isLink(self) - def isDirectory(self): return _openframeworks.ofFile_isDirectory(self) - def isDevice(self): return _openframeworks.ofFile_isDevice(self) - def isHidden(self): return _openframeworks.ofFile_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofFile_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofFile_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofFile_setExecutable(self, executable) - def copyTo(self, *args): return _openframeworks.ofFile_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofFile_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofFile_renameTo(self, *args) - def remove(self, recursive=False): return _openframeworks.ofFile_remove(self, recursive) - def getSize(self): return _openframeworks.ofFile_getSize(self) - def getPocoFile(self): return _openframeworks.ofFile_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofFile___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFile___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofFile___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofFile___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofFile___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofFile___ge__(self, *args) - def readToBuffer(self): return _openframeworks.ofFile_readToBuffer(self) - def writeFromBuffer(self, *args): return _openframeworks.ofFile_writeFromBuffer(self, *args) - def getFileBuffer(self): return _openframeworks.ofFile_getFileBuffer(self) + __del__ = lambda self: None + + def open(self, *args): + return _openframeworks.ofFile_open(self, *args) + + def changeMode(self, mode, binary=False): + return _openframeworks.ofFile_changeMode(self, mode, binary) + + def close(self): + return _openframeworks.ofFile_close(self) + + def create(self): + return _openframeworks.ofFile_create(self) + + def exists(self): + return _openframeworks.ofFile_exists(self) + + def path(self): + return _openframeworks.ofFile_path(self) + + def getExtension(self): + return _openframeworks.ofFile_getExtension(self) + + def getFileName(self): + return _openframeworks.ofFile_getFileName(self) + + def getBaseName(self): + return _openframeworks.ofFile_getBaseName(self) + + def getEnclosingDirectory(self): + return _openframeworks.ofFile_getEnclosingDirectory(self) + + def getAbsolutePath(self): + return _openframeworks.ofFile_getAbsolutePath(self) + + def canRead(self): + return _openframeworks.ofFile_canRead(self) + + def canWrite(self): + return _openframeworks.ofFile_canWrite(self) + + def canExecute(self): + return _openframeworks.ofFile_canExecute(self) + + def isFile(self): + return _openframeworks.ofFile_isFile(self) + + def isLink(self): + return _openframeworks.ofFile_isLink(self) + + def isDirectory(self): + return _openframeworks.ofFile_isDirectory(self) + + def isDevice(self): + return _openframeworks.ofFile_isDevice(self) + + def isHidden(self): + return _openframeworks.ofFile_isHidden(self) + + def setWriteable(self, writeable=True): + return _openframeworks.ofFile_setWriteable(self, writeable) + + def setReadOnly(self, readable=True): + return _openframeworks.ofFile_setReadOnly(self, readable) + + def setExecutable(self, executable=True): + return _openframeworks.ofFile_setExecutable(self, executable) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive=False): + return _openframeworks.ofFile_remove(self, recursive) + + def getSize(self): + return _openframeworks.ofFile_getSize(self) + + def __eq__(self, file): + return _openframeworks.ofFile___eq__(self, file) + + def __ne__(self, file): + return _openframeworks.ofFile___ne__(self, file) + + def __lt__(self, file): + return _openframeworks.ofFile___lt__(self, file) + + def __le__(self, file): + return _openframeworks.ofFile___le__(self, file) + + def __gt__(self, file): + return _openframeworks.ofFile___gt__(self, file) + + def __ge__(self, file): + return _openframeworks.ofFile___ge__(self, file) + + def readToBuffer(self): + return _openframeworks.ofFile_readToBuffer(self) + + def writeFromBuffer(self, buffer): + return _openframeworks.ofFile_writeFromBuffer(self, buffer) + + def getFileBuffer(self): + return _openframeworks.ofFile_getFileBuffer(self) __swig_getmethods__["copyFromTo"] = lambda x: _openframeworks.ofFile_copyFromTo - if _newclass:copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) + if _newclass: + copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) __swig_getmethods__["moveFromTo"] = lambda x: _openframeworks.ofFile_moveFromTo - if _newclass:moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) + if _newclass: + moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) __swig_getmethods__["doesFileExist"] = lambda x: _openframeworks.ofFile_doesFileExist - if _newclass:doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) + if _newclass: + doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) __swig_getmethods__["removeFile"] = lambda x: _openframeworks.ofFile_removeFile - if _newclass:removeFile = staticmethod(_openframeworks.ofFile_removeFile) + if _newclass: + removeFile = staticmethod(_openframeworks.ofFile_removeFile) ofFile_swigregister = _openframeworks.ofFile_swigregister ofFile_swigregister(ofFile) -def ofFile_copyFromTo(*args): - return _openframeworks.ofFile_copyFromTo(*args) +def ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_copyFromTo = _openframeworks.ofFile_copyFromTo -def ofFile_moveFromTo(*args): - return _openframeworks.ofFile_moveFromTo(*args) +def ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_moveFromTo = _openframeworks.ofFile_moveFromTo -def ofFile_doesFileExist(*args): - return _openframeworks.ofFile_doesFileExist(*args) +def ofFile_doesFileExist(fPath, bRelativeToData=True): + return _openframeworks.ofFile_doesFileExist(fPath, bRelativeToData) ofFile_doesFileExist = _openframeworks.ofFile_doesFileExist -def ofFile_removeFile(*args): - return _openframeworks.ofFile_removeFile(*args) +def ofFile_removeFile(path, bRelativeToData=True): + return _openframeworks.ofFile_removeFile(path, bRelativeToData) ofFile_removeFile = _openframeworks.ofFile_removeFile class ofDirectory(_object): @@ -2139,146 +3993,259 @@ class ofDirectory(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofDirectory, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofDirectory(*args) - try: self.this.append(this) - except: self.this = this - def open(self, *args): return _openframeworks.ofDirectory_open(self, *args) - def close(self): return _openframeworks.ofDirectory_close(self) - def create(self, recursive=False): return _openframeworks.ofDirectory_create(self, recursive) - def exists(self): return _openframeworks.ofDirectory_exists(self) - def path(self): return _openframeworks.ofDirectory_path(self) - def getAbsolutePath(self): return _openframeworks.ofDirectory_getAbsolutePath(self) - def isDirectory(self): return _openframeworks.ofDirectory_isDirectory(self) - def isHidden(self): return _openframeworks.ofDirectory_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofDirectory_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofDirectory_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofDirectory_setExecutable(self, executable) - def setShowHidden(self, *args): return _openframeworks.ofDirectory_setShowHidden(self, *args) - def copyTo(self, *args): return _openframeworks.ofDirectory_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofDirectory_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofDirectory_renameTo(self, *args) - def remove(self, *args): return _openframeworks.ofDirectory_remove(self, *args) - def allowExt(self, *args): return _openframeworks.ofDirectory_allowExt(self, *args) - def listDir(self, *args): return _openframeworks.ofDirectory_listDir(self, *args) - def getOriginalDirectory(self): return _openframeworks.ofDirectory_getOriginalDirectory(self) - def getName(self, *args): return _openframeworks.ofDirectory_getName(self, *args) - def getPath(self, *args): return _openframeworks.ofDirectory_getPath(self, *args) - def getFile(self, *args): return _openframeworks.ofDirectory_getFile(self, *args) - def getFiles(self): return _openframeworks.ofDirectory_getFiles(self) - def __getitem__(self, *args): return _openframeworks.ofDirectory___getitem__(self, *args) - def getShowHidden(self): return _openframeworks.ofDirectory_getShowHidden(self) - def reset(self): return _openframeworks.ofDirectory_reset(self) - def sort(self): return _openframeworks.ofDirectory_sort(self) - def size(self): return _openframeworks.ofDirectory_size(self) - def numFiles(self): return _openframeworks.ofDirectory_numFiles(self) - def getPocoFile(self): return _openframeworks.ofDirectory_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofDirectory___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofDirectory___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofDirectory___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofDirectory___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofDirectory___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofDirectory___ge__(self, *args) - __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory - if _newclass:createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) - __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty - if _newclass:isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) - __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist - if _newclass:doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) - __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory - if _newclass:removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) - __swig_destroy__ = _openframeworks.delete_ofDirectory - __del__ = lambda self : None; -ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister -ofDirectory_swigregister(ofDirectory) + try: + self.this.append(this) + except Exception: + self.this = this -def ofDirectory_createDirectory(*args): - return _openframeworks.ofDirectory_createDirectory(*args) -ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + def open(self, path): + return _openframeworks.ofDirectory_open(self, path) -def ofDirectory_isDirectoryEmpty(*args): - return _openframeworks.ofDirectory_isDirectoryEmpty(*args) -ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + def close(self): + return _openframeworks.ofDirectory_close(self) -def ofDirectory_doesDirectoryExist(*args): - return _openframeworks.ofDirectory_doesDirectoryExist(*args) -ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + def create(self, recursive=False): + return _openframeworks.ofDirectory_create(self, recursive) -def ofDirectory_removeDirectory(*args): - return _openframeworks.ofDirectory_removeDirectory(*args) -ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + def exists(self): + return _openframeworks.ofDirectory_exists(self) + def path(self): + return _openframeworks.ofDirectory_path(self) -def log(*args): - return _openframeworks.log(*args) -log = _openframeworks.log -OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE -OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE -OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING -OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR -OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR -OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + def getAbsolutePath(self): + return _openframeworks.ofDirectory_getAbsolutePath(self) -def ofSetLogLevel(*args): - return _openframeworks.ofSetLogLevel(*args) -ofSetLogLevel = _openframeworks.ofSetLogLevel + def isDirectory(self): + return _openframeworks.ofDirectory_isDirectory(self) -def ofGetLogLevel(): - return _openframeworks.ofGetLogLevel() -ofGetLogLevel = _openframeworks.ofGetLogLevel + def isHidden(self): + return _openframeworks.ofDirectory_isHidden(self) -def ofGetLogLevelName(*args): - return _openframeworks.ofGetLogLevelName(*args) -ofGetLogLevelName = _openframeworks.ofGetLogLevelName + def setWriteable(self, writeable=True): + return _openframeworks.ofDirectory_setWriteable(self, writeable) -def ofLogToFile(*args): - return _openframeworks.ofLogToFile(*args) -ofLogToFile = _openframeworks.ofLogToFile + def setReadOnly(self, readable=True): + return _openframeworks.ofDirectory_setReadOnly(self, readable) -def ofLogToConsole(): - return _openframeworks.ofLogToConsole() -ofLogToConsole = _openframeworks.ofLogToConsole -class ofFileDialogResult(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofFileDialogResult() - try: self.this.append(this) - except: self.this = this - def getName(self): return _openframeworks.ofFileDialogResult_getName(self) - def getPath(self): return _openframeworks.ofFileDialogResult_getPath(self) - __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set - __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get - if _newclass:filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) - __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set - __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get - if _newclass:fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) - __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set + def setExecutable(self, executable=True): + return _openframeworks.ofDirectory_setExecutable(self, executable) + + def setShowHidden(self, showHidden): + return _openframeworks.ofDirectory_setShowHidden(self, showHidden) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive): + return _openframeworks.ofDirectory_remove(self, recursive) + + def allowExt(self, extension): + return _openframeworks.ofDirectory_allowExt(self, extension) + + def listDir(self, *args): + return _openframeworks.ofDirectory_listDir(self, *args) + + def getOriginalDirectory(self): + return _openframeworks.ofDirectory_getOriginalDirectory(self) + + def getName(self, position): + return _openframeworks.ofDirectory_getName(self, position) + + def getPath(self, position): + return _openframeworks.ofDirectory_getPath(self, position) + + def getFile(self, *args): + return _openframeworks.ofDirectory_getFile(self, *args) + + def getFiles(self): + return _openframeworks.ofDirectory_getFiles(self) + + def __getitem__(self, position): + return _openframeworks.ofDirectory___getitem__(self, position) + + def getShowHidden(self): + return _openframeworks.ofDirectory_getShowHidden(self) + + def reset(self): + return _openframeworks.ofDirectory_reset(self) + + def sort(self): + return _openframeworks.ofDirectory_sort(self) + + def getSorted(self): + return _openframeworks.ofDirectory_getSorted(self) + + def size(self): + return _openframeworks.ofDirectory_size(self) + + def numFiles(self): + return _openframeworks.ofDirectory_numFiles(self) + + def __eq__(self, dir): + return _openframeworks.ofDirectory___eq__(self, dir) + + def __ne__(self, dir): + return _openframeworks.ofDirectory___ne__(self, dir) + + def __lt__(self, dir): + return _openframeworks.ofDirectory___lt__(self, dir) + + def __le__(self, dir): + return _openframeworks.ofDirectory___le__(self, dir) + + def __gt__(self, dir): + return _openframeworks.ofDirectory___gt__(self, dir) + + def __ge__(self, dir): + return _openframeworks.ofDirectory___ge__(self, dir) + __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory + if _newclass: + createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) + __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty + if _newclass: + isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) + __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist + if _newclass: + doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) + __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory + if _newclass: + removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) + + def begin(self): + return _openframeworks.ofDirectory_begin(self) + + def end(self): + return _openframeworks.ofDirectory_end(self) + + def rbegin(self): + return _openframeworks.ofDirectory_rbegin(self) + + def rend(self): + return _openframeworks.ofDirectory_rend(self) + __swig_destroy__ = _openframeworks.delete_ofDirectory + __del__ = lambda self: None +ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister +ofDirectory_swigregister(ofDirectory) + +def ofDirectory_createDirectory(dirPath, bRelativeToData=True, recursive=False): + return _openframeworks.ofDirectory_createDirectory(dirPath, bRelativeToData, recursive) +ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + +def ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData) +ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + +def ofDirectory_doesDirectoryExist(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_doesDirectoryExist(dirPath, bRelativeToData) +ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + +def ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData=True): + return _openframeworks.ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData) +ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + + +def log(level, message): + return _openframeworks.log(level, message) +log = _openframeworks.log + +_openframeworks.OF_LOG_VERBOSE_swigconstant(_openframeworks) +OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE + +_openframeworks.OF_LOG_NOTICE_swigconstant(_openframeworks) +OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE + +_openframeworks.OF_LOG_WARNING_swigconstant(_openframeworks) +OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING + +_openframeworks.OF_LOG_ERROR_swigconstant(_openframeworks) +OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR + +_openframeworks.OF_LOG_FATAL_ERROR_swigconstant(_openframeworks) +OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR + +_openframeworks.OF_LOG_SILENT_swigconstant(_openframeworks) +OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + +def ofSetLogLevel(*args): + return _openframeworks.ofSetLogLevel(*args) +ofSetLogLevel = _openframeworks.ofSetLogLevel + +def ofGetLogLevel(): + return _openframeworks.ofGetLogLevel() +ofGetLogLevel = _openframeworks.ofGetLogLevel + +def ofGetLogLevelName(level, pad=False): + return _openframeworks.ofGetLogLevelName(level, pad) +ofGetLogLevelName = _openframeworks.ofGetLogLevelName + +def ofLogToFile(path, append=False): + return _openframeworks.ofLogToFile(path, append) +ofLogToFile = _openframeworks.ofLogToFile + +def ofLogToConsole(): + return _openframeworks.ofLogToConsole() +ofLogToConsole = _openframeworks.ofLogToConsole +class ofFileDialogResult(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofFileDialogResult() + try: + self.this.append(this) + except Exception: + self.this = this + + def getName(self): + return _openframeworks.ofFileDialogResult_getName(self) + + def getPath(self): + return _openframeworks.ofFileDialogResult_getPath(self) + __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set + __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get + if _newclass: + filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) + __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set + __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get + if _newclass: + fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) + __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set __swig_getmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_get - if _newclass:bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) + if _newclass: + bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) __swig_destroy__ = _openframeworks.delete_ofFileDialogResult - __del__ = lambda self : None; + __del__ = lambda self: None ofFileDialogResult_swigregister = _openframeworks.ofFileDialogResult_swigregister ofFileDialogResult_swigregister(ofFileDialogResult) -def ofSystemAlertDialog(*args): - return _openframeworks.ofSystemAlertDialog(*args) +def ofSystemAlertDialog(errorMessage): + return _openframeworks.ofSystemAlertDialog(errorMessage) ofSystemAlertDialog = _openframeworks.ofSystemAlertDialog -def ofSystemLoadDialog(windowTitle="", bFolderSelection=False, defaultPath=""): - return _openframeworks.ofSystemLoadDialog(windowTitle, bFolderSelection, defaultPath) +def ofSystemLoadDialog(*args): + return _openframeworks.ofSystemLoadDialog(*args) ofSystemLoadDialog = _openframeworks.ofSystemLoadDialog -def ofSystemSaveDialog(*args): - return _openframeworks.ofSystemSaveDialog(*args) +def ofSystemSaveDialog(defaultName, messageName): + return _openframeworks.ofSystemSaveDialog(defaultName, messageName) ofSystemSaveDialog = _openframeworks.ofSystemSaveDialog def ofSystemTextBoxDialog(*args): - return _openframeworks.ofSystemTextBoxDialog(*args) + return _openframeworks.ofSystemTextBoxDialog(*args) ofSystemTextBoxDialog = _openframeworks.ofSystemTextBoxDialog class ofHttpRequest(_object): __swig_setmethods__ = {} @@ -2286,22 +4253,37 @@ class ofHttpRequest(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpRequest, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpRequest(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["url"] = _openframeworks.ofHttpRequest_url_set __swig_getmethods__["url"] = _openframeworks.ofHttpRequest_url_get - if _newclass:url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) + if _newclass: + url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) __swig_setmethods__["name"] = _openframeworks.ofHttpRequest_name_set __swig_getmethods__["name"] = _openframeworks.ofHttpRequest_name_get - if _newclass:name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) + if _newclass: + name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) __swig_setmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_set __swig_getmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_get - if _newclass:saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) - def getID(self): return _openframeworks.ofHttpRequest_getID(self) + if _newclass: + saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) + __swig_setmethods__["headers"] = _openframeworks.ofHttpRequest_headers_set + __swig_getmethods__["headers"] = _openframeworks.ofHttpRequest_headers_get + if _newclass: + headers = _swig_property(_openframeworks.ofHttpRequest_headers_get, _openframeworks.ofHttpRequest_headers_set) + + def getId(self): + return _openframeworks.ofHttpRequest_getId(self) + + def getID(self): + return _openframeworks.ofHttpRequest_getID(self) __swig_destroy__ = _openframeworks.delete_ofHttpRequest - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpRequest_swigregister = _openframeworks.ofHttpRequest_swigregister ofHttpRequest_swigregister(ofHttpRequest) @@ -2311,58 +4293,65 @@ class ofHttpResponse(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpResponse, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpResponse(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["request"] = _openframeworks.ofHttpResponse_request_set __swig_getmethods__["request"] = _openframeworks.ofHttpResponse_request_get - if _newclass:request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) + if _newclass: + request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) __swig_setmethods__["data"] = _openframeworks.ofHttpResponse_data_set __swig_getmethods__["data"] = _openframeworks.ofHttpResponse_data_get - if _newclass:data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) + if _newclass: + data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) __swig_setmethods__["status"] = _openframeworks.ofHttpResponse_status_set __swig_getmethods__["status"] = _openframeworks.ofHttpResponse_status_get - if _newclass:status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) + if _newclass: + status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) __swig_setmethods__["error"] = _openframeworks.ofHttpResponse_error_set __swig_getmethods__["error"] = _openframeworks.ofHttpResponse_error_get - if _newclass:error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) + if _newclass: + error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) __swig_destroy__ = _openframeworks.delete_ofHttpResponse - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpResponse_swigregister = _openframeworks.ofHttpResponse_swigregister ofHttpResponse_swigregister(ofHttpResponse) -def ofLoadURL(*args): - return _openframeworks.ofLoadURL(*args) +def ofLoadURL(url): + return _openframeworks.ofLoadURL(url) ofLoadURL = _openframeworks.ofLoadURL def ofLoadURLAsync(*args): - return _openframeworks.ofLoadURLAsync(*args) + return _openframeworks.ofLoadURLAsync(*args) ofLoadURLAsync = _openframeworks.ofLoadURLAsync -def ofSaveURLTo(*args): - return _openframeworks.ofSaveURLTo(*args) +def ofSaveURLTo(url, path): + return _openframeworks.ofSaveURLTo(url, path) ofSaveURLTo = _openframeworks.ofSaveURLTo -def ofSaveURLAsync(*args): - return _openframeworks.ofSaveURLAsync(*args) +def ofSaveURLAsync(url, path): + return _openframeworks.ofSaveURLAsync(url, path) ofSaveURLAsync = _openframeworks.ofSaveURLAsync -def ofRemoveURLRequest(*args): - return _openframeworks.ofRemoveURLRequest(*args) +def ofRemoveURLRequest(id): + return _openframeworks.ofRemoveURLRequest(id) ofRemoveURLRequest = _openframeworks.ofRemoveURLRequest def ofRemoveAllURLRequests(): - return _openframeworks.ofRemoveAllURLRequests() + return _openframeworks.ofRemoveAllURLRequests() ofRemoveAllURLRequests = _openframeworks.ofRemoveAllURLRequests def ofStopURLLoader(): - return _openframeworks.ofStopURLLoader() + return _openframeworks.ofStopURLLoader() ofStopURLLoader = _openframeworks.ofStopURLLoader def ofURLResponseEvent(): - return _openframeworks.ofURLResponseEvent() + return _openframeworks.ofURLResponseEvent() ofURLResponseEvent = _openframeworks.ofURLResponseEvent class ofURLFileLoader(_object): __swig_setmethods__ = {} @@ -2370,19 +4359,39 @@ class ofURLFileLoader(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofURLFileLoader, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofURLFileLoader() - try: self.this.append(this) - except: self.this = this - def get(self, *args): return _openframeworks.ofURLFileLoader_get(self, *args) - def getAsync(self, *args): return _openframeworks.ofURLFileLoader_getAsync(self, *args) - def saveTo(self, *args): return _openframeworks.ofURLFileLoader_saveTo(self, *args) - def saveAsync(self, *args): return _openframeworks.ofURLFileLoader_saveAsync(self, *args) - def remove(self, *args): return _openframeworks.ofURLFileLoader_remove(self, *args) - def clear(self): return _openframeworks.ofURLFileLoader_clear(self) - def stop(self): return _openframeworks.ofURLFileLoader_stop(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def get(self, url): + return _openframeworks.ofURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofURLFileLoader_handleRequest(self, request) __swig_destroy__ = _openframeworks.delete_ofURLFileLoader - __del__ = lambda self : None; + __del__ = lambda self: None ofURLFileLoader_swigregister = _openframeworks.ofURLFileLoader_swigregister ofURLFileLoader_swigregister(ofURLFileLoader) @@ -2392,86 +4401,221 @@ class ofRectangle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofRectangle, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofRectangle - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofRectangle(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofRectangle_set(self, *args) - def setX(self, *args): return _openframeworks.ofRectangle_setX(self, *args) - def setY(self, *args): return _openframeworks.ofRectangle_setY(self, *args) - def setWidth(self, *args): return _openframeworks.ofRectangle_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofRectangle_setHeight(self, *args) - def setPosition(self, *args): return _openframeworks.ofRectangle_setPosition(self, *args) - def setFromCenter(self, *args): return _openframeworks.ofRectangle_setFromCenter(self, *args) - def translate(self, *args): return _openframeworks.ofRectangle_translate(self, *args) - def translateX(self, *args): return _openframeworks.ofRectangle_translateX(self, *args) - def translateY(self, *args): return _openframeworks.ofRectangle_translateY(self, *args) - def scale(self, *args): return _openframeworks.ofRectangle_scale(self, *args) - def scaleWidth(self, *args): return _openframeworks.ofRectangle_scaleWidth(self, *args) - def scaleHeight(self, *args): return _openframeworks.ofRectangle_scaleHeight(self, *args) - def scaleFromCenter(self, *args): return _openframeworks.ofRectangle_scaleFromCenter(self, *args) - def scaleToScaleMode(self, *args): return _openframeworks.ofRectangle_scaleToScaleMode(self, *args) - def scaleToAspectRatio(self, *args): return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) - def scaleTo(self, *args): return _openframeworks.ofRectangle_scaleTo(self, *args) - def alignToHorz(self, *args): return _openframeworks.ofRectangle_alignToHorz(self, *args) - def alignToVert(self, *args): return _openframeworks.ofRectangle_alignToVert(self, *args) - def alignTo(self, *args): return _openframeworks.ofRectangle_alignTo(self, *args) - def inside(self, *args): return _openframeworks.ofRectangle_inside(self, *args) - def intersects(self, *args): return _openframeworks.ofRectangle_intersects(self, *args) - def growToInclude(self, *args): return _openframeworks.ofRectangle_growToInclude(self, *args) - def getIntersection(self, *args): return _openframeworks.ofRectangle_getIntersection(self, *args) - def getUnion(self, *args): return _openframeworks.ofRectangle_getUnion(self, *args) - def standardize(self): return _openframeworks.ofRectangle_standardize(self) - def getStandardized(self): return _openframeworks.ofRectangle_getStandardized(self) - def isStandardized(self): return _openframeworks.ofRectangle_isStandardized(self) - def getArea(self): return _openframeworks.ofRectangle_getArea(self) - def getPerimeter(self): return _openframeworks.ofRectangle_getPerimeter(self) - def getAspectRatio(self): return _openframeworks.ofRectangle_getAspectRatio(self) - def isEmpty(self): return _openframeworks.ofRectangle_isEmpty(self) - def getMin(self): return _openframeworks.ofRectangle_getMin(self) - def getMax(self): return _openframeworks.ofRectangle_getMax(self) - def getMinX(self): return _openframeworks.ofRectangle_getMinX(self) - def getMaxX(self): return _openframeworks.ofRectangle_getMaxX(self) - def getMinY(self): return _openframeworks.ofRectangle_getMinY(self) - def getMaxY(self): return _openframeworks.ofRectangle_getMaxY(self) - def getLeft(self): return _openframeworks.ofRectangle_getLeft(self) - def getRight(self): return _openframeworks.ofRectangle_getRight(self) - def getTop(self): return _openframeworks.ofRectangle_getTop(self) - def getBottom(self): return _openframeworks.ofRectangle_getBottom(self) - def getTopLeft(self): return _openframeworks.ofRectangle_getTopLeft(self) - def getTopRight(self): return _openframeworks.ofRectangle_getTopRight(self) - def getBottomLeft(self): return _openframeworks.ofRectangle_getBottomLeft(self) - def getBottomRight(self): return _openframeworks.ofRectangle_getBottomRight(self) - def getHorzAnchor(self, *args): return _openframeworks.ofRectangle_getHorzAnchor(self, *args) - def getVertAnchor(self, *args): return _openframeworks.ofRectangle_getVertAnchor(self, *args) - def getPosition(self): return _openframeworks.ofRectangle_getPosition(self) - def getPositionRef(self): return _openframeworks.ofRectangle_getPositionRef(self) - def getCenter(self): return _openframeworks.ofRectangle_getCenter(self) - def getX(self): return _openframeworks.ofRectangle_getX(self) - def getY(self): return _openframeworks.ofRectangle_getY(self) - def getWidth(self): return _openframeworks.ofRectangle_getWidth(self) - def getHeight(self): return _openframeworks.ofRectangle_getHeight(self) - def __add__(self, *args): return _openframeworks.ofRectangle___add__(self, *args) - def __eq__(self, *args): return _openframeworks.ofRectangle___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofRectangle___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofRectangle + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofRectangle_set(self, *args) + + def setX(self, px): + return _openframeworks.ofRectangle_setX(self, px) + + def setY(self, py): + return _openframeworks.ofRectangle_setY(self, py) + + def setWidth(self, w): + return _openframeworks.ofRectangle_setWidth(self, w) + + def setHeight(self, h): + return _openframeworks.ofRectangle_setHeight(self, h) + + def setPosition(self, *args): + return _openframeworks.ofRectangle_setPosition(self, *args) + + def setSize(self, w, h): + return _openframeworks.ofRectangle_setSize(self, w, h) + + def setFromCenter(self, *args): + return _openframeworks.ofRectangle_setFromCenter(self, *args) + + def translate(self, *args): + return _openframeworks.ofRectangle_translate(self, *args) + + def translateX(self, dx): + return _openframeworks.ofRectangle_translateX(self, dx) + + def translateY(self, dy): + return _openframeworks.ofRectangle_translateY(self, dy) + + def scale(self, *args): + return _openframeworks.ofRectangle_scale(self, *args) + + def scaleWidth(self, sX): + return _openframeworks.ofRectangle_scaleWidth(self, sX) + + def scaleHeight(self, sY): + return _openframeworks.ofRectangle_scaleHeight(self, sY) + + def scaleFromCenter(self, *args): + return _openframeworks.ofRectangle_scaleFromCenter(self, *args) + + def scaleToScaleMode(self, targetRect, scaleMode=OF_SCALEMODE_FIT): + return _openframeworks.ofRectangle_scaleToScaleMode(self, targetRect, scaleMode) + + def scaleToAspectRatio(self, *args): + return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) + + def scaleTo(self, *args): + return _openframeworks.ofRectangle_scaleTo(self, *args) + + def alignToHorz(self, *args): + return _openframeworks.ofRectangle_alignToHorz(self, *args) + + def alignToVert(self, *args): + return _openframeworks.ofRectangle_alignToVert(self, *args) + + def alignTo(self, *args): + return _openframeworks.ofRectangle_alignTo(self, *args) + + def inside(self, *args): + return _openframeworks.ofRectangle_inside(self, *args) + + def intersects(self, *args): + return _openframeworks.ofRectangle_intersects(self, *args) + + def growToInclude(self, *args): + return _openframeworks.ofRectangle_growToInclude(self, *args) + + def getIntersection(self, rect): + return _openframeworks.ofRectangle_getIntersection(self, rect) + + def getUnion(self, rect): + return _openframeworks.ofRectangle_getUnion(self, rect) + + def standardize(self): + return _openframeworks.ofRectangle_standardize(self) + + def getStandardized(self): + return _openframeworks.ofRectangle_getStandardized(self) + + def isStandardized(self): + return _openframeworks.ofRectangle_isStandardized(self) + + def getArea(self): + return _openframeworks.ofRectangle_getArea(self) + + def getPerimeter(self): + return _openframeworks.ofRectangle_getPerimeter(self) + + def getAspectRatio(self): + return _openframeworks.ofRectangle_getAspectRatio(self) + + def isEmpty(self): + return _openframeworks.ofRectangle_isEmpty(self) + + def getMin(self): + return _openframeworks.ofRectangle_getMin(self) + + def getMax(self): + return _openframeworks.ofRectangle_getMax(self) + + def getMinX(self): + return _openframeworks.ofRectangle_getMinX(self) + + def getMaxX(self): + return _openframeworks.ofRectangle_getMaxX(self) + + def getMinY(self): + return _openframeworks.ofRectangle_getMinY(self) + + def getMaxY(self): + return _openframeworks.ofRectangle_getMaxY(self) + + def getLeft(self): + return _openframeworks.ofRectangle_getLeft(self) + + def getRight(self): + return _openframeworks.ofRectangle_getRight(self) + + def getTop(self): + return _openframeworks.ofRectangle_getTop(self) + + def getBottom(self): + return _openframeworks.ofRectangle_getBottom(self) + + def getTopLeft(self): + return _openframeworks.ofRectangle_getTopLeft(self) + + def getTopRight(self): + return _openframeworks.ofRectangle_getTopRight(self) + + def getBottomLeft(self): + return _openframeworks.ofRectangle_getBottomLeft(self) + + def getBottomRight(self): + return _openframeworks.ofRectangle_getBottomRight(self) + + def getHorzAnchor(self, anchor): + return _openframeworks.ofRectangle_getHorzAnchor(self, anchor) + + def getVertAnchor(self, anchor): + return _openframeworks.ofRectangle_getVertAnchor(self, anchor) + + def getPosition(self): + return _openframeworks.ofRectangle_getPosition(self) + + def getPositionRef(self): + return _openframeworks.ofRectangle_getPositionRef(self) + + def getCenter(self): + return _openframeworks.ofRectangle_getCenter(self) + + def getX(self): + return _openframeworks.ofRectangle_getX(self) + + def getY(self): + return _openframeworks.ofRectangle_getY(self) + + def getWidth(self): + return _openframeworks.ofRectangle_getWidth(self) + + def getHeight(self): + return _openframeworks.ofRectangle_getHeight(self) + + def __add__(self, p): + return _openframeworks.ofRectangle___add__(self, p) + + def __sub__(self, p): + return _openframeworks.ofRectangle___sub__(self, p) + + def __eq__(self, rect): + return _openframeworks.ofRectangle___eq__(self, rect) + + def __ne__(self, rect): + return _openframeworks.ofRectangle___ne__(self, rect) + + def isZero(self): + return _openframeworks.ofRectangle_isZero(self) __swig_setmethods__["position"] = _openframeworks.ofRectangle_position_set __swig_getmethods__["position"] = _openframeworks.ofRectangle_position_get - if _newclass:position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) + if _newclass: + position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) __swig_setmethods__["width"] = _openframeworks.ofRectangle_width_set __swig_getmethods__["width"] = _openframeworks.ofRectangle_width_get - if _newclass:width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) __swig_setmethods__["height"] = _openframeworks.ofRectangle_height_set __swig_getmethods__["height"] = _openframeworks.ofRectangle_height_get - if _newclass:height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) __swig_setmethods__["x"] = _openframeworks.ofRectangle_x_set __swig_getmethods__["x"] = _openframeworks.ofRectangle_x_get - if _newclass:x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) __swig_setmethods__["y"] = _openframeworks.ofRectangle_y_set __swig_getmethods__["y"] = _openframeworks.ofRectangle_y_get - if _newclass:y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) - def __str__(self): return _openframeworks.ofRectangle___str__(self) + if _newclass: + y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) + + def __str__(self): + return _openframeworks.ofRectangle___str__(self) ofRectangle_swigregister = _openframeworks.ofRectangle_swigregister ofRectangle_swigregister(ofRectangle) @@ -2481,309 +4625,700 @@ class ofNode(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofNode, name) __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofNode() - try: self.this.append(this) - except: self.this = this __swig_destroy__ = _openframeworks.delete_ofNode - __del__ = lambda self : None; - def setParent(self, *args): return _openframeworks.ofNode_setParent(self, *args) - def clearParent(self, bMaintainGlobalTransform=False): return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) - def getParent(self): return _openframeworks.ofNode_getParent(self) - def getPosition(self): return _openframeworks.ofNode_getPosition(self) - def getX(self): return _openframeworks.ofNode_getX(self) - def getY(self): return _openframeworks.ofNode_getY(self) - def getZ(self): return _openframeworks.ofNode_getZ(self) - def getXAxis(self): return _openframeworks.ofNode_getXAxis(self) - def getYAxis(self): return _openframeworks.ofNode_getYAxis(self) - def getZAxis(self): return _openframeworks.ofNode_getZAxis(self) - def getSideDir(self): return _openframeworks.ofNode_getSideDir(self) - def getLookAtDir(self): return _openframeworks.ofNode_getLookAtDir(self) - def getUpDir(self): return _openframeworks.ofNode_getUpDir(self) - def getPitch(self): return _openframeworks.ofNode_getPitch(self) - def getHeading(self): return _openframeworks.ofNode_getHeading(self) - def getRoll(self): return _openframeworks.ofNode_getRoll(self) - def getOrientationQuat(self): return _openframeworks.ofNode_getOrientationQuat(self) - def getOrientationEuler(self): return _openframeworks.ofNode_getOrientationEuler(self) - def getScale(self): return _openframeworks.ofNode_getScale(self) - def getLocalTransformMatrix(self): return _openframeworks.ofNode_getLocalTransformMatrix(self) - def getGlobalTransformMatrix(self): return _openframeworks.ofNode_getGlobalTransformMatrix(self) - def getGlobalPosition(self): return _openframeworks.ofNode_getGlobalPosition(self) - def getGlobalOrientation(self): return _openframeworks.ofNode_getGlobalOrientation(self) - def getGlobalScale(self): return _openframeworks.ofNode_getGlobalScale(self) - def setTransformMatrix(self, *args): return _openframeworks.ofNode_setTransformMatrix(self, *args) - def setPosition(self, *args): return _openframeworks.ofNode_setPosition(self, *args) - def setGlobalPosition(self, *args): return _openframeworks.ofNode_setGlobalPosition(self, *args) - def setOrientation(self, *args): return _openframeworks.ofNode_setOrientation(self, *args) - def setGlobalOrientation(self, *args): return _openframeworks.ofNode_setGlobalOrientation(self, *args) - def setScale(self, *args): return _openframeworks.ofNode_setScale(self, *args) - def move(self, *args): return _openframeworks.ofNode_move(self, *args) - def truck(self, *args): return _openframeworks.ofNode_truck(self, *args) - def boom(self, *args): return _openframeworks.ofNode_boom(self, *args) - def dolly(self, *args): return _openframeworks.ofNode_dolly(self, *args) - def tilt(self, *args): return _openframeworks.ofNode_tilt(self, *args) - def pan(self, *args): return _openframeworks.ofNode_pan(self, *args) - def roll(self, *args): return _openframeworks.ofNode_roll(self, *args) - def rotate(self, *args): return _openframeworks.ofNode_rotate(self, *args) - def rotateAround(self, *args): return _openframeworks.ofNode_rotateAround(self, *args) - def lookAt(self, *args): return _openframeworks.ofNode_lookAt(self, *args) - def orbit(self, *args): return _openframeworks.ofNode_orbit(self, *args) - def transformGL(self): return _openframeworks.ofNode_transformGL(self) - def restoreTransformGL(self): return _openframeworks.ofNode_restoreTransformGL(self) - def resetTransform(self): return _openframeworks.ofNode_resetTransform(self) - def customDraw(self): return _openframeworks.ofNode_customDraw(self) - def draw(self): return _openframeworks.ofNode_draw(self) + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofNode(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setParent(self, parent, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_setParent(self, parent, bMaintainGlobalTransform) + + def clearParent(self, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) + + def getParent(self): + return _openframeworks.ofNode_getParent(self) + + def getPosition(self): + return _openframeworks.ofNode_getPosition(self) + + def getX(self): + return _openframeworks.ofNode_getX(self) + + def getY(self): + return _openframeworks.ofNode_getY(self) + + def getZ(self): + return _openframeworks.ofNode_getZ(self) + + def getXAxis(self): + return _openframeworks.ofNode_getXAxis(self) + + def getYAxis(self): + return _openframeworks.ofNode_getYAxis(self) + + def getZAxis(self): + return _openframeworks.ofNode_getZAxis(self) + + def getSideDir(self): + return _openframeworks.ofNode_getSideDir(self) + + def getLookAtDir(self): + return _openframeworks.ofNode_getLookAtDir(self) + + def getUpDir(self): + return _openframeworks.ofNode_getUpDir(self) + + def getPitch(self): + return _openframeworks.ofNode_getPitch(self) + + def getHeading(self): + return _openframeworks.ofNode_getHeading(self) + + def getRoll(self): + return _openframeworks.ofNode_getRoll(self) + + def getOrientationQuat(self): + return _openframeworks.ofNode_getOrientationQuat(self) + + def getOrientationEuler(self): + return _openframeworks.ofNode_getOrientationEuler(self) + + def getScale(self): + return _openframeworks.ofNode_getScale(self) + + def getLocalTransformMatrix(self): + return _openframeworks.ofNode_getLocalTransformMatrix(self) + + def getGlobalTransformMatrix(self): + return _openframeworks.ofNode_getGlobalTransformMatrix(self) + + def getGlobalPosition(self): + return _openframeworks.ofNode_getGlobalPosition(self) + + def getGlobalOrientation(self): + return _openframeworks.ofNode_getGlobalOrientation(self) + + def getGlobalScale(self): + return _openframeworks.ofNode_getGlobalScale(self) + + def setTransformMatrix(self, m44): + return _openframeworks.ofNode_setTransformMatrix(self, m44) + + def setPosition(self, *args): + return _openframeworks.ofNode_setPosition(self, *args) + + def setGlobalPosition(self, *args): + return _openframeworks.ofNode_setGlobalPosition(self, *args) + + def setOrientation(self, *args): + return _openframeworks.ofNode_setOrientation(self, *args) + + def setGlobalOrientation(self, q): + return _openframeworks.ofNode_setGlobalOrientation(self, q) + + def setScale(self, *args): + return _openframeworks.ofNode_setScale(self, *args) + + def move(self, *args): + return _openframeworks.ofNode_move(self, *args) + + def truck(self, amount): + return _openframeworks.ofNode_truck(self, amount) + + def boom(self, amount): + return _openframeworks.ofNode_boom(self, amount) + + def dolly(self, amount): + return _openframeworks.ofNode_dolly(self, amount) + + def tilt(self, degrees): + return _openframeworks.ofNode_tilt(self, degrees) + + def pan(self, degrees): + return _openframeworks.ofNode_pan(self, degrees) + + def roll(self, degrees): + return _openframeworks.ofNode_roll(self, degrees) + + def rotate(self, *args): + return _openframeworks.ofNode_rotate(self, *args) + + def rotateAround(self, *args): + return _openframeworks.ofNode_rotateAround(self, *args) + + def lookAt(self, *args): + return _openframeworks.ofNode_lookAt(self, *args) + + def orbit(self, *args): + return _openframeworks.ofNode_orbit(self, *args) + + def transformGL(self, renderer=None): + return _openframeworks.ofNode_transformGL(self, renderer) + + def restoreTransformGL(self, renderer=None): + return _openframeworks.ofNode_restoreTransformGL(self, renderer) + + def resetTransform(self): + return _openframeworks.ofNode_resetTransform(self) + + def customDraw(self, *args): + return _openframeworks.ofNode_customDraw(self, *args) + + def draw(self): + return _openframeworks.ofNode_draw(self) ofNode_swigregister = _openframeworks.ofNode_swigregister ofNode_swigregister(ofNode) -def ofDrawAxis(*args): - return _openframeworks.ofDrawAxis(*args) +def ofDrawAxis(size): + return _openframeworks.ofDrawAxis(size) ofDrawAxis = _openframeworks.ofDrawAxis -def ofDrawGrid(scale=10.0, ticks=8.0, labels=False, x=True, y=True, z=True): - return _openframeworks.ofDrawGrid(scale, ticks, labels, x, y, z) +def ofDrawGrid(stepSize=1.25, numberOfSteps=8, labels=False, x=True, y=True, z=True): + return _openframeworks.ofDrawGrid(stepSize, numberOfSteps, labels, x, y, z) ofDrawGrid = _openframeworks.ofDrawGrid -def ofDrawGridPlane(*args): - return _openframeworks.ofDrawGridPlane(*args) +def ofDrawGridPlane(stepSize=1.25, numberOfSteps=8, labels=False): + return _openframeworks.ofDrawGridPlane(stepSize, numberOfSteps, labels) ofDrawGridPlane = _openframeworks.ofDrawGridPlane -def ofDrawArrow(*args): - return _openframeworks.ofDrawArrow(*args) +def ofDrawArrow(start, end, headSize=0.05): + return _openframeworks.ofDrawArrow(start, end, headSize) ofDrawArrow = _openframeworks.ofDrawArrow -def ofDrawRotationAxes(*args): - return _openframeworks.ofDrawRotationAxes(*args) +def ofDrawRotationAxes(radius, stripWidth=10, circleRes=60): + return _openframeworks.ofDrawRotationAxes(radius, stripWidth, circleRes) ofDrawRotationAxes = _openframeworks.ofDrawRotationAxes class ofCamera(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofCamera, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofCamera, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofCamera() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCamera - __del__ = lambda self : None; - def setFov(self, *args): return _openframeworks.ofCamera_setFov(self, *args) - def setNearClip(self, *args): return _openframeworks.ofCamera_setNearClip(self, *args) - def setFarClip(self, *args): return _openframeworks.ofCamera_setFarClip(self, *args) - def setLensOffset(self, *args): return _openframeworks.ofCamera_setLensOffset(self, *args) - def setAspectRatio(self, *args): return _openframeworks.ofCamera_setAspectRatio(self, *args) - def setForceAspectRatio(self, *args): return _openframeworks.ofCamera_setForceAspectRatio(self, *args) - def getFov(self): return _openframeworks.ofCamera_getFov(self) - def getNearClip(self): return _openframeworks.ofCamera_getNearClip(self) - def getFarClip(self): return _openframeworks.ofCamera_getFarClip(self) - def getLensOffset(self): return _openframeworks.ofCamera_getLensOffset(self) - def getForceAspectRatio(self): return _openframeworks.ofCamera_getForceAspectRatio(self) - def getAspectRatio(self): return _openframeworks.ofCamera_getAspectRatio(self) - def setupPerspective(self, *args): return _openframeworks.ofCamera_setupPerspective(self, *args) - def setupOffAxisViewPortal(self, *args): return _openframeworks.ofCamera_setupOffAxisViewPortal(self, *args) - def setVFlip(self, *args): return _openframeworks.ofCamera_setVFlip(self, *args) - def isVFlipped(self): return _openframeworks.ofCamera_isVFlipped(self) - def enableOrtho(self): return _openframeworks.ofCamera_enableOrtho(self) - def disableOrtho(self): return _openframeworks.ofCamera_disableOrtho(self) - def getOrtho(self): return _openframeworks.ofCamera_getOrtho(self) - def getImagePlaneDistance(self, *args): return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) - def begin(self, *args): return _openframeworks.ofCamera_begin(self, *args) - def end(self): return _openframeworks.ofCamera_end(self) - def getProjectionMatrix(self, *args): return _openframeworks.ofCamera_getProjectionMatrix(self, *args) - def getModelViewMatrix(self): return _openframeworks.ofCamera_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self, *args): return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) - def worldToScreen(self, *args): return _openframeworks.ofCamera_worldToScreen(self, *args) - def screenToWorld(self, *args): return _openframeworks.ofCamera_screenToWorld(self, *args) - def worldToCamera(self, *args): return _openframeworks.ofCamera_worldToCamera(self, *args) - def cameraToWorld(self, *args): return _openframeworks.ofCamera_cameraToWorld(self, *args) + __del__ = lambda self: None + + def setFov(self, f): + return _openframeworks.ofCamera_setFov(self, f) + + def setNearClip(self, f): + return _openframeworks.ofCamera_setNearClip(self, f) + + def setFarClip(self, f): + return _openframeworks.ofCamera_setFarClip(self, f) + + def setLensOffset(self, lensOffset): + return _openframeworks.ofCamera_setLensOffset(self, lensOffset) + + def setAspectRatio(self, aspectRatio): + return _openframeworks.ofCamera_setAspectRatio(self, aspectRatio) + + def setForceAspectRatio(self, forceAspectRatio): + return _openframeworks.ofCamera_setForceAspectRatio(self, forceAspectRatio) + + def getFov(self): + return _openframeworks.ofCamera_getFov(self) + + def getNearClip(self): + return _openframeworks.ofCamera_getNearClip(self) + + def getFarClip(self): + return _openframeworks.ofCamera_getFarClip(self) + + def getLensOffset(self): + return _openframeworks.ofCamera_getLensOffset(self) + + def getForceAspectRatio(self): + return _openframeworks.ofCamera_getForceAspectRatio(self) + + def getAspectRatio(self): + return _openframeworks.ofCamera_getAspectRatio(self) + + def setupPerspective(self, *args): + return _openframeworks.ofCamera_setupPerspective(self, *args) + + def setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight): + return _openframeworks.ofCamera_setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight) + + def setVFlip(self, vflip): + return _openframeworks.ofCamera_setVFlip(self, vflip) + + def isVFlipped(self): + return _openframeworks.ofCamera_isVFlipped(self) + + def enableOrtho(self): + return _openframeworks.ofCamera_enableOrtho(self) + + def disableOrtho(self): + return _openframeworks.ofCamera_disableOrtho(self) + + def getOrtho(self): + return _openframeworks.ofCamera_getOrtho(self) + + def getImagePlaneDistance(self, *args): + return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) + + def begin(self, *args): + return _openframeworks.ofCamera_begin(self, *args) + + def end(self): + return _openframeworks.ofCamera_end(self) + + def getProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getProjectionMatrix(self, *args) + + def getModelViewMatrix(self): + return _openframeworks.ofCamera_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) + + def worldToScreen(self, *args): + return _openframeworks.ofCamera_worldToScreen(self, *args) + + def screenToWorld(self, *args): + return _openframeworks.ofCamera_screenToWorld(self, *args) + + def worldToCamera(self, *args): + return _openframeworks.ofCamera_worldToCamera(self, *args) + + def cameraToWorld(self, *args): + return _openframeworks.ofCamera_cameraToWorld(self, *args) + + def setRenderer(self, renderer): + return _openframeworks.ofCamera_setRenderer(self, renderer) ofCamera_swigregister = _openframeworks.ofCamera_swigregister ofCamera_swigregister(ofCamera) class ofEasyCam(ofCamera): __swig_setmethods__ = {} - for _s in [ofCamera]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofCamera]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofEasyCam, name, value) __swig_getmethods__ = {} - for _s in [ofCamera]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofCamera]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofEasyCam, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofEasyCam() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofEasyCam - __del__ = lambda self : None; - def begin(self, *args): return _openframeworks.ofEasyCam_begin(self, *args) - def reset(self): return _openframeworks.ofEasyCam_reset(self) - def setTarget(self, *args): return _openframeworks.ofEasyCam_setTarget(self, *args) - def getTarget(self): return _openframeworks.ofEasyCam_getTarget(self) - def setDistance(self, *args): return _openframeworks.ofEasyCam_setDistance(self, *args) - def getDistance(self): return _openframeworks.ofEasyCam_getDistance(self) - def setDrag(self, *args): return _openframeworks.ofEasyCam_setDrag(self, *args) - def getDrag(self): return _openframeworks.ofEasyCam_getDrag(self) - def setTranslationKey(self, *args): return _openframeworks.ofEasyCam_setTranslationKey(self, *args) - def getTranslationKey(self): return _openframeworks.ofEasyCam_getTranslationKey(self) - def enableMouseInput(self): return _openframeworks.ofEasyCam_enableMouseInput(self) - def disableMouseInput(self): return _openframeworks.ofEasyCam_disableMouseInput(self) - def getMouseInputEnabled(self): return _openframeworks.ofEasyCam_getMouseInputEnabled(self) - def enableMouseMiddleButton(self): return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) - def disableMouseMiddleButton(self): return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) - def getMouseMiddleButtonEnabled(self): return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) - def setAutoDistance(self, *args): return _openframeworks.ofEasyCam_setAutoDistance(self, *args) -ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister -ofEasyCam_swigregister(ofEasyCam) + __del__ = lambda self: None -class ofMesh(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) - __swig_getmethods__ = {} + def begin(self, *args): + return _openframeworks.ofEasyCam_begin(self, *args) + + def reset(self): + return _openframeworks.ofEasyCam_reset(self) + + def setTarget(self, *args): + return _openframeworks.ofEasyCam_setTarget(self, *args) + + def getTarget(self): + return _openframeworks.ofEasyCam_getTarget(self) + + def setDistance(self, distance): + return _openframeworks.ofEasyCam_setDistance(self, distance) + + def getDistance(self): + return _openframeworks.ofEasyCam_getDistance(self) + + def setDrag(self, drag): + return _openframeworks.ofEasyCam_setDrag(self, drag) + + def getDrag(self): + return _openframeworks.ofEasyCam_getDrag(self) + + def setAutoDistance(self, bAutoDistance): + return _openframeworks.ofEasyCam_setAutoDistance(self, bAutoDistance) + + def setEvents(self, events): + return _openframeworks.ofEasyCam_setEvents(self, events) + + def setTranslationKey(self, key): + return _openframeworks.ofEasyCam_setTranslationKey(self, key) + + def getTranslationKey(self): + return _openframeworks.ofEasyCam_getTranslationKey(self) + + def enableMouseInput(self): + return _openframeworks.ofEasyCam_enableMouseInput(self) + + def disableMouseInput(self): + return _openframeworks.ofEasyCam_disableMouseInput(self) + + def getMouseInputEnabled(self): + return _openframeworks.ofEasyCam_getMouseInputEnabled(self) + + def enableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) + + def disableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) + + def getMouseMiddleButtonEnabled(self): + return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) +ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister +ofEasyCam_swigregister(ofEasyCam) + +class ofMesh(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) + __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMesh, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofMesh(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _openframeworks.delete_ofMesh - __del__ = lambda self : None; - def setMode(self, *args): return _openframeworks.ofMesh_setMode(self, *args) - def getMode(self): return _openframeworks.ofMesh_getMode(self) - def clear(self): return _openframeworks.ofMesh_clear(self) - def setupIndicesAuto(self): return _openframeworks.ofMesh_setupIndicesAuto(self) - def getVertex(self, *args): return _openframeworks.ofMesh_getVertex(self, *args) - def addVertex(self, *args): return _openframeworks.ofMesh_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofMesh_addVertices(self, *args) - def removeVertex(self, *args): return _openframeworks.ofMesh_removeVertex(self, *args) - def setVertex(self, *args): return _openframeworks.ofMesh_setVertex(self, *args) - def clearVertices(self): return _openframeworks.ofMesh_clearVertices(self) - def getNormal(self, *args): return _openframeworks.ofMesh_getNormal(self, *args) - def addNormal(self, *args): return _openframeworks.ofMesh_addNormal(self, *args) - def addNormals(self, *args): return _openframeworks.ofMesh_addNormals(self, *args) - def removeNormal(self, *args): return _openframeworks.ofMesh_removeNormal(self, *args) - def setNormal(self, *args): return _openframeworks.ofMesh_setNormal(self, *args) - def clearNormals(self): return _openframeworks.ofMesh_clearNormals(self) - def getColor(self, *args): return _openframeworks.ofMesh_getColor(self, *args) - def addColor(self, *args): return _openframeworks.ofMesh_addColor(self, *args) - def addColors(self, *args): return _openframeworks.ofMesh_addColors(self, *args) - def removeColor(self, *args): return _openframeworks.ofMesh_removeColor(self, *args) - def setColor(self, *args): return _openframeworks.ofMesh_setColor(self, *args) - def clearColors(self): return _openframeworks.ofMesh_clearColors(self) - def getTexCoord(self, *args): return _openframeworks.ofMesh_getTexCoord(self, *args) - def addTexCoord(self, *args): return _openframeworks.ofMesh_addTexCoord(self, *args) - def addTexCoords(self, *args): return _openframeworks.ofMesh_addTexCoords(self, *args) - def removeTexCoord(self, *args): return _openframeworks.ofMesh_removeTexCoord(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMesh_setTexCoord(self, *args) - def clearTexCoords(self): return _openframeworks.ofMesh_clearTexCoords(self) - def getIndex(self, *args): return _openframeworks.ofMesh_getIndex(self, *args) - def addIndex(self, *args): return _openframeworks.ofMesh_addIndex(self, *args) - def addIndices(self, *args): return _openframeworks.ofMesh_addIndices(self, *args) - def removeIndex(self, *args): return _openframeworks.ofMesh_removeIndex(self, *args) - def setIndex(self, *args): return _openframeworks.ofMesh_setIndex(self, *args) - def clearIndices(self): return _openframeworks.ofMesh_clearIndices(self) - def addTriangle(self, *args): return _openframeworks.ofMesh_addTriangle(self, *args) - def getNumVertices(self): return _openframeworks.ofMesh_getNumVertices(self) - def getNumColors(self): return _openframeworks.ofMesh_getNumColors(self) - def getNumNormals(self): return _openframeworks.ofMesh_getNumNormals(self) - def getNumTexCoords(self): return _openframeworks.ofMesh_getNumTexCoords(self) - def getNumIndices(self): return _openframeworks.ofMesh_getNumIndices(self) - def getVerticesPointer(self, *args): return _openframeworks.ofMesh_getVerticesPointer(self, *args) - def getColorsPointer(self, *args): return _openframeworks.ofMesh_getColorsPointer(self, *args) - def getNormalsPointer(self, *args): return _openframeworks.ofMesh_getNormalsPointer(self, *args) - def getTexCoordsPointer(self, *args): return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) - def getIndexPointer(self, *args): return _openframeworks.ofMesh_getIndexPointer(self, *args) - def getVertices(self, *args): return _openframeworks.ofMesh_getVertices(self, *args) - def getColors(self, *args): return _openframeworks.ofMesh_getColors(self, *args) - def getNormals(self, *args): return _openframeworks.ofMesh_getNormals(self, *args) - def getTexCoords(self, *args): return _openframeworks.ofMesh_getTexCoords(self, *args) - def getIndices(self, *args): return _openframeworks.ofMesh_getIndices(self, *args) - def getCentroid(self): return _openframeworks.ofMesh_getCentroid(self) - def haveVertsChanged(self): return _openframeworks.ofMesh_haveVertsChanged(self) - def haveColorsChanged(self): return _openframeworks.ofMesh_haveColorsChanged(self) - def haveNormalsChanged(self): return _openframeworks.ofMesh_haveNormalsChanged(self) - def haveTexCoordsChanged(self): return _openframeworks.ofMesh_haveTexCoordsChanged(self) - def haveIndicesChanged(self): return _openframeworks.ofMesh_haveIndicesChanged(self) - def hasVertices(self): return _openframeworks.ofMesh_hasVertices(self) - def hasColors(self): return _openframeworks.ofMesh_hasColors(self) - def hasNormals(self): return _openframeworks.ofMesh_hasNormals(self) - def hasTexCoords(self): return _openframeworks.ofMesh_hasTexCoords(self) - def hasIndices(self): return _openframeworks.ofMesh_hasIndices(self) - def drawVertices(self): return _openframeworks.ofMesh_drawVertices(self) - def drawWireframe(self): return _openframeworks.ofMesh_drawWireframe(self) - def drawFaces(self): return _openframeworks.ofMesh_drawFaces(self) - def load(self, *args): return _openframeworks.ofMesh_load(self, *args) - def save(self, *args): return _openframeworks.ofMesh_save(self, *args) - def enableColors(self): return _openframeworks.ofMesh_enableColors(self) - def enableTextures(self): return _openframeworks.ofMesh_enableTextures(self) - def enableNormals(self): return _openframeworks.ofMesh_enableNormals(self) - def enableIndices(self): return _openframeworks.ofMesh_enableIndices(self) - def disableColors(self): return _openframeworks.ofMesh_disableColors(self) - def disableTextures(self): return _openframeworks.ofMesh_disableTextures(self) - def disableNormals(self): return _openframeworks.ofMesh_disableNormals(self) - def disableIndices(self): return _openframeworks.ofMesh_disableIndices(self) - def usingColors(self): return _openframeworks.ofMesh_usingColors(self) - def usingTextures(self): return _openframeworks.ofMesh_usingTextures(self) - def usingNormals(self): return _openframeworks.ofMesh_usingNormals(self) - def usingIndices(self): return _openframeworks.ofMesh_usingIndices(self) - def append(self, *args): return _openframeworks.ofMesh_append(self, *args) - def setColorForIndices(self, *args): return _openframeworks.ofMesh_setColorForIndices(self, *args) - def getMeshForIndices(self, *args): return _openframeworks.ofMesh_getMeshForIndices(self, *args) - def mergeDuplicateVertices(self): return _openframeworks.ofMesh_mergeDuplicateVertices(self) - def getUniqueFaces(self): return _openframeworks.ofMesh_getUniqueFaces(self) - def getFaceNormals(self, perVetex=False): return _openframeworks.ofMesh_getFaceNormals(self, perVetex) - def setFromTriangles(self, *args): return _openframeworks.ofMesh_setFromTriangles(self, *args) - def smoothNormals(self, *args): return _openframeworks.ofMesh_smoothNormals(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setFromTriangles(self, tris, bUseFaceNormal=False): + return _openframeworks.ofMesh_setFromTriangles(self, tris, bUseFaceNormal) + + def setMode(self, mode): + return _openframeworks.ofMesh_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofMesh_getMode(self) __swig_getmethods__["plane"] = lambda x: _openframeworks.ofMesh_plane - if _newclass:plane = staticmethod(_openframeworks.ofMesh_plane) + if _newclass: + plane = staticmethod(_openframeworks.ofMesh_plane) __swig_getmethods__["sphere"] = lambda x: _openframeworks.ofMesh_sphere - if _newclass:sphere = staticmethod(_openframeworks.ofMesh_sphere) + if _newclass: + sphere = staticmethod(_openframeworks.ofMesh_sphere) __swig_getmethods__["icosahedron"] = lambda x: _openframeworks.ofMesh_icosahedron - if _newclass:icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) + if _newclass: + icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) __swig_getmethods__["icosphere"] = lambda x: _openframeworks.ofMesh_icosphere - if _newclass:icosphere = staticmethod(_openframeworks.ofMesh_icosphere) + if _newclass: + icosphere = staticmethod(_openframeworks.ofMesh_icosphere) __swig_getmethods__["cylinder"] = lambda x: _openframeworks.ofMesh_cylinder - if _newclass:cylinder = staticmethod(_openframeworks.ofMesh_cylinder) + if _newclass: + cylinder = staticmethod(_openframeworks.ofMesh_cylinder) __swig_getmethods__["cone"] = lambda x: _openframeworks.ofMesh_cone - if _newclass:cone = staticmethod(_openframeworks.ofMesh_cone) + if _newclass: + cone = staticmethod(_openframeworks.ofMesh_cone) __swig_getmethods__["box"] = lambda x: _openframeworks.ofMesh_box - if _newclass:box = staticmethod(_openframeworks.ofMesh_box) + if _newclass: + box = staticmethod(_openframeworks.ofMesh_box) __swig_getmethods__["axis"] = lambda x: _openframeworks.ofMesh_axis - if _newclass:axis = staticmethod(_openframeworks.ofMesh_axis) - def draw(self, *args): return _openframeworks.ofMesh_draw(self, *args) + if _newclass: + axis = staticmethod(_openframeworks.ofMesh_axis) + + def addVertex(self, v): + return _openframeworks.ofMesh_addVertex(self, v) + + def addVertices(self, *args): + return _openframeworks.ofMesh_addVertices(self, *args) + + def removeVertex(self, index): + return _openframeworks.ofMesh_removeVertex(self, index) + + def setVertex(self, index, v): + return _openframeworks.ofMesh_setVertex(self, index, v) + + def clearVertices(self): + return _openframeworks.ofMesh_clearVertices(self) + + def clear(self): + return _openframeworks.ofMesh_clear(self) + + def getNumVertices(self): + return _openframeworks.ofMesh_getNumVertices(self) + + def getVerticesPointer(self, *args): + return _openframeworks.ofMesh_getVerticesPointer(self, *args) + + def getVertex(self, i): + return _openframeworks.ofMesh_getVertex(self, i) + + def getVertices(self, *args): + return _openframeworks.ofMesh_getVertices(self, *args) + + def haveVertsChanged(self): + return _openframeworks.ofMesh_haveVertsChanged(self) + + def hasVertices(self): + return _openframeworks.ofMesh_hasVertices(self) + + def append(self, mesh): + return _openframeworks.ofMesh_append(self, mesh) + + def mergeDuplicateVertices(self): + return _openframeworks.ofMesh_mergeDuplicateVertices(self) + + def getCentroid(self): + return _openframeworks.ofMesh_getCentroid(self) + + def getNormal(self, i): + return _openframeworks.ofMesh_getNormal(self, i) + + def addNormal(self, n): + return _openframeworks.ofMesh_addNormal(self, n) + + def addNormals(self, *args): + return _openframeworks.ofMesh_addNormals(self, *args) + + def removeNormal(self, index): + return _openframeworks.ofMesh_removeNormal(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMesh_setNormal(self, index, n) + + def clearNormals(self): + return _openframeworks.ofMesh_clearNormals(self) + + def getNumNormals(self): + return _openframeworks.ofMesh_getNumNormals(self) + + def getNormalsPointer(self, *args): + return _openframeworks.ofMesh_getNormalsPointer(self, *args) + + def getNormals(self, *args): + return _openframeworks.ofMesh_getNormals(self, *args) + + def haveNormalsChanged(self): + return _openframeworks.ofMesh_haveNormalsChanged(self) + + def hasNormals(self): + return _openframeworks.ofMesh_hasNormals(self) + + def enableNormals(self): + return _openframeworks.ofMesh_enableNormals(self) + + def disableNormals(self): + return _openframeworks.ofMesh_disableNormals(self) + + def usingNormals(self): + return _openframeworks.ofMesh_usingNormals(self) + + def smoothNormals(self, angle): + return _openframeworks.ofMesh_smoothNormals(self, angle) + + def getFace(self, faceId): + return _openframeworks.ofMesh_getFace(self, faceId) + + def getFaceNormals(self, perVetex=False): + return _openframeworks.ofMesh_getFaceNormals(self, perVetex) + + def getUniqueFaces(self): + return _openframeworks.ofMesh_getUniqueFaces(self) + + def getColor(self, i): + return _openframeworks.ofMesh_getColor(self, i) + + def addColor(self, c): + return _openframeworks.ofMesh_addColor(self, c) + + def addColors(self, *args): + return _openframeworks.ofMesh_addColors(self, *args) + + def removeColor(self, index): + return _openframeworks.ofMesh_removeColor(self, index) + + def setColor(self, index, c): + return _openframeworks.ofMesh_setColor(self, index, c) + + def clearColors(self): + return _openframeworks.ofMesh_clearColors(self) + + def getNumColors(self): + return _openframeworks.ofMesh_getNumColors(self) + + def getColorsPointer(self, *args): + return _openframeworks.ofMesh_getColorsPointer(self, *args) + + def getColors(self, *args): + return _openframeworks.ofMesh_getColors(self, *args) + + def haveColorsChanged(self): + return _openframeworks.ofMesh_haveColorsChanged(self) + + def hasColors(self): + return _openframeworks.ofMesh_hasColors(self) + + def enableColors(self): + return _openframeworks.ofMesh_enableColors(self) + + def disableColors(self): + return _openframeworks.ofMesh_disableColors(self) + + def usingColors(self): + return _openframeworks.ofMesh_usingColors(self) + + def getTexCoord(self, i): + return _openframeworks.ofMesh_getTexCoord(self, i) + + def addTexCoord(self, t): + return _openframeworks.ofMesh_addTexCoord(self, t) + + def addTexCoords(self, *args): + return _openframeworks.ofMesh_addTexCoords(self, *args) + + def removeTexCoord(self, index): + return _openframeworks.ofMesh_removeTexCoord(self, index) + + def setTexCoord(self, index, t): + return _openframeworks.ofMesh_setTexCoord(self, index, t) + + def clearTexCoords(self): + return _openframeworks.ofMesh_clearTexCoords(self) + + def getNumTexCoords(self): + return _openframeworks.ofMesh_getNumTexCoords(self) + + def getTexCoordsPointer(self, *args): + return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) + + def getTexCoords(self, *args): + return _openframeworks.ofMesh_getTexCoords(self, *args) + + def haveTexCoordsChanged(self): + return _openframeworks.ofMesh_haveTexCoordsChanged(self) + + def hasTexCoords(self): + return _openframeworks.ofMesh_hasTexCoords(self) + + def enableTextures(self): + return _openframeworks.ofMesh_enableTextures(self) + + def disableTextures(self): + return _openframeworks.ofMesh_disableTextures(self) + + def usingTextures(self): + return _openframeworks.ofMesh_usingTextures(self) + + def setupIndicesAuto(self): + return _openframeworks.ofMesh_setupIndicesAuto(self) + + def getIndex(self, i): + return _openframeworks.ofMesh_getIndex(self, i) + + def addIndex(self, i): + return _openframeworks.ofMesh_addIndex(self, i) + + def addIndices(self, *args): + return _openframeworks.ofMesh_addIndices(self, *args) + + def removeIndex(self, index): + return _openframeworks.ofMesh_removeIndex(self, index) + + def setIndex(self, index, val): + return _openframeworks.ofMesh_setIndex(self, index, val) + + def clearIndices(self): + return _openframeworks.ofMesh_clearIndices(self) + + def getNumIndices(self): + return _openframeworks.ofMesh_getNumIndices(self) + + def getIndexPointer(self, *args): + return _openframeworks.ofMesh_getIndexPointer(self, *args) + + def getIndices(self, *args): + return _openframeworks.ofMesh_getIndices(self, *args) + + def haveIndicesChanged(self): + return _openframeworks.ofMesh_haveIndicesChanged(self) + + def hasIndices(self): + return _openframeworks.ofMesh_hasIndices(self) + + def addTriangle(self, index1, index2, index3): + return _openframeworks.ofMesh_addTriangle(self, index1, index2, index3) + + def enableIndices(self): + return _openframeworks.ofMesh_enableIndices(self) + + def disableIndices(self): + return _openframeworks.ofMesh_disableIndices(self) + + def usingIndices(self): + return _openframeworks.ofMesh_usingIndices(self) + + def setColorForIndices(self, startIndex, endIndex, color): + return _openframeworks.ofMesh_setColorForIndices(self, startIndex, endIndex, color) + + def getMeshForIndices(self, *args): + return _openframeworks.ofMesh_getMeshForIndices(self, *args) + + def drawVertices(self): + return _openframeworks.ofMesh_drawVertices(self) + + def drawWireframe(self): + return _openframeworks.ofMesh_drawWireframe(self) + + def drawFaces(self): + return _openframeworks.ofMesh_drawFaces(self) + + def draw(self, *args): + return _openframeworks.ofMesh_draw(self, *args) + + def load(self, path): + return _openframeworks.ofMesh_load(self, path) + + def save(self, path, useBinary=False): + return _openframeworks.ofMesh_save(self, path, useBinary) + __swig_destroy__ = _openframeworks.delete_ofMesh + __del__ = lambda self: None ofMesh_swigregister = _openframeworks.ofMesh_swigregister ofMesh_swigregister(ofMesh) def ofMesh_plane(*args): - return _openframeworks.ofMesh_plane(*args) + return _openframeworks.ofMesh_plane(*args) ofMesh_plane = _openframeworks.ofMesh_plane def ofMesh_sphere(*args): - return _openframeworks.ofMesh_sphere(*args) + return _openframeworks.ofMesh_sphere(*args) ofMesh_sphere = _openframeworks.ofMesh_sphere -def ofMesh_icosahedron(*args): - return _openframeworks.ofMesh_icosahedron(*args) +def ofMesh_icosahedron(radius): + return _openframeworks.ofMesh_icosahedron(radius) ofMesh_icosahedron = _openframeworks.ofMesh_icosahedron -def ofMesh_icosphere(*args): - return _openframeworks.ofMesh_icosphere(*args) +def ofMesh_icosphere(radius, iterations=2): + return _openframeworks.ofMesh_icosphere(radius, iterations) ofMesh_icosphere = _openframeworks.ofMesh_icosphere def ofMesh_cylinder(*args): - return _openframeworks.ofMesh_cylinder(*args) + return _openframeworks.ofMesh_cylinder(*args) ofMesh_cylinder = _openframeworks.ofMesh_cylinder def ofMesh_cone(*args): - return _openframeworks.ofMesh_cone(*args) + return _openframeworks.ofMesh_cone(*args) ofMesh_cone = _openframeworks.ofMesh_cone -def ofMesh_box(*args): - return _openframeworks.ofMesh_box(*args) +def ofMesh_box(width, height, depth, resX=2, resY=2, resZ=2): + return _openframeworks.ofMesh_box(width, height, depth, resX, resY, resZ) ofMesh_box = _openframeworks.ofMesh_box def ofMesh_axis(size=1.0): - return _openframeworks.ofMesh_axis(size) + return _openframeworks.ofMesh_axis(size) ofMesh_axis = _openframeworks.ofMesh_axis class ofMeshFace(_object): @@ -2792,27 +5327,60 @@ class ofMeshFace(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMeshFace, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMeshFace() - try: self.this.append(this) - except: self.this = this - def getFaceNormal(self): return _openframeworks.ofMeshFace_getFaceNormal(self) - def setVertex(self, *args): return _openframeworks.ofMeshFace_setVertex(self, *args) - def getVertex(self, *args): return _openframeworks.ofMeshFace_getVertex(self, *args) - def setNormal(self, *args): return _openframeworks.ofMeshFace_setNormal(self, *args) - def getNormal(self, *args): return _openframeworks.ofMeshFace_getNormal(self, *args) - def setColor(self, *args): return _openframeworks.ofMeshFace_setColor(self, *args) - def getColor(self, *args): return _openframeworks.ofMeshFace_getColor(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMeshFace_setTexCoord(self, *args) - def getTexCoord(self, *args): return _openframeworks.ofMeshFace_getTexCoord(self, *args) - def setHasColors(self, *args): return _openframeworks.ofMeshFace_setHasColors(self, *args) - def setHasNormals(self, *args): return _openframeworks.ofMeshFace_setHasNormals(self, *args) - def setHasTexcoords(self, *args): return _openframeworks.ofMeshFace_setHasTexcoords(self, *args) - def hasColors(self): return _openframeworks.ofMeshFace_hasColors(self) - def hasNormals(self): return _openframeworks.ofMeshFace_hasNormals(self) - def hasTexcoords(self): return _openframeworks.ofMeshFace_hasTexcoords(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getFaceNormal(self): + return _openframeworks.ofMeshFace_getFaceNormal(self) + + def setVertex(self, index, v): + return _openframeworks.ofMeshFace_setVertex(self, index, v) + + def getVertex(self, index): + return _openframeworks.ofMeshFace_getVertex(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMeshFace_setNormal(self, index, n) + + def getNormal(self, index): + return _openframeworks.ofMeshFace_getNormal(self, index) + + def setColor(self, index, color): + return _openframeworks.ofMeshFace_setColor(self, index, color) + + def getColor(self, index): + return _openframeworks.ofMeshFace_getColor(self, index) + + def setTexCoord(self, index, tCoord): + return _openframeworks.ofMeshFace_setTexCoord(self, index, tCoord) + + def getTexCoord(self, index): + return _openframeworks.ofMeshFace_getTexCoord(self, index) + + def setHasColors(self, bColors): + return _openframeworks.ofMeshFace_setHasColors(self, bColors) + + def setHasNormals(self, bNormals): + return _openframeworks.ofMeshFace_setHasNormals(self, bNormals) + + def setHasTexcoords(self, bTexcoords): + return _openframeworks.ofMeshFace_setHasTexcoords(self, bTexcoords) + + def hasColors(self): + return _openframeworks.ofMeshFace_hasColors(self) + + def hasNormals(self): + return _openframeworks.ofMeshFace_hasNormals(self) + + def hasTexcoords(self): + return _openframeworks.ofMeshFace_hasTexcoords(self) __swig_destroy__ = _openframeworks.delete_ofMeshFace - __del__ = lambda self : None; + __del__ = lambda self: None ofMeshFace_swigregister = _openframeworks.ofMeshFace_swigregister ofMeshFace_swigregister(ofMeshFace) @@ -2822,25 +5390,54 @@ class ofPlanePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPlanePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPlanePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofPlanePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofPlanePrimitive_set(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofPlanePrimitive_resizeToTexture(self, *args) - def setWidth(self, *args): return _openframeworks.ofPlanePrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofPlanePrimitive_setHeight(self, *args) - def setColumns(self, *args): return _openframeworks.ofPlanePrimitive_setColumns(self, *args) - def setRows(self, *args): return _openframeworks.ofPlanePrimitive_setRows(self, *args) - def setResolution(self, *args): return _openframeworks.ofPlanePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofPlanePrimitive_setMode(self, *args) - def getNumColumns(self): return _openframeworks.ofPlanePrimitive_getNumColumns(self) - def getNumRows(self): return _openframeworks.ofPlanePrimitive_getNumRows(self) - def getResolution(self): return _openframeworks.ofPlanePrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofPlanePrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofPlanePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofPlanePrimitive_set(self, *args) + + def resizeToTexture(self, inTexture, scale=1.): + return _openframeworks.ofPlanePrimitive_resizeToTexture(self, inTexture, scale) + + def setWidth(self, width): + return _openframeworks.ofPlanePrimitive_setWidth(self, width) + + def setHeight(self, height): + return _openframeworks.ofPlanePrimitive_setHeight(self, height) + + def setColumns(self, columns): + return _openframeworks.ofPlanePrimitive_setColumns(self, columns) + + def setRows(self, rows): + return _openframeworks.ofPlanePrimitive_setRows(self, rows) + + def setResolution(self, columns, rows): + return _openframeworks.ofPlanePrimitive_setResolution(self, columns, rows) + + def setMode(self, mode): + return _openframeworks.ofPlanePrimitive_setMode(self, mode) + + def getNumColumns(self): + return _openframeworks.ofPlanePrimitive_getNumColumns(self) + + def getNumRows(self): + return _openframeworks.ofPlanePrimitive_getNumRows(self) + + def getResolution(self): + return _openframeworks.ofPlanePrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofPlanePrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPlanePrimitive_getHeight(self) ofPlanePrimitive_swigregister = _openframeworks.ofPlanePrimitive_swigregister ofPlanePrimitive_swigregister(ofPlanePrimitive) @@ -2850,18 +5447,33 @@ class ofSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofSpherePrimitive_set(self, *args) + + def setResolution(self, res): + return _openframeworks.ofSpherePrimitive_setResolution(self, res) + + def setRadius(self, radius): + return _openframeworks.ofSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofSpherePrimitive_getResolution(self) ofSpherePrimitive_swigregister = _openframeworks.ofSpherePrimitive_swigregister ofSpherePrimitive_swigregister(ofSpherePrimitive) @@ -2871,18 +5483,33 @@ class ofIcoSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofIcoSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofIcoSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofIcoSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofIcoSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofIcoSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofIcoSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofIcoSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofIcoSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofIcoSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, radius, res): + return _openframeworks.ofIcoSpherePrimitive_set(self, radius, res) + + def setResolution(self, iterations): + return _openframeworks.ofIcoSpherePrimitive_setResolution(self, iterations) + + def setRadius(self, radius): + return _openframeworks.ofIcoSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofIcoSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofIcoSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofIcoSpherePrimitive_getResolution(self) ofIcoSpherePrimitive_swigregister = _openframeworks.ofIcoSpherePrimitive_swigregister ofIcoSpherePrimitive_swigregister(ofIcoSpherePrimitive) @@ -2892,37 +5519,90 @@ class ofCylinderPrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofCylinderPrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofCylinderPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCylinderPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofCylinderPrimitive_set(self, *args) - def setRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setHeight(self, *args) - def setCapped(self, *args): return _openframeworks.ofCylinderPrimitive_setCapped(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofCylinderPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofCylinderPrimitive_setMode(self, *args) - def setTopCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, *args) - def setCylinderColor(self, *args): return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, *args) - def setBottomCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, *args) - def getTopCapIndices(self): return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) - def getTopCapMesh(self): return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) - def getCylinderIndices(self): return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) - def getCylinderMesh(self): return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) - def getBottomCapIndices(self): return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) - def getBottomCapMesh(self): return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofCylinderPrimitive_getResolution(self) - def getHeight(self): return _openframeworks.ofCylinderPrimitive_getHeight(self) - def getRadius(self): return _openframeworks.ofCylinderPrimitive_getRadius(self) - def getCapped(self): return _openframeworks.ofCylinderPrimitive_getCapped(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofCylinderPrimitive_set(self, *args) + + def setRadius(self, radius): + return _openframeworks.ofCylinderPrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofCylinderPrimitive_setHeight(self, height) + + def setCapped(self, bCapped): + return _openframeworks.ofCylinderPrimitive_setCapped(self, bCapped) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofCylinderPrimitive_setResolution(self, radiusSegments, heightSegments, capSegments) + + def setMode(self, mode): + return _openframeworks.ofCylinderPrimitive_setMode(self, mode) + + def setTopCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, color) + + def setCylinderColor(self, color): + return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, color) + + def setBottomCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, color) + + def getTopCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) + + def getTopCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) + + def getCylinderIndices(self): + return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) + + def getCylinderMesh(self): + return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) + + def getBottomCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) + + def getBottomCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofCylinderPrimitive_getResolution(self) + + def getHeight(self): + return _openframeworks.ofCylinderPrimitive_getHeight(self) + + def getRadius(self): + return _openframeworks.ofCylinderPrimitive_getRadius(self) + + def getCapped(self): + return _openframeworks.ofCylinderPrimitive_getCapped(self) ofCylinderPrimitive_swigregister = _openframeworks.ofCylinderPrimitive_swigregister ofCylinderPrimitive_swigregister(ofCylinderPrimitive) @@ -2932,32 +5612,75 @@ class ofConePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofConePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofConePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofConePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofConePrimitive_set(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofConePrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofConePrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofConePrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofConePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofConePrimitive_setMode(self, *args) - def setRadius(self, *args): return _openframeworks.ofConePrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofConePrimitive_setHeight(self, *args) - def setTopColor(self, *args): return _openframeworks.ofConePrimitive_setTopColor(self, *args) - def setCapColor(self, *args): return _openframeworks.ofConePrimitive_setCapColor(self, *args) - def getConeIndices(self): return _openframeworks.ofConePrimitive_getConeIndices(self) - def getConeMesh(self): return _openframeworks.ofConePrimitive_getConeMesh(self) - def getCapIndices(self): return _openframeworks.ofConePrimitive_getCapIndices(self) - def getCapMesh(self): return _openframeworks.ofConePrimitive_getCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofConePrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofConePrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofConePrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofConePrimitive_getResolution(self) - def getRadius(self): return _openframeworks.ofConePrimitive_getRadius(self) - def getHeight(self): return _openframeworks.ofConePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofConePrimitive_set(self, *args) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofConePrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofConePrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofConePrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusRes, heightRes, capRes): + return _openframeworks.ofConePrimitive_setResolution(self, radiusRes, heightRes, capRes) + + def setMode(self, mode): + return _openframeworks.ofConePrimitive_setMode(self, mode) + + def setRadius(self, radius): + return _openframeworks.ofConePrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofConePrimitive_setHeight(self, height) + + def setTopColor(self, color): + return _openframeworks.ofConePrimitive_setTopColor(self, color) + + def setCapColor(self, color): + return _openframeworks.ofConePrimitive_setCapColor(self, color) + + def getConeIndices(self): + return _openframeworks.ofConePrimitive_getConeIndices(self) + + def getConeMesh(self): + return _openframeworks.ofConePrimitive_getConeMesh(self) + + def getCapIndices(self): + return _openframeworks.ofConePrimitive_getCapIndices(self) + + def getCapMesh(self): + return _openframeworks.ofConePrimitive_getCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofConePrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofConePrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofConePrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofConePrimitive_getResolution(self) + + def getRadius(self): + return _openframeworks.ofConePrimitive_getRadius(self) + + def getHeight(self): + return _openframeworks.ofConePrimitive_getHeight(self) ofConePrimitive_swigregister = _openframeworks.ofConePrimitive_swigregister ofConePrimitive_swigregister(ofConePrimitive) @@ -2974,226 +5697,421 @@ class ofBoxPrimitive(_object): SIDE_TOP = _openframeworks.ofBoxPrimitive_SIDE_TOP SIDE_BOTTOM = _openframeworks.ofBoxPrimitive_SIDE_BOTTOM SIDES_TOTAL = _openframeworks.ofBoxPrimitive_SIDES_TOTAL - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBoxPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofBoxPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBoxPrimitive_set(self, *args) - def setWidth(self, *args): return _openframeworks.ofBoxPrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofBoxPrimitive_setHeight(self, *args) - def setDepth(self, *args): return _openframeworks.ofBoxPrimitive_setDepth(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofBoxPrimitive_resizeToTexture(self, *args) - def getSideIndices(self, *args): return _openframeworks.ofBoxPrimitive_getSideIndices(self, *args) - def getSideMesh(self, *args): return _openframeworks.ofBoxPrimitive_getSideMesh(self, *args) - def setResolutionWidth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, *args) - def setResolutionDepth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, *args) - def setResolution(self, *args): return _openframeworks.ofBoxPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofBoxPrimitive_setMode(self, *args) - def setSideColor(self, *args): return _openframeworks.ofBoxPrimitive_setSideColor(self, *args) - def getResolutionWidth(self): return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) - def getResolutionHeight(self): return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) - def getResolutionDepth(self): return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) - def getResolution(self): return _openframeworks.ofBoxPrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofBoxPrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofBoxPrimitive_getHeight(self) - def getDepth(self): return _openframeworks.ofBoxPrimitive_getDepth(self) - def getSize(self): return _openframeworks.ofBoxPrimitive_getSize(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofBoxPrimitive_set(self, *args) + + def setWidth(self, a_width): + return _openframeworks.ofBoxPrimitive_setWidth(self, a_width) + + def setHeight(self, a_height): + return _openframeworks.ofBoxPrimitive_setHeight(self, a_height) + + def setDepth(self, a_depth): + return _openframeworks.ofBoxPrimitive_setDepth(self, a_depth) + + def resizeToTexture(self, inTexture): + return _openframeworks.ofBoxPrimitive_resizeToTexture(self, inTexture) + + def getSideIndices(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideIndices(self, sideIndex) + + def getSideMesh(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideMesh(self, sideIndex) + + def setResolutionWidth(self, widthRes): + return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, widthRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionDepth(self, depthRes): + return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, depthRes) + + def setResolution(self, *args): + return _openframeworks.ofBoxPrimitive_setResolution(self, *args) + + def setMode(self, mode): + return _openframeworks.ofBoxPrimitive_setMode(self, mode) + + def setSideColor(self, sideIndex, color): + return _openframeworks.ofBoxPrimitive_setSideColor(self, sideIndex, color) + + def getResolutionWidth(self): + return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) + + def getResolutionHeight(self): + return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) + + def getResolutionDepth(self): + return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) + + def getResolution(self): + return _openframeworks.ofBoxPrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofBoxPrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofBoxPrimitive_getHeight(self) + + def getDepth(self): + return _openframeworks.ofBoxPrimitive_getDepth(self) + + def getSize(self): + return _openframeworks.ofBoxPrimitive_getSize(self) ofBoxPrimitive_swigregister = _openframeworks.ofBoxPrimitive_swigregister ofBoxPrimitive_swigregister(ofBoxPrimitive) +def ofInit(): + return _openframeworks.ofInit() +ofInit = _openframeworks.ofInit + +def ofCreateWindow(settings): + return _openframeworks.ofCreateWindow(settings) +ofCreateWindow = _openframeworks.ofCreateWindow + +def ofGetMainLoop(): + return _openframeworks.ofGetMainLoop() +ofGetMainLoop = _openframeworks.ofGetMainLoop + +def ofSetMainLoop(mainLoop): + return _openframeworks.ofSetMainLoop(mainLoop) +ofSetMainLoop = _openframeworks.ofSetMainLoop + def ofSetupOpenGL(*args): - return _openframeworks.ofSetupOpenGL(*args) + return _openframeworks.ofSetupOpenGL(*args) ofSetupOpenGL = _openframeworks.ofSetupOpenGL -def ofRunApp(OFSA=None): - return _openframeworks.ofRunApp(OFSA) +def ofRunApp(*args): + return _openframeworks.ofRunApp(*args) ofRunApp = _openframeworks.ofRunApp +def ofRunMainLoop(): + return _openframeworks.ofRunMainLoop() +ofRunMainLoop = _openframeworks.ofRunMainLoop + def ofGetAppPtr(): - return _openframeworks.ofGetAppPtr() + return _openframeworks.ofGetAppPtr() ofGetAppPtr = _openframeworks.ofGetAppPtr def ofExit(status=0): - return _openframeworks.ofExit(status) + return _openframeworks.ofExit(status) ofExit = _openframeworks.ofExit def ofGetFrameRate(): - return _openframeworks.ofGetFrameRate() + return _openframeworks.ofGetFrameRate() ofGetFrameRate = _openframeworks.ofGetFrameRate def ofGetTargetFrameRate(): - return _openframeworks.ofGetTargetFrameRate() + return _openframeworks.ofGetTargetFrameRate() ofGetTargetFrameRate = _openframeworks.ofGetTargetFrameRate -def ofSetFrameRate(*args): - return _openframeworks.ofSetFrameRate(*args) +def ofSetFrameRate(targetRate): + return _openframeworks.ofSetFrameRate(targetRate) ofSetFrameRate = _openframeworks.ofSetFrameRate -def ofSleepMillis(*args): - return _openframeworks.ofSleepMillis(*args) -ofSleepMillis = _openframeworks.ofSleepMillis - def ofGetLastFrameTime(): - return _openframeworks.ofGetLastFrameTime() + return _openframeworks.ofGetLastFrameTime() ofGetLastFrameTime = _openframeworks.ofGetLastFrameTime -def ofSetOrientation(*args): - return _openframeworks.ofSetOrientation(*args) +def ofSetOrientation(orientation, vFlip=True): + return _openframeworks.ofSetOrientation(orientation, vFlip) ofSetOrientation = _openframeworks.ofSetOrientation def ofGetOrientation(): - return _openframeworks.ofGetOrientation() + return _openframeworks.ofGetOrientation() ofGetOrientation = _openframeworks.ofGetOrientation def ofHideCursor(): - return _openframeworks.ofHideCursor() + return _openframeworks.ofHideCursor() ofHideCursor = _openframeworks.ofHideCursor def ofShowCursor(): - return _openframeworks.ofShowCursor() + return _openframeworks.ofShowCursor() ofShowCursor = _openframeworks.ofShowCursor def ofGetWindowPositionX(): - return _openframeworks.ofGetWindowPositionX() + return _openframeworks.ofGetWindowPositionX() ofGetWindowPositionX = _openframeworks.ofGetWindowPositionX def ofGetWindowPositionY(): - return _openframeworks.ofGetWindowPositionY() + return _openframeworks.ofGetWindowPositionY() ofGetWindowPositionY = _openframeworks.ofGetWindowPositionY def ofGetScreenWidth(): - return _openframeworks.ofGetScreenWidth() + return _openframeworks.ofGetScreenWidth() ofGetScreenWidth = _openframeworks.ofGetScreenWidth def ofGetScreenHeight(): - return _openframeworks.ofGetScreenHeight() + return _openframeworks.ofGetScreenHeight() ofGetScreenHeight = _openframeworks.ofGetScreenHeight def ofGetWindowMode(): - return _openframeworks.ofGetWindowMode() + return _openframeworks.ofGetWindowMode() ofGetWindowMode = _openframeworks.ofGetWindowMode def ofGetWidth(): - return _openframeworks.ofGetWidth() + return _openframeworks.ofGetWidth() ofGetWidth = _openframeworks.ofGetWidth def ofGetHeight(): - return _openframeworks.ofGetHeight() + return _openframeworks.ofGetHeight() ofGetHeight = _openframeworks.ofGetHeight def ofGetWindowWidth(): - return _openframeworks.ofGetWindowWidth() + return _openframeworks.ofGetWindowWidth() ofGetWindowWidth = _openframeworks.ofGetWindowWidth def ofGetWindowHeight(): - return _openframeworks.ofGetWindowHeight() + return _openframeworks.ofGetWindowHeight() ofGetWindowHeight = _openframeworks.ofGetWindowHeight +def ofRandomWidth(): + return _openframeworks.ofRandomWidth() +ofRandomWidth = _openframeworks.ofRandomWidth + +def ofRandomHeight(): + return _openframeworks.ofRandomHeight() +ofRandomHeight = _openframeworks.ofRandomHeight + def ofDoesHWOrientation(): - return _openframeworks.ofDoesHWOrientation() + return _openframeworks.ofDoesHWOrientation() ofDoesHWOrientation = _openframeworks.ofDoesHWOrientation def ofGetWindowSize(): - return _openframeworks.ofGetWindowSize() + return _openframeworks.ofGetWindowSize() ofGetWindowSize = _openframeworks.ofGetWindowSize def ofGetWindowRect(): - return _openframeworks.ofGetWindowRect() + return _openframeworks.ofGetWindowRect() ofGetWindowRect = _openframeworks.ofGetWindowRect def ofGetWindowPtr(): - return _openframeworks.ofGetWindowPtr() + return _openframeworks.ofGetWindowPtr() ofGetWindowPtr = _openframeworks.ofGetWindowPtr -def ofSetWindowPosition(*args): - return _openframeworks.ofSetWindowPosition(*args) +def ofSetWindowPosition(x, y): + return _openframeworks.ofSetWindowPosition(x, y) ofSetWindowPosition = _openframeworks.ofSetWindowPosition -def ofSetWindowShape(*args): - return _openframeworks.ofSetWindowShape(*args) +def ofSetWindowShape(width, height): + return _openframeworks.ofSetWindowShape(width, height) ofSetWindowShape = _openframeworks.ofSetWindowShape -def ofSetWindowTitle(*args): - return _openframeworks.ofSetWindowTitle(*args) +def ofSetWindowTitle(title): + return _openframeworks.ofSetWindowTitle(title) ofSetWindowTitle = _openframeworks.ofSetWindowTitle def ofEnableSetupScreen(): - return _openframeworks.ofEnableSetupScreen() + return _openframeworks.ofEnableSetupScreen() ofEnableSetupScreen = _openframeworks.ofEnableSetupScreen def ofDisableSetupScreen(): - return _openframeworks.ofDisableSetupScreen() + return _openframeworks.ofDisableSetupScreen() ofDisableSetupScreen = _openframeworks.ofDisableSetupScreen -def ofSetFullscreen(*args): - return _openframeworks.ofSetFullscreen(*args) +def ofSetFullscreen(fullscreen): + return _openframeworks.ofSetFullscreen(fullscreen) ofSetFullscreen = _openframeworks.ofSetFullscreen def ofToggleFullscreen(): - return _openframeworks.ofToggleFullscreen() + return _openframeworks.ofToggleFullscreen() ofToggleFullscreen = _openframeworks.ofToggleFullscreen -def ofSetVerticalSync(*args): - return _openframeworks.ofSetVerticalSync(*args) +def ofSetVerticalSync(bSync): + return _openframeworks.ofSetVerticalSync(bSync) ofSetVerticalSync = _openframeworks.ofSetVerticalSync + +def ofEvents(): + return _openframeworks.ofEvents() +ofEvents = _openframeworks.ofEvents + +def ofSetCurrentRenderer(renderer, setDefaults=False): + return _openframeworks.ofSetCurrentRenderer(renderer, setDefaults) +ofSetCurrentRenderer = _openframeworks.ofSetCurrentRenderer + +def ofGetCurrentRenderer(): + return _openframeworks.ofGetCurrentRenderer() +ofGetCurrentRenderer = _openframeworks.ofGetCurrentRenderer + +def ofSetEscapeQuitsApp(bQuitOnEsc): + return _openframeworks.ofSetEscapeQuitsApp(bQuitOnEsc) +ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp + +_openframeworks.FIRMATA_MAJOR_VERSION_swigconstant(_openframeworks) FIRMATA_MAJOR_VERSION = _openframeworks.FIRMATA_MAJOR_VERSION + +_openframeworks.FIRMATA_MINOR_VERSION_swigconstant(_openframeworks) FIRMATA_MINOR_VERSION = _openframeworks.FIRMATA_MINOR_VERSION + +_openframeworks.FIRMATA_MAX_DATA_BYTES_swigconstant(_openframeworks) FIRMATA_MAX_DATA_BYTES = _openframeworks.FIRMATA_MAX_DATA_BYTES + +_openframeworks.FIRMATA_DIGITAL_MESSAGE_swigconstant(_openframeworks) FIRMATA_DIGITAL_MESSAGE = _openframeworks.FIRMATA_DIGITAL_MESSAGE + +_openframeworks.FIRMATA_ANALOG_MESSAGE_swigconstant(_openframeworks) FIRMATA_ANALOG_MESSAGE = _openframeworks.FIRMATA_ANALOG_MESSAGE + +_openframeworks.FIRMATA_REPORT_ANALOG_swigconstant(_openframeworks) FIRMATA_REPORT_ANALOG = _openframeworks.FIRMATA_REPORT_ANALOG + +_openframeworks.FIRMATA_REPORT_DIGITAL_swigconstant(_openframeworks) FIRMATA_REPORT_DIGITAL = _openframeworks.FIRMATA_REPORT_DIGITAL + +_openframeworks.FIRMATA_SET_PIN_MODE_swigconstant(_openframeworks) FIRMATA_SET_PIN_MODE = _openframeworks.FIRMATA_SET_PIN_MODE + +_openframeworks.FIRMATA_REPORT_VERSION_swigconstant(_openframeworks) FIRMATA_REPORT_VERSION = _openframeworks.FIRMATA_REPORT_VERSION + +_openframeworks.FIRMATA_SYSTEM_RESET_swigconstant(_openframeworks) FIRMATA_SYSTEM_RESET = _openframeworks.FIRMATA_SYSTEM_RESET + +_openframeworks.FIRMATA_START_SYSEX_swigconstant(_openframeworks) FIRMATA_START_SYSEX = _openframeworks.FIRMATA_START_SYSEX + +_openframeworks.FIRMATA_END_SYSEX_swigconstant(_openframeworks) FIRMATA_END_SYSEX = _openframeworks.FIRMATA_END_SYSEX + +_openframeworks.FIRMATA_INPUT_swigconstant(_openframeworks) FIRMATA_INPUT = _openframeworks.FIRMATA_INPUT + +_openframeworks.FIRMATA_OUTPUT_swigconstant(_openframeworks) FIRMATA_OUTPUT = _openframeworks.FIRMATA_OUTPUT + +_openframeworks.FIRMATA_ANALOG_swigconstant(_openframeworks) FIRMATA_ANALOG = _openframeworks.FIRMATA_ANALOG + +_openframeworks.FIRMATA_PWM_swigconstant(_openframeworks) FIRMATA_PWM = _openframeworks.FIRMATA_PWM + +_openframeworks.FIRMATA_SERVO_swigconstant(_openframeworks) FIRMATA_SERVO = _openframeworks.FIRMATA_SERVO + +_openframeworks.SHIFT_swigconstant(_openframeworks) SHIFT = _openframeworks.SHIFT + +_openframeworks.I2C_swigconstant(_openframeworks) I2C = _openframeworks.I2C + +_openframeworks.TOTAL_PIN_MODES_swigconstant(_openframeworks) TOTAL_PIN_MODES = _openframeworks.TOTAL_PIN_MODES + +_openframeworks.FIRMATA_SYSEX_SERVO_CONFIG_swigconstant(_openframeworks) FIRMATA_SYSEX_SERVO_CONFIG = _openframeworks.FIRMATA_SYSEX_SERVO_CONFIG + +_openframeworks.FIRMATA_SYSEX_FIRMATA_STRING_swigconstant(_openframeworks) FIRMATA_SYSEX_FIRMATA_STRING = _openframeworks.FIRMATA_SYSEX_FIRMATA_STRING + +_openframeworks.SHIFT_DATA_swigconstant(_openframeworks) SHIFT_DATA = _openframeworks.SHIFT_DATA + +_openframeworks.I2C_REQUEST_swigconstant(_openframeworks) I2C_REQUEST = _openframeworks.I2C_REQUEST + +_openframeworks.I2C_REPLY_swigconstant(_openframeworks) I2C_REPLY = _openframeworks.I2C_REPLY + +_openframeworks.I2C_CONFIG_swigconstant(_openframeworks) I2C_CONFIG = _openframeworks.I2C_CONFIG + +_openframeworks.EXTENDED_ANALOG_swigconstant(_openframeworks) EXTENDED_ANALOG = _openframeworks.EXTENDED_ANALOG + +_openframeworks.PIN_STATE_QUERY_swigconstant(_openframeworks) PIN_STATE_QUERY = _openframeworks.PIN_STATE_QUERY + +_openframeworks.PIN_STATE_RESPONSE_swigconstant(_openframeworks) PIN_STATE_RESPONSE = _openframeworks.PIN_STATE_RESPONSE + +_openframeworks.CAPABILITY_QUERY_swigconstant(_openframeworks) CAPABILITY_QUERY = _openframeworks.CAPABILITY_QUERY + +_openframeworks.CAPABILITY_RESPONSE_swigconstant(_openframeworks) CAPABILITY_RESPONSE = _openframeworks.CAPABILITY_RESPONSE + +_openframeworks.ANALOG_MAPPING_QUERY_swigconstant(_openframeworks) ANALOG_MAPPING_QUERY = _openframeworks.ANALOG_MAPPING_QUERY + +_openframeworks.ANALOG_MAPPING_RESPONSE_swigconstant(_openframeworks) ANALOG_MAPPING_RESPONSE = _openframeworks.ANALOG_MAPPING_RESPONSE + +_openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant(_openframeworks) FIRMATA_SYSEX_REPORT_FIRMWARE = _openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE + +_openframeworks.SAMPLING_INTERVAL_swigconstant(_openframeworks) SAMPLING_INTERVAL = _openframeworks.SAMPLING_INTERVAL + +_openframeworks.FIRMATA_SYSEX_NON_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_NON_REALTIME = _openframeworks.FIRMATA_SYSEX_NON_REALTIME + +_openframeworks.FIRMATA_SYSEX_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_REALTIME = _openframeworks.FIRMATA_SYSEX_REALTIME + +_openframeworks.ARD_TOTAL_DIGITAL_PINS_swigconstant(_openframeworks) ARD_TOTAL_DIGITAL_PINS = _openframeworks.ARD_TOTAL_DIGITAL_PINS + +_openframeworks.ARD_TOTAL_ANALOG_PINS_swigconstant(_openframeworks) ARD_TOTAL_ANALOG_PINS = _openframeworks.ARD_TOTAL_ANALOG_PINS + +_openframeworks.ARD_TOTAL_PORTS_swigconstant(_openframeworks) ARD_TOTAL_PORTS = _openframeworks.ARD_TOTAL_PORTS + +_openframeworks.ARD_INPUT_swigconstant(_openframeworks) ARD_INPUT = _openframeworks.ARD_INPUT + +_openframeworks.ARD_OUTPUT_swigconstant(_openframeworks) ARD_OUTPUT = _openframeworks.ARD_OUTPUT + +_openframeworks.ARD_ANALOG_swigconstant(_openframeworks) ARD_ANALOG = _openframeworks.ARD_ANALOG + +_openframeworks.ARD_PWM_swigconstant(_openframeworks) ARD_PWM = _openframeworks.ARD_PWM + +_openframeworks.ARD_SERVO_swigconstant(_openframeworks) ARD_SERVO = _openframeworks.ARD_SERVO + +_openframeworks.ARD_HIGH_swigconstant(_openframeworks) ARD_HIGH = _openframeworks.ARD_HIGH + +_openframeworks.ARD_LOW_swigconstant(_openframeworks) ARD_LOW = _openframeworks.ARD_LOW + +_openframeworks.ARD_ON_swigconstant(_openframeworks) ARD_ON = _openframeworks.ARD_ON + +_openframeworks.ARD_OFF_swigconstant(_openframeworks) ARD_OFF = _openframeworks.ARD_OFF + +_openframeworks.SYSEX_SERVO_ATTACH_swigconstant(_openframeworks) SYSEX_SERVO_ATTACH = _openframeworks.SYSEX_SERVO_ATTACH + +_openframeworks.SYSEX_SERVO_DETACH_swigconstant(_openframeworks) SYSEX_SERVO_DETACH = _openframeworks.SYSEX_SERVO_DETACH + +_openframeworks.SYSEX_SERVO_WRITE_swigconstant(_openframeworks) SYSEX_SERVO_WRITE = _openframeworks.SYSEX_SERVO_WRITE + +_openframeworks.OF_ARDUINO_DELAY_LENGTH_swigconstant(_openframeworks) OF_ARDUINO_DELAY_LENGTH = _openframeworks.OF_ARDUINO_DELAY_LENGTH + +_openframeworks.FIRMWARE2_2_swigconstant(_openframeworks) FIRMWARE2_2 = _openframeworks.FIRMWARE2_2 + +_openframeworks.FIRMWARE2_3_swigconstant(_openframeworks) FIRMWARE2_3 = _openframeworks.FIRMWARE2_3 class ofArduino(_object): __swig_setmethods__ = {} @@ -3201,77 +6119,175 @@ class ofArduino(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofArduino, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofArduino() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofArduino - __del__ = lambda self : None; - def connect(self, *args): return _openframeworks.ofArduino_connect(self, *args) - def disconnect(self): return _openframeworks.ofArduino_disconnect(self) - def isArduinoReady(self): return _openframeworks.ofArduino_isArduinoReady(self) - def setUseDelay(self, *args): return _openframeworks.ofArduino_setUseDelay(self, *args) - def update(self): return _openframeworks.ofArduino_update(self) - def isInitialized(self): return _openframeworks.ofArduino_isInitialized(self) - def setDigitalHistoryLength(self, *args): return _openframeworks.ofArduino_setDigitalHistoryLength(self, *args) - def setAnalogHistoryLength(self, *args): return _openframeworks.ofArduino_setAnalogHistoryLength(self, *args) - def setStringHistoryLength(self, *args): return _openframeworks.ofArduino_setStringHistoryLength(self, *args) - def setSysExHistoryLength(self, *args): return _openframeworks.ofArduino_setSysExHistoryLength(self, *args) - def sendDigitalPinMode(self, *args): return _openframeworks.ofArduino_sendDigitalPinMode(self, *args) - def sendAnalogPinReporting(self, *args): return _openframeworks.ofArduino_sendAnalogPinReporting(self, *args) - def sendDigital(self, *args): return _openframeworks.ofArduino_sendDigital(self, *args) - def sendPwm(self, *args): return _openframeworks.ofArduino_sendPwm(self, *args) - def sendSysEx(self, *args): return _openframeworks.ofArduino_sendSysEx(self, *args) - def sendString(self, *args): return _openframeworks.ofArduino_sendString(self, *args) - def sendProtocolVersionRequest(self): return _openframeworks.ofArduino_sendProtocolVersionRequest(self) - def sendFirmwareVersionRequest(self): return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) - def sendReset(self): return _openframeworks.ofArduino_sendReset(self) - def sendSysExBegin(self): return _openframeworks.ofArduino_sendSysExBegin(self) - def sendSysExEnd(self): return _openframeworks.ofArduino_sendSysExEnd(self) - def sendByte(self, *args): return _openframeworks.ofArduino_sendByte(self, *args) - def sendValueAsTwo7bitBytes(self, *args): return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, *args) - def getPwm(self, *args): return _openframeworks.ofArduino_getPwm(self, *args) - def getDigital(self, *args): return _openframeworks.ofArduino_getDigital(self, *args) - def getAnalog(self, *args): return _openframeworks.ofArduino_getAnalog(self, *args) - def getSysEx(self): return _openframeworks.ofArduino_getSysEx(self) - def getString(self): return _openframeworks.ofArduino_getString(self) - def getMajorProtocolVersion(self): return _openframeworks.ofArduino_getMajorProtocolVersion(self) - def getMinorProtocolVersion(self): return _openframeworks.ofArduino_getMinorProtocolVersion(self) - def getMajorFirmwareVersion(self): return _openframeworks.ofArduino_getMajorFirmwareVersion(self) - def getMinorFirmwareVersion(self): return _openframeworks.ofArduino_getMinorFirmwareVersion(self) - def getFirmwareName(self): return _openframeworks.ofArduino_getFirmwareName(self) - def getDigitalHistory(self, *args): return _openframeworks.ofArduino_getDigitalHistory(self, *args) - def getAnalogHistory(self, *args): return _openframeworks.ofArduino_getAnalogHistory(self, *args) - def getSysExHistory(self): return _openframeworks.ofArduino_getSysExHistory(self) - def getStringHistory(self): return _openframeworks.ofArduino_getStringHistory(self) - def getDigitalPinMode(self, *args): return _openframeworks.ofArduino_getDigitalPinMode(self, *args) - def getAnalogPinReporting(self, *args): return _openframeworks.ofArduino_getAnalogPinReporting(self, *args) - def getValueFromTwo7bitBytes(self, *args): return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, *args) + __del__ = lambda self: None + + def connect(self, device, baud=57600): + return _openframeworks.ofArduino_connect(self, device, baud) + + def isInitialized(self): + return _openframeworks.ofArduino_isInitialized(self) + + def isArduinoReady(self): + return _openframeworks.ofArduino_isArduinoReady(self) + + def disconnect(self): + return _openframeworks.ofArduino_disconnect(self) + + def update(self): + return _openframeworks.ofArduino_update(self) + + def sendDigitalPinMode(self, pin, mode): + return _openframeworks.ofArduino_sendDigitalPinMode(self, pin, mode) + + def sendAnalogPinReporting(self, pin, mode): + return _openframeworks.ofArduino_sendAnalogPinReporting(self, pin, mode) + + def setUseDelay(self, bDelay): + return _openframeworks.ofArduino_setUseDelay(self, bDelay) + + def setDigitalHistoryLength(self, length): + return _openframeworks.ofArduino_setDigitalHistoryLength(self, length) + + def setAnalogHistoryLength(self, length): + return _openframeworks.ofArduino_setAnalogHistoryLength(self, length) + + def setStringHistoryLength(self, length): + return _openframeworks.ofArduino_setStringHistoryLength(self, length) + + def setSysExHistoryLength(self, nSysEx): + return _openframeworks.ofArduino_setSysExHistoryLength(self, nSysEx) + + def sendDigital(self, pin, value, force=False): + return _openframeworks.ofArduino_sendDigital(self, pin, value, force) + + def sendPwm(self, pin, value, force=False): + return _openframeworks.ofArduino_sendPwm(self, pin, value, force) + + def sendSysEx(self, command, data): + return _openframeworks.ofArduino_sendSysEx(self, command, data) + + def sendString(self, str): + return _openframeworks.ofArduino_sendString(self, str) + + def sendProtocolVersionRequest(self): + return _openframeworks.ofArduino_sendProtocolVersionRequest(self) + + def sendFirmwareVersionRequest(self): + return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) + + def sendReset(self): + return _openframeworks.ofArduino_sendReset(self) + + def sendSysExBegin(self): + return _openframeworks.ofArduino_sendSysExBegin(self) + + def sendSysExEnd(self): + return _openframeworks.ofArduino_sendSysExEnd(self) + + def sendByte(self, byte): + return _openframeworks.ofArduino_sendByte(self, byte) + + def sendValueAsTwo7bitBytes(self, value): + return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, value) + + def getPwm(self, pin): + return _openframeworks.ofArduino_getPwm(self, pin) + + def getDigital(self, pin): + return _openframeworks.ofArduino_getDigital(self, pin) + + def getAnalog(self, pin): + return _openframeworks.ofArduino_getAnalog(self, pin) + + def getSysEx(self): + return _openframeworks.ofArduino_getSysEx(self) + + def getString(self): + return _openframeworks.ofArduino_getString(self) + + def getMajorProtocolVersion(self): + return _openframeworks.ofArduino_getMajorProtocolVersion(self) + + def getMinorProtocolVersion(self): + return _openframeworks.ofArduino_getMinorProtocolVersion(self) + + def getMajorFirmwareVersion(self): + return _openframeworks.ofArduino_getMajorFirmwareVersion(self) + + def getMinorFirmwareVersion(self): + return _openframeworks.ofArduino_getMinorFirmwareVersion(self) + + def getFirmwareName(self): + return _openframeworks.ofArduino_getFirmwareName(self) + + def getDigitalHistory(self, pin): + return _openframeworks.ofArduino_getDigitalHistory(self, pin) + + def getAnalogHistory(self, pin): + return _openframeworks.ofArduino_getAnalogHistory(self, pin) + + def getSysExHistory(self): + return _openframeworks.ofArduino_getSysExHistory(self) + + def getStringHistory(self): + return _openframeworks.ofArduino_getStringHistory(self) + + def getDigitalPinMode(self, pin): + return _openframeworks.ofArduino_getDigitalPinMode(self, pin) + + def getAnalogPinReporting(self, pin): + return _openframeworks.ofArduino_getAnalogPinReporting(self, pin) + + def getValueFromTwo7bitBytes(self, lsb, msb): + return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, lsb, msb) __swig_setmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_set __swig_getmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_get - if _newclass:EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) + if _newclass: + EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) __swig_setmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_set __swig_getmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_get - if _newclass:EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) + if _newclass: + EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) __swig_setmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_set __swig_getmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_get - if _newclass:ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) + if _newclass: + ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) __swig_setmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_set __swig_getmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_get - if _newclass:EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) + if _newclass: + EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) __swig_setmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_set __swig_getmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_get - if _newclass:EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) + if _newclass: + EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) __swig_setmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_set __swig_getmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_get - if _newclass:EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) + if _newclass: + EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) __swig_setmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_set __swig_getmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_get - if _newclass:EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) - def sendServo(self, *args): return _openframeworks.ofArduino_sendServo(self, *args) - def sendServoAttach(self, *args): return _openframeworks.ofArduino_sendServoAttach(self, *args) - def sendServoDetach(self, *args): return _openframeworks.ofArduino_sendServoDetach(self, *args) - def getServo(self, *args): return _openframeworks.ofArduino_getServo(self, *args) + if _newclass: + EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) + + def sendServo(self, pin, value, force=False): + return _openframeworks.ofArduino_sendServo(self, pin, value, force) + + def sendServoAttach(self, pin, minPulse=544, maxPulse=2400, angle=180): + return _openframeworks.ofArduino_sendServoAttach(self, pin, minPulse, maxPulse, angle) + + def sendServoDetach(self, pin): + return _openframeworks.ofArduino_sendServoDetach(self, pin) + + def getServo(self, pin): + return _openframeworks.ofArduino_getServo(self, pin) ofArduino_swigregister = _openframeworks.ofArduino_swigregister ofArduino_swigregister(ofArduino) @@ -3281,129 +6297,254 @@ class ofSerial(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSerial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSerial - __del__ = lambda self : None; - def listDevices(self): return _openframeworks.ofSerial_listDevices(self) - def enumerateDevices(self): return _openframeworks.ofSerial_enumerateDevices(self) - def getDeviceList(self): return _openframeworks.ofSerial_getDeviceList(self) - def close(self): return _openframeworks.ofSerial_close(self) - def setup(self, *args): return _openframeworks.ofSerial_setup(self, *args) - def readBytes(self, *args): return _openframeworks.ofSerial_readBytes(self, *args) - def writeBytes(self, *args): return _openframeworks.ofSerial_writeBytes(self, *args) - def writeByte(self, *args): return _openframeworks.ofSerial_writeByte(self, *args) - def readByte(self): return _openframeworks.ofSerial_readByte(self) - def flush(self, flushIn=True, flushOut=True): return _openframeworks.ofSerial_flush(self, flushIn, flushOut) - def available(self): return _openframeworks.ofSerial_available(self) - def drain(self): return _openframeworks.ofSerial_drain(self) - def isInitialized(self): return _openframeworks.ofSerial_isInitialized(self) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofSerial_listDevices(self) + + def enumerateDevices(self): + return _openframeworks.ofSerial_enumerateDevices(self) + + def getDeviceList(self): + return _openframeworks.ofSerial_getDeviceList(self) + + def setup(self, *args): + return _openframeworks.ofSerial_setup(self, *args) + + def isInitialized(self): + return _openframeworks.ofSerial_isInitialized(self) + + def close(self): + return _openframeworks.ofSerial_close(self) + + def available(self): + return _openframeworks.ofSerial_available(self) + + def readBytes(self, buffer, length): + return _openframeworks.ofSerial_readBytes(self, buffer, length) + + def readByte(self): + return _openframeworks.ofSerial_readByte(self) + + def writeBytes(self, buffer, length): + return _openframeworks.ofSerial_writeBytes(self, buffer, length) + + def writeByte(self, singleByte): + return _openframeworks.ofSerial_writeByte(self, singleByte) + + def flush(self, flushIn=True, flushOut=True): + return _openframeworks.ofSerial_flush(self, flushIn, flushOut) + + def drain(self): + return _openframeworks.ofSerial_drain(self) ofSerial_swigregister = _openframeworks.ofSerial_swigregister ofSerial_swigregister(ofSerial) -OF_MAX_LIGHTS = _openframeworks.OF_MAX_LIGHTS + +_openframeworks.OF_LIGHT_POINT_swigconstant(_openframeworks) OF_LIGHT_POINT = _openframeworks.OF_LIGHT_POINT -OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_DIRECTIONAL_swigconstant(_openframeworks) OF_LIGHT_DIRECTIONAL = _openframeworks.OF_LIGHT_DIRECTIONAL +_openframeworks.OF_LIGHT_SPOT_swigconstant(_openframeworks) +OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_AREA_swigconstant(_openframeworks) +OF_LIGHT_AREA = _openframeworks.OF_LIGHT_AREA + def ofEnableLighting(): - return _openframeworks.ofEnableLighting() + return _openframeworks.ofEnableLighting() ofEnableLighting = _openframeworks.ofEnableLighting def ofDisableLighting(): - return _openframeworks.ofDisableLighting() + return _openframeworks.ofDisableLighting() ofDisableLighting = _openframeworks.ofDisableLighting def ofEnableSeparateSpecularLight(): - return _openframeworks.ofEnableSeparateSpecularLight() + return _openframeworks.ofEnableSeparateSpecularLight() ofEnableSeparateSpecularLight = _openframeworks.ofEnableSeparateSpecularLight def ofDisableSeparateSpecularLight(): - return _openframeworks.ofDisableSeparateSpecularLight() + return _openframeworks.ofDisableSeparateSpecularLight() ofDisableSeparateSpecularLight = _openframeworks.ofDisableSeparateSpecularLight def ofGetLightingEnabled(): - return _openframeworks.ofGetLightingEnabled() + return _openframeworks.ofGetLightingEnabled() ofGetLightingEnabled = _openframeworks.ofGetLightingEnabled -def ofSetSmoothLighting(*args): - return _openframeworks.ofSetSmoothLighting(*args) +def ofSetSmoothLighting(b): + return _openframeworks.ofSetSmoothLighting(b) ofSetSmoothLighting = _openframeworks.ofSetSmoothLighting -def ofSetGlobalAmbientColor(*args): - return _openframeworks.ofSetGlobalAmbientColor(*args) +def ofSetGlobalAmbientColor(c): + return _openframeworks.ofSetGlobalAmbientColor(c) ofSetGlobalAmbientColor = _openframeworks.ofSetGlobalAmbientColor + +def ofGetGlobalAmbientColor(): + return _openframeworks.ofGetGlobalAmbientColor() +ofGetGlobalAmbientColor = _openframeworks.ofGetGlobalAmbientColor class ofLight(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofLight, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofLight, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofLight(*args) - try: self.this.append(this) - except: self.this = this + + def __init__(self): + this = _openframeworks.new_ofLight() + try: + self.this.append(this) + except Exception: + self.this = this + + def setup(self): + return _openframeworks.ofLight_setup(self) + + def enable(self): + return _openframeworks.ofLight_enable(self) + + def disable(self): + return _openframeworks.ofLight_disable(self) + + def getIsEnabled(self): + return _openframeworks.ofLight_getIsEnabled(self) + + def setDirectional(self): + return _openframeworks.ofLight_setDirectional(self) + + def getIsDirectional(self): + return _openframeworks.ofLight_getIsDirectional(self) + + def setSpotlight(self, spotCutOff=45., exponent=0.): + return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) + + def getIsSpotlight(self): + return _openframeworks.ofLight_getIsSpotlight(self) + + def setSpotlightCutOff(self, spotCutOff): + return _openframeworks.ofLight_setSpotlightCutOff(self, spotCutOff) + + def getSpotlightCutOff(self): + return _openframeworks.ofLight_getSpotlightCutOff(self) + + def setSpotConcentration(self, exponent): + return _openframeworks.ofLight_setSpotConcentration(self, exponent) + + def getSpotConcentration(self): + return _openframeworks.ofLight_getSpotConcentration(self) + + def setPointLight(self): + return _openframeworks.ofLight_setPointLight(self) + + def getIsPointLight(self): + return _openframeworks.ofLight_getIsPointLight(self) + + def setAttenuation(self, constant=1., linear=0., quadratic=0.): + return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) + + def getAttenuationConstant(self): + return _openframeworks.ofLight_getAttenuationConstant(self) + + def getAttenuationLinear(self): + return _openframeworks.ofLight_getAttenuationLinear(self) + + def getAttenuationQuadratic(self): + return _openframeworks.ofLight_getAttenuationQuadratic(self) + + def setAreaLight(self, width, height): + return _openframeworks.ofLight_setAreaLight(self, width, height) + + def getIsAreaLight(self): + return _openframeworks.ofLight_getIsAreaLight(self) + + def getType(self): + return _openframeworks.ofLight_getType(self) + + def setAmbientColor(self, c): + return _openframeworks.ofLight_setAmbientColor(self, c) + + def setDiffuseColor(self, c): + return _openframeworks.ofLight_setDiffuseColor(self, c) + + def setSpecularColor(self, c): + return _openframeworks.ofLight_setSpecularColor(self, c) + + def getAmbientColor(self): + return _openframeworks.ofLight_getAmbientColor(self) + + def getDiffuseColor(self): + return _openframeworks.ofLight_getDiffuseColor(self) + + def getSpecularColor(self): + return _openframeworks.ofLight_getSpecularColor(self) + + def getLightID(self): + return _openframeworks.ofLight_getLightID(self) __swig_destroy__ = _openframeworks.delete_ofLight - __del__ = lambda self : None; - def destroy(self): return _openframeworks.ofLight_destroy(self) - def setup(self): return _openframeworks.ofLight_setup(self) - def enable(self): return _openframeworks.ofLight_enable(self) - def disable(self): return _openframeworks.ofLight_disable(self) - def getIsEnabled(self): return _openframeworks.ofLight_getIsEnabled(self) - def setDirectional(self): return _openframeworks.ofLight_setDirectional(self) - def getIsDirectional(self): return _openframeworks.ofLight_getIsDirectional(self) - def setSpotlight(self, spotCutOff=45., exponent=0.): return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) - def getIsSpotlight(self): return _openframeworks.ofLight_getIsSpotlight(self) - def setSpotlightCutOff(self, *args): return _openframeworks.ofLight_setSpotlightCutOff(self, *args) - def getSpotlightCutOff(self): return _openframeworks.ofLight_getSpotlightCutOff(self) - def setSpotConcentration(self, *args): return _openframeworks.ofLight_setSpotConcentration(self, *args) - def getSpotConcentration(self): return _openframeworks.ofLight_getSpotConcentration(self) - def setPointLight(self): return _openframeworks.ofLight_setPointLight(self) - def getIsPointLight(self): return _openframeworks.ofLight_getIsPointLight(self) - def setAttenuation(self, constant=1., linear=0., quadratic=0.): return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) - def getAttenuationConstant(self): return _openframeworks.ofLight_getAttenuationConstant(self) - def getAttenuationLinear(self): return _openframeworks.ofLight_getAttenuationLinear(self) - def getAttenuationQuadratic(self): return _openframeworks.ofLight_getAttenuationQuadratic(self) - def getType(self): return _openframeworks.ofLight_getType(self) - def setAmbientColor(self, *args): return _openframeworks.ofLight_setAmbientColor(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofLight_setDiffuseColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofLight_setSpecularColor(self, *args) - def getAmbientColor(self): return _openframeworks.ofLight_getAmbientColor(self) - def getDiffuseColor(self): return _openframeworks.ofLight_getDiffuseColor(self) - def getSpecularColor(self): return _openframeworks.ofLight_getSpecularColor(self) - def getLightID(self): return _openframeworks.ofLight_getLightID(self) + __del__ = lambda self: None ofLight_swigregister = _openframeworks.ofLight_swigregister ofLight_swigregister(ofLight) -class ofMaterial(_object): + +def ofLightsData(): + return _openframeworks.ofLightsData() +ofLightsData = _openframeworks.ofLightsData +class ofMaterial(ofBaseMaterial): __swig_setmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofMaterial, name, value) __swig_getmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofMaterial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMaterial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMaterial - __del__ = lambda self : None; - def setColors(self, *args): return _openframeworks.ofMaterial_setColors(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofMaterial_setDiffuseColor(self, *args) - def setAmbientColor(self, *args): return _openframeworks.ofMaterial_setAmbientColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofMaterial_setSpecularColor(self, *args) - def setEmissiveColor(self, *args): return _openframeworks.ofMaterial_setEmissiveColor(self, *args) - def setShininess(self, *args): return _openframeworks.ofMaterial_setShininess(self, *args) - def getDiffuseColor(self): return _openframeworks.ofMaterial_getDiffuseColor(self) - def getAmbientColor(self): return _openframeworks.ofMaterial_getAmbientColor(self) - def getSpecularColor(self): return _openframeworks.ofMaterial_getSpecularColor(self) - def getEmissiveColor(self): return _openframeworks.ofMaterial_getEmissiveColor(self) - def getShininess(self): return _openframeworks.ofMaterial_getShininess(self) - def begin(self): return _openframeworks.ofMaterial_begin(self) - def end(self): return _openframeworks.ofMaterial_end(self) + __del__ = lambda self: None + + def setColors(self, oDiffuse, oAmbient, oSpecular, emissive): + return _openframeworks.ofMaterial_setColors(self, oDiffuse, oAmbient, oSpecular, emissive) + + def setDiffuseColor(self, oDiffuse): + return _openframeworks.ofMaterial_setDiffuseColor(self, oDiffuse) + + def setAmbientColor(self, oAmbient): + return _openframeworks.ofMaterial_setAmbientColor(self, oAmbient) + + def setSpecularColor(self, oSpecular): + return _openframeworks.ofMaterial_setSpecularColor(self, oSpecular) + + def setEmissiveColor(self, oEmmisive): + return _openframeworks.ofMaterial_setEmissiveColor(self, oEmmisive) + + def setShininess(self, nShininess): + return _openframeworks.ofMaterial_setShininess(self, nShininess) + + def getData(self): + return _openframeworks.ofMaterial_getData(self) + + def setData(self, data): + return _openframeworks.ofMaterial_setData(self, data) ofMaterial_swigregister = _openframeworks.ofMaterial_swigregister ofMaterial_swigregister(ofMaterial) @@ -3414,71 +6555,196 @@ class ofShader(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShader, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShader - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShader(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofShader_load(self, *args) - def setGeometryInputType(self, *args): return _openframeworks.ofShader_setGeometryInputType(self, *args) - def setGeometryOutputType(self, *args): return _openframeworks.ofShader_setGeometryOutputType(self, *args) - def setGeometryOutputCount(self, *args): return _openframeworks.ofShader_setGeometryOutputCount(self, *args) - def getGeometryMaxOutputCount(self): return _openframeworks.ofShader_getGeometryMaxOutputCount(self) - def unload(self): return _openframeworks.ofShader_unload(self) - def isLoaded(self): return _openframeworks.ofShader_isLoaded(self) - def begin(self): return _openframeworks.ofShader_begin(self) - def end(self): return _openframeworks.ofShader_end(self) - def setUniformTexture(self, *args): return _openframeworks.ofShader_setUniformTexture(self, *args) - def setUniform1i(self, *args): return _openframeworks.ofShader_setUniform1i(self, *args) - def setUniform2i(self, *args): return _openframeworks.ofShader_setUniform2i(self, *args) - def setUniform3i(self, *args): return _openframeworks.ofShader_setUniform3i(self, *args) - def setUniform4i(self, *args): return _openframeworks.ofShader_setUniform4i(self, *args) - def setUniform1f(self, *args): return _openframeworks.ofShader_setUniform1f(self, *args) - def setUniform2f(self, *args): return _openframeworks.ofShader_setUniform2f(self, *args) - def setUniform3f(self, *args): return _openframeworks.ofShader_setUniform3f(self, *args) - def setUniform4f(self, *args): return _openframeworks.ofShader_setUniform4f(self, *args) - def setUniform1iv(self, *args): return _openframeworks.ofShader_setUniform1iv(self, *args) - def setUniform2iv(self, *args): return _openframeworks.ofShader_setUniform2iv(self, *args) - def setUniform3iv(self, *args): return _openframeworks.ofShader_setUniform3iv(self, *args) - def setUniform4iv(self, *args): return _openframeworks.ofShader_setUniform4iv(self, *args) - def setUniform1fv(self, *args): return _openframeworks.ofShader_setUniform1fv(self, *args) - def setUniform2fv(self, *args): return _openframeworks.ofShader_setUniform2fv(self, *args) - def setUniform3fv(self, *args): return _openframeworks.ofShader_setUniform3fv(self, *args) - def setUniform4fv(self, *args): return _openframeworks.ofShader_setUniform4fv(self, *args) - def setUniformMatrix4f(self, *args): return _openframeworks.ofShader_setUniformMatrix4f(self, *args) - def getAttributeLocation(self, *args): return _openframeworks.ofShader_getAttributeLocation(self, *args) - def setAttribute1s(self, *args): return _openframeworks.ofShader_setAttribute1s(self, *args) - def setAttribute2s(self, *args): return _openframeworks.ofShader_setAttribute2s(self, *args) - def setAttribute3s(self, *args): return _openframeworks.ofShader_setAttribute3s(self, *args) - def setAttribute4s(self, *args): return _openframeworks.ofShader_setAttribute4s(self, *args) - def setAttribute1f(self, *args): return _openframeworks.ofShader_setAttribute1f(self, *args) - def setAttribute2f(self, *args): return _openframeworks.ofShader_setAttribute2f(self, *args) - def setAttribute3f(self, *args): return _openframeworks.ofShader_setAttribute3f(self, *args) - def setAttribute4f(self, *args): return _openframeworks.ofShader_setAttribute4f(self, *args) - def setAttribute1d(self, *args): return _openframeworks.ofShader_setAttribute1d(self, *args) - def setAttribute2d(self, *args): return _openframeworks.ofShader_setAttribute2d(self, *args) - def setAttribute3d(self, *args): return _openframeworks.ofShader_setAttribute3d(self, *args) - def setAttribute4d(self, *args): return _openframeworks.ofShader_setAttribute4d(self, *args) - def setAttribute1fv(self, *args): return _openframeworks.ofShader_setAttribute1fv(self, *args) - def setAttribute2fv(self, *args): return _openframeworks.ofShader_setAttribute2fv(self, *args) - def setAttribute3fv(self, *args): return _openframeworks.ofShader_setAttribute3fv(self, *args) - def setAttribute4fv(self, *args): return _openframeworks.ofShader_setAttribute4fv(self, *args) - def bindAttribute(self, *args): return _openframeworks.ofShader_bindAttribute(self, *args) - def printActiveUniforms(self): return _openframeworks.ofShader_printActiveUniforms(self) - def printActiveAttributes(self): return _openframeworks.ofShader_printActiveAttributes(self) - def setupShaderFromSource(self, *args): return _openframeworks.ofShader_setupShaderFromSource(self, *args) - def setupShaderFromFile(self, *args): return _openframeworks.ofShader_setupShaderFromFile(self, *args) - def linkProgram(self): return _openframeworks.ofShader_linkProgram(self) - def bindDefaults(self): return _openframeworks.ofShader_bindDefaults(self) - def getProgram(self): return _openframeworks.ofShader_getProgram(self) - def getShader(self, *args): return _openframeworks.ofShader_getShader(self, *args) - def __eq__(self, *args): return _openframeworks.ofShader___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShader___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, *args): + return _openframeworks.ofShader_load(self, *args) + + def setGeometryInputType(self, type): + return _openframeworks.ofShader_setGeometryInputType(self, type) + + def setGeometryOutputType(self, type): + return _openframeworks.ofShader_setGeometryOutputType(self, type) + + def setGeometryOutputCount(self, count): + return _openframeworks.ofShader_setGeometryOutputCount(self, count) + + def getGeometryMaxOutputCount(self): + return _openframeworks.ofShader_getGeometryMaxOutputCount(self) + + def unload(self): + return _openframeworks.ofShader_unload(self) + + def isLoaded(self): + return _openframeworks.ofShader_isLoaded(self) + + def begin(self): + return _openframeworks.ofShader_begin(self) + + def end(self): + return _openframeworks.ofShader_end(self) + + def setUniformTexture(self, *args): + return _openframeworks.ofShader_setUniformTexture(self, *args) + + def setUniform1i(self, name, v1): + return _openframeworks.ofShader_setUniform1i(self, name, v1) + + def setUniform2i(self, name, v1, v2): + return _openframeworks.ofShader_setUniform2i(self, name, v1, v2) + + def setUniform3i(self, name, v1, v2, v3): + return _openframeworks.ofShader_setUniform3i(self, name, v1, v2, v3) + + def setUniform4i(self, name, v1, v2, v3, v4): + return _openframeworks.ofShader_setUniform4i(self, name, v1, v2, v3, v4) + + def setUniform1f(self, name, v1): + return _openframeworks.ofShader_setUniform1f(self, name, v1) + + def setUniform2f(self, *args): + return _openframeworks.ofShader_setUniform2f(self, *args) + + def setUniform3f(self, *args): + return _openframeworks.ofShader_setUniform3f(self, *args) + + def setUniform4f(self, *args): + return _openframeworks.ofShader_setUniform4f(self, *args) + + def setUniform1iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1iv(self, name, v, count) + + def setUniform2iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2iv(self, name, v, count) + + def setUniform3iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3iv(self, name, v, count) + + def setUniform4iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4iv(self, name, v, count) + + def setUniform1fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1fv(self, name, v, count) + + def setUniform2fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2fv(self, name, v, count) + + def setUniform3fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3fv(self, name, v, count) + + def setUniform4fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4fv(self, name, v, count) + + def setUniforms(self, parameters): + return _openframeworks.ofShader_setUniforms(self, parameters) + + def setUniformMatrix3f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix3f(self, name, m, count) + + def setUniformMatrix4f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix4f(self, name, m, count) + + def getUniformLocation(self, name): + return _openframeworks.ofShader_getUniformLocation(self, name) + + def getAttributeLocation(self, name): + return _openframeworks.ofShader_getAttributeLocation(self, name) + + def setAttribute1s(self, location, v1): + return _openframeworks.ofShader_setAttribute1s(self, location, v1) + + def setAttribute2s(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2s(self, location, v1, v2) + + def setAttribute3s(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3s(self, location, v1, v2, v3) + + def setAttribute4s(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4s(self, location, v1, v2, v3, v4) + + def setAttribute1f(self, location, v1): + return _openframeworks.ofShader_setAttribute1f(self, location, v1) + + def setAttribute2f(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2f(self, location, v1, v2) + + def setAttribute3f(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3f(self, location, v1, v2, v3) + + def setAttribute4f(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4f(self, location, v1, v2, v3, v4) + + def setAttribute1d(self, location, v1): + return _openframeworks.ofShader_setAttribute1d(self, location, v1) + + def setAttribute2d(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2d(self, location, v1, v2) + + def setAttribute3d(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3d(self, location, v1, v2, v3) + + def setAttribute4d(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4d(self, location, v1, v2, v3, v4) + + def setAttribute1fv(self, *args): + return _openframeworks.ofShader_setAttribute1fv(self, *args) + + def setAttribute2fv(self, *args): + return _openframeworks.ofShader_setAttribute2fv(self, *args) + + def setAttribute3fv(self, *args): + return _openframeworks.ofShader_setAttribute3fv(self, *args) + + def setAttribute4fv(self, *args): + return _openframeworks.ofShader_setAttribute4fv(self, *args) + + def bindAttribute(self, location, name): + return _openframeworks.ofShader_bindAttribute(self, location, name) + + def printActiveUniforms(self): + return _openframeworks.ofShader_printActiveUniforms(self) + + def printActiveAttributes(self): + return _openframeworks.ofShader_printActiveAttributes(self) + + def setupShaderFromSource(self, *args): + return _openframeworks.ofShader_setupShaderFromSource(self, *args) + + def setupShaderFromFile(self, type, filename): + return _openframeworks.ofShader_setupShaderFromFile(self, type, filename) + + def linkProgram(self): + return _openframeworks.ofShader_linkProgram(self) + + def bindDefaults(self): + return _openframeworks.ofShader_bindDefaults(self) + + def getProgram(self): + return _openframeworks.ofShader_getProgram(self) + + def getShader(self, type): + return _openframeworks.ofShader_getShader(self, type) + + def __eq__(self, other): + return _openframeworks.ofShader___eq__(self, other) + + def __ne__(self, other): + return _openframeworks.ofShader___ne__(self, other) POSITION_ATTRIBUTE = _openframeworks.ofShader_POSITION_ATTRIBUTE COLOR_ATTRIBUTE = _openframeworks.ofShader_COLOR_ATTRIBUTE NORMAL_ATTRIBUTE = _openframeworks.ofShader_NORMAL_ATTRIBUTE TEXCOORD_ATTRIBUTE = _openframeworks.ofShader_TEXCOORD_ATTRIBUTE - def getShaderSource(self, *args): return _openframeworks.ofShader_getShaderSource(self, *args) + INDEX_ATTRIBUTE = _openframeworks.ofShader_INDEX_ATTRIBUTE + + def getShaderSource(self, type): + return _openframeworks.ofShader_getShaderSource(self, type) ofShader_swigregister = _openframeworks.ofShader_swigregister ofShader_swigregister(ofShader) @@ -3488,206 +6754,635 @@ class ofVbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofVbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVbo - __del__ = lambda self : None; - def setMesh(self, *args): return _openframeworks.ofVbo_setMesh(self, *args) - def setIndexData(self, *args): return _openframeworks.ofVbo_setIndexData(self, *args) - def setVertexData(self, *args): return _openframeworks.ofVbo_setVertexData(self, *args) - def setColorData(self, *args): return _openframeworks.ofVbo_setColorData(self, *args) - def setNormalData(self, *args): return _openframeworks.ofVbo_setNormalData(self, *args) - def setTexCoordData(self, *args): return _openframeworks.ofVbo_setTexCoordData(self, *args) - def setAttributeData(self, *args): return _openframeworks.ofVbo_setAttributeData(self, *args) - def updateMesh(self, *args): return _openframeworks.ofVbo_updateMesh(self, *args) - def updateIndexData(self, *args): return _openframeworks.ofVbo_updateIndexData(self, *args) - def updateVertexData(self, *args): return _openframeworks.ofVbo_updateVertexData(self, *args) - def updateColorData(self, *args): return _openframeworks.ofVbo_updateColorData(self, *args) - def updateNormalData(self, *args): return _openframeworks.ofVbo_updateNormalData(self, *args) - def updateTexCoordData(self, *args): return _openframeworks.ofVbo_updateTexCoordData(self, *args) - def updateAttributeData(self, *args): return _openframeworks.ofVbo_updateAttributeData(self, *args) - def enableColors(self): return _openframeworks.ofVbo_enableColors(self) - def enableNormals(self): return _openframeworks.ofVbo_enableNormals(self) - def enableTexCoords(self): return _openframeworks.ofVbo_enableTexCoords(self) - def enableIndices(self): return _openframeworks.ofVbo_enableIndices(self) - def disableColors(self): return _openframeworks.ofVbo_disableColors(self) - def disableNormals(self): return _openframeworks.ofVbo_disableNormals(self) - def disableTexCoords(self): return _openframeworks.ofVbo_disableTexCoords(self) - def disableIndices(self): return _openframeworks.ofVbo_disableIndices(self) - def getVertId(self): return _openframeworks.ofVbo_getVertId(self) - def getColorId(self): return _openframeworks.ofVbo_getColorId(self) - def getNormalId(self): return _openframeworks.ofVbo_getNormalId(self) - def getTexCoordId(self): return _openframeworks.ofVbo_getTexCoordId(self) - def getIndexId(self): return _openframeworks.ofVbo_getIndexId(self) - def getIsAllocated(self): return _openframeworks.ofVbo_getIsAllocated(self) - def getUsingVerts(self): return _openframeworks.ofVbo_getUsingVerts(self) - def getUsingColors(self): return _openframeworks.ofVbo_getUsingColors(self) - def getUsingNormals(self): return _openframeworks.ofVbo_getUsingNormals(self) - def getUsingTexCoords(self): return _openframeworks.ofVbo_getUsingTexCoords(self) - def getUsingIndices(self): return _openframeworks.ofVbo_getUsingIndices(self) - def draw(self, *args): return _openframeworks.ofVbo_draw(self, *args) - def drawElements(self, *args): return _openframeworks.ofVbo_drawElements(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVbo_drawInstanced(self, *args) - def drawElementsInstanced(self, *args): return _openframeworks.ofVbo_drawElementsInstanced(self, *args) - def bind(self): return _openframeworks.ofVbo_bind(self) - def unbind(self): return _openframeworks.ofVbo_unbind(self) - def clear(self): return _openframeworks.ofVbo_clear(self) - def clearVertices(self): return _openframeworks.ofVbo_clearVertices(self) - def clearNormals(self): return _openframeworks.ofVbo_clearNormals(self) - def clearColors(self): return _openframeworks.ofVbo_clearColors(self) - def clearTexCoords(self): return _openframeworks.ofVbo_clearTexCoords(self) - def clearIndices(self): return _openframeworks.ofVbo_clearIndices(self) - def getNumVertices(self): return _openframeworks.ofVbo_getNumVertices(self) - def getNumIndices(self): return _openframeworks.ofVbo_getNumIndices(self) - __swig_getmethods__["disableVAOs"] = lambda x: _openframeworks.ofVbo_disableVAOs - if _newclass:disableVAOs = staticmethod(_openframeworks.ofVbo_disableVAOs) - __swig_getmethods__["enableVAOs"] = lambda x: _openframeworks.ofVbo_enableVAOs - if _newclass:enableVAOs = staticmethod(_openframeworks.ofVbo_enableVAOs) -ofVbo_swigregister = _openframeworks.ofVbo_swigregister -ofVbo_swigregister(ofVbo) + __del__ = lambda self: None -def ofVbo_disableVAOs(): - return _openframeworks.ofVbo_disableVAOs() -ofVbo_disableVAOs = _openframeworks.ofVbo_disableVAOs + def setMesh(self, *args): + return _openframeworks.ofVbo_setMesh(self, *args) -def ofVbo_enableVAOs(): - return _openframeworks.ofVbo_enableVAOs() -ofVbo_enableVAOs = _openframeworks.ofVbo_enableVAOs + def setIndexData(self, indices, total, usage): + return _openframeworks.ofVbo_setIndexData(self, indices, total, usage) -class ofVboMesh(ofMesh): - __swig_setmethods__ = {} - for _s in [ofMesh]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) - __swig_getmethods__ = {} - for _s in [ofMesh]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofVboMesh(*args) - try: self.this.append(this) - except: self.this = this - def setUsage(self, *args): return _openframeworks.ofVboMesh_setUsage(self, *args) - def draw(self, *args): return _openframeworks.ofVboMesh_draw(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVboMesh_drawInstanced(self, *args) - def getVbo(self): return _openframeworks.ofVboMesh_getVbo(self) - __swig_destroy__ = _openframeworks.delete_ofVboMesh - __del__ = lambda self : None; -ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister -ofVboMesh_swigregister(ofVboMesh) + def setVertexData(self, *args): + return _openframeworks.ofVbo_setVertexData(self, *args) -OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR -OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR -OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC -class ofPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofPixels - __del__ = lambda self : None; - def __init__(self, *args): - this = _openframeworks.new_ofPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofPixels_swapRgb(self) - def clear(self): return _openframeworks.ofPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofPixels_size(self) -ofPixels_swigregister = _openframeworks.ofPixels_swigregister -ofPixels_swigregister(ofPixels) + def setColorData(self, *args): + return _openframeworks.ofVbo_setColorData(self, *args) -class ofFloatPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) - __repr__ = _swig_repr + def setNormalData(self, *args): + return _openframeworks.ofVbo_setNormalData(self, *args) + + def setTexCoordData(self, *args): + return _openframeworks.ofVbo_setTexCoordData(self, *args) + + def setAttributeData(self, location, vert0x, numCoords, total, usage, stride=0): + return _openframeworks.ofVbo_setAttributeData(self, location, vert0x, numCoords, total, usage, stride) + + def setAttributeDivisor(self, location, divisor): + return _openframeworks.ofVbo_setAttributeDivisor(self, location, divisor) + + def setVertexBuffer(self, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setVertexBuffer(self, buffer, numCoords, stride, offset) + + def setColorBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setColorBuffer(self, buffer, stride, offset) + + def setNormalBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setNormalBuffer(self, buffer, stride, offset) + + def setTexCoordBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setTexCoordBuffer(self, buffer, stride, offset) + + def setIndexBuffer(self, buffer): + return _openframeworks.ofVbo_setIndexBuffer(self, buffer) + + def setAttributeBuffer(self, location, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setAttributeBuffer(self, location, buffer, numCoords, stride, offset) + + def getVertexBuffer(self, *args): + return _openframeworks.ofVbo_getVertexBuffer(self, *args) + + def getColorBuffer(self, *args): + return _openframeworks.ofVbo_getColorBuffer(self, *args) + + def getNormalBuffer(self, *args): + return _openframeworks.ofVbo_getNormalBuffer(self, *args) + + def getTexCoordBuffer(self, *args): + return _openframeworks.ofVbo_getTexCoordBuffer(self, *args) + + def getIndexBuffer(self, *args): + return _openframeworks.ofVbo_getIndexBuffer(self, *args) + + def getAttributeBuffer(self, *args): + return _openframeworks.ofVbo_getAttributeBuffer(self, *args) + + def updateMesh(self, mesh): + return _openframeworks.ofVbo_updateMesh(self, mesh) + + def updateIndexData(self, indices, total): + return _openframeworks.ofVbo_updateIndexData(self, indices, total) + + def updateVertexData(self, *args): + return _openframeworks.ofVbo_updateVertexData(self, *args) + + def updateColorData(self, *args): + return _openframeworks.ofVbo_updateColorData(self, *args) + + def updateNormalData(self, *args): + return _openframeworks.ofVbo_updateNormalData(self, *args) + + def updateTexCoordData(self, *args): + return _openframeworks.ofVbo_updateTexCoordData(self, *args) + + def updateAttributeData(self, location, vert0x, total): + return _openframeworks.ofVbo_updateAttributeData(self, location, vert0x, total) + + def enableColors(self): + return _openframeworks.ofVbo_enableColors(self) + + def enableNormals(self): + return _openframeworks.ofVbo_enableNormals(self) + + def enableTexCoords(self): + return _openframeworks.ofVbo_enableTexCoords(self) + + def enableIndices(self): + return _openframeworks.ofVbo_enableIndices(self) + + def disableColors(self): + return _openframeworks.ofVbo_disableColors(self) + + def disableNormals(self): + return _openframeworks.ofVbo_disableNormals(self) + + def disableTexCoords(self): + return _openframeworks.ofVbo_disableTexCoords(self) + + def disableIndices(self): + return _openframeworks.ofVbo_disableIndices(self) + + def getVaoId(self): + return _openframeworks.ofVbo_getVaoId(self) + + def getVertId(self): + return _openframeworks.ofVbo_getVertId(self) + + def getColorId(self): + return _openframeworks.ofVbo_getColorId(self) + + def getNormalId(self): + return _openframeworks.ofVbo_getNormalId(self) + + def getTexCoordId(self): + return _openframeworks.ofVbo_getTexCoordId(self) + + def getIndexId(self): + return _openframeworks.ofVbo_getIndexId(self) + + def getAttributeId(self, AttrPos_): + return _openframeworks.ofVbo_getAttributeId(self, AttrPos_) + + def getIsAllocated(self): + return _openframeworks.ofVbo_getIsAllocated(self) + + def getUsingVerts(self): + return _openframeworks.ofVbo_getUsingVerts(self) + + def getUsingColors(self): + return _openframeworks.ofVbo_getUsingColors(self) + + def getUsingNormals(self): + return _openframeworks.ofVbo_getUsingNormals(self) + + def getUsingTexCoords(self): + return _openframeworks.ofVbo_getUsingTexCoords(self) + + def getUsingIndices(self): + return _openframeworks.ofVbo_getUsingIndices(self) + + def draw(self, drawMode, first, total): + return _openframeworks.ofVbo_draw(self, drawMode, first, total) + + def drawElements(self, drawMode, amt, offsetelements=0): + return _openframeworks.ofVbo_drawElements(self, drawMode, amt, offsetelements) + + def drawInstanced(self, drawMode, first, total, primCount): + return _openframeworks.ofVbo_drawInstanced(self, drawMode, first, total, primCount) + + def drawElementsInstanced(self, drawMode, amt, primCount): + return _openframeworks.ofVbo_drawElementsInstanced(self, drawMode, amt, primCount) + + def bind(self): + return _openframeworks.ofVbo_bind(self) + + def unbind(self): + return _openframeworks.ofVbo_unbind(self) + + def clear(self): + return _openframeworks.ofVbo_clear(self) + + def clearVertices(self): + return _openframeworks.ofVbo_clearVertices(self) + + def clearNormals(self): + return _openframeworks.ofVbo_clearNormals(self) + + def clearColors(self): + return _openframeworks.ofVbo_clearColors(self) + + def clearTexCoords(self): + return _openframeworks.ofVbo_clearTexCoords(self) + + def clearIndices(self): + return _openframeworks.ofVbo_clearIndices(self) + + def clearAttribute(self, attributePos_): + return _openframeworks.ofVbo_clearAttribute(self, attributePos_) + + def getNumVertices(self): + return _openframeworks.ofVbo_getNumVertices(self) + + def getNumIndices(self): + return _openframeworks.ofVbo_getNumIndices(self) + + def hasAttribute(self, attributePos_): + return _openframeworks.ofVbo_hasAttribute(self, attributePos_) +ofVbo_swigregister = _openframeworks.ofVbo_swigregister +ofVbo_swigregister(ofVbo) + +class ofVboMesh(ofMesh): + __swig_setmethods__ = {} + for _s in [ofMesh]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) + __swig_getmethods__ = {} + for _s in [ofMesh]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) + __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofVboMesh(*args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofVboMesh + __del__ = lambda self: None + + def setUsage(self, usage): + return _openframeworks.ofVboMesh_setUsage(self, usage) + + def draw(self, *args): + return _openframeworks.ofVboMesh_draw(self, *args) + + def drawInstanced(self, drawMode, primCount): + return _openframeworks.ofVboMesh_drawInstanced(self, drawMode, primCount) + + def getVbo(self, *args): + return _openframeworks.ofVboMesh_getVbo(self, *args) +ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister +ofVboMesh_swigregister(ofVboMesh) + + +_openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant(_openframeworks) +OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR + +_openframeworks.OF_INTERPOLATE_BILINEAR_swigconstant(_openframeworks) +OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR + +_openframeworks.OF_INTERPOLATE_BICUBIC_swigconstant(_openframeworks) +OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC +class ofPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofPixels + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofPixels(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofPixels_size(self) + + def getImageType(self): + return _openframeworks.ofPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofPixels_getConstPixelsIter(self) +ofPixels_swigregister = _openframeworks.ofPixels_swigregister +ofPixels_swigregister(ofPixels) + +def ofPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofPixels_pixelBitsFromPixelFormat(format) +ofPixels_pixelBitsFromPixelFormat = _openframeworks.ofPixels_pixelBitsFromPixelFormat + +def ofPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofPixels_bytesFromPixelFormat(w, h, format) +ofPixels_bytesFromPixelFormat = _openframeworks.ofPixels_bytesFromPixelFormat + +class ofFloatPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) + __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofFloatPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofFloatPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofFloatPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofFloatPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofFloatPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofFloatPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofFloatPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofFloatPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofFloatPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofFloatPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofFloatPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofFloatPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofFloatPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofFloatPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofFloatPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofFloatPixels_swapRgb(self) - def clear(self): return _openframeworks.ofFloatPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofFloatPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofFloatPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofFloatPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofFloatPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofFloatPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofFloatPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofFloatPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofFloatPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofFloatPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofFloatPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofFloatPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofFloatPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofFloatPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofFloatPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofFloatPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofFloatPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofFloatPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofFloatPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFloatPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofFloatPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofFloatPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofFloatPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofFloatPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofFloatPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofFloatPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofFloatPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofFloatPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofFloatPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofFloatPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofFloatPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofFloatPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFloatPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofFloatPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofFloatPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofFloatPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofFloatPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofFloatPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofFloatPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofFloatPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofFloatPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofFloatPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofFloatPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofFloatPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofFloatPixels_size(self) + + def getImageType(self): + return _openframeworks.ofFloatPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofFloatPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofFloatPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofFloatPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofFloatPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofFloatPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofFloatPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofFloatPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofFloatPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofFloatPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofFloatPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofFloatPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofFloatPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofFloatPixels_getConstPixelsIter(self) ofFloatPixels_swigregister = _openframeworks.ofFloatPixels_swigregister ofFloatPixels_swigregister(ofFloatPixels) +def ofFloatPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat(format) +ofFloatPixels_pixelBitsFromPixelFormat = _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + +def ofFloatPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofFloatPixels_bytesFromPixelFormat(w, h, format) +ofFloatPixels_bytesFromPixelFormat = _openframeworks.ofFloatPixels_bytesFromPixelFormat + class ofShortPixels(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortPixels, name, value) @@ -3695,115 +7390,348 @@ class ofShortPixels(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShortPixels, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShortPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShortPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofShortPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofShortPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofShortPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofShortPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofShortPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofShortPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofShortPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofShortPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofShortPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofShortPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofShortPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofShortPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofShortPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofShortPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofShortPixels_swapRgb(self) - def clear(self): return _openframeworks.ofShortPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofShortPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofShortPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofShortPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofShortPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofShortPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofShortPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofShortPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofShortPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofShortPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofShortPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofShortPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofShortPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofShortPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofShortPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofShortPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofShortPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofShortPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofShortPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofShortPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofShortPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofShortPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofShortPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofShortPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofShortPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofShortPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofShortPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofShortPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofShortPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofShortPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofShortPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofShortPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofShortPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofShortPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofShortPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofShortPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofShortPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofShortPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofShortPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofShortPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofShortPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofShortPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofShortPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofShortPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofShortPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofShortPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofShortPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofShortPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofShortPixels_size(self) + + def getImageType(self): + return _openframeworks.ofShortPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofShortPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofShortPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofShortPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofShortPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofShortPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofShortPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofShortPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofShortPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofShortPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofShortPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofShortPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofShortPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofShortPixels_getConstPixelsIter(self) ofShortPixels_swigregister = _openframeworks.ofShortPixels_swigregister ofShortPixels_swigregister(ofShortPixels) +def ofShortPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofShortPixels_pixelBitsFromPixelFormat(format) +ofShortPixels_pixelBitsFromPixelFormat = _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + +def ofShortPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofShortPixels_bytesFromPixelFormat(w, h, format) +ofShortPixels_bytesFromPixelFormat = _openframeworks.ofShortPixels_bytesFromPixelFormat + class ofPath(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofPath, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPath, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofPath() - try: self.this.append(this) - except: self.this = this - def clear(self): return _openframeworks.ofPath_clear(self) - def newSubPath(self): return _openframeworks.ofPath_newSubPath(self) - def close(self): return _openframeworks.ofPath_close(self) - def lineTo(self, *args): return _openframeworks.ofPath_lineTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofPath_moveTo(self, *args) - def curveTo(self, *args): return _openframeworks.ofPath_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPath_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPath_quadBezierTo(self, *args) - def arc(self, *args): return _openframeworks.ofPath_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPath_arcNegative(self, *args) - def triangle(self, *args): return _openframeworks.ofPath_triangle(self, *args) - def circle(self, *args): return _openframeworks.ofPath_circle(self, *args) - def ellipse(self, *args): return _openframeworks.ofPath_ellipse(self, *args) - def rectangle(self, *args): return _openframeworks.ofPath_rectangle(self, *args) - def rectRounded(self, *args): return _openframeworks.ofPath_rectRounded(self, *args) - def setPolyWindingMode(self, *args): return _openframeworks.ofPath_setPolyWindingMode(self, *args) - def setFilled(self, *args): return _openframeworks.ofPath_setFilled(self, *args) - def setStrokeWidth(self, *args): return _openframeworks.ofPath_setStrokeWidth(self, *args) - def setColor(self, *args): return _openframeworks.ofPath_setColor(self, *args) - def setHexColor(self, *args): return _openframeworks.ofPath_setHexColor(self, *args) - def setFillColor(self, *args): return _openframeworks.ofPath_setFillColor(self, *args) - def setFillHexColor(self, *args): return _openframeworks.ofPath_setFillHexColor(self, *args) - def setStrokeColor(self, *args): return _openframeworks.ofPath_setStrokeColor(self, *args) - def setStrokeHexColor(self, *args): return _openframeworks.ofPath_setStrokeHexColor(self, *args) - def getWindingMode(self): return _openframeworks.ofPath_getWindingMode(self) - def isFilled(self): return _openframeworks.ofPath_isFilled(self) - def getFillColor(self): return _openframeworks.ofPath_getFillColor(self) - def getStrokeColor(self): return _openframeworks.ofPath_getStrokeColor(self) - def getStrokeWidth(self): return _openframeworks.ofPath_getStrokeWidth(self) - def hasOutline(self): return _openframeworks.ofPath_hasOutline(self) - def draw(self, *args): return _openframeworks.ofPath_draw(self, *args) - def getOutline(self): return _openframeworks.ofPath_getOutline(self) - def getTessellation(self): return _openframeworks.ofPath_getTessellation(self) - def simplify(self, tolerance=0.3): return _openframeworks.ofPath_simplify(self, tolerance) - def flagShapeChanged(self): return _openframeworks.ofPath_flagShapeChanged(self) - def hasChanged(self): return _openframeworks.ofPath_hasChanged(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def clear(self): + return _openframeworks.ofPath_clear(self) + + def newSubPath(self): + return _openframeworks.ofPath_newSubPath(self) + + def close(self): + return _openframeworks.ofPath_close(self) + + def lineTo(self, *args): + return _openframeworks.ofPath_lineTo(self, *args) + + def moveTo(self, *args): + return _openframeworks.ofPath_moveTo(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPath_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPath_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPath_quadBezierTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPath_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPath_arcNegative(self, *args) + + def triangle(self, *args): + return _openframeworks.ofPath_triangle(self, *args) + + def circle(self, *args): + return _openframeworks.ofPath_circle(self, *args) + + def ellipse(self, *args): + return _openframeworks.ofPath_ellipse(self, *args) + + def rectangle(self, *args): + return _openframeworks.ofPath_rectangle(self, *args) + + def rectRounded(self, *args): + return _openframeworks.ofPath_rectRounded(self, *args) + + def setPolyWindingMode(self, mode): + return _openframeworks.ofPath_setPolyWindingMode(self, mode) + + def getWindingMode(self): + return _openframeworks.ofPath_getWindingMode(self) + + def setFilled(self, hasFill): + return _openframeworks.ofPath_setFilled(self, hasFill) + + def setStrokeWidth(self, width): + return _openframeworks.ofPath_setStrokeWidth(self, width) + + def setColor(self, color): + return _openframeworks.ofPath_setColor(self, color) + + def setHexColor(self, hex): + return _openframeworks.ofPath_setHexColor(self, hex) + + def setFillColor(self, color): + return _openframeworks.ofPath_setFillColor(self, color) + + def setFillHexColor(self, hex): + return _openframeworks.ofPath_setFillHexColor(self, hex) + + def setStrokeColor(self, color): + return _openframeworks.ofPath_setStrokeColor(self, color) + + def setStrokeHexColor(self, hex): + return _openframeworks.ofPath_setStrokeHexColor(self, hex) + + def isFilled(self): + return _openframeworks.ofPath_isFilled(self) + + def getFillColor(self): + return _openframeworks.ofPath_getFillColor(self) + + def getStrokeColor(self): + return _openframeworks.ofPath_getStrokeColor(self) + + def getStrokeWidth(self): + return _openframeworks.ofPath_getStrokeWidth(self) + + def hasOutline(self): + return _openframeworks.ofPath_hasOutline(self) + + def setCurveResolution(self, curveResolution): + return _openframeworks.ofPath_setCurveResolution(self, curveResolution) + + def setCircleResolution(self, circleResolution): + return _openframeworks.ofPath_setCircleResolution(self, circleResolution) + + def getCircleResolution(self): + return _openframeworks.ofPath_getCircleResolution(self) + + def setUseShapeColor(self, useColor): + return _openframeworks.ofPath_setUseShapeColor(self, useColor) + + def getUseShapeColor(self): + return _openframeworks.ofPath_getUseShapeColor(self) + + def draw(self, *args): + return _openframeworks.ofPath_draw(self, *args) + + def getOutline(self): + return _openframeworks.ofPath_getOutline(self) + + def tessellate(self): + return _openframeworks.ofPath_tessellate(self) + + def getTessellation(self): + return _openframeworks.ofPath_getTessellation(self) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPath_simplify(self, tolerance) + + def translate(self, p): + return _openframeworks.ofPath_translate(self, p) + + def rotate(self, az, axis): + return _openframeworks.ofPath_rotate(self, az, axis) + + def scale(self, x, y): + return _openframeworks.ofPath_scale(self, x, y) + + def append(self, path): + return _openframeworks.ofPath_append(self, path) COMMANDS = _openframeworks.ofPath_COMMANDS POLYLINES = _openframeworks.ofPath_POLYLINES - def setMode(self, *args): return _openframeworks.ofPath_setMode(self, *args) - def getMode(self): return _openframeworks.ofPath_getMode(self) - def setCurveResolution(self, *args): return _openframeworks.ofPath_setCurveResolution(self, *args) - def setCircleResolution(self, *args): return _openframeworks.ofPath_setCircleResolution(self, *args) - def getCircleResolution(self): return _openframeworks.ofPath_getCircleResolution(self) - def setUseShapeColor(self, *args): return _openframeworks.ofPath_setUseShapeColor(self, *args) - def getUseShapeColor(self): return _openframeworks.ofPath_getUseShapeColor(self) - def tessellate(self): return _openframeworks.ofPath_tessellate(self) - def translate(self, *args): return _openframeworks.ofPath_translate(self, *args) - def rotate(self, *args): return _openframeworks.ofPath_rotate(self, *args) - def scale(self, *args): return _openframeworks.ofPath_scale(self, *args) - def getCommands(self, *args): return _openframeworks.ofPath_getCommands(self, *args) + + def setMode(self, mode): + return _openframeworks.ofPath_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofPath_getMode(self) + + def getCommands(self, *args): + return _openframeworks.ofPath_getCommands(self, *args) __swig_destroy__ = _openframeworks.delete_ofPath - __del__ = lambda self : None; + __del__ = lambda self: None ofPath_swigregister = _openframeworks.ofPath_swigregister ofPath_swigregister(ofPath) @@ -3813,539 +7741,857 @@ class ofPolyline(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPolyline, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPolyline(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromRectangle"] = lambda x: _openframeworks.ofPolyline_fromRectangle - if _newclass:fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) - def clear(self): return _openframeworks.ofPolyline_clear(self) - def addVertex(self, *args): return _openframeworks.ofPolyline_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofPolyline_addVertices(self, *args) - def lineTo(self, *args): return _openframeworks.ofPolyline_lineTo(self, *args) - def insertVertex(self, *args): return _openframeworks.ofPolyline_insertVertex(self, *args) - def arc(self, *args): return _openframeworks.ofPolyline_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPolyline_arcNegative(self, *args) - def curveTo(self, *args): return _openframeworks.ofPolyline_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPolyline_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPolyline_quadBezierTo(self, *args) - def getSmoothed(self, *args): return _openframeworks.ofPolyline_getSmoothed(self, *args) - def getResampledBySpacing(self, *args): return _openframeworks.ofPolyline_getResampledBySpacing(self, *args) - def getResampledByCount(self, *args): return _openframeworks.ofPolyline_getResampledByCount(self, *args) - def getBoundingBox(self): return _openframeworks.ofPolyline_getBoundingBox(self) - def getClosestPoint(self, *args): return _openframeworks.ofPolyline_getClosestPoint(self, *args) - def inside(self, *args): return _openframeworks.ofPolyline_inside(self, *args) - def simplify(self, tolerance=0.3): return _openframeworks.ofPolyline_simplify(self, tolerance) - def size(self): return _openframeworks.ofPolyline_size(self) - def __getitem__(self, *args): return _openframeworks.ofPolyline___getitem__(self, *args) - def resize(self, *args): return _openframeworks.ofPolyline_resize(self, *args) - def setClosed(self, *args): return _openframeworks.ofPolyline_setClosed(self, *args) - def isClosed(self): return _openframeworks.ofPolyline_isClosed(self) - def close(self): return _openframeworks.ofPolyline_close(self) - def hasChanged(self): return _openframeworks.ofPolyline_hasChanged(self) - def flagHasChanged(self): return _openframeworks.ofPolyline_flagHasChanged(self) - def getVertices(self, *args): return _openframeworks.ofPolyline_getVertices(self, *args) - def getPerimeter(self): return _openframeworks.ofPolyline_getPerimeter(self) - def getArea(self): return _openframeworks.ofPolyline_getArea(self) - def getCentroid2D(self): return _openframeworks.ofPolyline_getCentroid2D(self) - def draw(self): return _openframeworks.ofPolyline_draw(self) - def setRightVector(self, *args): return _openframeworks.ofPolyline_setRightVector(self, *args) - def getRightVector(self): return _openframeworks.ofPolyline_getRightVector(self) - def getIndexAtLength(self, *args): return _openframeworks.ofPolyline_getIndexAtLength(self, *args) - def getIndexAtPercent(self, *args): return _openframeworks.ofPolyline_getIndexAtPercent(self, *args) - def getLengthAtIndex(self, *args): return _openframeworks.ofPolyline_getLengthAtIndex(self, *args) - def getLengthAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, *args) - def getPointAtLength(self, *args): return _openframeworks.ofPolyline_getPointAtLength(self, *args) - def getPointAtPercent(self, *args): return _openframeworks.ofPolyline_getPointAtPercent(self, *args) - def getPointAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, *args) - def getAngleAtIndex(self, *args): return _openframeworks.ofPolyline_getAngleAtIndex(self, *args) - def getAngleAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, *args) - def getRotationAtIndex(self, *args): return _openframeworks.ofPolyline_getRotationAtIndex(self, *args) - def getRotationAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, *args) - def getTangentAtIndex(self, *args): return _openframeworks.ofPolyline_getTangentAtIndex(self, *args) - def getTangentAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, *args) - def getNormalAtIndex(self, *args): return _openframeworks.ofPolyline_getNormalAtIndex(self, *args) - def getNormalAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, *args) - def getWrappedIndex(self, *args): return _openframeworks.ofPolyline_getWrappedIndex(self, *args) + if _newclass: + fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) + + def clear(self): + return _openframeworks.ofPolyline_clear(self) + + def addVertex(self, *args): + return _openframeworks.ofPolyline_addVertex(self, *args) + + def addVertices(self, *args): + return _openframeworks.ofPolyline_addVertices(self, *args) + + def insertVertex(self, *args): + return _openframeworks.ofPolyline_insertVertex(self, *args) + + def resize(self, size): + return _openframeworks.ofPolyline_resize(self, size) + + def size(self): + return _openframeworks.ofPolyline_size(self) + + def __getitem__(self, *args): + return _openframeworks.ofPolyline___getitem__(self, *args) + + def getVertices(self, *args): + return _openframeworks.ofPolyline_getVertices(self, *args) + + def begin(self, *args): + return _openframeworks.ofPolyline_begin(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPolyline_rbegin(self, *args) + + def end(self, *args): + return _openframeworks.ofPolyline_end(self, *args) + + def rend(self, *args): + return _openframeworks.ofPolyline_rend(self, *args) + + def lineTo(self, *args): + return _openframeworks.ofPolyline_lineTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPolyline_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPolyline_arcNegative(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPolyline_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPolyline_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPolyline_quadBezierTo(self, *args) + + def getSmoothed(self, smoothingSize, smoothingShape=0): + return _openframeworks.ofPolyline_getSmoothed(self, smoothingSize, smoothingShape) + + def getResampledBySpacing(self, spacing): + return _openframeworks.ofPolyline_getResampledBySpacing(self, spacing) + + def getResampledByCount(self, count): + return _openframeworks.ofPolyline_getResampledByCount(self, count) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPolyline_simplify(self, tolerance) + + def close(self): + return _openframeworks.ofPolyline_close(self) + + def setClosed(self, tf): + return _openframeworks.ofPolyline_setClosed(self, tf) + + def isClosed(self): + return _openframeworks.ofPolyline_isClosed(self) + + def hasChanged(self): + return _openframeworks.ofPolyline_hasChanged(self) + + def flagHasChanged(self): + return _openframeworks.ofPolyline_flagHasChanged(self) + + def inside(self, *args): + return _openframeworks.ofPolyline_inside(self, *args) + + def getBoundingBox(self): + return _openframeworks.ofPolyline_getBoundingBox(self) + + def getPerimeter(self): + return _openframeworks.ofPolyline_getPerimeter(self) + + def getArea(self): + return _openframeworks.ofPolyline_getArea(self) + + def getCentroid2D(self): + return _openframeworks.ofPolyline_getCentroid2D(self) + + def getClosestPoint(self, target, nearestIndex=None): + return _openframeworks.ofPolyline_getClosestPoint(self, target, nearestIndex) + + def getIndexAtLength(self, f): + return _openframeworks.ofPolyline_getIndexAtLength(self, f) + + def getIndexAtPercent(self, f): + return _openframeworks.ofPolyline_getIndexAtPercent(self, f) + + def getLengthAtIndex(self, index): + return _openframeworks.ofPolyline_getLengthAtIndex(self, index) + + def getLengthAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, findex) + + def getPointAtLength(self, f): + return _openframeworks.ofPolyline_getPointAtLength(self, f) + + def getPointAtPercent(self, f): + return _openframeworks.ofPolyline_getPointAtPercent(self, f) + + def getPointAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, findex) + + def getAngleAtIndex(self, index): + return _openframeworks.ofPolyline_getAngleAtIndex(self, index) + + def getAngleAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, findex) + + def getRotationAtIndex(self, index): + return _openframeworks.ofPolyline_getRotationAtIndex(self, index) + + def getRotationAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, findex) + + def getTangentAtIndex(self, index): + return _openframeworks.ofPolyline_getTangentAtIndex(self, index) + + def getTangentAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, findex) + + def getNormalAtIndex(self, index): + return _openframeworks.ofPolyline_getNormalAtIndex(self, index) + + def getNormalAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, findex) + + def getWrappedIndex(self, index): + return _openframeworks.ofPolyline_getWrappedIndex(self, index) + + def setRightVector(self, *args): + return _openframeworks.ofPolyline_setRightVector(self, *args) + + def getRightVector(self): + return _openframeworks.ofPolyline_getRightVector(self) + + def draw(self): + return _openframeworks.ofPolyline_draw(self) __swig_destroy__ = _openframeworks.delete_ofPolyline - __del__ = lambda self : None; + __del__ = lambda self: None ofPolyline_swigregister = _openframeworks.ofPolyline_swigregister ofPolyline_swigregister(ofPolyline) -def ofPolyline_fromRectangle(*args): - return _openframeworks.ofPolyline_fromRectangle(*args) -ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle +def ofPolyline_fromRectangle(rect): + return _openframeworks.ofPolyline_fromRectangle(rect) +ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle + + +_openframeworks.CIRC_RESOLUTION_swigconstant(_openframeworks) +CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION + +def ofSetColor(*args): + return _openframeworks.ofSetColor(*args) +ofSetColor = _openframeworks.ofSetColor + +def ofSetHexColor(hexColor): + return _openframeworks.ofSetHexColor(hexColor) +ofSetHexColor = _openframeworks.ofSetHexColor + +def ofNoFill(): + return _openframeworks.ofNoFill() +ofNoFill = _openframeworks.ofNoFill + +def ofFill(): + return _openframeworks.ofFill() +ofFill = _openframeworks.ofFill + +def ofGetFill(): + return _openframeworks.ofGetFill() +ofGetFill = _openframeworks.ofGetFill + +def ofGetBackgroundColor(): + return _openframeworks.ofGetBackgroundColor() +ofGetBackgroundColor = _openframeworks.ofGetBackgroundColor + +def ofGetBackground(): + return _openframeworks.ofGetBackground() +ofGetBackground = _openframeworks.ofGetBackground + +def ofBackground(*args): + return _openframeworks.ofBackground(*args) +ofBackground = _openframeworks.ofBackground + +def ofBackgroundHex(hexColor, alpha=255): + return _openframeworks.ofBackgroundHex(hexColor, alpha) +ofBackgroundHex = _openframeworks.ofBackgroundHex + +def ofBackgroundGradient(start, end, mode=OF_GRADIENT_CIRCULAR): + return _openframeworks.ofBackgroundGradient(start, end, mode) +ofBackgroundGradient = _openframeworks.ofBackgroundGradient + +def ofSetBackgroundColor(*args): + return _openframeworks.ofSetBackgroundColor(*args) +ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor + +def ofSetBackgroundColorHex(hexColor, alpha=255): + return _openframeworks.ofSetBackgroundColorHex(hexColor, alpha) +ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex + +def ofSetBackgroundAuto(bManual): + return _openframeworks.ofSetBackgroundAuto(bManual) +ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto -CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION +def ofGetBackgroundAuto(): + return _openframeworks.ofGetBackgroundAuto() +ofGetBackgroundAuto = _openframeworks.ofGetBackgroundAuto -def ofBeginSaveScreenAsPDF(*args): - return _openframeworks.ofBeginSaveScreenAsPDF(*args) -ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF +def ofClear(*args): + return _openframeworks.ofClear(*args) +ofClear = _openframeworks.ofClear -def ofEndSaveScreenAsPDF(): - return _openframeworks.ofEndSaveScreenAsPDF() -ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF +def ofClearAlpha(): + return _openframeworks.ofClearAlpha() +ofClearAlpha = _openframeworks.ofClearAlpha -def ofPushView(): - return _openframeworks.ofPushView() -ofPushView = _openframeworks.ofPushView +def ofDrawTriangle(*args): + return _openframeworks.ofDrawTriangle(*args) +ofDrawTriangle = _openframeworks.ofDrawTriangle -def ofPopView(): - return _openframeworks.ofPopView() -ofPopView = _openframeworks.ofPopView +def ofDrawCircle(*args): + return _openframeworks.ofDrawCircle(*args) +ofDrawCircle = _openframeworks.ofDrawCircle -def ofViewport(*args): - return _openframeworks.ofViewport(*args) -ofViewport = _openframeworks.ofViewport +def ofDrawEllipse(*args): + return _openframeworks.ofDrawEllipse(*args) +ofDrawEllipse = _openframeworks.ofDrawEllipse -def ofSetupScreenPerspective(*args): - return _openframeworks.ofSetupScreenPerspective(*args) -ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective +def ofDrawLine(*args): + return _openframeworks.ofDrawLine(*args) +ofDrawLine = _openframeworks.ofDrawLine -def ofSetupScreenOrtho(*args): - return _openframeworks.ofSetupScreenOrtho(*args) -ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho +def ofDrawRectangle(*args): + return _openframeworks.ofDrawRectangle(*args) +ofDrawRectangle = _openframeworks.ofDrawRectangle -def ofGetCurrentViewport(): - return _openframeworks.ofGetCurrentViewport() -ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport +def ofDrawRectRounded(*args): + return _openframeworks.ofDrawRectRounded(*args) +ofDrawRectRounded = _openframeworks.ofDrawRectRounded -def ofGetNativeViewport(): - return _openframeworks.ofGetNativeViewport() -ofGetNativeViewport = _openframeworks.ofGetNativeViewport +def ofDrawCurve(*args): + return _openframeworks.ofDrawCurve(*args) +ofDrawCurve = _openframeworks.ofDrawCurve -def ofGetViewportWidth(): - return _openframeworks.ofGetViewportWidth() -ofGetViewportWidth = _openframeworks.ofGetViewportWidth +def ofDrawBezier(*args): + return _openframeworks.ofDrawBezier(*args) +ofDrawBezier = _openframeworks.ofDrawBezier -def ofGetViewportHeight(): - return _openframeworks.ofGetViewportHeight() -ofGetViewportHeight = _openframeworks.ofGetViewportHeight +def ofTriangle(*args): + return _openframeworks.ofTriangle(*args) +ofTriangle = _openframeworks.ofTriangle -def ofOrientationToDegrees(*args): - return _openframeworks.ofOrientationToDegrees(*args) -ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees +def ofCircle(*args): + return _openframeworks.ofCircle(*args) +ofCircle = _openframeworks.ofCircle -def ofSetCoordHandedness(*args): - return _openframeworks.ofSetCoordHandedness(*args) -ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness +def ofEllipse(*args): + return _openframeworks.ofEllipse(*args) +ofEllipse = _openframeworks.ofEllipse -def ofGetCoordHandedness(): - return _openframeworks.ofGetCoordHandedness() -ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness +def ofLine(*args): + return _openframeworks.ofLine(*args) +ofLine = _openframeworks.ofLine -def ofPushMatrix(): - return _openframeworks.ofPushMatrix() -ofPushMatrix = _openframeworks.ofPushMatrix +def ofRect(*args): + return _openframeworks.ofRect(*args) +ofRect = _openframeworks.ofRect -def ofPopMatrix(): - return _openframeworks.ofPopMatrix() -ofPopMatrix = _openframeworks.ofPopMatrix +def ofRectRounded(*args): + return _openframeworks.ofRectRounded(*args) +ofRectRounded = _openframeworks.ofRectRounded -def ofGetCurrentMatrix(*args): - return _openframeworks.ofGetCurrentMatrix(*args) -ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix +def ofCurve(*args): + return _openframeworks.ofCurve(*args) +ofCurve = _openframeworks.ofCurve -def ofGetCurrentOrientationMatrix(): - return _openframeworks.ofGetCurrentOrientationMatrix() -ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix +def ofBezier(*args): + return _openframeworks.ofBezier(*args) +ofBezier = _openframeworks.ofBezier -def ofTranslate(*args): - return _openframeworks.ofTranslate(*args) -ofTranslate = _openframeworks.ofTranslate +def ofBeginShape(): + return _openframeworks.ofBeginShape() +ofBeginShape = _openframeworks.ofBeginShape -def ofScale(*args): - return _openframeworks.ofScale(*args) -ofScale = _openframeworks.ofScale +def ofVertex(*args): + return _openframeworks.ofVertex(*args) +ofVertex = _openframeworks.ofVertex -def ofRotateX(*args): - return _openframeworks.ofRotateX(*args) -ofRotateX = _openframeworks.ofRotateX +def ofVertices(polyPoints): + return _openframeworks.ofVertices(polyPoints) +ofVertices = _openframeworks.ofVertices -def ofRotateY(*args): - return _openframeworks.ofRotateY(*args) -ofRotateY = _openframeworks.ofRotateY +def ofCurveVertex(*args): + return _openframeworks.ofCurveVertex(*args) +ofCurveVertex = _openframeworks.ofCurveVertex -def ofRotateZ(*args): - return _openframeworks.ofRotateZ(*args) -ofRotateZ = _openframeworks.ofRotateZ +def ofCurveVertices(curvePoints): + return _openframeworks.ofCurveVertices(curvePoints) +ofCurveVertices = _openframeworks.ofCurveVertices -def ofRotate(*args): - return _openframeworks.ofRotate(*args) -ofRotate = _openframeworks.ofRotate +def ofBezierVertex(*args): + return _openframeworks.ofBezierVertex(*args) +ofBezierVertex = _openframeworks.ofBezierVertex -def ofLoadIdentityMatrix(): - return _openframeworks.ofLoadIdentityMatrix() -ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix +def ofEndShape(bClose=False): + return _openframeworks.ofEndShape(bClose) +ofEndShape = _openframeworks.ofEndShape -def ofLoadMatrix(*args): - return _openframeworks.ofLoadMatrix(*args) -ofLoadMatrix = _openframeworks.ofLoadMatrix +def ofNextContour(bClose=False): + return _openframeworks.ofNextContour(bClose) +ofNextContour = _openframeworks.ofNextContour -def ofMultMatrix(*args): - return _openframeworks.ofMultMatrix(*args) -ofMultMatrix = _openframeworks.ofMultMatrix +def ofSetDrawBitmapMode(mode): + return _openframeworks.ofSetDrawBitmapMode(mode) +ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode -def ofSetMatrixMode(*args): - return _openframeworks.ofSetMatrixMode(*args) -ofSetMatrixMode = _openframeworks.ofSetMatrixMode +def ofDrawBitmapStringHighlight(*args): + return _openframeworks.ofDrawBitmapStringHighlight(*args) +ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight def ofSetupGraphicDefaults(): - return _openframeworks.ofSetupGraphicDefaults() + return _openframeworks.ofSetupGraphicDefaults() ofSetupGraphicDefaults = _openframeworks.ofSetupGraphicDefaults def ofSetupScreen(): - return _openframeworks.ofSetupScreen() + return _openframeworks.ofSetupScreen() ofSetupScreen = _openframeworks.ofSetupScreen def ofGetRectMode(): - return _openframeworks.ofGetRectMode() + return _openframeworks.ofGetRectMode() ofGetRectMode = _openframeworks.ofGetRectMode -def ofSetCircleResolution(*args): - return _openframeworks.ofSetCircleResolution(*args) +def ofSetCircleResolution(res): + return _openframeworks.ofSetCircleResolution(res) ofSetCircleResolution = _openframeworks.ofSetCircleResolution -def ofSetCurveResolution(*args): - return _openframeworks.ofSetCurveResolution(*args) +def ofSetCurveResolution(res): + return _openframeworks.ofSetCurveResolution(res) ofSetCurveResolution = _openframeworks.ofSetCurveResolution -def ofNoFill(): - return _openframeworks.ofNoFill() -ofNoFill = _openframeworks.ofNoFill - -def ofFill(): - return _openframeworks.ofFill() -ofFill = _openframeworks.ofFill - -def ofGetFill(): - return _openframeworks.ofGetFill() -ofGetFill = _openframeworks.ofGetFill - -def ofSetLineWidth(*args): - return _openframeworks.ofSetLineWidth(*args) +def ofSetLineWidth(lineWidth): + return _openframeworks.ofSetLineWidth(lineWidth) ofSetLineWidth = _openframeworks.ofSetLineWidth -def ofSetDepthTest(*args): - return _openframeworks.ofSetDepthTest(*args) +def ofSetDepthTest(depthTest): + return _openframeworks.ofSetDepthTest(depthTest) ofSetDepthTest = _openframeworks.ofSetDepthTest def ofEnableDepthTest(): - return _openframeworks.ofEnableDepthTest() + return _openframeworks.ofEnableDepthTest() ofEnableDepthTest = _openframeworks.ofEnableDepthTest def ofDisableDepthTest(): - return _openframeworks.ofDisableDepthTest() + return _openframeworks.ofDisableDepthTest() ofDisableDepthTest = _openframeworks.ofDisableDepthTest -def ofSetColor(*args): - return _openframeworks.ofSetColor(*args) -ofSetColor = _openframeworks.ofSetColor - -def ofSetHexColor(*args): - return _openframeworks.ofSetHexColor(*args) -ofSetHexColor = _openframeworks.ofSetHexColor - -def ofEnableBlendMode(*args): - return _openframeworks.ofEnableBlendMode(*args) +def ofEnableBlendMode(blendMode): + return _openframeworks.ofEnableBlendMode(blendMode) ofEnableBlendMode = _openframeworks.ofEnableBlendMode def ofDisableBlendMode(): - return _openframeworks.ofDisableBlendMode() + return _openframeworks.ofDisableBlendMode() ofDisableBlendMode = _openframeworks.ofDisableBlendMode def ofEnablePointSprites(): - return _openframeworks.ofEnablePointSprites() + return _openframeworks.ofEnablePointSprites() ofEnablePointSprites = _openframeworks.ofEnablePointSprites def ofDisablePointSprites(): - return _openframeworks.ofDisablePointSprites() + return _openframeworks.ofDisablePointSprites() ofDisablePointSprites = _openframeworks.ofDisablePointSprites def ofEnableAlphaBlending(): - return _openframeworks.ofEnableAlphaBlending() + return _openframeworks.ofEnableAlphaBlending() ofEnableAlphaBlending = _openframeworks.ofEnableAlphaBlending def ofDisableAlphaBlending(): - return _openframeworks.ofDisableAlphaBlending() + return _openframeworks.ofDisableAlphaBlending() ofDisableAlphaBlending = _openframeworks.ofDisableAlphaBlending def ofEnableSmoothing(): - return _openframeworks.ofEnableSmoothing() + return _openframeworks.ofEnableSmoothing() ofEnableSmoothing = _openframeworks.ofEnableSmoothing def ofDisableSmoothing(): - return _openframeworks.ofDisableSmoothing() + return _openframeworks.ofDisableSmoothing() ofDisableSmoothing = _openframeworks.ofDisableSmoothing def ofEnableAntiAliasing(): - return _openframeworks.ofEnableAntiAliasing() + return _openframeworks.ofEnableAntiAliasing() ofEnableAntiAliasing = _openframeworks.ofEnableAntiAliasing def ofDisableAntiAliasing(): - return _openframeworks.ofDisableAntiAliasing() + return _openframeworks.ofDisableAntiAliasing() ofDisableAntiAliasing = _openframeworks.ofDisableAntiAliasing def ofGetStyle(): - return _openframeworks.ofGetStyle() + return _openframeworks.ofGetStyle() ofGetStyle = _openframeworks.ofGetStyle -def ofSetStyle(*args): - return _openframeworks.ofSetStyle(*args) +def ofSetStyle(style): + return _openframeworks.ofSetStyle(style) ofSetStyle = _openframeworks.ofSetStyle def ofPushStyle(): - return _openframeworks.ofPushStyle() + return _openframeworks.ofPushStyle() ofPushStyle = _openframeworks.ofPushStyle def ofPopStyle(): - return _openframeworks.ofPopStyle() + return _openframeworks.ofPopStyle() ofPopStyle = _openframeworks.ofPopStyle -def ofSetPolyMode(*args): - return _openframeworks.ofSetPolyMode(*args) +def ofSetPolyMode(mode): + return _openframeworks.ofSetPolyMode(mode) ofSetPolyMode = _openframeworks.ofSetPolyMode -def ofSetRectMode(*args): - return _openframeworks.ofSetRectMode(*args) +def ofSetRectMode(mode): + return _openframeworks.ofSetRectMode(mode) ofSetRectMode = _openframeworks.ofSetRectMode -def ofGetBackground(): - return _openframeworks.ofGetBackground() -ofGetBackground = _openframeworks.ofGetBackground +def ofPushMatrix(): + return _openframeworks.ofPushMatrix() +ofPushMatrix = _openframeworks.ofPushMatrix -def ofBackground(*args): - return _openframeworks.ofBackground(*args) -ofBackground = _openframeworks.ofBackground +def ofPopMatrix(): + return _openframeworks.ofPopMatrix() +ofPopMatrix = _openframeworks.ofPopMatrix -def ofBackgroundHex(*args): - return _openframeworks.ofBackgroundHex(*args) -ofBackgroundHex = _openframeworks.ofBackgroundHex +def ofGetCurrentMatrix(matrixMode): + return _openframeworks.ofGetCurrentMatrix(matrixMode) +ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix -def ofBackgroundGradient(*args): - return _openframeworks.ofBackgroundGradient(*args) -ofBackgroundGradient = _openframeworks.ofBackgroundGradient +def ofGetCurrentOrientationMatrix(): + return _openframeworks.ofGetCurrentOrientationMatrix() +ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix -def ofSetBackgroundColor(*args): - return _openframeworks.ofSetBackgroundColor(*args) -ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor +def ofGetCurrentNormalMatrix(): + return _openframeworks.ofGetCurrentNormalMatrix() +ofGetCurrentNormalMatrix = _openframeworks.ofGetCurrentNormalMatrix -def ofSetBackgroundColorHex(*args): - return _openframeworks.ofSetBackgroundColorHex(*args) -ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex +def ofTranslate(*args): + return _openframeworks.ofTranslate(*args) +ofTranslate = _openframeworks.ofTranslate -def ofSetBackgroundAuto(*args): - return _openframeworks.ofSetBackgroundAuto(*args) -ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto +def ofScale(*args): + return _openframeworks.ofScale(*args) +ofScale = _openframeworks.ofScale -def ofClear(*args): - return _openframeworks.ofClear(*args) -ofClear = _openframeworks.ofClear +def ofRotate(*args): + return _openframeworks.ofRotate(*args) +ofRotate = _openframeworks.ofRotate -def ofClearAlpha(): - return _openframeworks.ofClearAlpha() -ofClearAlpha = _openframeworks.ofClearAlpha +def ofRotateX(degrees): + return _openframeworks.ofRotateX(degrees) +ofRotateX = _openframeworks.ofRotateX -def ofTriangle(*args): - return _openframeworks.ofTriangle(*args) -ofTriangle = _openframeworks.ofTriangle +def ofRotateY(degrees): + return _openframeworks.ofRotateY(degrees) +ofRotateY = _openframeworks.ofRotateY -def ofCircle(*args): - return _openframeworks.ofCircle(*args) -ofCircle = _openframeworks.ofCircle +def ofRotateZ(degrees): + return _openframeworks.ofRotateZ(degrees) +ofRotateZ = _openframeworks.ofRotateZ -def ofEllipse(*args): - return _openframeworks.ofEllipse(*args) -ofEllipse = _openframeworks.ofEllipse +def ofLoadIdentityMatrix(): + return _openframeworks.ofLoadIdentityMatrix() +ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix -def ofLine(*args): - return _openframeworks.ofLine(*args) -ofLine = _openframeworks.ofLine +def ofLoadMatrix(*args): + return _openframeworks.ofLoadMatrix(*args) +ofLoadMatrix = _openframeworks.ofLoadMatrix -def ofRect(*args): - return _openframeworks.ofRect(*args) -ofRect = _openframeworks.ofRect +def ofMultMatrix(*args): + return _openframeworks.ofMultMatrix(*args) +ofMultMatrix = _openframeworks.ofMultMatrix -def ofRectRounded(*args): - return _openframeworks.ofRectRounded(*args) -ofRectRounded = _openframeworks.ofRectRounded +def ofSetMatrixMode(matrixMode): + return _openframeworks.ofSetMatrixMode(matrixMode) +ofSetMatrixMode = _openframeworks.ofSetMatrixMode -def ofCurve(*args): - return _openframeworks.ofCurve(*args) -ofCurve = _openframeworks.ofCurve +def ofLoadViewMatrix(m): + return _openframeworks.ofLoadViewMatrix(m) +ofLoadViewMatrix = _openframeworks.ofLoadViewMatrix -def ofBezier(*args): - return _openframeworks.ofBezier(*args) -ofBezier = _openframeworks.ofBezier +def ofMultViewMatrix(m): + return _openframeworks.ofMultViewMatrix(m) +ofMultViewMatrix = _openframeworks.ofMultViewMatrix -def ofBeginShape(): - return _openframeworks.ofBeginShape() -ofBeginShape = _openframeworks.ofBeginShape +def ofGetCurrentViewMatrix(): + return _openframeworks.ofGetCurrentViewMatrix() +ofGetCurrentViewMatrix = _openframeworks.ofGetCurrentViewMatrix -def ofVertex(*args): - return _openframeworks.ofVertex(*args) -ofVertex = _openframeworks.ofVertex +def ofPushView(): + return _openframeworks.ofPushView() +ofPushView = _openframeworks.ofPushView -def ofVertices(*args): - return _openframeworks.ofVertices(*args) -ofVertices = _openframeworks.ofVertices +def ofPopView(): + return _openframeworks.ofPopView() +ofPopView = _openframeworks.ofPopView -def ofCurveVertex(*args): - return _openframeworks.ofCurveVertex(*args) -ofCurveVertex = _openframeworks.ofCurveVertex +def ofViewport(*args): + return _openframeworks.ofViewport(*args) +ofViewport = _openframeworks.ofViewport -def ofCurveVertices(*args): - return _openframeworks.ofCurveVertices(*args) -ofCurveVertices = _openframeworks.ofCurveVertices +def ofGetCurrentViewport(): + return _openframeworks.ofGetCurrentViewport() +ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport -def ofBezierVertex(*args): - return _openframeworks.ofBezierVertex(*args) -ofBezierVertex = _openframeworks.ofBezierVertex +def ofGetNativeViewport(): + return _openframeworks.ofGetNativeViewport() +ofGetNativeViewport = _openframeworks.ofGetNativeViewport -def ofEndShape(bClose=False): - return _openframeworks.ofEndShape(bClose) -ofEndShape = _openframeworks.ofEndShape +def ofGetViewportWidth(): + return _openframeworks.ofGetViewportWidth() +ofGetViewportWidth = _openframeworks.ofGetViewportWidth -def ofNextContour(bClose=False): - return _openframeworks.ofNextContour(bClose) -ofNextContour = _openframeworks.ofNextContour +def ofGetViewportHeight(): + return _openframeworks.ofGetViewportHeight() +ofGetViewportHeight = _openframeworks.ofGetViewportHeight -def ofSetDrawBitmapMode(*args): - return _openframeworks.ofSetDrawBitmapMode(*args) -ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode +def ofSetupScreenPerspective(width=-1, height=-1, fov=60, nearDist=0, farDist=0): + return _openframeworks.ofSetupScreenPerspective(width, height, fov, nearDist, farDist) +ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective -def ofDrawBitmapString(*args): - return _openframeworks.ofDrawBitmapString(*args) -ofDrawBitmapString = _openframeworks.ofDrawBitmapString +def ofSetupScreenOrtho(width=-1, height=-1, nearDist=-1, farDist=1): + return _openframeworks.ofSetupScreenOrtho(width, height, nearDist, farDist) +ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho -def ofDrawBitmapStringHighlight(*args): - return _openframeworks.ofDrawBitmapStringHighlight(*args) -ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight +def ofOrientationToDegrees(orientation): + return _openframeworks.ofOrientationToDegrees(orientation) +ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees + +def ofSetCoordHandedness(handedness): + return _openframeworks.ofSetCoordHandedness(handedness) +ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness + +def ofGetCoordHandedness(): + return _openframeworks.ofGetCoordHandedness() +ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness + +def ofBeginSaveScreenAsPDF(*args): + return _openframeworks.ofBeginSaveScreenAsPDF(*args) +ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF + +def ofEndSaveScreenAsPDF(): + return _openframeworks.ofEndSaveScreenAsPDF() +ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF + +def ofBeginSaveScreenAsSVG(*args): + return _openframeworks.ofBeginSaveScreenAsSVG(*args) +ofBeginSaveScreenAsSVG = _openframeworks.ofBeginSaveScreenAsSVG -def ofSetPlaneResolution(*args): - return _openframeworks.ofSetPlaneResolution(*args) +def ofEndSaveScreenAsSVG(): + return _openframeworks.ofEndSaveScreenAsSVG() +ofEndSaveScreenAsSVG = _openframeworks.ofEndSaveScreenAsSVG + +def ofSetPlaneResolution(columns, rows): + return _openframeworks.ofSetPlaneResolution(columns, rows) ofSetPlaneResolution = _openframeworks.ofSetPlaneResolution def ofGetPlaneResolution(): - return _openframeworks.ofGetPlaneResolution() + return _openframeworks.ofGetPlaneResolution() ofGetPlaneResolution = _openframeworks.ofGetPlaneResolution def ofDrawPlane(*args): - return _openframeworks.ofDrawPlane(*args) + return _openframeworks.ofDrawPlane(*args) ofDrawPlane = _openframeworks.ofDrawPlane -def ofSetSphereResolution(*args): - return _openframeworks.ofSetSphereResolution(*args) +def ofSetSphereResolution(res): + return _openframeworks.ofSetSphereResolution(res) ofSetSphereResolution = _openframeworks.ofSetSphereResolution def ofGetSphereResolution(): - return _openframeworks.ofGetSphereResolution() + return _openframeworks.ofGetSphereResolution() ofGetSphereResolution = _openframeworks.ofGetSphereResolution def ofDrawSphere(*args): - return _openframeworks.ofDrawSphere(*args) + return _openframeworks.ofDrawSphere(*args) ofDrawSphere = _openframeworks.ofDrawSphere -def ofSetIcoSphereResolution(*args): - return _openframeworks.ofSetIcoSphereResolution(*args) +def ofSetIcoSphereResolution(res): + return _openframeworks.ofSetIcoSphereResolution(res) ofSetIcoSphereResolution = _openframeworks.ofSetIcoSphereResolution def ofGetIcoSphereResolution(): - return _openframeworks.ofGetIcoSphereResolution() + return _openframeworks.ofGetIcoSphereResolution() ofGetIcoSphereResolution = _openframeworks.ofGetIcoSphereResolution def ofDrawIcoSphere(*args): - return _openframeworks.ofDrawIcoSphere(*args) + return _openframeworks.ofDrawIcoSphere(*args) ofDrawIcoSphere = _openframeworks.ofDrawIcoSphere -def ofSetCylinderResolution(*args): - return _openframeworks.ofSetCylinderResolution(*args) +def ofSetCylinderResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetCylinderResolution(radiusSegments, heightSegments, capSegments) ofSetCylinderResolution = _openframeworks.ofSetCylinderResolution def ofGetCylinderResolution(): - return _openframeworks.ofGetCylinderResolution() + return _openframeworks.ofGetCylinderResolution() ofGetCylinderResolution = _openframeworks.ofGetCylinderResolution def ofDrawCylinder(*args): - return _openframeworks.ofDrawCylinder(*args) + return _openframeworks.ofDrawCylinder(*args) ofDrawCylinder = _openframeworks.ofDrawCylinder -def ofSetConeResolution(*args): - return _openframeworks.ofSetConeResolution(*args) +def ofSetConeResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetConeResolution(radiusSegments, heightSegments, capSegments) ofSetConeResolution = _openframeworks.ofSetConeResolution def ofGetConeResolution(): - return _openframeworks.ofGetConeResolution() + return _openframeworks.ofGetConeResolution() ofGetConeResolution = _openframeworks.ofGetConeResolution def ofDrawCone(*args): - return _openframeworks.ofDrawCone(*args) + return _openframeworks.ofDrawCone(*args) ofDrawCone = _openframeworks.ofDrawCone def ofSetBoxResolution(*args): - return _openframeworks.ofSetBoxResolution(*args) + return _openframeworks.ofSetBoxResolution(*args) ofSetBoxResolution = _openframeworks.ofSetBoxResolution def ofGetBoxResolution(): - return _openframeworks.ofGetBoxResolution() + return _openframeworks.ofGetBoxResolution() ofGetBoxResolution = _openframeworks.ofGetBoxResolution def ofDrawBox(*args): - return _openframeworks.ofDrawBox(*args) + return _openframeworks.ofDrawBox(*args) ofDrawBox = _openframeworks.ofDrawBox +class of3dGraphics(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, of3dGraphics, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, of3dGraphics, name) + __repr__ = _swig_repr + + def __init__(self, renderer): + this = _openframeworks.new_of3dGraphics(renderer) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlaneResolution(self, columns, rows): + return _openframeworks.of3dGraphics_setPlaneResolution(self, columns, rows) + + def getPlaneResolution(self): + return _openframeworks.of3dGraphics_getPlaneResolution(self) + + def drawPlane(self, *args): + return _openframeworks.of3dGraphics_drawPlane(self, *args) + + def setSphereResolution(self, res): + return _openframeworks.of3dGraphics_setSphereResolution(self, res) + + def getSphereResolution(self): + return _openframeworks.of3dGraphics_getSphereResolution(self) + + def drawSphere(self, *args): + return _openframeworks.of3dGraphics_drawSphere(self, *args) + + def setIcoSphereResolution(self, res): + return _openframeworks.of3dGraphics_setIcoSphereResolution(self, res) + + def getIcoSphereResolution(self): + return _openframeworks.of3dGraphics_getIcoSphereResolution(self) + + def drawIcoSphere(self, *args): + return _openframeworks.of3dGraphics_drawIcoSphere(self, *args) + + def setCylinderResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setCylinderResolution(self, radiusSegments, heightSegments, capSegments) + + def getCylinderResolution(self): + return _openframeworks.of3dGraphics_getCylinderResolution(self) + + def drawCylinder(self, *args): + return _openframeworks.of3dGraphics_drawCylinder(self, *args) + + def setConeResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setConeResolution(self, radiusSegments, heightSegments, capSegments) + + def getConeResolution(self): + return _openframeworks.of3dGraphics_getConeResolution(self) + + def drawCone(self, *args): + return _openframeworks.of3dGraphics_drawCone(self, *args) + + def setBoxResolution(self, *args): + return _openframeworks.of3dGraphics_setBoxResolution(self, *args) + + def getBoxResolution(self): + return _openframeworks.of3dGraphics_getBoxResolution(self) + + def drawBox(self, *args): + return _openframeworks.of3dGraphics_drawBox(self, *args) + + def drawAxis(self, size): + return _openframeworks.of3dGraphics_drawAxis(self, size) + + def drawGrid(self, stepSize, numberOfSteps, labels, x, y, z): + return _openframeworks.of3dGraphics_drawGrid(self, stepSize, numberOfSteps, labels, x, y, z) + + def drawGridPlane(self, stepSize, numberOfSteps, labels): + return _openframeworks.of3dGraphics_drawGridPlane(self, stepSize, numberOfSteps, labels) + + def drawArrow(self, start, end, headSize): + return _openframeworks.of3dGraphics_drawArrow(self, start, end, headSize) + + def drawRotationAxes(self, radius, stripWidth, circleRes): + return _openframeworks.of3dGraphics_drawRotationAxes(self, radius, stripWidth, circleRes) + __swig_destroy__ = _openframeworks.delete_of3dGraphics + __del__ = lambda self: None +of3dGraphics_swigregister = _openframeworks.of3dGraphics_swigregister +of3dGraphics_swigregister(of3dGraphics) + class ofTrueTypeFont(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofTrueTypeFont, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTrueTypeFont, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTrueTypeFont() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofTrueTypeFont - __del__ = lambda self : None; + __del__ = lambda self: None __swig_getmethods__["setGlobalDpi"] = lambda x: _openframeworks.ofTrueTypeFont_setGlobalDpi - if _newclass:setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) - def loadFont(self, *args): return _openframeworks.ofTrueTypeFont_loadFont(self, *args) - def isLoaded(self): return _openframeworks.ofTrueTypeFont_isLoaded(self) - def isAntiAliased(self): return _openframeworks.ofTrueTypeFont_isAntiAliased(self) - def hasFullCharacterSet(self): return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) - def getSize(self): return _openframeworks.ofTrueTypeFont_getSize(self) - def getLineHeight(self): return _openframeworks.ofTrueTypeFont_getLineHeight(self) - def setLineHeight(self, *args): return _openframeworks.ofTrueTypeFont_setLineHeight(self, *args) - def getLetterSpacing(self): return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) - def setLetterSpacing(self, *args): return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, *args) - def getSpaceSize(self): return _openframeworks.ofTrueTypeFont_getSpaceSize(self) - def setSpaceSize(self, *args): return _openframeworks.ofTrueTypeFont_setSpaceSize(self, *args) - def stringWidth(self, *args): return _openframeworks.ofTrueTypeFont_stringWidth(self, *args) - def stringHeight(self, *args): return _openframeworks.ofTrueTypeFont_stringHeight(self, *args) - def getStringBoundingBox(self, *args): return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, *args) - def drawString(self, *args): return _openframeworks.ofTrueTypeFont_drawString(self, *args) - def drawStringAsShapes(self, *args): return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, *args) - def getNumCharacters(self): return _openframeworks.ofTrueTypeFont_getNumCharacters(self) - def getCharacterAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) - def getStringAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) - def getStringMesh(self, *args): return _openframeworks.ofTrueTypeFont_getStringMesh(self, *args) - def getFontTexture(self): return _openframeworks.ofTrueTypeFont_getFontTexture(self) - def bind(self): return _openframeworks.ofTrueTypeFont_bind(self) - def unbind(self): return _openframeworks.ofTrueTypeFont_unbind(self) - def getEncoding(self): return _openframeworks.ofTrueTypeFont_getEncoding(self) - def setEncoding(self, *args): return _openframeworks.ofTrueTypeFont_setEncoding(self, *args) + if _newclass: + setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) + + def loadFont(self, filename, fontsize, _bAntiAliased=True, _bFullCharacterSet=False, makeContours=False, simplifyAmt=0.3, dpi=0): + return _openframeworks.ofTrueTypeFont_loadFont(self, filename, fontsize, _bAntiAliased, _bFullCharacterSet, makeContours, simplifyAmt, dpi) + + def isLoaded(self): + return _openframeworks.ofTrueTypeFont_isLoaded(self) + + def isAntiAliased(self): + return _openframeworks.ofTrueTypeFont_isAntiAliased(self) + + def hasFullCharacterSet(self): + return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) + + def getSize(self): + return _openframeworks.ofTrueTypeFont_getSize(self) + + def getLineHeight(self): + return _openframeworks.ofTrueTypeFont_getLineHeight(self) + + def setLineHeight(self, height): + return _openframeworks.ofTrueTypeFont_setLineHeight(self, height) + + def getLetterSpacing(self): + return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) + + def setLetterSpacing(self, spacing): + return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, spacing) + + def getSpaceSize(self): + return _openframeworks.ofTrueTypeFont_getSpaceSize(self) + + def setSpaceSize(self, size): + return _openframeworks.ofTrueTypeFont_setSpaceSize(self, size) + + def stringWidth(self, s): + return _openframeworks.ofTrueTypeFont_stringWidth(self, s) + + def stringHeight(self, s): + return _openframeworks.ofTrueTypeFont_stringHeight(self, s) + + def getStringBoundingBox(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, s, x, y) + + def drawString(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawString(self, s, x, y) + + def drawStringAsShapes(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, s, x, y) + + def getNumCharacters(self): + return _openframeworks.ofTrueTypeFont_getNumCharacters(self) + + def getCharacterAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) + + def getStringAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) + + def getStringMesh(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringMesh(self, s, x, y) + + def getFontTexture(self): + return _openframeworks.ofTrueTypeFont_getFontTexture(self) + + def bind(self): + return _openframeworks.ofTrueTypeFont_bind(self) + + def unbind(self): + return _openframeworks.ofTrueTypeFont_unbind(self) + + def getEncoding(self): + return _openframeworks.ofTrueTypeFont_getEncoding(self) + + def setEncoding(self, encoding): + return _openframeworks.ofTrueTypeFont_setEncoding(self, encoding) __swig_setmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_set __swig_getmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_get - if _newclass:lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) + if _newclass: + lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) __swig_setmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_set __swig_getmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_get - if _newclass:letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) + if _newclass: + letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) __swig_setmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_set __swig_getmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_get - if _newclass:spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) + if _newclass: + spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) ofTrueTypeFont_swigregister = _openframeworks.ofTrueTypeFont_swigregister ofTrueTypeFont_swigregister(ofTrueTypeFont) -def ofTrueTypeFont_setGlobalDpi(*args): - return _openframeworks.ofTrueTypeFont_setGlobalDpi(*args) +def ofTrueTypeFont_setGlobalDpi(newDpi): + return _openframeworks.ofTrueTypeFont_setGlobalDpi(newDpi) ofTrueTypeFont_setGlobalDpi = _openframeworks.ofTrueTypeFont_setGlobalDpi class ofMatrix3x3(_object): @@ -4356,53 +8602,97 @@ class ofMatrix3x3(_object): __repr__ = _swig_repr __swig_setmethods__["a"] = _openframeworks.ofMatrix3x3_a_set __swig_getmethods__["a"] = _openframeworks.ofMatrix3x3_a_get - if _newclass:a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) __swig_setmethods__["b"] = _openframeworks.ofMatrix3x3_b_set __swig_getmethods__["b"] = _openframeworks.ofMatrix3x3_b_get - if _newclass:b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) __swig_setmethods__["c"] = _openframeworks.ofMatrix3x3_c_set __swig_getmethods__["c"] = _openframeworks.ofMatrix3x3_c_get - if _newclass:c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) + if _newclass: + c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) __swig_setmethods__["d"] = _openframeworks.ofMatrix3x3_d_set __swig_getmethods__["d"] = _openframeworks.ofMatrix3x3_d_get - if _newclass:d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) + if _newclass: + d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) __swig_setmethods__["e"] = _openframeworks.ofMatrix3x3_e_set __swig_getmethods__["e"] = _openframeworks.ofMatrix3x3_e_get - if _newclass:e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) + if _newclass: + e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) __swig_setmethods__["f"] = _openframeworks.ofMatrix3x3_f_set __swig_getmethods__["f"] = _openframeworks.ofMatrix3x3_f_get - if _newclass:f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) + if _newclass: + f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) __swig_setmethods__["g"] = _openframeworks.ofMatrix3x3_g_set __swig_getmethods__["g"] = _openframeworks.ofMatrix3x3_g_get - if _newclass:g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) __swig_setmethods__["h"] = _openframeworks.ofMatrix3x3_h_set __swig_getmethods__["h"] = _openframeworks.ofMatrix3x3_h_get - if _newclass:h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) + if _newclass: + h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) __swig_setmethods__["i"] = _openframeworks.ofMatrix3x3_i_set __swig_getmethods__["i"] = _openframeworks.ofMatrix3x3_i_get - if _newclass:i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) - def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): + if _newclass: + i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) + + def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): this = _openframeworks.new_ofMatrix3x3(_a, _b, _c, _d, _e, _f, _g, _h, _i) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofMatrix3x3_set(self, *args) - def __getitem__(self, *args): return _openframeworks.ofMatrix3x3___getitem__(self, *args) - def transpose(self, *args): return _openframeworks.ofMatrix3x3_transpose(self, *args) - def determinant(self, *args): return _openframeworks.ofMatrix3x3_determinant(self, *args) - def invert(self): return _openframeworks.ofMatrix3x3_invert(self) - def inverse(self, *args): return _openframeworks.ofMatrix3x3_inverse(self, *args) - def __add__(self, *args): return _openframeworks.ofMatrix3x3___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofMatrix3x3___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofMatrix3x3___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofMatrix3x3___isub__(self, *args) - def entrywiseTimes(self, *args): return _openframeworks.ofMatrix3x3_entrywiseTimes(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix3x3___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix3x3___mul__(self, *args) - def __div__(self, *args): return _openframeworks.ofMatrix3x3___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofMatrix3x3___idiv__(self, *args) - def __str__(self): return _openframeworks.ofMatrix3x3___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i): + return _openframeworks.ofMatrix3x3_set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i) + + def __getitem__(self, index): + return _openframeworks.ofMatrix3x3___getitem__(self, index) + + def transpose(self, *args): + return _openframeworks.ofMatrix3x3_transpose(self, *args) + + def determinant(self, *args): + return _openframeworks.ofMatrix3x3_determinant(self, *args) + + def inverse(self, A): + return _openframeworks.ofMatrix3x3_inverse(self, A) + + def invert(self): + return _openframeworks.ofMatrix3x3_invert(self) + + def entrywiseTimes(self, A): + return _openframeworks.ofMatrix3x3_entrywiseTimes(self, A) + + def __add__(self, B): + return _openframeworks.ofMatrix3x3___add__(self, B) + + def __iadd__(self, B): + return _openframeworks.ofMatrix3x3___iadd__(self, B) + + def __sub__(self, B): + return _openframeworks.ofMatrix3x3___sub__(self, B) + + def __isub__(self, B): + return _openframeworks.ofMatrix3x3___isub__(self, B) + + def __imul__(self, *args): + return _openframeworks.ofMatrix3x3___imul__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofMatrix3x3___mul__(self, *args) + + def __div__(self, scalar): + return _openframeworks.ofMatrix3x3___div__(self, scalar) + + def __idiv__(self, *args): + return _openframeworks.ofMatrix3x3___idiv__(self, *args) + + def __str__(self): + return _openframeworks.ofMatrix3x3___str__(self) __swig_destroy__ = _openframeworks.delete_ofMatrix3x3 - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrix3x3_swigregister = _openframeworks.ofMatrix3x3_swigregister ofMatrix3x3_swigregister(ofMatrix3x3) @@ -4414,143 +8704,262 @@ class ofMatrix4x4(_object): __repr__ = _swig_repr __swig_setmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_set __swig_getmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_get - if _newclass:_mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) - def __init__(self, *args): + if _newclass: + _mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) + + def __init__(self, *args): this = _openframeworks.new_ofMatrix4x4(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMatrix4x4 - __del__ = lambda self : None; - def __call__(self, *args): return _openframeworks.ofMatrix4x4___call__(self, *args) - def getRowAsVec3f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, *args) - def getRowAsVec4f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, *args) - def isValid(self): return _openframeworks.ofMatrix4x4_isValid(self) - def isNaN(self): return _openframeworks.ofMatrix4x4_isNaN(self) - def set(self, *args): return _openframeworks.ofMatrix4x4_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofMatrix4x4_getPtr(self, *args) - def isIdentity(self): return _openframeworks.ofMatrix4x4_isIdentity(self) - def makeIdentityMatrix(self): return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) - def makeScaleMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) - def makeTranslationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) - def makeRotationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) - def makeInvertOf(self, *args): return _openframeworks.ofMatrix4x4_makeInvertOf(self, *args) - def makeOrthoNormalOf(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, *args) - def makeFromMultiplicationOf(self, *args): return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, *args) - def getInverse(self): return _openframeworks.ofMatrix4x4_getInverse(self) - def makeOrthoMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, *args) - def makeOrtho2DMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, *args) - def makeFrustumMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, *args) - def makePerspectiveMatrix(self, *args): return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, *args) - def makeLookAtMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, *args) - def makeLookAtViewMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, *args) - def getOrtho(self, *args): return _openframeworks.ofMatrix4x4_getOrtho(self, *args) - def getFrustum(self, *args): return _openframeworks.ofMatrix4x4_getFrustum(self, *args) - def getPerspective(self, *args): return _openframeworks.ofMatrix4x4_getPerspective(self, *args) - def getLookAt(self, *args): return _openframeworks.ofMatrix4x4_getLookAt(self, *args) - def decompose(self, *args): return _openframeworks.ofMatrix4x4_decompose(self, *args) + __del__ = lambda self: None + + def makeIdentityMatrix(self): + return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) + + def makeScaleMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) + + def makeTranslationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) + + def makeRotationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) + + def makeInvertOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeInvertOf(self, rhs) + + def makeOrthoNormalOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, rhs) + + def makeFromMultiplicationOf(self, arg2, arg3): + return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, arg2, arg3) + + def makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar) + + def makeOrtho2DMatrix(self, left, right, bottom, top): + return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, left, right, bottom, top) + + def makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar) + + def makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar) + + def makeLookAtMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, eye, center, up) + + def makeLookAtViewMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, eye, center, up) __swig_getmethods__["newIdentityMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newIdentityMatrix - if _newclass:newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) + if _newclass: + newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) __swig_getmethods__["newScaleMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newScaleMatrix - if _newclass:newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) + if _newclass: + newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) __swig_getmethods__["newTranslationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newTranslationMatrix - if _newclass:newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) + if _newclass: + newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) __swig_getmethods__["newRotationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newRotationMatrix - if _newclass:newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) - __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf - if _newclass:getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) - __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf - if _newclass:getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) - __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf - if _newclass:getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + if _newclass: + newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) __swig_getmethods__["newOrthoMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrthoMatrix - if _newclass:newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) + if _newclass: + newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) __swig_getmethods__["newOrtho2DMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrtho2DMatrix - if _newclass:newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) + if _newclass: + newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) __swig_getmethods__["newFrustumMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newFrustumMatrix - if _newclass:newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) + if _newclass: + newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) __swig_getmethods__["newPerspectiveMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newPerspectiveMatrix - if _newclass:newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) + if _newclass: + newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) __swig_getmethods__["newLookAtMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newLookAtMatrix - if _newclass:newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) - def setRotate(self, *args): return _openframeworks.ofMatrix4x4_setRotate(self, *args) - def setTranslation(self, *args): return _openframeworks.ofMatrix4x4_setTranslation(self, *args) - def rotateRad(self, *args): return _openframeworks.ofMatrix4x4_rotateRad(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrix4x4_rotate(self, *args) - def translate(self, *args): return _openframeworks.ofMatrix4x4_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrix4x4_scale(self, *args) - def glRotateRad(self, *args): return _openframeworks.ofMatrix4x4_glRotateRad(self, *args) - def glRotate(self, *args): return _openframeworks.ofMatrix4x4_glRotate(self, *args) - def glTranslate(self, *args): return _openframeworks.ofMatrix4x4_glTranslate(self, *args) - def glScale(self, *args): return _openframeworks.ofMatrix4x4_glScale(self, *args) - def getRotate(self): return _openframeworks.ofMatrix4x4_getRotate(self) - def getTranslation(self): return _openframeworks.ofMatrix4x4_getTranslation(self) - def getScale(self): return _openframeworks.ofMatrix4x4_getScale(self) + if _newclass: + newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) + + def __call__(self, *args): + return _openframeworks.ofMatrix4x4___call__(self, *args) + + def getRowAsVec3f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, i) + + def getRowAsVec4f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, i) + + def getPtr(self, *args): + return _openframeworks.ofMatrix4x4_getPtr(self, *args) + + def isValid(self): + return _openframeworks.ofMatrix4x4_isValid(self) + + def isNaN(self): + return _openframeworks.ofMatrix4x4_isNaN(self) + + def isIdentity(self): + return _openframeworks.ofMatrix4x4_isIdentity(self) + + def set(self, *args): + return _openframeworks.ofMatrix4x4_set(self, *args) + + def getInverse(self): + return _openframeworks.ofMatrix4x4_getInverse(self) + + def getOrtho(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getOrtho(self, left, right, bottom, top, zNear, zFar) + + def getFrustum(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getFrustum(self, left, right, bottom, top, zNear, zFar) + + def getPerspective(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_getPerspective(self, fovy, aspectRatio, zNear, zFar) + + def getLookAt(self, eye, center, up, lookDistance=1.0): + return _openframeworks.ofMatrix4x4_getLookAt(self, eye, center, up, lookDistance) + + def decompose(self, translation, rotation, scale, so): + return _openframeworks.ofMatrix4x4_decompose(self, translation, rotation, scale, so) + __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf + if _newclass: + getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) + __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf + if _newclass: + getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) + __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf + if _newclass: + getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + + def postMult(self, *args): + return _openframeworks.ofMatrix4x4_postMult(self, *args) + + def preMult(self, *args): + return _openframeworks.ofMatrix4x4_preMult(self, *args) + + def __imul__(self, other): + return _openframeworks.ofMatrix4x4___imul__(self, other) + + def __mul__(self, *args): + return _openframeworks.ofMatrix4x4___mul__(self, *args) + + def postMultTranslate(self, *args): + return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) + + def postMultRotate(self, *args): + return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) + + def postMultScale(self, *args): + return _openframeworks.ofMatrix4x4_postMultScale(self, *args) + + def preMultScale(self, v): + return _openframeworks.ofMatrix4x4_preMultScale(self, v) + + def preMultTranslate(self, v): + return _openframeworks.ofMatrix4x4_preMultTranslate(self, v) + + def preMultRotate(self, q): + return _openframeworks.ofMatrix4x4_preMultRotate(self, q) + + def setRotate(self, q): + return _openframeworks.ofMatrix4x4_setRotate(self, q) + + def setTranslation(self, *args): + return _openframeworks.ofMatrix4x4_setTranslation(self, *args) + + def rotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_rotateRad(self, angle, x, y, z) + + def rotate(self, *args): + return _openframeworks.ofMatrix4x4_rotate(self, *args) + + def translate(self, *args): + return _openframeworks.ofMatrix4x4_translate(self, *args) + + def scale(self, *args): + return _openframeworks.ofMatrix4x4_scale(self, *args) + + def glRotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_glRotateRad(self, angle, x, y, z) + + def glRotate(self, *args): + return _openframeworks.ofMatrix4x4_glRotate(self, *args) + + def glTranslate(self, *args): + return _openframeworks.ofMatrix4x4_glTranslate(self, *args) + + def glScale(self, *args): + return _openframeworks.ofMatrix4x4_glScale(self, *args) + + def getRotate(self): + return _openframeworks.ofMatrix4x4_getRotate(self) + + def getTranslation(self): + return _openframeworks.ofMatrix4x4_getTranslation(self) + + def getScale(self): + return _openframeworks.ofMatrix4x4_getScale(self) __swig_getmethods__["transform3x3"] = lambda x: _openframeworks.ofMatrix4x4_transform3x3 - if _newclass:transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) - def postMult(self, *args): return _openframeworks.ofMatrix4x4_postMult(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix4x4___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix4x4___mul__(self, *args) - def preMult(self, *args): return _openframeworks.ofMatrix4x4_preMult(self, *args) - def postMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) - def postMultRotate(self, *args): return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) - def postMultScale(self, *args): return _openframeworks.ofMatrix4x4_postMultScale(self, *args) - def preMultScale(self, *args): return _openframeworks.ofMatrix4x4_preMultScale(self, *args) - def preMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_preMultTranslate(self, *args) - def preMultRotate(self, *args): return _openframeworks.ofMatrix4x4_preMultRotate(self, *args) - def __str__(self): return _openframeworks.ofMatrix4x4___str__(self) + if _newclass: + transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) + + def __str__(self): + return _openframeworks.ofMatrix4x4___str__(self) ofMatrix4x4_swigregister = _openframeworks.ofMatrix4x4_swigregister ofMatrix4x4_swigregister(ofMatrix4x4) def ofMatrix4x4_newIdentityMatrix(): - return _openframeworks.ofMatrix4x4_newIdentityMatrix() + return _openframeworks.ofMatrix4x4_newIdentityMatrix() ofMatrix4x4_newIdentityMatrix = _openframeworks.ofMatrix4x4_newIdentityMatrix def ofMatrix4x4_newScaleMatrix(*args): - return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) + return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) ofMatrix4x4_newScaleMatrix = _openframeworks.ofMatrix4x4_newScaleMatrix def ofMatrix4x4_newTranslationMatrix(*args): - return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) + return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) ofMatrix4x4_newTranslationMatrix = _openframeworks.ofMatrix4x4_newTranslationMatrix def ofMatrix4x4_newRotationMatrix(*args): - return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) + return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) ofMatrix4x4_newRotationMatrix = _openframeworks.ofMatrix4x4_newRotationMatrix -def ofMatrix4x4_getInverseOf(*args): - return _openframeworks.ofMatrix4x4_getInverseOf(*args) -ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf - -def ofMatrix4x4_getTransposedOf(*args): - return _openframeworks.ofMatrix4x4_getTransposedOf(*args) -ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf - -def ofMatrix4x4_getOrthoNormalOf(*args): - return _openframeworks.ofMatrix4x4_getOrthoNormalOf(*args) -ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf - -def ofMatrix4x4_newOrthoMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrthoMatrix(*args) +def ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newOrthoMatrix = _openframeworks.ofMatrix4x4_newOrthoMatrix -def ofMatrix4x4_newOrtho2DMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(*args) +def ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top): + return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top) ofMatrix4x4_newOrtho2DMatrix = _openframeworks.ofMatrix4x4_newOrtho2DMatrix -def ofMatrix4x4_newFrustumMatrix(*args): - return _openframeworks.ofMatrix4x4_newFrustumMatrix(*args) +def ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newFrustumMatrix = _openframeworks.ofMatrix4x4_newFrustumMatrix -def ofMatrix4x4_newPerspectiveMatrix(*args): - return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(*args) +def ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar) ofMatrix4x4_newPerspectiveMatrix = _openframeworks.ofMatrix4x4_newPerspectiveMatrix -def ofMatrix4x4_newLookAtMatrix(*args): - return _openframeworks.ofMatrix4x4_newLookAtMatrix(*args) +def ofMatrix4x4_newLookAtMatrix(eye, center, up): + return _openframeworks.ofMatrix4x4_newLookAtMatrix(eye, center, up) ofMatrix4x4_newLookAtMatrix = _openframeworks.ofMatrix4x4_newLookAtMatrix +def ofMatrix4x4_getInverseOf(matrix): + return _openframeworks.ofMatrix4x4_getInverseOf(matrix) +ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf + +def ofMatrix4x4_getTransposedOf(matrix): + return _openframeworks.ofMatrix4x4_getTransposedOf(matrix) +ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf + +def ofMatrix4x4_getOrthoNormalOf(matrix): + return _openframeworks.ofMatrix4x4_getOrthoNormalOf(matrix) +ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf + def ofMatrix4x4_transform3x3(*args): - return _openframeworks.ofMatrix4x4_transform3x3(*args) + return _openframeworks.ofMatrix4x4_transform3x3(*args) ofMatrix4x4_transform3x3 = _openframeworks.ofMatrix4x4_transform3x3 class ofQuaternion(_object): @@ -4561,47 +8970,113 @@ class ofQuaternion(_object): __repr__ = _swig_repr __swig_setmethods__["_v"] = _openframeworks.ofQuaternion__v_set __swig_getmethods__["_v"] = _openframeworks.ofQuaternion__v_get - if _newclass:_v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) - def __init__(self, *args): + if _newclass: + _v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) + + def __init__(self, *args): this = _openframeworks.new_ofQuaternion(*args) - try: self.this.append(this) - except: self.this = this - def __eq__(self, *args): return _openframeworks.ofQuaternion___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofQuaternion___ne__(self, *args) - def __lshift__(self, *args): return _openframeworks.ofQuaternion___lshift__(self, *args) - def __rshift__(self, *args): return _openframeworks.ofQuaternion___rshift__(self, *args) - def asVec4(self): return _openframeworks.ofQuaternion_asVec4(self) - def asVec3(self): return _openframeworks.ofQuaternion_asVec3(self) - def set(self, *args): return _openframeworks.ofQuaternion_set(self, *args) - def get(self, *args): return _openframeworks.ofQuaternion_get(self, *args) - def __getitem__(self, *args): return _openframeworks.ofQuaternion___getitem__(self, *args) - def x(self): return _openframeworks.ofQuaternion_x(self) - def y(self): return _openframeworks.ofQuaternion_y(self) - def z(self): return _openframeworks.ofQuaternion_z(self) - def w(self): return _openframeworks.ofQuaternion_w(self) - def zeroRotation(self): return _openframeworks.ofQuaternion_zeroRotation(self) - def __imul__(self, *args): return _openframeworks.ofQuaternion___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofQuaternion___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofQuaternion___idiv__(self, *args) - def __add__(self, *args): return _openframeworks.ofQuaternion___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofQuaternion___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofQuaternion___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofQuaternion___isub__(self, *args) - def __neg__(self): return _openframeworks.ofQuaternion___neg__(self) - def __mul__(self, *args): return _openframeworks.ofQuaternion___mul__(self, *args) - def length(self): return _openframeworks.ofQuaternion_length(self) - def length2(self): return _openframeworks.ofQuaternion_length2(self) - def conj(self): return _openframeworks.ofQuaternion_conj(self) - def inverse(self): return _openframeworks.ofQuaternion_inverse(self) - def makeRotate(self, *args): return _openframeworks.ofQuaternion_makeRotate(self, *args) - def makeRotate_original(self, *args): return _openframeworks.ofQuaternion_makeRotate_original(self, *args) - def getRotate(self, *args): return _openframeworks.ofQuaternion_getRotate(self, *args) - def getEuler(self): return _openframeworks.ofQuaternion_getEuler(self) - def slerp(self, *args): return _openframeworks.ofQuaternion_slerp(self, *args) - def normalize(self): return _openframeworks.ofQuaternion_normalize(self) - def __str__(self): return _openframeworks.ofQuaternion___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofQuaternion_set(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofQuaternion___getitem__(self, *args) + + def get(self, matrix): + return _openframeworks.ofQuaternion_get(self, matrix) + + def x(self): + return _openframeworks.ofQuaternion_x(self) + + def y(self): + return _openframeworks.ofQuaternion_y(self) + + def z(self): + return _openframeworks.ofQuaternion_z(self) + + def w(self): + return _openframeworks.ofQuaternion_w(self) + + def asVec4(self): + return _openframeworks.ofQuaternion_asVec4(self) + + def asVec3(self): + return _openframeworks.ofQuaternion_asVec3(self) + + def zeroRotation(self): + return _openframeworks.ofQuaternion_zeroRotation(self) + + def length(self): + return _openframeworks.ofQuaternion_length(self) + + def length2(self): + return _openframeworks.ofQuaternion_length2(self) + + def conj(self): + return _openframeworks.ofQuaternion_conj(self) + + def inverse(self): + return _openframeworks.ofQuaternion_inverse(self) + + def makeRotate(self, *args): + return _openframeworks.ofQuaternion_makeRotate(self, *args) + + def makeRotate_original(self, vec1, vec2): + return _openframeworks.ofQuaternion_makeRotate_original(self, vec1, vec2) + + def getRotate(self, *args): + return _openframeworks.ofQuaternion_getRotate(self, *args) + + def getEuler(self): + return _openframeworks.ofQuaternion_getEuler(self) + + def slerp(self, t, arg3, to): + return _openframeworks.ofQuaternion_slerp(self, t, arg3, to) + + def normalize(self): + return _openframeworks.ofQuaternion_normalize(self) + + def __eq__(self, q): + return _openframeworks.ofQuaternion___eq__(self, q) + + def __ne__(self, q): + return _openframeworks.ofQuaternion___ne__(self, q) + + def __mul__(self, *args): + return _openframeworks.ofQuaternion___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofQuaternion___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofQuaternion___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofQuaternion___idiv__(self, *args) + + def __add__(self, rhs): + return _openframeworks.ofQuaternion___add__(self, rhs) + + def __iadd__(self, rhs): + return _openframeworks.ofQuaternion___iadd__(self, rhs) + + def __isub__(self, rhs): + return _openframeworks.ofQuaternion___isub__(self, rhs) + + def __sub__(self, rhs): + return _openframeworks.ofQuaternion___sub__(self, rhs) + + def __neg__(self): + return _openframeworks.ofQuaternion___neg__(self) + + def __str__(self): + return _openframeworks.ofQuaternion___str__(self) __swig_destroy__ = _openframeworks.delete_ofQuaternion - __del__ = lambda self : None; + __del__ = lambda self: None ofQuaternion_swigregister = _openframeworks.ofQuaternion_swigregister ofQuaternion_swigregister(ofQuaternion) @@ -4611,184 +9086,429 @@ class ofVec2f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec2f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec2f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec2f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec2f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec2f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec2f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) - DIM = _openframeworks.ofVec2f_DIM - def __init__(self, *args): + if _newclass: + y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec2f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec2f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec2f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec2f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec2f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec2f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec2f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec2f_isAligned(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec2f_isAlignedRad(self, *args) - def align(self, *args): return _openframeworks.ofVec2f_align(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec2f_alignRad(self, *args) - def __add__(self, *args): return _openframeworks.ofVec2f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec2f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec2f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec2f___isub__(self, *args) - def __neg__(self): return _openframeworks.ofVec2f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec2f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec2f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec2f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec2f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec2f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec2f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec2f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec2f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec2f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec2f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec2f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec2f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec2f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec2f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec2f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec2f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec2f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec2f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec2f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec2f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec2f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec2f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec2f_limit(self, *args) - def getPerpendicular(self): return _openframeworks.ofVec2f_getPerpendicular(self) - def perpendicular(self): return _openframeworks.ofVec2f_perpendicular(self) - def length(self): return _openframeworks.ofVec2f_length(self) - def lengthSquared(self): return _openframeworks.ofVec2f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec2f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec2f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec2f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec2f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec2f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec2f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec2f_limited(self, *args) - def perpendiculared(self): return _openframeworks.ofVec2f_perpendiculared(self) - def interpolated(self, *args): return _openframeworks.ofVec2f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec2f_middled(self, *args) - def mapped(self, *args): return _openframeworks.ofVec2f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec2f_distanceSquared(self, *args) - def rotated(self, *args): return _openframeworks.ofVec2f_rotated(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec2f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec2f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec2f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec2f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec2f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec2f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec2f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec2f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec2f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec2f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec2f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec2f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec2f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec2f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec2f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec2f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec2f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec2f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec2f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec2f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_getMapped(self, origin, vx, vy) + + def map(self, origin, vx, vy): + return _openframeworks.ofVec2f_map(self, origin, vx, vy) + + def distance(self, pnt): + return _openframeworks.ofVec2f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec2f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec2f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec2f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec2f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec2f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec2f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec2f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec2f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec2f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec2f_limit(self, max) + + def length(self): + return _openframeworks.ofVec2f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec2f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec2f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec2f_angleRad(self, vec) + + def getPerpendicular(self): + return _openframeworks.ofVec2f_getPerpendicular(self) + + def perpendicular(self): + return _openframeworks.ofVec2f_perpendicular(self) + + def dot(self, vec): + return _openframeworks.ofVec2f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec2f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec2f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec2f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec2f_limited(self, max) + + def perpendiculared(self): + return _openframeworks.ofVec2f_perpendiculared(self) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec2f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec2f_middled(self, pnt) + + def mapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_mapped(self, origin, vx, vy) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec2f_distanceSquared(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec2f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec2f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec2f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec2f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec2f_one - if _newclass:one = staticmethod(_openframeworks.ofVec2f_one) - def __str__(self): return _openframeworks.ofVec2f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec2f_one) + + def __str__(self): + return _openframeworks.ofVec2f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec2f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec2f_swigregister = _openframeworks.ofVec2f_swigregister ofVec2f_swigregister(ofVec2f) -def ofVec2f_zero(): - return _openframeworks.ofVec2f_zero() -ofVec2f_zero = _openframeworks.ofVec2f_zero +def ofVec2f_zero(): + return _openframeworks.ofVec2f_zero() +ofVec2f_zero = _openframeworks.ofVec2f_zero + +def ofVec2f_one(): + return _openframeworks.ofVec2f_one() +ofVec2f_one = _openframeworks.ofVec2f_one + +class ofVec3f(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) + __repr__ = _swig_repr + DIM = _openframeworks.ofVec3f_DIM + __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set + __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get + if _newclass: + x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) + __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set + __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get + if _newclass: + y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) + __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set + __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get + if _newclass: + z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) + + def __init__(self, *args): + this = _openframeworks.new_ofVec3f(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec3f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec3f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec3f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec3f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec3f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec3f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec3f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec3f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec3f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec3f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec3f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec3f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec3f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec3f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec3f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec3f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec3f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec3f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec3f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec3f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_getMapped(self, origin, vx, vy, vz) + + def map(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_map(self, origin, vx, vy, vz) + + def distance(self, pnt): + return _openframeworks.ofVec3f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec3f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec3f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec3f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec3f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec3f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec3f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec3f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec3f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec3f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec3f_limit(self, max) + + def length(self): + return _openframeworks.ofVec3f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec3f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec3f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec3f_angleRad(self, vec) + + def getPerpendicular(self, vec): + return _openframeworks.ofVec3f_getPerpendicular(self, vec) + + def perpendicular(self, vec): + return _openframeworks.ofVec3f_perpendicular(self, vec) + + def getCrossed(self, vec): + return _openframeworks.ofVec3f_getCrossed(self, vec) + + def cross(self, vec): + return _openframeworks.ofVec3f_cross(self, vec) + + def dot(self, vec): + return _openframeworks.ofVec3f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec3f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec3f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec3f_normalized(self) -def ofVec2f_one(): - return _openframeworks.ofVec2f_one() -ofVec2f_one = _openframeworks.ofVec2f_one + def limited(self, max): + return _openframeworks.ofVec3f_limited(self, max) -class ofVec3f(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) - __repr__ = _swig_repr - __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set - __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) - __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set - __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) - __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set - __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) - DIM = _openframeworks.ofVec3f_DIM - def __init__(self, *args): - this = _openframeworks.new_ofVec3f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec3f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec3f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec3f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec3f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec3f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec3f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec3f_isAligned(self, *args) - def align(self, *args): return _openframeworks.ofVec3f_align(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec3f_isAlignedRad(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec3f_alignRad(self, *args) - def __neg__(self): return _openframeworks.ofVec3f___neg__(self) - def __add__(self, *args): return _openframeworks.ofVec3f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec3f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec3f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec3f___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofVec3f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec3f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec3f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec3f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec3f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec3f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec3f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec3f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec3f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec3f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec3f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec3f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec3f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec3f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec3f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec3f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec3f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec3f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec3f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec3f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec3f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec3f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec3f_limit(self, *args) - def getCrossed(self, *args): return _openframeworks.ofVec3f_getCrossed(self, *args) - def cross(self, *args): return _openframeworks.ofVec3f_cross(self, *args) - def getPerpendicular(self, *args): return _openframeworks.ofVec3f_getPerpendicular(self, *args) - def perpendicular(self, *args): return _openframeworks.ofVec3f_perpendicular(self, *args) - def length(self): return _openframeworks.ofVec3f_length(self) - def lengthSquared(self): return _openframeworks.ofVec3f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec3f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec3f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec3f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec3f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec3f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec3f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec3f_limited(self, *args) - def crossed(self, *args): return _openframeworks.ofVec3f_crossed(self, *args) - def perpendiculared(self, *args): return _openframeworks.ofVec3f_perpendiculared(self, *args) - def mapped(self, *args): return _openframeworks.ofVec3f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec3f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec3f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec3f_middled(self, *args) - def rotated(self, *args): return _openframeworks.ofVec3f_rotated(self, *args) + def crossed(self, vec): + return _openframeworks.ofVec3f_crossed(self, vec) + + def perpendiculared(self, vec): + return _openframeworks.ofVec3f_perpendiculared(self, vec) + + def mapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_mapped(self, origin, vx, vy, vz) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec3f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec3f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec3f_middled(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec3f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec3f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec3f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec3f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec3f_one - if _newclass:one = staticmethod(_openframeworks.ofVec3f_one) - def __str__(self): return _openframeworks.ofVec3f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec3f_one) + + def __str__(self): + return _openframeworks.ofVec3f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec3f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec3f_swigregister = _openframeworks.ofVec3f_swigregister ofVec3f_swigregister(ofVec3f) def ofVec3f_zero(): - return _openframeworks.ofVec3f_zero() + return _openframeworks.ofVec3f_zero() ofVec3f_zero = _openframeworks.ofVec3f_zero def ofVec3f_one(): - return _openframeworks.ofVec3f_one() + return _openframeworks.ofVec3f_one() ofVec3f_one = _openframeworks.ofVec3f_one class ofVec4f(_object): @@ -4797,207 +9517,286 @@ class ofVec4f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec4f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec4f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec4f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec4f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec4f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec4f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) + if _newclass: + y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) __swig_setmethods__["z"] = _openframeworks.ofVec4f_z_set __swig_getmethods__["z"] = _openframeworks.ofVec4f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) + if _newclass: + z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) __swig_setmethods__["w"] = _openframeworks.ofVec4f_w_set __swig_getmethods__["w"] = _openframeworks.ofVec4f_w_get - if _newclass:w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) - DIM = _openframeworks.ofVec4f_DIM - def __init__(self, *args): + if _newclass: + w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec4f(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofVec4f_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofVec4f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec4f___getitem__(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec4f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec4f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec4f_match(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec4f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec4f___isub__(self, *args) - def __add__(self, *args): return _openframeworks.ofVec4f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec4f___iadd__(self, *args) - def __neg__(self): return _openframeworks.ofVec4f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec4f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec4f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec4f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec4f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec4f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec4f_scale(self, *args) - def distance(self, *args): return _openframeworks.ofVec4f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec4f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec4f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec4f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec4f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec4f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec4f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec4f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec4f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec4f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec4f_limit(self, *args) - def length(self): return _openframeworks.ofVec4f_length(self) - def lengthSquared(self): return _openframeworks.ofVec4f_lengthSquared(self) - def dot(self, *args): return _openframeworks.ofVec4f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec4f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec4f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec4f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec4f_limited(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec4f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec4f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec4f_middled(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec4f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec4f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec4f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec4f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec4f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec4f_match(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec4f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec4f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec4f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec4f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec4f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec4f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec4f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec4f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec4f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec4f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec4f_scale(self, length) + + def distance(self, pnt): + return _openframeworks.ofVec4f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec4f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec4f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec4f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec4f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec4f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec4f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec4f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec4f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec4f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec4f_limit(self, max) + + def length(self): + return _openframeworks.ofVec4f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec4f_lengthSquared(self) + + def dot(self, vec): + return _openframeworks.ofVec4f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec4f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec4f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec4f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec4f_limited(self, max) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec4f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec4f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec4f_middled(self, pnt) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec4f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec4f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec4f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec4f_one - if _newclass:one = staticmethod(_openframeworks.ofVec4f_one) - def __str__(self): return _openframeworks.ofVec4f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec4f_one) + + def __str__(self): + return _openframeworks.ofVec4f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec4f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec4f_swigregister = _openframeworks.ofVec4f_swigregister ofVec4f_swigregister(ofVec4f) def ofVec4f_zero(): - return _openframeworks.ofVec4f_zero() + return _openframeworks.ofVec4f_zero() ofVec4f_zero = _openframeworks.ofVec4f_zero def ofVec4f_one(): - return _openframeworks.ofVec4f_one() + return _openframeworks.ofVec4f_one() ofVec4f_one = _openframeworks.ofVec4f_one -def ofNextPow2(*args): - return _openframeworks.ofNextPow2(*args) -ofNextPow2 = _openframeworks.ofNextPow2 - -def ofSeedRandom(*args): - return _openframeworks.ofSeedRandom(*args) -ofSeedRandom = _openframeworks.ofSeedRandom - def ofRandom(*args): - return _openframeworks.ofRandom(*args) + return _openframeworks.ofRandom(*args) ofRandom = _openframeworks.ofRandom def ofRandomf(): - return _openframeworks.ofRandomf() + return _openframeworks.ofRandomf() ofRandomf = _openframeworks.ofRandomf def ofRandomuf(): - return _openframeworks.ofRandomuf() + return _openframeworks.ofRandomuf() ofRandomuf = _openframeworks.ofRandomuf -def ofNormalize(*args): - return _openframeworks.ofNormalize(*args) +def ofSeedRandom(*args): + return _openframeworks.ofSeedRandom(*args) +ofSeedRandom = _openframeworks.ofSeedRandom + +def ofNormalize(value, min, max): + return _openframeworks.ofNormalize(value, min, max) ofNormalize = _openframeworks.ofNormalize -def ofMap(*args): - return _openframeworks.ofMap(*args) +def ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp=False): + return _openframeworks.ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp) ofMap = _openframeworks.ofMap -def ofClamp(*args): - return _openframeworks.ofClamp(*args) +def ofClamp(value, min, max): + return _openframeworks.ofClamp(value, min, max) ofClamp = _openframeworks.ofClamp -def ofLerp(*args): - return _openframeworks.ofLerp(*args) +def ofInRange(t, min, max): + return _openframeworks.ofInRange(t, min, max) +ofInRange = _openframeworks.ofInRange + +def ofLerp(start, stop, amt): + return _openframeworks.ofLerp(start, stop, amt) ofLerp = _openframeworks.ofLerp def ofDist(*args): - return _openframeworks.ofDist(*args) + return _openframeworks.ofDist(*args) ofDist = _openframeworks.ofDist def ofDistSquared(*args): - return _openframeworks.ofDistSquared(*args) + return _openframeworks.ofDistSquared(*args) ofDistSquared = _openframeworks.ofDistSquared -def ofSign(*args): - return _openframeworks.ofSign(*args) -ofSign = _openframeworks.ofSign - -def ofInRange(*args): - return _openframeworks.ofInRange(*args) -ofInRange = _openframeworks.ofInRange - -def ofRadToDeg(*args): - return _openframeworks.ofRadToDeg(*args) +def ofRadToDeg(radians): + return _openframeworks.ofRadToDeg(radians) ofRadToDeg = _openframeworks.ofRadToDeg -def ofDegToRad(*args): - return _openframeworks.ofDegToRad(*args) +def ofDegToRad(degrees): + return _openframeworks.ofDegToRad(degrees) ofDegToRad = _openframeworks.ofDegToRad -def ofLerpDegrees(*args): - return _openframeworks.ofLerpDegrees(*args) +def ofLerpDegrees(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpDegrees(currentAngle, targetAngle, pct) ofLerpDegrees = _openframeworks.ofLerpDegrees -def ofLerpRadians(*args): - return _openframeworks.ofLerpRadians(*args) +def ofLerpRadians(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpRadians(currentAngle, targetAngle, pct) ofLerpRadians = _openframeworks.ofLerpRadians -def ofAngleDifferenceDegrees(*args): - return _openframeworks.ofAngleDifferenceDegrees(*args) +def ofAngleDifferenceDegrees(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceDegrees(currentAngle, targetAngle) ofAngleDifferenceDegrees = _openframeworks.ofAngleDifferenceDegrees -def ofAngleDifferenceRadians(*args): - return _openframeworks.ofAngleDifferenceRadians(*args) +def ofAngleDifferenceRadians(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceRadians(currentAngle, targetAngle) ofAngleDifferenceRadians = _openframeworks.ofAngleDifferenceRadians -def ofWrap(*args): - return _openframeworks.ofWrap(*args) +def ofWrap(value, arg2, to): + return _openframeworks.ofWrap(value, arg2, to) ofWrap = _openframeworks.ofWrap def ofWrapRadians(*args): - return _openframeworks.ofWrapRadians(*args) + return _openframeworks.ofWrapRadians(*args) ofWrapRadians = _openframeworks.ofWrapRadians -def ofWrapDegrees(*args): - return _openframeworks.ofWrapDegrees(*args) +def ofWrapDegrees(angle, arg2=-180, to=+180): + return _openframeworks.ofWrapDegrees(angle, arg2, to) ofWrapDegrees = _openframeworks.ofWrapDegrees -def ofRandomWidth(): - return _openframeworks.ofRandomWidth() -ofRandomWidth = _openframeworks.ofRandomWidth - -def ofRandomHeight(): - return _openframeworks.ofRandomHeight() -ofRandomHeight = _openframeworks.ofRandomHeight - def ofNoise(*args): - return _openframeworks.ofNoise(*args) + return _openframeworks.ofNoise(*args) ofNoise = _openframeworks.ofNoise def ofSignedNoise(*args): - return _openframeworks.ofSignedNoise(*args) + return _openframeworks.ofSignedNoise(*args) ofSignedNoise = _openframeworks.ofSignedNoise def ofInsidePoly(*args): - return _openframeworks.ofInsidePoly(*args) + return _openframeworks.ofInsidePoly(*args) ofInsidePoly = _openframeworks.ofInsidePoly -def ofLineSegmentIntersection(*args): - return _openframeworks.ofLineSegmentIntersection(*args) +def ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection): + return _openframeworks.ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection) ofLineSegmentIntersection = _openframeworks.ofLineSegmentIntersection -def ofBezierPoint(*args): - return _openframeworks.ofBezierPoint(*args) +def ofBezierPoint(a, b, c, d, t): + return _openframeworks.ofBezierPoint(a, b, c, d, t) ofBezierPoint = _openframeworks.ofBezierPoint -def ofCurvePoint(*args): - return _openframeworks.ofCurvePoint(*args) +def ofCurvePoint(a, b, c, d, t): + return _openframeworks.ofCurvePoint(a, b, c, d, t) ofCurvePoint = _openframeworks.ofCurvePoint -def ofBezierTangent(*args): - return _openframeworks.ofBezierTangent(*args) +def ofBezierTangent(a, b, c, d, t): + return _openframeworks.ofBezierTangent(a, b, c, d, t) ofBezierTangent = _openframeworks.ofBezierTangent -def ofCurveTangent(*args): - return _openframeworks.ofCurveTangent(*args) +def ofCurveTangent(a, b, c, d, t): + return _openframeworks.ofCurveTangent(a, b, c, d, t) ofCurveTangent = _openframeworks.ofCurveTangent + +def ofNextPow2(a): + return _openframeworks.ofNextPow2(a) +ofNextPow2 = _openframeworks.ofNextPow2 + +def ofSign(n): + return _openframeworks.ofSign(n) +ofSign = _openframeworks.ofSign class ofXml(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofXml, name, value) @@ -5005,50 +9804,121 @@ class ofXml(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofXml, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofXml - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofXml(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofXml_load(self, *args) - def save(self, *args): return _openframeworks.ofXml_save(self, *args) - def addChild(self, *args): return _openframeworks.ofXml_addChild(self, *args) - def addXml(self, *args): return _openframeworks.ofXml_addXml(self, *args) - def getValue(self, *args): return _openframeworks.ofXml_getValue(self, *args) - def getIntValue(self, *args): return _openframeworks.ofXml_getIntValue(self, *args) - def getFloatValue(self, *args): return _openframeworks.ofXml_getFloatValue(self, *args) - def getBoolValue(self, *args): return _openframeworks.ofXml_getBoolValue(self, *args) - def setValue(self, *args): return _openframeworks.ofXml_setValue(self, *args) - def getAttribute(self, *args): return _openframeworks.ofXml_getAttribute(self, *args) - def setAttribute(self, *args): return _openframeworks.ofXml_setAttribute(self, *args) - def getAttributes(self): return _openframeworks.ofXml_getAttributes(self) - def getNumChildren(self, *args): return _openframeworks.ofXml_getNumChildren(self, *args) - def removeAttribute(self, *args): return _openframeworks.ofXml_removeAttribute(self, *args) - def removeAttributes(self, *args): return _openframeworks.ofXml_removeAttributes(self, *args) - def removeContents(self, *args): return _openframeworks.ofXml_removeContents(self, *args) - def remove(self, *args): return _openframeworks.ofXml_remove(self, *args) - def exists(self, *args): return _openframeworks.ofXml_exists(self, *args) - def clear(self): return _openframeworks.ofXml_clear(self) - def getName(self): return _openframeworks.ofXml_getName(self) - def reset(self): return _openframeworks.ofXml_reset(self) - def setToChild(self, *args): return _openframeworks.ofXml_setToChild(self, *args) - def setTo(self, *args): return _openframeworks.ofXml_setTo(self, *args) - def setToParent(self, *args): return _openframeworks.ofXml_setToParent(self, *args) - def setToSibling(self): return _openframeworks.ofXml_setToSibling(self) - def setToPrevSibling(self): return _openframeworks.ofXml_setToPrevSibling(self) - def loadFromBuffer(self, *args): return _openframeworks.ofXml_loadFromBuffer(self, *args) - def toString(self): return _openframeworks.ofXml_toString(self) - def serialize(self, *args): return _openframeworks.ofXml_serialize(self, *args) - def deserialize(self, *args): return _openframeworks.ofXml_deserialize(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, path): + return _openframeworks.ofXml_load(self, path) + + def save(self, path): + return _openframeworks.ofXml_save(self, path) + + def addChild(self, path): + return _openframeworks.ofXml_addChild(self, path) + + def addXml(self, xml, copyAll=False): + return _openframeworks.ofXml_addXml(self, xml, copyAll) + + def getValue(self, *args): + return _openframeworks.ofXml_getValue(self, *args) + + def getIntValue(self, *args): + return _openframeworks.ofXml_getIntValue(self, *args) + + def getInt64Value(self, *args): + return _openframeworks.ofXml_getInt64Value(self, *args) + + def getFloatValue(self, *args): + return _openframeworks.ofXml_getFloatValue(self, *args) + + def getBoolValue(self, *args): + return _openframeworks.ofXml_getBoolValue(self, *args) + + def setValue(self, path, value): + return _openframeworks.ofXml_setValue(self, path, value) + + def getAttribute(self, path): + return _openframeworks.ofXml_getAttribute(self, path) + + def setAttribute(self, path, value): + return _openframeworks.ofXml_setAttribute(self, path, value) + + def getAttributes(self): + return _openframeworks.ofXml_getAttributes(self) + + def getNumChildren(self, *args): + return _openframeworks.ofXml_getNumChildren(self, *args) + + def removeAttribute(self, path): + return _openframeworks.ofXml_removeAttribute(self, path) + + def removeAttributes(self, *args): + return _openframeworks.ofXml_removeAttributes(self, *args) + + def removeContents(self, *args): + return _openframeworks.ofXml_removeContents(self, *args) + + def remove(self, *args): + return _openframeworks.ofXml_remove(self, *args) + + def exists(self, path): + return _openframeworks.ofXml_exists(self, path) + + def clear(self): + return _openframeworks.ofXml_clear(self) + + def getName(self): + return _openframeworks.ofXml_getName(self) + + def reset(self): + return _openframeworks.ofXml_reset(self) + + def setToChild(self, index): + return _openframeworks.ofXml_setToChild(self, index) + + def setTo(self, path): + return _openframeworks.ofXml_setTo(self, path) + + def setToParent(self, *args): + return _openframeworks.ofXml_setToParent(self, *args) + + def setToSibling(self): + return _openframeworks.ofXml_setToSibling(self) + + def setToPrevSibling(self): + return _openframeworks.ofXml_setToPrevSibling(self) + + def loadFromBuffer(self, buffer): + return _openframeworks.ofXml_loadFromBuffer(self, buffer) + + def toString(self): + return _openframeworks.ofXml_toString(self) + + def serialize(self, parameter): + return _openframeworks.ofXml_serialize(self, parameter) + + def deserialize(self, parameter): + return _openframeworks.ofXml_deserialize(self, parameter) __swig_getmethods__["tokenize"] = lambda x: _openframeworks.ofXml_tokenize - if _newclass:tokenize = staticmethod(_openframeworks.ofXml_tokenize) - def getPocoElement(self, *args): return _openframeworks.ofXml_getPocoElement(self, *args) - def getPocoDocument(self, *args): return _openframeworks.ofXml_getPocoDocument(self, *args) + if _newclass: + tokenize = staticmethod(_openframeworks.ofXml_tokenize) + + def getPocoElement(self, *args): + return _openframeworks.ofXml_getPocoElement(self, *args) + + def getPocoDocument(self, *args): + return _openframeworks.ofXml_getPocoDocument(self, *args) ofXml_swigregister = _openframeworks.ofXml_swigregister ofXml_swigregister(ofXml) -def ofXml_tokenize(*args): - return _openframeworks.ofXml_tokenize(*args) +def ofXml_tokenize(str, delim): + return _openframeworks.ofXml_tokenize(str, delim) ofXml_tokenize = _openframeworks.ofXml_tokenize class ofMatrixStack(_object): @@ -5057,43 +9927,123 @@ class ofMatrixStack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMatrixStack, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofMatrixStack(*args) - try: self.this.append(this) - except: self.this = this - def setRenderSurface(self, *args): return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) - def setOrientation(self, *args): return _openframeworks.ofMatrixStack_setOrientation(self, *args) - def getOrientation(self): return _openframeworks.ofMatrixStack_getOrientation(self) - def viewport(self, *args): return _openframeworks.ofMatrixStack_viewport(self, *args) - def nativeViewport(self, *args): return _openframeworks.ofMatrixStack_nativeViewport(self, *args) - def getCurrentViewport(self): return _openframeworks.ofMatrixStack_getCurrentViewport(self) - def getNativeViewport(self): return _openframeworks.ofMatrixStack_getNativeViewport(self) - def getProjectionMatrix(self): return _openframeworks.ofMatrixStack_getProjectionMatrix(self) - def getModelViewMatrix(self): return _openframeworks.ofMatrixStack_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self): return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) - def getTextureMatrix(self): return _openframeworks.ofMatrixStack_getTextureMatrix(self) - def getCurrentMatrix(self): return _openframeworks.ofMatrixStack_getCurrentMatrix(self) - def getProjectionMatrixNoOrientation(self): return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) - def getOrientationMatrix(self): return _openframeworks.ofMatrixStack_getOrientationMatrix(self) - def getOrientationMatrixInverse(self): return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) - def getCurrentMatrixMode(self): return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) - def getHandedness(self): return _openframeworks.ofMatrixStack_getHandedness(self) - def isVFlipped(self): return _openframeworks.ofMatrixStack_isVFlipped(self) - def customMatrixNeedsFlip(self): return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) - def pushView(self): return _openframeworks.ofMatrixStack_pushView(self) - def popView(self): return _openframeworks.ofMatrixStack_popView(self) - def pushMatrix(self): return _openframeworks.ofMatrixStack_pushMatrix(self) - def popMatrix(self): return _openframeworks.ofMatrixStack_popMatrix(self) - def translate(self, *args): return _openframeworks.ofMatrixStack_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrixStack_scale(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrixStack_rotate(self, *args) - def matrixMode(self, *args): return _openframeworks.ofMatrixStack_matrixMode(self, *args) - def loadIdentityMatrix(self): return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) - def loadMatrix(self, *args): return _openframeworks.ofMatrixStack_loadMatrix(self, *args) - def multMatrix(self, *args): return _openframeworks.ofMatrixStack_multMatrix(self, *args) - def clearStacks(self): return _openframeworks.ofMatrixStack_clearStacks(self) + + def __init__(self, window): + this = _openframeworks.new_ofMatrixStack(window) + try: + self.this.append(this) + except Exception: + self.this = this + + def setRenderSurface(self, *args): + return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) + + def setOrientation(self, orientation, vFlip): + return _openframeworks.ofMatrixStack_setOrientation(self, orientation, vFlip) + + def getOrientation(self): + return _openframeworks.ofMatrixStack_getOrientation(self) + + def viewport(self, x, y, width, height, vflip): + return _openframeworks.ofMatrixStack_viewport(self, x, y, width, height, vflip) + + def nativeViewport(self, viewport): + return _openframeworks.ofMatrixStack_nativeViewport(self, viewport) + + def getCurrentViewport(self): + return _openframeworks.ofMatrixStack_getCurrentViewport(self) + + def getNativeViewport(self): + return _openframeworks.ofMatrixStack_getNativeViewport(self) + + def getFullSurfaceViewport(self): + return _openframeworks.ofMatrixStack_getFullSurfaceViewport(self) + + def getProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getProjectionMatrix(self) + + def getViewMatrix(self): + return _openframeworks.ofMatrixStack_getViewMatrix(self) + + def getModelViewMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) + + def getTextureMatrix(self): + return _openframeworks.ofMatrixStack_getTextureMatrix(self) + + def getCurrentMatrix(self): + return _openframeworks.ofMatrixStack_getCurrentMatrix(self) + + def getProjectionMatrixNoOrientation(self): + return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) + + def getOrientationMatrix(self): + return _openframeworks.ofMatrixStack_getOrientationMatrix(self) + + def getOrientationMatrixInverse(self): + return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) + + def getCurrentMatrixMode(self): + return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) + + def getHandedness(self): + return _openframeworks.ofMatrixStack_getHandedness(self) + + def isVFlipped(self): + return _openframeworks.ofMatrixStack_isVFlipped(self) + + def customMatrixNeedsFlip(self): + return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) + + def pushView(self): + return _openframeworks.ofMatrixStack_pushView(self) + + def popView(self): + return _openframeworks.ofMatrixStack_popView(self) + + def pushMatrix(self): + return _openframeworks.ofMatrixStack_pushMatrix(self) + + def popMatrix(self): + return _openframeworks.ofMatrixStack_popMatrix(self) + + def translate(self, x, y, z=0): + return _openframeworks.ofMatrixStack_translate(self, x, y, z) + + def scale(self, xAmnt, yAmnt, zAmnt=1): + return _openframeworks.ofMatrixStack_scale(self, xAmnt, yAmnt, zAmnt) + + def rotate(self, degrees, vecX, vecY, vecZ): + return _openframeworks.ofMatrixStack_rotate(self, degrees, vecX, vecY, vecZ) + + def matrixMode(self, mode): + return _openframeworks.ofMatrixStack_matrixMode(self, mode) + + def loadIdentityMatrix(self): + return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) + + def loadMatrix(self, m): + return _openframeworks.ofMatrixStack_loadMatrix(self, m) + + def multMatrix(self, m): + return _openframeworks.ofMatrixStack_multMatrix(self, m) + + def loadViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_loadViewMatrix(self, matrix) + + def multViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_multViewMatrix(self, matrix) + + def clearStacks(self): + return _openframeworks.ofMatrixStack_clearStacks(self) + + def doesHardwareOrientation(self): + return _openframeworks.ofMatrixStack_doesHardwareOrientation(self) __swig_destroy__ = _openframeworks.delete_ofMatrixStack - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrixStack_swigregister = _openframeworks.ofMatrixStack_swigregister ofMatrixStack_swigregister(ofMatrixStack) @@ -5103,42 +10053,105 @@ class ofVideoGrabber(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoGrabber, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoGrabber() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVideoGrabber - __del__ = lambda self : None; - def setGrabber(self, *args): return _openframeworks.ofVideoGrabber_setGrabber(self, *args) - def getGrabber(self): return _openframeworks.ofVideoGrabber_getGrabber(self) - def listDevices(self): return _openframeworks.ofVideoGrabber_listDevices(self) - def isFrameNew(self): return _openframeworks.ofVideoGrabber_isFrameNew(self) - def update(self): return _openframeworks.ofVideoGrabber_update(self) - def close(self): return _openframeworks.ofVideoGrabber_close(self) - def initGrabber(self, *args): return _openframeworks.ofVideoGrabber_initGrabber(self, *args) - def setPixelFormat(self, *args): return _openframeworks.ofVideoGrabber_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoGrabber_getPixelFormat(self) - def videoSettings(self): return _openframeworks.ofVideoGrabber_videoSettings(self) - def getPixels(self): return _openframeworks.ofVideoGrabber_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoGrabber_getPixelsRef(self) - def getTextureReference(self): return _openframeworks.ofVideoGrabber_getTextureReference(self) - def setVerbose(self, *args): return _openframeworks.ofVideoGrabber_setVerbose(self, *args) - def setDeviceID(self, *args): return _openframeworks.ofVideoGrabber_setDeviceID(self, *args) - def setDesiredFrameRate(self, *args): return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoGrabber_setUseTexture(self, *args) - def draw(self, *args): return _openframeworks.ofVideoGrabber_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoGrabber_resetAnchor(self) - def getHeight(self): return _openframeworks.ofVideoGrabber_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoGrabber_getWidth(self) - def isInitialized(self): return _openframeworks.ofVideoGrabber_isInitialized(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoGrabber_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoGrabber_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoGrabber_height_get, _openframeworks.ofVideoGrabber_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoGrabber_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoGrabber_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoGrabber_width_get, _openframeworks.ofVideoGrabber_width_set) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofVideoGrabber_listDevices(self) + + def isFrameNew(self): + return _openframeworks.ofVideoGrabber_isFrameNew(self) + + def update(self): + return _openframeworks.ofVideoGrabber_update(self) + + def close(self): + return _openframeworks.ofVideoGrabber_close(self) + + def setup(self, *args): + return _openframeworks.ofVideoGrabber_setup(self, *args) + + def initGrabber(self, *args): + return _openframeworks.ofVideoGrabber_initGrabber(self, *args) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoGrabber_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoGrabber_getPixelFormat(self) + + def videoSettings(self): + return _openframeworks.ofVideoGrabber_videoSettings(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoGrabber_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoGrabber_getPixelsRef(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofVideoGrabber_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoGrabber_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoGrabber_getTexturePlanes(self, *args) + + def setVerbose(self, bTalkToMe): + return _openframeworks.ofVideoGrabber_setVerbose(self, bTalkToMe) + + def setDeviceID(self, _deviceID): + return _openframeworks.ofVideoGrabber_setDeviceID(self, _deviceID) + + def setDesiredFrameRate(self, framerate): + return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, framerate) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoGrabber_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoGrabber_isUsingTexture(self) + + def draw(self, *args): + return _openframeworks.ofVideoGrabber_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoGrabber_bind(self) + + def unbind(self): + return _openframeworks.ofVideoGrabber_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoGrabber_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoGrabber_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoGrabber_resetAnchor(self) + + def getHeight(self): + return _openframeworks.ofVideoGrabber_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoGrabber_getWidth(self) + + def isInitialized(self): + return _openframeworks.ofVideoGrabber_isInitialized(self) + + def setGrabber(self, newGrabber): + return _openframeworks.ofVideoGrabber_setGrabber(self, newGrabber) + + def getGrabber(self, *args): + return _openframeworks.ofVideoGrabber_getGrabber(self, *args) ofVideoGrabber_swigregister = _openframeworks.ofVideoGrabber_swigregister ofVideoGrabber_swigregister(ofVideoGrabber) @@ -5148,90 +10161,189 @@ class ofVideoPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofVideoPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofVideoPlayer_getPlayer(self) - def loadMovie(self, *args): return _openframeworks.ofVideoPlayer_loadMovie(self, *args) - def getMoviePath(self): return _openframeworks.ofVideoPlayer_getMoviePath(self) - def setPixelFormat(self, *args): return _openframeworks.ofVideoPlayer_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoPlayer_getPixelFormat(self) - def closeMovie(self): return _openframeworks.ofVideoPlayer_closeMovie(self) - def close(self): return _openframeworks.ofVideoPlayer_close(self) - def update(self): return _openframeworks.ofVideoPlayer_update(self) - def play(self): return _openframeworks.ofVideoPlayer_play(self) - def stop(self): return _openframeworks.ofVideoPlayer_stop(self) - def isFrameNew(self): return _openframeworks.ofVideoPlayer_isFrameNew(self) - def getPixels(self): return _openframeworks.ofVideoPlayer_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoPlayer_getPixelsRef(self) - def getPosition(self): return _openframeworks.ofVideoPlayer_getPosition(self) - def getSpeed(self): return _openframeworks.ofVideoPlayer_getSpeed(self) - def getDuration(self): return _openframeworks.ofVideoPlayer_getDuration(self) - def getIsMovieDone(self): return _openframeworks.ofVideoPlayer_getIsMovieDone(self) - def setPosition(self, *args): return _openframeworks.ofVideoPlayer_setPosition(self, *args) - def setVolume(self, *args): return _openframeworks.ofVideoPlayer_setVolume(self, *args) - def setLoopState(self, *args): return _openframeworks.ofVideoPlayer_setLoopState(self, *args) - def getLoopState(self): return _openframeworks.ofVideoPlayer_getLoopState(self) - def setSpeed(self, *args): return _openframeworks.ofVideoPlayer_setSpeed(self, *args) - def setFrame(self, *args): return _openframeworks.ofVideoPlayer_setFrame(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoPlayer_setUseTexture(self, *args) - def getTextureReference(self): return _openframeworks.ofVideoPlayer_getTextureReference(self) - def draw(self, *args): return _openframeworks.ofVideoPlayer_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoPlayer_resetAnchor(self) - def setPaused(self, *args): return _openframeworks.ofVideoPlayer_setPaused(self, *args) - def getCurrentFrame(self): return _openframeworks.ofVideoPlayer_getCurrentFrame(self) - def getTotalNumFrames(self): return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) - def firstFrame(self): return _openframeworks.ofVideoPlayer_firstFrame(self) - def nextFrame(self): return _openframeworks.ofVideoPlayer_nextFrame(self) - def previousFrame(self): return _openframeworks.ofVideoPlayer_previousFrame(self) - def getHeight(self): return _openframeworks.ofVideoPlayer_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoPlayer_getWidth(self) - def isPaused(self): return _openframeworks.ofVideoPlayer_isPaused(self) - def isLoaded(self): return _openframeworks.ofVideoPlayer_isLoaded(self) - def isPlaying(self): return _openframeworks.ofVideoPlayer_isPlaying(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoPlayer_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoPlayer_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoPlayer_height_get, _openframeworks.ofVideoPlayer_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoPlayer_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoPlayer_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoPlayer_width_get, _openframeworks.ofVideoPlayer_width_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, name): + return _openframeworks.ofVideoPlayer_load(self, name) + + def loadAsync(self, name): + return _openframeworks.ofVideoPlayer_loadAsync(self, name) + + def loadMovie(self, name): + return _openframeworks.ofVideoPlayer_loadMovie(self, name) + + def getMoviePath(self): + return _openframeworks.ofVideoPlayer_getMoviePath(self) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoPlayer_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoPlayer_getPixelFormat(self) + + def closeMovie(self): + return _openframeworks.ofVideoPlayer_closeMovie(self) + + def close(self): + return _openframeworks.ofVideoPlayer_close(self) + + def update(self): + return _openframeworks.ofVideoPlayer_update(self) + + def play(self): + return _openframeworks.ofVideoPlayer_play(self) + + def stop(self): + return _openframeworks.ofVideoPlayer_stop(self) + + def isFrameNew(self): + return _openframeworks.ofVideoPlayer_isFrameNew(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoPlayer_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoPlayer_getPixelsRef(self, *args) + + def getPosition(self): + return _openframeworks.ofVideoPlayer_getPosition(self) + + def getSpeed(self): + return _openframeworks.ofVideoPlayer_getSpeed(self) + + def getDuration(self): + return _openframeworks.ofVideoPlayer_getDuration(self) + + def getIsMovieDone(self): + return _openframeworks.ofVideoPlayer_getIsMovieDone(self) + + def setPosition(self, pct): + return _openframeworks.ofVideoPlayer_setPosition(self, pct) + + def setVolume(self, volume): + return _openframeworks.ofVideoPlayer_setVolume(self, volume) + + def setLoopState(self, state): + return _openframeworks.ofVideoPlayer_setLoopState(self, state) + + def getLoopState(self): + return _openframeworks.ofVideoPlayer_getLoopState(self) + + def setSpeed(self, speed): + return _openframeworks.ofVideoPlayer_setSpeed(self, speed) + + def setFrame(self, frame): + return _openframeworks.ofVideoPlayer_setFrame(self, frame) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoPlayer_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoPlayer_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofVideoPlayer_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoPlayer_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoPlayer_getTexturePlanes(self, *args) + + def draw(self, *args): + return _openframeworks.ofVideoPlayer_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoPlayer_bind(self) + + def unbind(self): + return _openframeworks.ofVideoPlayer_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoPlayer_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoPlayer_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoPlayer_resetAnchor(self) + + def setPaused(self, bPause): + return _openframeworks.ofVideoPlayer_setPaused(self, bPause) + + def getCurrentFrame(self): + return _openframeworks.ofVideoPlayer_getCurrentFrame(self) + + def getTotalNumFrames(self): + return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) + + def firstFrame(self): + return _openframeworks.ofVideoPlayer_firstFrame(self) + + def nextFrame(self): + return _openframeworks.ofVideoPlayer_nextFrame(self) + + def previousFrame(self): + return _openframeworks.ofVideoPlayer_previousFrame(self) + + def getHeight(self): + return _openframeworks.ofVideoPlayer_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoPlayer_getWidth(self) + + def isPaused(self): + return _openframeworks.ofVideoPlayer_isPaused(self) + + def isLoaded(self): + return _openframeworks.ofVideoPlayer_isLoaded(self) + + def isPlaying(self): + return _openframeworks.ofVideoPlayer_isPlaying(self) + + def isInitialized(self): + return _openframeworks.ofVideoPlayer_isInitialized(self) + + def setPlayer(self, newPlayer): + return _openframeworks.ofVideoPlayer_setPlayer(self, newPlayer) + + def getPlayer(self, *args): + return _openframeworks.ofVideoPlayer_getPlayer(self, *args) __swig_destroy__ = _openframeworks.delete_ofVideoPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofVideoPlayer_swigregister = _openframeworks.ofVideoPlayer_swigregister ofVideoPlayer_swigregister(ofVideoPlayer) -def ofGetMousePressed(*args): - return _openframeworks.ofGetMousePressed(*args) +def ofGetMousePressed(button=-1): + return _openframeworks.ofGetMousePressed(button) ofGetMousePressed = _openframeworks.ofGetMousePressed -def ofGetKeyPressed(*args): - return _openframeworks.ofGetKeyPressed(*args) +def ofGetKeyPressed(key=-1): + return _openframeworks.ofGetKeyPressed(key) ofGetKeyPressed = _openframeworks.ofGetKeyPressed def ofGetMouseX(): - return _openframeworks.ofGetMouseX() + return _openframeworks.ofGetMouseX() ofGetMouseX = _openframeworks.ofGetMouseX def ofGetMouseY(): - return _openframeworks.ofGetMouseY() + return _openframeworks.ofGetMouseY() ofGetMouseY = _openframeworks.ofGetMouseY def ofGetPreviousMouseX(): - return _openframeworks.ofGetPreviousMouseX() + return _openframeworks.ofGetPreviousMouseX() ofGetPreviousMouseX = _openframeworks.ofGetPreviousMouseX def ofGetPreviousMouseY(): - return _openframeworks.ofGetPreviousMouseY() + return _openframeworks.ofGetPreviousMouseY() ofGetPreviousMouseY = _openframeworks.ofGetPreviousMouseY - -def ofSetEscapeQuitsApp(*args): - return _openframeworks.ofSetEscapeQuitsApp(*args) -ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp class ofDragInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofDragInfo, name, value) @@ -5240,25 +10352,32 @@ class ofDragInfo(_object): __repr__ = _swig_repr __swig_setmethods__["files"] = _openframeworks.ofDragInfo_files_set __swig_getmethods__["files"] = _openframeworks.ofDragInfo_files_get - if _newclass:files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) + if _newclass: + files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) __swig_setmethods__["position"] = _openframeworks.ofDragInfo_position_set __swig_getmethods__["position"] = _openframeworks.ofDragInfo_position_get - if _newclass:position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) - def __init__(self): + if _newclass: + position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) + + def __init__(self): this = _openframeworks.new_ofDragInfo() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofDragInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofDragInfo_swigregister = _openframeworks.ofDragInfo_swigregister ofDragInfo_swigregister(ofDragInfo) class ofTouchEventArgs(ofVec2f): __swig_setmethods__ = {} - for _s in [ofVec2f]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofVec2f]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofTouchEventArgs, name, value) __swig_getmethods__ = {} - for _s in [ofVec2f]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofVec2f]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofTouchEventArgs, name) __repr__ = _swig_repr down = _openframeworks.ofTouchEventArgs_down @@ -5266,61 +10385,80 @@ class ofTouchEventArgs(ofVec2f): move = _openframeworks.ofTouchEventArgs_move doubleTap = _openframeworks.ofTouchEventArgs_doubleTap cancel = _openframeworks.ofTouchEventArgs_cancel + + def __init__(self, *args): + this = _openframeworks.new_ofTouchEventArgs(*args) + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["type"] = _openframeworks.ofTouchEventArgs_type_set __swig_getmethods__["type"] = _openframeworks.ofTouchEventArgs_type_get - if _newclass:type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) + if _newclass: + type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) __swig_setmethods__["id"] = _openframeworks.ofTouchEventArgs_id_set __swig_getmethods__["id"] = _openframeworks.ofTouchEventArgs_id_get - if _newclass:id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) + if _newclass: + id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) __swig_setmethods__["time"] = _openframeworks.ofTouchEventArgs_time_set __swig_getmethods__["time"] = _openframeworks.ofTouchEventArgs_time_get - if _newclass:time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) + if _newclass: + time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) __swig_setmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_set __swig_getmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_get - if _newclass:numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) + if _newclass: + numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) __swig_setmethods__["width"] = _openframeworks.ofTouchEventArgs_width_set __swig_getmethods__["width"] = _openframeworks.ofTouchEventArgs_width_get - if _newclass:width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) __swig_setmethods__["height"] = _openframeworks.ofTouchEventArgs_height_set __swig_getmethods__["height"] = _openframeworks.ofTouchEventArgs_height_get - if _newclass:height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) __swig_setmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_set __swig_getmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_get - if _newclass:angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) + if _newclass: + angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) __swig_setmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_set __swig_getmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_get - if _newclass:minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) + if _newclass: + minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) __swig_setmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_set __swig_getmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_get - if _newclass:majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) + if _newclass: + majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) __swig_setmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_set __swig_getmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_get - if _newclass:pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) + if _newclass: + pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) __swig_setmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_set __swig_getmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_get - if _newclass:xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) + if _newclass: + xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) __swig_setmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_set __swig_getmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_get - if _newclass:yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) + if _newclass: + yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) __swig_setmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_set __swig_getmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_get - if _newclass:xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) + if _newclass: + xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) __swig_setmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_set __swig_getmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_get - if _newclass:yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) - def __init__(self): - this = _openframeworks.new_ofTouchEventArgs() - try: self.this.append(this) - except: self.this = this + if _newclass: + yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) __swig_destroy__ = _openframeworks.delete_ofTouchEventArgs - __del__ = lambda self : None; + __del__ = lambda self: None ofTouchEventArgs_swigregister = _openframeworks.ofTouchEventArgs_swigregister ofTouchEventArgs_swigregister(ofTouchEventArgs) def ofSendMessage(*args): - return _openframeworks.ofSendMessage(*args) + return _openframeworks.ofSendMessage(*args) ofSendMessage = _openframeworks.ofSendMessage + + # handle typedefs which swig doesnt wrap ofPoint = ofVec3f diff --git a/example_ScriptTester/bin/data/openframeworks_extra.py b/example_ScriptTester/bin/data/openframeworks_extra.py old mode 100644 new mode 100755 index d5dd3b7..fce8e18 --- a/example_ScriptTester/bin/data/openframeworks_extra.py +++ b/example_ScriptTester/bin/data/openframeworks_extra.py @@ -1,13 +1,15 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 2.0.7 +# Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. + + from sys import version_info -if version_info >= (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -73,9 +96,12 @@ class CallBack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CallBack, name) __repr__ = _swig_repr - def _call(self): return _openframeworks_extra.CallBack__call(self) + + def _call(self): + return _openframeworks_extra.CallBack__call(self) __swig_destroy__ = _openframeworks_extra.delete_CallBack - __del__ = lambda self : None; + __del__ = lambda self: None + def call(self,*args,**kwargs): CallBack._args = args CallBack._kwargs = kwargs @@ -83,16 +109,19 @@ def call(self,*args,**kwargs): CallBack._args = None CallBack._kwargs = None - def __init__(self): + + def __init__(self): this = _openframeworks_extra.new_CallBack() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this CallBack_swigregister = _openframeworks_extra.CallBack_swigregister CallBack_swigregister(CallBack) def _getCallBackPointer(): - return _openframeworks_extra._getCallBackPointer() + return _openframeworks_extra._getCallBackPointer() _getCallBackPointer = _openframeworks_extra._getCallBackPointer # This file is compatible with both classic and new-style classes. diff --git a/example_ScriptTester/config.make b/example_ScriptTester/config.make old mode 100644 new mode 100755 diff --git a/example_ScriptTester/example_ScriptTester.cbp b/example_ScriptTester/example_ScriptTester.cbp old mode 100644 new mode 100755 diff --git a/example_ScriptTester/example_ScriptTester.sln b/example_ScriptTester/example_ScriptTester.sln old mode 100644 new mode 100755 diff --git a/example_ScriptTester/example_ScriptTester.vcxproj b/example_ScriptTester/example_ScriptTester.vcxproj old mode 100644 new mode 100755 diff --git a/example_ScriptTester/example_ScriptTester.vcxproj.filters b/example_ScriptTester/example_ScriptTester.vcxproj.filters old mode 100644 new mode 100755 diff --git a/example_ScriptTester/example_ScriptTester.vcxproj.user b/example_ScriptTester/example_ScriptTester.vcxproj.user old mode 100644 new mode 100755 diff --git a/example_ScriptTester/example_ScriptTester.workspace b/example_ScriptTester/example_ScriptTester.workspace old mode 100644 new mode 100755 diff --git a/example_ScriptTester/example_ScriptTester.xcodeproj/project.pbxproj b/example_ScriptTester/example_ScriptTester.xcodeproj/project.pbxproj index 8eee46f..bd4148c 100755 --- a/example_ScriptTester/example_ScriptTester.xcodeproj/project.pbxproj +++ b/example_ScriptTester/example_ScriptTester.xcodeproj/project.pbxproj @@ -1,660 +1,928 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 3F89109986058DB93D8ABF82 /* ofxPython.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */; }; - 7B182901E12EF9C89017E436 /* ofxPythonCallBack.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */; }; - BBAB23CB13894F3D00AA2426 /* GLUT.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = BBAB23BE13894E4700AA2426 /* GLUT.framework */; }; - D7E6C194BDBE6C0950FED198 /* openFrameworks_extra_wrap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */; }; - E4328149138ABC9F0047C5CB /* openFrameworksDebug.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4328148138ABC890047C5CB /* openFrameworksDebug.a */; }; - E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9710E8CC7DD009D7055 /* AGL.framework */; }; - E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */; }; - E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */; }; - E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */; }; - E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */; }; - E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9770E8CC7DD009D7055 /* CoreServices.framework */; }; - E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9790E8CC7DD009D7055 /* OpenGL.framework */; }; - E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */; }; - E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1D0A3A1BDC003C02F2 /* main.cpp */; }; - E4B69E210A3A1BDC003C02F2 /* ofApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */; }; - E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424410CC5A17004149E2 /* AppKit.framework */; }; - E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424510CC5A17004149E2 /* Cocoa.framework */; }; - E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424610CC5A17004149E2 /* IOKit.framework */; }; - E4EB6799138ADC1D00A09F29 /* GLUT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBAB23BE13894E4700AA2426 /* GLUT.framework */; }; - E7E077E515D3B63C0020DFD4 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */; }; - E7E077E815D3B6510020DFD4 /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7E077E715D3B6510020DFD4 /* QTKit.framework */; }; - E7F985F815E0DEA3003869B5 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7F985F515E0DE99003869B5 /* Accelerate.framework */; }; - E8DB35E07D68B21B39114B9E /* openFrameworks_wrap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - E4328147138ABC890047C5CB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = E4B27C1510CBEB8E00536013; - remoteInfo = openFrameworks; - }; - E4EEB9AB138B136A00A80321 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = E4B27C1410CBEB8E00536013; - remoteInfo = openFrameworks; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - E4C2427710CC5ABF004149E2 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - BBAB23CB13894F3D00AA2426 /* GLUT.framework in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPython.cpp; path = ../src/ofxPython.cpp; sourceTree = SOURCE_ROOT; }; - 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_wrap.cpp; path = ../src/bindings/desktop/openFrameworks_wrap.cpp; sourceTree = SOURCE_ROOT; }; - 3CFF297A35409903661F3E82 /* openFrameworks_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_wrap.h; path = ../src/bindings/openFrameworks_wrap.h; sourceTree = SOURCE_ROOT; }; - 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_extra_wrap.cpp; path = ../src/bindings/openFrameworks_extra_wrap.cpp; sourceTree = SOURCE_ROOT; }; - 529DBC40B08D8781B5122672 /* openFrameworks_extra_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_extra_wrap.h; path = ../src/bindings/openFrameworks_extra_wrap.h; sourceTree = SOURCE_ROOT; }; - 652966E41B44E717210D73A9 /* ofxPython.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPython.h; path = ../src/ofxPython.h; sourceTree = SOURCE_ROOT; }; - 97D7D1AA2E988365FDA134F4 /* ofxPythonCallBackBase.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBackBase.h; path = ../src/ofxPythonCallBackBase.h; sourceTree = SOURCE_ROOT; }; - 99EDC8255C1E929CED636861 /* ofxPythonCallBack.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBack.h; path = ../src/ofxPythonCallBack.h; sourceTree = SOURCE_ROOT; }; - BBAB23BE13894E4700AA2426 /* GLUT.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLUT.framework; path = ../../../libs/glut/lib/osx/GLUT.framework; sourceTree = ""; }; - CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPythonCallBack.cpp; path = ../src/ofxPythonCallBack.cpp; sourceTree = SOURCE_ROOT; }; - E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = openFrameworksLib.xcodeproj; path = ../../../libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj; sourceTree = SOURCE_ROOT; }; - E45BE9710E8CC7DD009D7055 /* AGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AGL.framework; path = /System/Library/Frameworks/AGL.framework; sourceTree = ""; }; - E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = ""; }; - E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = ""; }; - E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = ""; }; - E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; - E45BE9770E8CC7DD009D7055 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; - E45BE9790E8CC7DD009D7055 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = ""; }; - E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = ""; }; - E4B69B5B0A3A1756003C02F2 /* example_ScriptTesterDebug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example_ScriptTesterDebug.app; sourceTree = BUILT_PRODUCTS_DIR; }; - E4B69E1D0A3A1BDC003C02F2 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = main.cpp; path = src/main.cpp; sourceTree = SOURCE_ROOT; }; - E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofApp.cpp; path = src/ofApp.cpp; sourceTree = SOURCE_ROOT; }; - E4B69E1F0A3A1BDC003C02F2 /* ofApp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ofApp.h; path = src/ofApp.h; sourceTree = SOURCE_ROOT; }; - E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.plist.xml; path = "openFrameworks-Info.plist"; sourceTree = ""; }; - E4C2424410CC5A17004149E2 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; - E4C2424510CC5A17004149E2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; - E4C2424610CC5A17004149E2 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; - E4EB691F138AFCF100A09F29 /* CoreOF.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = CoreOF.xcconfig; path = ../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig; sourceTree = SOURCE_ROOT; }; - E4EB6923138AFD0F00A09F29 /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = ""; }; - E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = /System/Library/Frameworks/CoreVideo.framework; sourceTree = ""; }; - E7E077E715D3B6510020DFD4 /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = ""; }; - E7F985F515E0DE99003869B5 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = /System/Library/Frameworks/Accelerate.framework; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - E4B69B590A3A1756003C02F2 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - E7F985F815E0DEA3003869B5 /* Accelerate.framework in Frameworks */, - E7E077E815D3B6510020DFD4 /* QTKit.framework in Frameworks */, - E4EB6799138ADC1D00A09F29 /* GLUT.framework in Frameworks */, - E4328149138ABC9F0047C5CB /* openFrameworksDebug.a in Frameworks */, - E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */, - E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */, - E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */, - E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */, - E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */, - E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */, - E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */, - E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */, - E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */, - E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */, - E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */, - E7E077E515D3B63C0020DFD4 /* CoreVideo.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 1EE564612E92DE7F272F8865 /* desktop */ = { - isa = PBXGroup; - children = ( - 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */, - ); - name = desktop; - sourceTree = ""; - }; - 31AA9B36154605316B795F10 /* ofxPython */ = { - isa = PBXGroup; - children = ( - FA2C3669CF0E6EF70240EBFF /* src */, - ); - name = ofxPython; - sourceTree = ""; - }; - 337B6DEC118C6F7544300AD1 /* bindings */ = { - isa = PBXGroup; - children = ( - 1EE564612E92DE7F272F8865 /* desktop */, - 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */, - 529DBC40B08D8781B5122672 /* openFrameworks_extra_wrap.h */, - 3CFF297A35409903661F3E82 /* openFrameworks_wrap.h */, - ); - name = bindings; - sourceTree = ""; - }; - BB4B014C10F69532006C3DED /* addons */ = { - isa = PBXGroup; - children = ( - 31AA9B36154605316B795F10 /* ofxPython */, - ); - name = addons; - sourceTree = ""; - }; - BBAB23C913894ECA00AA2426 /* system frameworks */ = { - isa = PBXGroup; - children = ( - E7F985F515E0DE99003869B5 /* Accelerate.framework */, - E4C2424410CC5A17004149E2 /* AppKit.framework */, - E4C2424510CC5A17004149E2 /* Cocoa.framework */, - E4C2424610CC5A17004149E2 /* IOKit.framework */, - E45BE9710E8CC7DD009D7055 /* AGL.framework */, - E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */, - E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */, - E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */, - E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */, - E45BE9770E8CC7DD009D7055 /* CoreServices.framework */, - E45BE9790E8CC7DD009D7055 /* OpenGL.framework */, - E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */, - E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */, - E7E077E715D3B6510020DFD4 /* QTKit.framework */, - ); - name = "system frameworks"; - sourceTree = ""; - }; - BBAB23CA13894EDB00AA2426 /* 3rd party frameworks */ = { - isa = PBXGroup; - children = ( - BBAB23BE13894E4700AA2426 /* GLUT.framework */, - ); - name = "3rd party frameworks"; - sourceTree = ""; - }; - E4328144138ABC890047C5CB /* Products */ = { - isa = PBXGroup; - children = ( - E4328148138ABC890047C5CB /* openFrameworksDebug.a */, - ); - name = Products; - sourceTree = ""; - }; - E45BE5980E8CC70C009D7055 /* frameworks */ = { - isa = PBXGroup; - children = ( - BBAB23CA13894EDB00AA2426 /* 3rd party frameworks */, - BBAB23C913894ECA00AA2426 /* system frameworks */, - ); - name = frameworks; - sourceTree = ""; - }; - E4B69B4A0A3A1720003C02F2 = { - isa = PBXGroup; - children = ( - E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */, - E4EB6923138AFD0F00A09F29 /* Project.xcconfig */, - E4B69E1C0A3A1BDC003C02F2 /* src */, - E4EEC9E9138DF44700A80321 /* openFrameworks */, - BB4B014C10F69532006C3DED /* addons */, - E45BE5980E8CC70C009D7055 /* frameworks */, - E4B69B5B0A3A1756003C02F2 /* example_ScriptTesterDebug.app */, - ); - sourceTree = ""; - }; - E4B69E1C0A3A1BDC003C02F2 /* src */ = { - isa = PBXGroup; - children = ( - E4B69E1D0A3A1BDC003C02F2 /* main.cpp */, - E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */, - E4B69E1F0A3A1BDC003C02F2 /* ofApp.h */, - ); - path = src; - sourceTree = SOURCE_ROOT; - }; - E4EEC9E9138DF44700A80321 /* openFrameworks */ = { - isa = PBXGroup; - children = ( - E4EB691F138AFCF100A09F29 /* CoreOF.xcconfig */, - E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */, - ); - name = openFrameworks; - sourceTree = ""; - }; - FA2C3669CF0E6EF70240EBFF /* src */ = { - isa = PBXGroup; - children = ( - 337B6DEC118C6F7544300AD1 /* bindings */, - 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */, - 652966E41B44E717210D73A9 /* ofxPython.h */, - CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */, - 99EDC8255C1E929CED636861 /* ofxPythonCallBack.h */, - 97D7D1AA2E988365FDA134F4 /* ofxPythonCallBackBase.h */, - ); - name = src; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - E4B69B5A0A3A1756003C02F2 /* example_ScriptTester */ = { - isa = PBXNativeTarget; - buildConfigurationList = E4B69B5F0A3A1757003C02F2 /* Build configuration list for PBXNativeTarget "example_ScriptTester" */; - buildPhases = ( - E4B69B580A3A1756003C02F2 /* Sources */, - E4B69B590A3A1756003C02F2 /* Frameworks */, - E4B6FFFD0C3F9AB9008CF71C /* ShellScript */, - E4C2427710CC5ABF004149E2 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - E4EEB9AC138B136A00A80321 /* PBXTargetDependency */, - ); - name = example_ScriptTester; - productName = myOFApp; - productReference = E4B69B5B0A3A1756003C02F2 /* example_ScriptTesterDebug.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - E4B69B4C0A3A1720003C02F2 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0460; - }; - buildConfigurationList = E4B69B4D0A3A1720003C02F2 /* Build configuration list for PBXProject "example_ScriptTester" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - English, - Japanese, - French, - German, - ); - mainGroup = E4B69B4A0A3A1720003C02F2; - productRefGroup = E4B69B4A0A3A1720003C02F2; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = E4328144138ABC890047C5CB /* Products */; - ProjectRef = E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - E4B69B5A0A3A1756003C02F2 /* example_ScriptTester */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - E4328148138ABC890047C5CB /* openFrameworksDebug.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = openFrameworksDebug.a; - remoteRef = E4328147138ABC890047C5CB /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXShellScriptBuildPhase section */ - E4B6FFFD0C3F9AB9008CF71C /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "cp -f ../../../libs/fmodex/lib/osx/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libfmodex.dylib\"; install_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME\";\nmkdir -p \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\ncp -f \"$ICON_FILE\" \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - E4B69B580A3A1756003C02F2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */, - E4B69E210A3A1BDC003C02F2 /* ofApp.cpp in Sources */, - E8DB35E07D68B21B39114B9E /* openFrameworks_wrap.cpp in Sources */, - D7E6C194BDBE6C0950FED198 /* openFrameworks_extra_wrap.cpp in Sources */, - 3F89109986058DB93D8ABF82 /* ofxPython.cpp in Sources */, - 7B182901E12EF9C89017E436 /* ofxPythonCallBack.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - E4EEB9AC138B136A00A80321 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = openFrameworks; - targetProxy = E4EEB9AB138B136A00A80321 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - E4B69B4E0A3A1720003C02F2 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; - buildSettings = { - ARCHS = "$(NATIVE_ARCH)"; - CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - GCC_AUTO_VECTORIZATION = YES; - GCC_ENABLE_SSE3_EXTENSIONS = YES; - GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES; - GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; - GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; - GCC_WARN_UNINITIALIZED_AUTOS = NO; - GCC_WARN_UNUSED_VALUE = NO; - GCC_WARN_UNUSED_VARIABLE = NO; - HEADER_SEARCH_PATHS = ( - "$(OF_CORE_HEADERS)", - ../../../addons/ofxGestureAgents/libs, - ../../../addons/ofxGestureAgents/src, - ../../../addons/ofxPython/libs, - ../../../addons/ofxPython/src, - ../../../addons/ofxPython/src/bindings, - ../../../addons/ofxPython/src/bindings/desktop, - ../../../addons/ofxPython/src, - ); - MACOSX_DEPLOYMENT_TARGET = 10.6; - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - ); - SDKROOT = macosx; - }; - name = Debug; - }; - E4B69B4F0A3A1720003C02F2 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; - buildSettings = { - ARCHS = "$(NATIVE_ARCH)"; - CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; - COPY_PHASE_STRIP = YES; - DEAD_CODE_STRIPPING = YES; - GCC_AUTO_VECTORIZATION = YES; - GCC_ENABLE_SSE3_EXTENSIONS = YES; - GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES; - GCC_INLINES_ARE_PRIVATE_EXTERN = NO; - GCC_OPTIMIZATION_LEVEL = 3; - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_UNROLL_LOOPS = YES; - GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES; - GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; - GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; - GCC_WARN_UNINITIALIZED_AUTOS = NO; - GCC_WARN_UNUSED_VALUE = NO; - GCC_WARN_UNUSED_VARIABLE = NO; - HEADER_SEARCH_PATHS = ( - "$(OF_CORE_HEADERS)", - ../../../addons/ofxGestureAgents/libs, - ../../../addons/ofxGestureAgents/src, - ../../../addons/ofxPython/libs, - ../../../addons/ofxPython/src, - ../../../addons/ofxPython/src/bindings, - ../../../addons/ofxPython/src/bindings/desktop, - ../../../addons/ofxPython/src, - ); - MACOSX_DEPLOYMENT_TARGET = 10.6; - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - ); - SDKROOT = macosx; - }; - name = Release; - }; - E4B69B600A3A1757003C02F2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - ); - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; - GCC_DYNAMIC_NO_PIC = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_MODEL_TUNING = NONE; - ICON = "$(ICON_NAME_DEBUG)"; - ICON_FILE = "$(ICON_FILE_PATH)$(ICON)"; - INFOPLIST_FILE = "openFrameworks-Info.plist"; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_52)", - ); - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - ); - OTHER_LDFLAGS = ( - "-lpython2.7", - "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", - "$(OF_CORE_LIBS)", - ); - PRODUCT_NAME = example_ScriptTesterDebug; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - E4B69B610A3A1757003C02F2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - ); - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_MODEL_TUNING = NONE; - ICON = "$(ICON_NAME_RELEASE)"; - ICON_FILE = "$(ICON_FILE_PATH)$(ICON)"; - INFOPLIST_FILE = "openFrameworks-Info.plist"; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)", - ); - OTHER_CPLUSPLUSFLAGS = ( - "-D__MACOSX_CORE__", - "-lpthread", - "-mtune=native", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - ); - OTHER_LDFLAGS = ( - "-lpython2.7", - "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", - "$(OF_CORE_LIBS)", - ); - PRODUCT_NAME = example_ScriptTester; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - E4B69B4D0A3A1720003C02F2 /* Build configuration list for PBXProject "example_ScriptTester" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - E4B69B4E0A3A1720003C02F2 /* Debug */, - E4B69B4F0A3A1720003C02F2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - E4B69B5F0A3A1757003C02F2 /* Build configuration list for PBXNativeTarget "example_ScriptTester" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - E4B69B600A3A1757003C02F2 /* Debug */, - E4B69B610A3A1757003C02F2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = E4B69B4C0A3A1720003C02F2 /* Project object */; -} + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 97D7D1AA2E988365FDA134F4 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + ofxPythonCallBackBase.h + path + ../../../addons/ofxPython/src/ofxPythonCallBackBase.h + sourceTree + SOURCE_ROOT + + 99EDC8255C1E929CED636861 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + ofxPythonCallBack.h + path + ../../../addons/ofxPython/src/ofxPythonCallBack.h + sourceTree + SOURCE_ROOT + + 7B182901E12EF9C89017E436 + + fileRef + CD8E6B152563C1EFB697162D + isa + PBXBuildFile + + CD8E6B152563C1EFB697162D + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + ofxPythonCallBack.cpp + path + ../../../addons/ofxPython/src/ofxPythonCallBack.cpp + sourceTree + SOURCE_ROOT + + 652966E41B44E717210D73A9 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + ofxPython.h + path + ../../../addons/ofxPython/src/ofxPython.h + sourceTree + SOURCE_ROOT + + 3F89109986058DB93D8ABF82 + + fileRef + 142D2592CF197A9B6FBA8720 + isa + PBXBuildFile + + 142D2592CF197A9B6FBA8720 + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + ofxPython.cpp + path + ../../../addons/ofxPython/src/ofxPython.cpp + sourceTree + SOURCE_ROOT + + 3CFF297A35409903661F3E82 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_wrap.h + path + ../../../addons/ofxPython/src/bindings/openFrameworks_wrap.h + sourceTree + SOURCE_ROOT + + 529DBC40B08D8781B5122672 + + explicitFileType + sourcecode.c.h + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_extra_wrap.h + path + ../../../addons/ofxPython/src/bindings/openFrameworks_extra_wrap.h + sourceTree + SOURCE_ROOT + + D7E6C194BDBE6C0950FED198 + + fileRef + 497FE87A08D2136837EB4A44 + isa + PBXBuildFile + + 497FE87A08D2136837EB4A44 + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_extra_wrap.cpp + path + ../../../addons/ofxPython/src/bindings/openFrameworks_extra_wrap.cpp + sourceTree + SOURCE_ROOT + + 1EE564612E92DE7F272F8865 + + children + + 1CDA3F00A44F5253DAE1870D + + isa + PBXGroup + name + desktop + sourceTree + <group> + + 337B6DEC118C6F7544300AD1 + + children + + 1EE564612E92DE7F272F8865 + 497FE87A08D2136837EB4A44 + 529DBC40B08D8781B5122672 + 3CFF297A35409903661F3E82 + + isa + PBXGroup + name + bindings + sourceTree + <group> + + FA2C3669CF0E6EF70240EBFF + + children + + 337B6DEC118C6F7544300AD1 + 142D2592CF197A9B6FBA8720 + 652966E41B44E717210D73A9 + CD8E6B152563C1EFB697162D + 99EDC8255C1E929CED636861 + 97D7D1AA2E988365FDA134F4 + + isa + PBXGroup + name + src + sourceTree + <group> + + 31AA9B36154605316B795F10 + + children + + FA2C3669CF0E6EF70240EBFF + + isa + PBXGroup + name + ofxPython + sourceTree + <group> + + E8DB35E07D68B21B39114B9E + + fileRef + 1CDA3F00A44F5253DAE1870D + isa + PBXBuildFile + + 1CDA3F00A44F5253DAE1870D + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + openFrameworks_wrap.cpp + path + ../../../addons/ofxPython/src/bindings/desktop/openFrameworks_wrap.cpp + sourceTree + SOURCE_ROOT + + BB4B014C10F69532006C3DED + + children + + 31AA9B36154605316B795F10 + + isa + PBXGroup + name + addons + sourceTree + <group> + + 6948EE371B920CB800B5AC1A + + children + + isa + PBXGroup + name + local_addons + sourceTree + <group> + + E4328143138ABC890047C5CB + + isa + PBXFileReference + lastKnownFileType + wrapper.pb-project + name + openFrameworksLib.xcodeproj + path + ../../../libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj + sourceTree + SOURCE_ROOT + + E4328144138ABC890047C5CB + + children + + E4328148138ABC890047C5CB + + isa + PBXGroup + name + Products + sourceTree + <group> + + E4328147138ABC890047C5CB + + containerPortal + E4328143138ABC890047C5CB + isa + PBXContainerItemProxy + proxyType + 2 + remoteGlobalIDString + E4B27C1510CBEB8E00536013 + remoteInfo + openFrameworks + + E4328148138ABC890047C5CB + + fileType + archive.ar + isa + PBXReferenceProxy + path + openFrameworksDebug.a + remoteRef + E4328147138ABC890047C5CB + sourceTree + BUILT_PRODUCTS_DIR + + E4328149138ABC9F0047C5CB + + fileRef + E4328148138ABC890047C5CB + isa + PBXBuildFile + + E4B69B4A0A3A1720003C02F2 + + children + + E4B6FCAD0C3E899E008CF71C + E4EB6923138AFD0F00A09F29 + E4B69E1C0A3A1BDC003C02F2 + E4EEC9E9138DF44700A80321 + BB4B014C10F69532006C3DED + 6948EE371B920CB800B5AC1A + E4B69B5B0A3A1756003C02F2 + + isa + PBXGroup + sourceTree + <group> + + E4B69B4C0A3A1720003C02F2 + + attributes + + LastUpgradeCheck + 0600 + + buildConfigurationList + E4B69B4D0A3A1720003C02F2 + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + English + Japanese + French + German + + mainGroup + E4B69B4A0A3A1720003C02F2 + productRefGroup + E4B69B4A0A3A1720003C02F2 + projectDirPath + + projectReferences + + + ProductGroup + E4328144138ABC890047C5CB + ProjectRef + E4328143138ABC890047C5CB + + + projectRoot + + targets + + E4B69B5A0A3A1756003C02F2 + + + E4B69B4D0A3A1720003C02F2 + + buildConfigurations + + E4B69B4E0A3A1720003C02F2 + E4B69B4F0A3A1720003C02F2 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + E4B69B4E0A3A1720003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + CONFIGURATION_BUILD_DIR + $(SRCROOT)/bin/ + COPY_PHASE_STRIP + NO + DEAD_CODE_STRIPPING + YES + GCC_AUTO_VECTORIZATION + YES + GCC_ENABLE_SSE3_EXTENSIONS + YES + GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS + YES + GCC_INLINES_ARE_PRIVATE_EXTERN + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_SYMBOLS_PRIVATE_EXTERN + NO + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS + YES + GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO + NO + GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL + NO + GCC_WARN_UNINITIALIZED_AUTOS + NO + GCC_WARN_UNUSED_VALUE + NO + GCC_WARN_UNUSED_VARIABLE + NO + MACOSX_DEPLOYMENT_TARGET + 10.8 + ONLY_ACTIVE_ARCH + YES + OTHER_CPLUSPLUSFLAGS + + -D__MACOSX_CORE__ + -mtune=native + -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 + + SDKROOT + macosx + + isa + XCBuildConfiguration + name + Debug + + E4B69B4F0A3A1720003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + CONFIGURATION_BUILD_DIR + $(SRCROOT)/bin/ + COPY_PHASE_STRIP + YES + DEAD_CODE_STRIPPING + YES + GCC_AUTO_VECTORIZATION + YES + GCC_ENABLE_SSE3_EXTENSIONS + YES + GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS + YES + GCC_INLINES_ARE_PRIVATE_EXTERN + NO + GCC_OPTIMIZATION_LEVEL + 3 + GCC_SYMBOLS_PRIVATE_EXTERN + NO + GCC_UNROLL_LOOPS + YES + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS + YES + GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO + NO + GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL + NO + GCC_WARN_UNINITIALIZED_AUTOS + NO + GCC_WARN_UNUSED_VALUE + NO + GCC_WARN_UNUSED_VARIABLE + NO + MACOSX_DEPLOYMENT_TARGET + 10.8 + OTHER_CPLUSPLUSFLAGS + + -D__MACOSX_CORE__ + -mtune=native + -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 + + SDKROOT + macosx + + isa + XCBuildConfiguration + name + Release + + E4B69B580A3A1756003C02F2 + + buildActionMask + 2147483647 + files + + E4B69E200A3A1BDC003C02F2 + E4B69E210A3A1BDC003C02F2 + E8DB35E07D68B21B39114B9E + D7E6C194BDBE6C0950FED198 + 3F89109986058DB93D8ABF82 + 7B182901E12EF9C89017E436 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E4B69B590A3A1756003C02F2 + + buildActionMask + 2147483647 + files + + E4328149138ABC9F0047C5CB + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E4B69B5A0A3A1756003C02F2 + + buildConfigurationList + E4B69B5F0A3A1757003C02F2 + buildPhases + + E4B69B580A3A1756003C02F2 + E4B69B590A3A1756003C02F2 + E4B6FFFD0C3F9AB9008CF71C + E4C2427710CC5ABF004149E2 + + buildRules + + dependencies + + E4EEB9AC138B136A00A80321 + + isa + PBXNativeTarget + name + example_ScriptTester + productName + myOFApp + productReference + E4B69B5B0A3A1756003C02F2 + productType + com.apple.product-type.application + + E4B69B5B0A3A1756003C02F2 + + explicitFileType + wrapper.application + includeInIndex + 0 + isa + PBXFileReference + path + example_ScriptTesterDebug.app + sourceTree + BUILT_PRODUCTS_DIR + + E4B69B5F0A3A1757003C02F2 + + buildConfigurations + + E4B69B600A3A1757003C02F2 + E4B69B610A3A1757003C02F2 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + E4B69B600A3A1757003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + COMBINE_HIDPI_IMAGES + YES + COPY_PHASE_STRIP + NO + FRAMEWORK_SEARCH_PATHS + + $(inherited) + $(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1) + + FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 + "$(SRCROOT)/../../../libs/glut/lib/osx" + GCC_DYNAMIC_NO_PIC + NO + GCC_GENERATE_DEBUGGING_SYMBOLS + YES + GCC_MODEL_TUNING + NONE + ICON + $(ICON_NAME_DEBUG) + ICON_FILE + $(ICON_FILE_PATH)$(ICON) + INFOPLIST_FILE + openFrameworks-Info.plist + INSTALL_PATH + $(HOME)/Applications + LIBRARY_SEARCH_PATHS + $(inherited) + PRODUCT_NAME + $(TARGET_NAME)Debug + WRAPPER_EXTENSION + app + + isa + XCBuildConfiguration + name + Debug + + E4B69B610A3A1757003C02F2 + + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + buildSettings + + OTHER_LDFLAGS + + $(OF_CORE_FRAMEWORKS) $(OF_CORE_LIBS) + -lpython2.7 + -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config + + HEADER_SEARCH_PATHS + + $(OF_CORE_HEADERS) + src + ../../../addons/ofxPython/src + ../../../addons/ofxPython/src/bindings + ../../../addons/ofxPython/src/bindings/desktop + ../../../addons/ofxPython/src + + COMBINE_HIDPI_IMAGES + YES + COPY_PHASE_STRIP + YES + FRAMEWORK_SEARCH_PATHS + + $(inherited) + $(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1) + + FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 + "$(SRCROOT)/../../../libs/glut/lib/osx" + GCC_GENERATE_DEBUGGING_SYMBOLS + YES + GCC_MODEL_TUNING + NONE + ICON + $(ICON_NAME_RELEASE) + ICON_FILE + $(ICON_FILE_PATH)$(ICON) + INFOPLIST_FILE + openFrameworks-Info.plist + INSTALL_PATH + $(HOME)/Applications + LIBRARY_SEARCH_PATHS + $(inherited) + PRODUCT_NAME + $(TARGET_NAME) + WRAPPER_EXTENSION + app + baseConfigurationReference + E4EB6923138AFD0F00A09F29 + + isa + XCBuildConfiguration + name + Release + + E4B69E1C0A3A1BDC003C02F2 + + children + + E4B69E1D0A3A1BDC003C02F2 + E4B69E1E0A3A1BDC003C02F2 + E4B69E1F0A3A1BDC003C02F2 + + isa + PBXGroup + path + src + sourceTree + SOURCE_ROOT + + E4B69E1D0A3A1BDC003C02F2 + + fileEncoding + 30 + isa + PBXFileReference + lastKnownFileType + sourcecode.cpp.cpp + name + main.cpp + path + src/main.cpp + sourceTree + SOURCE_ROOT + + E4B69E1E0A3A1BDC003C02F2 + + explicitFileType + sourcecode.cpp.cpp + fileEncoding + 30 + isa + PBXFileReference + name + ofApp.cpp + path + src/ofApp.cpp + sourceTree + SOURCE_ROOT + + E4B69E1F0A3A1BDC003C02F2 + + fileEncoding + 30 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + ofApp.h + path + src/ofApp.h + sourceTree + SOURCE_ROOT + + E4B69E200A3A1BDC003C02F2 + + fileRef + E4B69E1D0A3A1BDC003C02F2 + isa + PBXBuildFile + + E4B69E210A3A1BDC003C02F2 + + fileRef + E4B69E1E0A3A1BDC003C02F2 + isa + PBXBuildFile + + E4B6FCAD0C3E899E008CF71C + + fileEncoding + 30 + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + openFrameworks-Info.plist + sourceTree + <group> + + E4B6FFFD0C3F9AB9008CF71C + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + rsync -aved ../../../libs/fmodex/lib/osx/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/"; install_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME"; +mkdir -p "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/" +rsync -aved "$ICON_FILE" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/" +rsync -aved ../../../libs/glut/lib/osx/GLUT.framework "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/" + + + E4C2427710CC5ABF004149E2 + + buildActionMask + 2147483647 + dstPath + + dstSubfolderSpec + 10 + files + + isa + PBXCopyFilesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E4EB691F138AFCF100A09F29 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + CoreOF.xcconfig + path + ../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig + sourceTree + SOURCE_ROOT + + E4EB6923138AFD0F00A09F29 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Project.xcconfig + sourceTree + <group> + + E4EEB9AB138B136A00A80321 + + containerPortal + E4328143138ABC890047C5CB + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + E4B27C1410CBEB8E00536013 + remoteInfo + openFrameworks + + E4EEB9AC138B136A00A80321 + + isa + PBXTargetDependency + name + openFrameworks + targetProxy + E4EEB9AB138B136A00A80321 + + E4EEC9E9138DF44700A80321 + + children + + E4EB691F138AFCF100A09F29 + E4328143138ABC890047C5CB + + isa + PBXGroup + name + openFrameworks + sourceTree + <group> + + + rootObject + E4B69B4C0A3A1720003C02F2 + + diff --git a/example_ScriptTester/example_ScriptTester.xcodeproj/xcshareddata/xcschemes/example_ScriptTester Debug.xcscheme b/example_ScriptTester/example_ScriptTester.xcodeproj/xcshareddata/xcschemes/example_ScriptTester Debug.xcscheme old mode 100644 new mode 100755 index 9892941..bdd37a2 --- a/example_ScriptTester/example_ScriptTester.xcodeproj/xcshareddata/xcschemes/example_ScriptTester Debug.xcscheme +++ b/example_ScriptTester/example_ScriptTester.xcodeproj/xcshareddata/xcschemes/example_ScriptTester Debug.xcscheme @@ -1,6 +1,6 @@ - + - + - + - + = (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -72,27 +95,62 @@ class SwigPyIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_SwigPyIterator - __del__ = lambda self : None; - def value(self): return _openframeworks.SwigPyIterator_value(self) - def incr(self, n=1): return _openframeworks.SwigPyIterator_incr(self, n) - def decr(self, n=1): return _openframeworks.SwigPyIterator_decr(self, n) - def distance(self, *args): return _openframeworks.SwigPyIterator_distance(self, *args) - def equal(self, *args): return _openframeworks.SwigPyIterator_equal(self, *args) - def copy(self): return _openframeworks.SwigPyIterator_copy(self) - def next(self): return _openframeworks.SwigPyIterator_next(self) - def __next__(self): return _openframeworks.SwigPyIterator___next__(self) - def previous(self): return _openframeworks.SwigPyIterator_previous(self) - def advance(self, *args): return _openframeworks.SwigPyIterator_advance(self, *args) - def __eq__(self, *args): return _openframeworks.SwigPyIterator___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.SwigPyIterator___ne__(self, *args) - def __iadd__(self, *args): return _openframeworks.SwigPyIterator___iadd__(self, *args) - def __isub__(self, *args): return _openframeworks.SwigPyIterator___isub__(self, *args) - def __add__(self, *args): return _openframeworks.SwigPyIterator___add__(self, *args) - def __sub__(self, *args): return _openframeworks.SwigPyIterator___sub__(self, *args) - def __iter__(self): return self + __del__ = lambda self: None + + def value(self): + return _openframeworks.SwigPyIterator_value(self) + + def incr(self, n=1): + return _openframeworks.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _openframeworks.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _openframeworks.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _openframeworks.SwigPyIterator_equal(self, x) + + def copy(self): + return _openframeworks.SwigPyIterator_copy(self) + + def next(self): + return _openframeworks.SwigPyIterator_next(self) + + def __next__(self): + return _openframeworks.SwigPyIterator___next__(self) + + def previous(self): + return _openframeworks.SwigPyIterator_previous(self) + + def advance(self, n): + return _openframeworks.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _openframeworks.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _openframeworks.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _openframeworks.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _openframeworks.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _openframeworks.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _openframeworks.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self SwigPyIterator_swigregister = _openframeworks.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) @@ -102,44 +160,110 @@ class IntVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.IntVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.IntVector___nonzero__(self) - def __bool__(self): return _openframeworks.IntVector___bool__(self) - def __len__(self): return _openframeworks.IntVector___len__(self) - def pop(self): return _openframeworks.IntVector_pop(self) - def __getslice__(self, *args): return _openframeworks.IntVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.IntVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.IntVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.IntVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.IntVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.IntVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.IntVector_append(self, *args) - def empty(self): return _openframeworks.IntVector_empty(self) - def size(self): return _openframeworks.IntVector_size(self) - def clear(self): return _openframeworks.IntVector_clear(self) - def swap(self, *args): return _openframeworks.IntVector_swap(self, *args) - def get_allocator(self): return _openframeworks.IntVector_get_allocator(self) - def begin(self): return _openframeworks.IntVector_begin(self) - def end(self): return _openframeworks.IntVector_end(self) - def rbegin(self): return _openframeworks.IntVector_rbegin(self) - def rend(self): return _openframeworks.IntVector_rend(self) - def pop_back(self): return _openframeworks.IntVector_pop_back(self) - def erase(self, *args): return _openframeworks.IntVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.IntVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.IntVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.IntVector___bool__(self) + + def __len__(self): + return _openframeworks.IntVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.IntVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.IntVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.IntVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.IntVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.IntVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.IntVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.IntVector_pop(self) + + def append(self, x): + return _openframeworks.IntVector_append(self, x) + + def empty(self): + return _openframeworks.IntVector_empty(self) + + def size(self): + return _openframeworks.IntVector_size(self) + + def swap(self, v): + return _openframeworks.IntVector_swap(self, v) + + def begin(self): + return _openframeworks.IntVector_begin(self) + + def end(self): + return _openframeworks.IntVector_end(self) + + def rbegin(self): + return _openframeworks.IntVector_rbegin(self) + + def rend(self): + return _openframeworks.IntVector_rend(self) + + def clear(self): + return _openframeworks.IntVector_clear(self) + + def get_allocator(self): + return _openframeworks.IntVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.IntVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.IntVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_IntVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.IntVector_push_back(self, *args) - def front(self): return _openframeworks.IntVector_front(self) - def back(self): return _openframeworks.IntVector_back(self) - def assign(self, *args): return _openframeworks.IntVector_assign(self, *args) - def resize(self, *args): return _openframeworks.IntVector_resize(self, *args) - def insert(self, *args): return _openframeworks.IntVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.IntVector_reserve(self, *args) - def capacity(self): return _openframeworks.IntVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.IntVector_push_back(self, x) + + def front(self): + return _openframeworks.IntVector_front(self) + + def back(self): + return _openframeworks.IntVector_back(self) + + def assign(self, n, x): + return _openframeworks.IntVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.IntVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.IntVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.IntVector_reserve(self, n) + + def capacity(self): + return _openframeworks.IntVector_capacity(self) __swig_destroy__ = _openframeworks.delete_IntVector - __del__ = lambda self : None; + __del__ = lambda self: None IntVector_swigregister = _openframeworks.IntVector_swigregister IntVector_swigregister(IntVector) @@ -149,44 +273,110 @@ class FloatVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, FloatVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.FloatVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.FloatVector___nonzero__(self) - def __bool__(self): return _openframeworks.FloatVector___bool__(self) - def __len__(self): return _openframeworks.FloatVector___len__(self) - def pop(self): return _openframeworks.FloatVector_pop(self) - def __getslice__(self, *args): return _openframeworks.FloatVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.FloatVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.FloatVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.FloatVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.FloatVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.FloatVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.FloatVector_append(self, *args) - def empty(self): return _openframeworks.FloatVector_empty(self) - def size(self): return _openframeworks.FloatVector_size(self) - def clear(self): return _openframeworks.FloatVector_clear(self) - def swap(self, *args): return _openframeworks.FloatVector_swap(self, *args) - def get_allocator(self): return _openframeworks.FloatVector_get_allocator(self) - def begin(self): return _openframeworks.FloatVector_begin(self) - def end(self): return _openframeworks.FloatVector_end(self) - def rbegin(self): return _openframeworks.FloatVector_rbegin(self) - def rend(self): return _openframeworks.FloatVector_rend(self) - def pop_back(self): return _openframeworks.FloatVector_pop_back(self) - def erase(self, *args): return _openframeworks.FloatVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.FloatVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.FloatVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.FloatVector___bool__(self) + + def __len__(self): + return _openframeworks.FloatVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.FloatVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.FloatVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.FloatVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.FloatVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.FloatVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.FloatVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.FloatVector_pop(self) + + def append(self, x): + return _openframeworks.FloatVector_append(self, x) + + def empty(self): + return _openframeworks.FloatVector_empty(self) + + def size(self): + return _openframeworks.FloatVector_size(self) + + def swap(self, v): + return _openframeworks.FloatVector_swap(self, v) + + def begin(self): + return _openframeworks.FloatVector_begin(self) + + def end(self): + return _openframeworks.FloatVector_end(self) + + def rbegin(self): + return _openframeworks.FloatVector_rbegin(self) + + def rend(self): + return _openframeworks.FloatVector_rend(self) + + def clear(self): + return _openframeworks.FloatVector_clear(self) + + def get_allocator(self): + return _openframeworks.FloatVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.FloatVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.FloatVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_FloatVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.FloatVector_push_back(self, *args) - def front(self): return _openframeworks.FloatVector_front(self) - def back(self): return _openframeworks.FloatVector_back(self) - def assign(self, *args): return _openframeworks.FloatVector_assign(self, *args) - def resize(self, *args): return _openframeworks.FloatVector_resize(self, *args) - def insert(self, *args): return _openframeworks.FloatVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.FloatVector_reserve(self, *args) - def capacity(self): return _openframeworks.FloatVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.FloatVector_push_back(self, x) + + def front(self): + return _openframeworks.FloatVector_front(self) + + def back(self): + return _openframeworks.FloatVector_back(self) + + def assign(self, n, x): + return _openframeworks.FloatVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.FloatVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.FloatVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.FloatVector_reserve(self, n) + + def capacity(self): + return _openframeworks.FloatVector_capacity(self) __swig_destroy__ = _openframeworks.delete_FloatVector - __del__ = lambda self : None; + __del__ = lambda self: None FloatVector_swigregister = _openframeworks.FloatVector_swigregister FloatVector_swigregister(FloatVector) @@ -196,201 +386,631 @@ class StringVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, StringVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.StringVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.StringVector___nonzero__(self) - def __bool__(self): return _openframeworks.StringVector___bool__(self) - def __len__(self): return _openframeworks.StringVector___len__(self) - def pop(self): return _openframeworks.StringVector_pop(self) - def __getslice__(self, *args): return _openframeworks.StringVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.StringVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.StringVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.StringVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.StringVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.StringVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.StringVector_append(self, *args) - def empty(self): return _openframeworks.StringVector_empty(self) - def size(self): return _openframeworks.StringVector_size(self) - def clear(self): return _openframeworks.StringVector_clear(self) - def swap(self, *args): return _openframeworks.StringVector_swap(self, *args) - def get_allocator(self): return _openframeworks.StringVector_get_allocator(self) - def begin(self): return _openframeworks.StringVector_begin(self) - def end(self): return _openframeworks.StringVector_end(self) - def rbegin(self): return _openframeworks.StringVector_rbegin(self) - def rend(self): return _openframeworks.StringVector_rend(self) - def pop_back(self): return _openframeworks.StringVector_pop_back(self) - def erase(self, *args): return _openframeworks.StringVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.StringVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.StringVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.StringVector___bool__(self) + + def __len__(self): + return _openframeworks.StringVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.StringVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.StringVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.StringVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.StringVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.StringVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.StringVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.StringVector_pop(self) + + def append(self, x): + return _openframeworks.StringVector_append(self, x) + + def empty(self): + return _openframeworks.StringVector_empty(self) + + def size(self): + return _openframeworks.StringVector_size(self) + + def swap(self, v): + return _openframeworks.StringVector_swap(self, v) + + def begin(self): + return _openframeworks.StringVector_begin(self) + + def end(self): + return _openframeworks.StringVector_end(self) + + def rbegin(self): + return _openframeworks.StringVector_rbegin(self) + + def rend(self): + return _openframeworks.StringVector_rend(self) + + def clear(self): + return _openframeworks.StringVector_clear(self) + + def get_allocator(self): + return _openframeworks.StringVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.StringVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.StringVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_StringVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.StringVector_push_back(self, *args) - def front(self): return _openframeworks.StringVector_front(self) - def back(self): return _openframeworks.StringVector_back(self) - def assign(self, *args): return _openframeworks.StringVector_assign(self, *args) - def resize(self, *args): return _openframeworks.StringVector_resize(self, *args) - def insert(self, *args): return _openframeworks.StringVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.StringVector_reserve(self, *args) - def capacity(self): return _openframeworks.StringVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.StringVector_push_back(self, x) + + def front(self): + return _openframeworks.StringVector_front(self) + + def back(self): + return _openframeworks.StringVector_back(self) + + def assign(self, n, x): + return _openframeworks.StringVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.StringVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.StringVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.StringVector_reserve(self, n) + + def capacity(self): + return _openframeworks.StringVector_capacity(self) __swig_destroy__ = _openframeworks.delete_StringVector - __del__ = lambda self : None; + __del__ = lambda self: None StringVector_swigregister = _openframeworks.StringVector_swigregister StringVector_swigregister(StringVector) + +_openframeworks.OF_VERSION_MAJOR_swigconstant(_openframeworks) OF_VERSION_MAJOR = _openframeworks.OF_VERSION_MAJOR + +_openframeworks.OF_VERSION_MINOR_swigconstant(_openframeworks) OF_VERSION_MINOR = _openframeworks.OF_VERSION_MINOR + +_openframeworks.OF_VERSION_PATCH_swigconstant(_openframeworks) OF_VERSION_PATCH = _openframeworks.OF_VERSION_PATCH + +_openframeworks.OF_VERSION_PRE_RELEASE_swigconstant(_openframeworks) +OF_VERSION_PRE_RELEASE = _openframeworks.OF_VERSION_PRE_RELEASE + +_openframeworks.OF_LOOP_NONE_swigconstant(_openframeworks) OF_LOOP_NONE = _openframeworks.OF_LOOP_NONE + +_openframeworks.OF_LOOP_PALINDROME_swigconstant(_openframeworks) OF_LOOP_PALINDROME = _openframeworks.OF_LOOP_PALINDROME + +_openframeworks.OF_LOOP_NORMAL_swigconstant(_openframeworks) OF_LOOP_NORMAL = _openframeworks.OF_LOOP_NORMAL + +_openframeworks.OF_TARGET_OSX_swigconstant(_openframeworks) OF_TARGET_OSX = _openframeworks.OF_TARGET_OSX -OF_TARGET_WINGCC = _openframeworks.OF_TARGET_WINGCC + +_openframeworks.OF_TARGET_MINGW_swigconstant(_openframeworks) +OF_TARGET_MINGW = _openframeworks.OF_TARGET_MINGW + +_openframeworks.OF_TARGET_WINVS_swigconstant(_openframeworks) OF_TARGET_WINVS = _openframeworks.OF_TARGET_WINVS + +_openframeworks.OF_TARGET_IOS_swigconstant(_openframeworks) OF_TARGET_IOS = _openframeworks.OF_TARGET_IOS + +_openframeworks.OF_TARGET_ANDROID_swigconstant(_openframeworks) OF_TARGET_ANDROID = _openframeworks.OF_TARGET_ANDROID + +_openframeworks.OF_TARGET_LINUX_swigconstant(_openframeworks) OF_TARGET_LINUX = _openframeworks.OF_TARGET_LINUX + +_openframeworks.OF_TARGET_LINUX64_swigconstant(_openframeworks) OF_TARGET_LINUX64 = _openframeworks.OF_TARGET_LINUX64 + +_openframeworks.OF_TARGET_LINUXARMV6L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV6L = _openframeworks.OF_TARGET_LINUXARMV6L + +_openframeworks.OF_TARGET_LINUXARMV7L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV7L = _openframeworks.OF_TARGET_LINUXARMV7L + +_openframeworks.OF_TARGET_EMSCRIPTEN_swigconstant(_openframeworks) +OF_TARGET_EMSCRIPTEN = _openframeworks.OF_TARGET_EMSCRIPTEN + +_openframeworks.B14400_swigconstant(_openframeworks) B14400 = _openframeworks.B14400 + +_openframeworks.B28800_swigconstant(_openframeworks) B28800 = _openframeworks.B28800 + +_openframeworks.HAS_TLS_swigconstant(_openframeworks) +HAS_TLS = _openframeworks.HAS_TLS + +_openframeworks.OF_SERIAL_NO_DATA_swigconstant(_openframeworks) OF_SERIAL_NO_DATA = _openframeworks.OF_SERIAL_NO_DATA + +_openframeworks.OF_SERIAL_ERROR_swigconstant(_openframeworks) OF_SERIAL_ERROR = _openframeworks.OF_SERIAL_ERROR + +_openframeworks.PI_swigconstant(_openframeworks) PI = _openframeworks.PI + +_openframeworks.TWO_PI_swigconstant(_openframeworks) TWO_PI = _openframeworks.TWO_PI + +_openframeworks.M_TWO_PI_swigconstant(_openframeworks) M_TWO_PI = _openframeworks.M_TWO_PI + +_openframeworks.FOUR_PI_swigconstant(_openframeworks) FOUR_PI = _openframeworks.FOUR_PI + +_openframeworks.HALF_PI_swigconstant(_openframeworks) HALF_PI = _openframeworks.HALF_PI + +_openframeworks.DEG_TO_RAD_swigconstant(_openframeworks) DEG_TO_RAD = _openframeworks.DEG_TO_RAD + +_openframeworks.RAD_TO_DEG_swigconstant(_openframeworks) RAD_TO_DEG = _openframeworks.RAD_TO_DEG + +_openframeworks.OF_OUTLINE_swigconstant(_openframeworks) OF_OUTLINE = _openframeworks.OF_OUTLINE + +_openframeworks.OF_FILLED_swigconstant(_openframeworks) OF_FILLED = _openframeworks.OF_FILLED + +_openframeworks.OF_WINDOW_swigconstant(_openframeworks) OF_WINDOW = _openframeworks.OF_WINDOW + +_openframeworks.OF_FULLSCREEN_swigconstant(_openframeworks) OF_FULLSCREEN = _openframeworks.OF_FULLSCREEN + +_openframeworks.OF_GAME_MODE_swigconstant(_openframeworks) OF_GAME_MODE = _openframeworks.OF_GAME_MODE + +_openframeworks.OF_ASPECT_RATIO_IGNORE_swigconstant(_openframeworks) OF_ASPECT_RATIO_IGNORE = _openframeworks.OF_ASPECT_RATIO_IGNORE + +_openframeworks.OF_ASPECT_RATIO_KEEP_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP = _openframeworks.OF_ASPECT_RATIO_KEEP + +_openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP_BY_EXPANDING = _openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING + +_openframeworks.OF_ALIGN_VERT_IGNORE_swigconstant(_openframeworks) OF_ALIGN_VERT_IGNORE = _openframeworks.OF_ALIGN_VERT_IGNORE + +_openframeworks.OF_ALIGN_VERT_TOP_swigconstant(_openframeworks) OF_ALIGN_VERT_TOP = _openframeworks.OF_ALIGN_VERT_TOP + +_openframeworks.OF_ALIGN_VERT_BOTTOM_swigconstant(_openframeworks) OF_ALIGN_VERT_BOTTOM = _openframeworks.OF_ALIGN_VERT_BOTTOM + +_openframeworks.OF_ALIGN_VERT_CENTER_swigconstant(_openframeworks) OF_ALIGN_VERT_CENTER = _openframeworks.OF_ALIGN_VERT_CENTER + +_openframeworks.OF_ALIGN_HORZ_IGNORE_swigconstant(_openframeworks) OF_ALIGN_HORZ_IGNORE = _openframeworks.OF_ALIGN_HORZ_IGNORE + +_openframeworks.OF_ALIGN_HORZ_LEFT_swigconstant(_openframeworks) OF_ALIGN_HORZ_LEFT = _openframeworks.OF_ALIGN_HORZ_LEFT + +_openframeworks.OF_ALIGN_HORZ_RIGHT_swigconstant(_openframeworks) OF_ALIGN_HORZ_RIGHT = _openframeworks.OF_ALIGN_HORZ_RIGHT + +_openframeworks.OF_ALIGN_HORZ_CENTER_swigconstant(_openframeworks) OF_ALIGN_HORZ_CENTER = _openframeworks.OF_ALIGN_HORZ_CENTER + +_openframeworks.OF_RECTMODE_CORNER_swigconstant(_openframeworks) OF_RECTMODE_CORNER = _openframeworks.OF_RECTMODE_CORNER + +_openframeworks.OF_RECTMODE_CENTER_swigconstant(_openframeworks) OF_RECTMODE_CENTER = _openframeworks.OF_RECTMODE_CENTER + +_openframeworks.OF_SCALEMODE_FIT_swigconstant(_openframeworks) OF_SCALEMODE_FIT = _openframeworks.OF_SCALEMODE_FIT + +_openframeworks.OF_SCALEMODE_FILL_swigconstant(_openframeworks) OF_SCALEMODE_FILL = _openframeworks.OF_SCALEMODE_FILL + +_openframeworks.OF_SCALEMODE_CENTER_swigconstant(_openframeworks) OF_SCALEMODE_CENTER = _openframeworks.OF_SCALEMODE_CENTER + +_openframeworks.OF_SCALEMODE_STRETCH_TO_FILL_swigconstant(_openframeworks) OF_SCALEMODE_STRETCH_TO_FILL = _openframeworks.OF_SCALEMODE_STRETCH_TO_FILL + +_openframeworks.OF_IMAGE_GRAYSCALE_swigconstant(_openframeworks) OF_IMAGE_GRAYSCALE = _openframeworks.OF_IMAGE_GRAYSCALE + +_openframeworks.OF_IMAGE_COLOR_swigconstant(_openframeworks) OF_IMAGE_COLOR = _openframeworks.OF_IMAGE_COLOR + +_openframeworks.OF_IMAGE_COLOR_ALPHA_swigconstant(_openframeworks) OF_IMAGE_COLOR_ALPHA = _openframeworks.OF_IMAGE_COLOR_ALPHA + +_openframeworks.OF_IMAGE_UNDEFINED_swigconstant(_openframeworks) OF_IMAGE_UNDEFINED = _openframeworks.OF_IMAGE_UNDEFINED -OF_PIXELS_MONO = _openframeworks.OF_PIXELS_MONO -OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB -OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA -OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA -OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 -OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_MAX_STYLE_HISTORY_swigconstant(_openframeworks) OF_MAX_STYLE_HISTORY = _openframeworks.OF_MAX_STYLE_HISTORY + +_openframeworks.OF_MAX_VIEWPORT_HISTORY_swigconstant(_openframeworks) OF_MAX_VIEWPORT_HISTORY = _openframeworks.OF_MAX_VIEWPORT_HISTORY + +_openframeworks.OF_MAX_CIRCLE_PTS_swigconstant(_openframeworks) OF_MAX_CIRCLE_PTS = _openframeworks.OF_MAX_CIRCLE_PTS + +_openframeworks.OF_BLENDMODE_DISABLED_swigconstant(_openframeworks) OF_BLENDMODE_DISABLED = _openframeworks.OF_BLENDMODE_DISABLED + +_openframeworks.OF_BLENDMODE_ALPHA_swigconstant(_openframeworks) OF_BLENDMODE_ALPHA = _openframeworks.OF_BLENDMODE_ALPHA + +_openframeworks.OF_BLENDMODE_ADD_swigconstant(_openframeworks) OF_BLENDMODE_ADD = _openframeworks.OF_BLENDMODE_ADD + +_openframeworks.OF_BLENDMODE_SUBTRACT_swigconstant(_openframeworks) OF_BLENDMODE_SUBTRACT = _openframeworks.OF_BLENDMODE_SUBTRACT + +_openframeworks.OF_BLENDMODE_MULTIPLY_swigconstant(_openframeworks) OF_BLENDMODE_MULTIPLY = _openframeworks.OF_BLENDMODE_MULTIPLY + +_openframeworks.OF_BLENDMODE_SCREEN_swigconstant(_openframeworks) OF_BLENDMODE_SCREEN = _openframeworks.OF_BLENDMODE_SCREEN + +_openframeworks.OF_ORIENTATION_DEFAULT_swigconstant(_openframeworks) OF_ORIENTATION_DEFAULT = _openframeworks.OF_ORIENTATION_DEFAULT + +_openframeworks.OF_ORIENTATION_180_swigconstant(_openframeworks) OF_ORIENTATION_180 = _openframeworks.OF_ORIENTATION_180 + +_openframeworks.OF_ORIENTATION_90_LEFT_swigconstant(_openframeworks) OF_ORIENTATION_90_LEFT = _openframeworks.OF_ORIENTATION_90_LEFT + +_openframeworks.OF_ORIENTATION_90_RIGHT_swigconstant(_openframeworks) OF_ORIENTATION_90_RIGHT = _openframeworks.OF_ORIENTATION_90_RIGHT + +_openframeworks.OF_ORIENTATION_UNKNOWN_swigconstant(_openframeworks) OF_ORIENTATION_UNKNOWN = _openframeworks.OF_ORIENTATION_UNKNOWN + +_openframeworks.OF_GRADIENT_LINEAR_swigconstant(_openframeworks) OF_GRADIENT_LINEAR = _openframeworks.OF_GRADIENT_LINEAR + +_openframeworks.OF_GRADIENT_CIRCULAR_swigconstant(_openframeworks) OF_GRADIENT_CIRCULAR = _openframeworks.OF_GRADIENT_CIRCULAR + +_openframeworks.OF_GRADIENT_BAR_swigconstant(_openframeworks) OF_GRADIENT_BAR = _openframeworks.OF_GRADIENT_BAR + +_openframeworks.OF_POLY_WINDING_ODD_swigconstant(_openframeworks) OF_POLY_WINDING_ODD = _openframeworks.OF_POLY_WINDING_ODD + +_openframeworks.OF_POLY_WINDING_NONZERO_swigconstant(_openframeworks) OF_POLY_WINDING_NONZERO = _openframeworks.OF_POLY_WINDING_NONZERO + +_openframeworks.OF_POLY_WINDING_POSITIVE_swigconstant(_openframeworks) OF_POLY_WINDING_POSITIVE = _openframeworks.OF_POLY_WINDING_POSITIVE + +_openframeworks.OF_POLY_WINDING_NEGATIVE_swigconstant(_openframeworks) OF_POLY_WINDING_NEGATIVE = _openframeworks.OF_POLY_WINDING_NEGATIVE + +_openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant(_openframeworks) OF_POLY_WINDING_ABS_GEQ_TWO = _openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO + +_openframeworks.OF_CLOSE_swigconstant(_openframeworks) OF_CLOSE = _openframeworks.OF_CLOSE + +_openframeworks.OF_LEFT_HANDED_swigconstant(_openframeworks) OF_LEFT_HANDED = _openframeworks.OF_LEFT_HANDED + +_openframeworks.OF_RIGHT_HANDED_swigconstant(_openframeworks) OF_RIGHT_HANDED = _openframeworks.OF_RIGHT_HANDED + +_openframeworks.OF_MATRIX_MODELVIEW_swigconstant(_openframeworks) OF_MATRIX_MODELVIEW = _openframeworks.OF_MATRIX_MODELVIEW + +_openframeworks.OF_MATRIX_PROJECTION_swigconstant(_openframeworks) OF_MATRIX_PROJECTION = _openframeworks.OF_MATRIX_PROJECTION + +_openframeworks.OF_MATRIX_TEXTURE_swigconstant(_openframeworks) OF_MATRIX_TEXTURE = _openframeworks.OF_MATRIX_TEXTURE + +_openframeworks.OF_KEY_MODIFIER_swigconstant(_openframeworks) OF_KEY_MODIFIER = _openframeworks.OF_KEY_MODIFIER + +_openframeworks.OF_KEY_RETURN_swigconstant(_openframeworks) OF_KEY_RETURN = _openframeworks.OF_KEY_RETURN + +_openframeworks.OF_KEY_ESC_swigconstant(_openframeworks) OF_KEY_ESC = _openframeworks.OF_KEY_ESC + +_openframeworks.OF_KEY_TAB_swigconstant(_openframeworks) OF_KEY_TAB = _openframeworks.OF_KEY_TAB + +_openframeworks.OF_KEY_BACKSPACE_swigconstant(_openframeworks) OF_KEY_BACKSPACE = _openframeworks.OF_KEY_BACKSPACE + +_openframeworks.OF_KEY_DEL_swigconstant(_openframeworks) OF_KEY_DEL = _openframeworks.OF_KEY_DEL + +_openframeworks.OF_KEY_F1_swigconstant(_openframeworks) OF_KEY_F1 = _openframeworks.OF_KEY_F1 + +_openframeworks.OF_KEY_F2_swigconstant(_openframeworks) OF_KEY_F2 = _openframeworks.OF_KEY_F2 + +_openframeworks.OF_KEY_F3_swigconstant(_openframeworks) OF_KEY_F3 = _openframeworks.OF_KEY_F3 + +_openframeworks.OF_KEY_F4_swigconstant(_openframeworks) OF_KEY_F4 = _openframeworks.OF_KEY_F4 + +_openframeworks.OF_KEY_F5_swigconstant(_openframeworks) OF_KEY_F5 = _openframeworks.OF_KEY_F5 + +_openframeworks.OF_KEY_F6_swigconstant(_openframeworks) OF_KEY_F6 = _openframeworks.OF_KEY_F6 + +_openframeworks.OF_KEY_F7_swigconstant(_openframeworks) OF_KEY_F7 = _openframeworks.OF_KEY_F7 + +_openframeworks.OF_KEY_F8_swigconstant(_openframeworks) OF_KEY_F8 = _openframeworks.OF_KEY_F8 + +_openframeworks.OF_KEY_F9_swigconstant(_openframeworks) OF_KEY_F9 = _openframeworks.OF_KEY_F9 + +_openframeworks.OF_KEY_F10_swigconstant(_openframeworks) OF_KEY_F10 = _openframeworks.OF_KEY_F10 + +_openframeworks.OF_KEY_F11_swigconstant(_openframeworks) OF_KEY_F11 = _openframeworks.OF_KEY_F11 + +_openframeworks.OF_KEY_F12_swigconstant(_openframeworks) OF_KEY_F12 = _openframeworks.OF_KEY_F12 + +_openframeworks.OF_KEY_LEFT_swigconstant(_openframeworks) OF_KEY_LEFT = _openframeworks.OF_KEY_LEFT + +_openframeworks.OF_KEY_UP_swigconstant(_openframeworks) OF_KEY_UP = _openframeworks.OF_KEY_UP + +_openframeworks.OF_KEY_RIGHT_swigconstant(_openframeworks) OF_KEY_RIGHT = _openframeworks.OF_KEY_RIGHT + +_openframeworks.OF_KEY_DOWN_swigconstant(_openframeworks) OF_KEY_DOWN = _openframeworks.OF_KEY_DOWN + +_openframeworks.OF_KEY_PAGE_UP_swigconstant(_openframeworks) OF_KEY_PAGE_UP = _openframeworks.OF_KEY_PAGE_UP + +_openframeworks.OF_KEY_PAGE_DOWN_swigconstant(_openframeworks) OF_KEY_PAGE_DOWN = _openframeworks.OF_KEY_PAGE_DOWN + +_openframeworks.OF_KEY_HOME_swigconstant(_openframeworks) OF_KEY_HOME = _openframeworks.OF_KEY_HOME + +_openframeworks.OF_KEY_END_swigconstant(_openframeworks) OF_KEY_END = _openframeworks.OF_KEY_END + +_openframeworks.OF_KEY_INSERT_swigconstant(_openframeworks) OF_KEY_INSERT = _openframeworks.OF_KEY_INSERT + +_openframeworks.OF_KEY_CONTROL_swigconstant(_openframeworks) OF_KEY_CONTROL = _openframeworks.OF_KEY_CONTROL + +_openframeworks.OF_KEY_ALT_swigconstant(_openframeworks) OF_KEY_ALT = _openframeworks.OF_KEY_ALT + +_openframeworks.OF_KEY_SHIFT_swigconstant(_openframeworks) OF_KEY_SHIFT = _openframeworks.OF_KEY_SHIFT + +_openframeworks.OF_KEY_SUPER_swigconstant(_openframeworks) OF_KEY_SUPER = _openframeworks.OF_KEY_SUPER + +_openframeworks.OF_KEY_LEFT_SHIFT_swigconstant(_openframeworks) OF_KEY_LEFT_SHIFT = _openframeworks.OF_KEY_LEFT_SHIFT + +_openframeworks.OF_KEY_RIGHT_SHIFT_swigconstant(_openframeworks) OF_KEY_RIGHT_SHIFT = _openframeworks.OF_KEY_RIGHT_SHIFT + +_openframeworks.OF_KEY_LEFT_CONTROL_swigconstant(_openframeworks) OF_KEY_LEFT_CONTROL = _openframeworks.OF_KEY_LEFT_CONTROL + +_openframeworks.OF_KEY_RIGHT_CONTROL_swigconstant(_openframeworks) OF_KEY_RIGHT_CONTROL = _openframeworks.OF_KEY_RIGHT_CONTROL + +_openframeworks.OF_KEY_LEFT_ALT_swigconstant(_openframeworks) OF_KEY_LEFT_ALT = _openframeworks.OF_KEY_LEFT_ALT + +_openframeworks.OF_KEY_RIGHT_ALT_swigconstant(_openframeworks) OF_KEY_RIGHT_ALT = _openframeworks.OF_KEY_RIGHT_ALT + +_openframeworks.OF_KEY_LEFT_SUPER_swigconstant(_openframeworks) OF_KEY_LEFT_SUPER = _openframeworks.OF_KEY_LEFT_SUPER + +_openframeworks.OF_KEY_RIGHT_SUPER_swigconstant(_openframeworks) OF_KEY_RIGHT_SUPER = _openframeworks.OF_KEY_RIGHT_SUPER + +_openframeworks.OF_KEY_LEFT_COMMAND_swigconstant(_openframeworks) OF_KEY_LEFT_COMMAND = _openframeworks.OF_KEY_LEFT_COMMAND + +_openframeworks.OF_KEY_RIGHT_COMMAND_swigconstant(_openframeworks) OF_KEY_RIGHT_COMMAND = _openframeworks.OF_KEY_RIGHT_COMMAND + +_openframeworks.OF_MOUSE_BUTTON_1_swigconstant(_openframeworks) OF_MOUSE_BUTTON_1 = _openframeworks.OF_MOUSE_BUTTON_1 + +_openframeworks.OF_MOUSE_BUTTON_2_swigconstant(_openframeworks) OF_MOUSE_BUTTON_2 = _openframeworks.OF_MOUSE_BUTTON_2 + +_openframeworks.OF_MOUSE_BUTTON_3_swigconstant(_openframeworks) OF_MOUSE_BUTTON_3 = _openframeworks.OF_MOUSE_BUTTON_3 + +_openframeworks.OF_MOUSE_BUTTON_4_swigconstant(_openframeworks) OF_MOUSE_BUTTON_4 = _openframeworks.OF_MOUSE_BUTTON_4 + +_openframeworks.OF_MOUSE_BUTTON_5_swigconstant(_openframeworks) OF_MOUSE_BUTTON_5 = _openframeworks.OF_MOUSE_BUTTON_5 + +_openframeworks.OF_MOUSE_BUTTON_6_swigconstant(_openframeworks) OF_MOUSE_BUTTON_6 = _openframeworks.OF_MOUSE_BUTTON_6 + +_openframeworks.OF_MOUSE_BUTTON_7_swigconstant(_openframeworks) OF_MOUSE_BUTTON_7 = _openframeworks.OF_MOUSE_BUTTON_7 + +_openframeworks.OF_MOUSE_BUTTON_8_swigconstant(_openframeworks) OF_MOUSE_BUTTON_8 = _openframeworks.OF_MOUSE_BUTTON_8 + +_openframeworks.OF_MOUSE_BUTTON_LAST_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LAST = _openframeworks.OF_MOUSE_BUTTON_LAST + +_openframeworks.OF_MOUSE_BUTTON_LEFT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LEFT = _openframeworks.OF_MOUSE_BUTTON_LEFT + +_openframeworks.OF_MOUSE_BUTTON_MIDDLE_swigconstant(_openframeworks) OF_MOUSE_BUTTON_MIDDLE = _openframeworks.OF_MOUSE_BUTTON_MIDDLE + +_openframeworks.OF_MOUSE_BUTTON_RIGHT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_RIGHT = _openframeworks.OF_MOUSE_BUTTON_RIGHT + +_openframeworks.OF_CONSOLE_COLOR_RESTORE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RESTORE = _openframeworks.OF_CONSOLE_COLOR_RESTORE + +_openframeworks.OF_CONSOLE_COLOR_BLACK_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLACK = _openframeworks.OF_CONSOLE_COLOR_BLACK + +_openframeworks.OF_CONSOLE_COLOR_RED_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RED = _openframeworks.OF_CONSOLE_COLOR_RED + +_openframeworks.OF_CONSOLE_COLOR_GREEN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_GREEN = _openframeworks.OF_CONSOLE_COLOR_GREEN + +_openframeworks.OF_CONSOLE_COLOR_YELLOW_swigconstant(_openframeworks) OF_CONSOLE_COLOR_YELLOW = _openframeworks.OF_CONSOLE_COLOR_YELLOW + +_openframeworks.OF_CONSOLE_COLOR_BLUE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLUE = _openframeworks.OF_CONSOLE_COLOR_BLUE + +_openframeworks.OF_CONSOLE_COLOR_PURPLE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_PURPLE = _openframeworks.OF_CONSOLE_COLOR_PURPLE + +_openframeworks.OF_CONSOLE_COLOR_CYAN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_CYAN = _openframeworks.OF_CONSOLE_COLOR_CYAN + +_openframeworks.OF_CONSOLE_COLOR_WHITE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_WHITE = _openframeworks.OF_CONSOLE_COLOR_WHITE + +_openframeworks.OF_PIXELS_GRAY_swigconstant(_openframeworks) +OF_PIXELS_GRAY = _openframeworks.OF_PIXELS_GRAY + +_openframeworks.OF_PIXELS_GRAY_ALPHA_swigconstant(_openframeworks) +OF_PIXELS_GRAY_ALPHA = _openframeworks.OF_PIXELS_GRAY_ALPHA + +_openframeworks.OF_PIXELS_RGB_swigconstant(_openframeworks) +OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB + +_openframeworks.OF_PIXELS_BGR_swigconstant(_openframeworks) +OF_PIXELS_BGR = _openframeworks.OF_PIXELS_BGR + +_openframeworks.OF_PIXELS_RGBA_swigconstant(_openframeworks) +OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA + +_openframeworks.OF_PIXELS_BGRA_swigconstant(_openframeworks) +OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA + +_openframeworks.OF_PIXELS_RGB565_swigconstant(_openframeworks) +OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 + +_openframeworks.OF_PIXELS_NV12_swigconstant(_openframeworks) +OF_PIXELS_NV12 = _openframeworks.OF_PIXELS_NV12 + +_openframeworks.OF_PIXELS_NV21_swigconstant(_openframeworks) +OF_PIXELS_NV21 = _openframeworks.OF_PIXELS_NV21 + +_openframeworks.OF_PIXELS_YV12_swigconstant(_openframeworks) +OF_PIXELS_YV12 = _openframeworks.OF_PIXELS_YV12 + +_openframeworks.OF_PIXELS_I420_swigconstant(_openframeworks) +OF_PIXELS_I420 = _openframeworks.OF_PIXELS_I420 + +_openframeworks.OF_PIXELS_YUY2_swigconstant(_openframeworks) +OF_PIXELS_YUY2 = _openframeworks.OF_PIXELS_YUY2 + +_openframeworks.OF_PIXELS_UYVY_swigconstant(_openframeworks) +OF_PIXELS_UYVY = _openframeworks.OF_PIXELS_UYVY + +_openframeworks.OF_PIXELS_Y_swigconstant(_openframeworks) +OF_PIXELS_Y = _openframeworks.OF_PIXELS_Y + +_openframeworks.OF_PIXELS_U_swigconstant(_openframeworks) +OF_PIXELS_U = _openframeworks.OF_PIXELS_U + +_openframeworks.OF_PIXELS_V_swigconstant(_openframeworks) +OF_PIXELS_V = _openframeworks.OF_PIXELS_V + +_openframeworks.OF_PIXELS_UV_swigconstant(_openframeworks) +OF_PIXELS_UV = _openframeworks.OF_PIXELS_UV + +_openframeworks.OF_PIXELS_VU_swigconstant(_openframeworks) +OF_PIXELS_VU = _openframeworks.OF_PIXELS_VU + +_openframeworks.OF_PIXELS_NUM_FORMATS_swigconstant(_openframeworks) +OF_PIXELS_NUM_FORMATS = _openframeworks.OF_PIXELS_NUM_FORMATS + +_openframeworks.OF_PIXELS_UNKNOWN_swigconstant(_openframeworks) +OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_PIXELS_NATIVE_swigconstant(_openframeworks) +OF_PIXELS_NATIVE = _openframeworks.OF_PIXELS_NATIVE + +_openframeworks.OF_BITMAPMODE_SIMPLE_swigconstant(_openframeworks) OF_BITMAPMODE_SIMPLE = _openframeworks.OF_BITMAPMODE_SIMPLE + +_openframeworks.OF_BITMAPMODE_SCREEN_swigconstant(_openframeworks) OF_BITMAPMODE_SCREEN = _openframeworks.OF_BITMAPMODE_SCREEN + +_openframeworks.OF_BITMAPMODE_VIEWPORT_swigconstant(_openframeworks) OF_BITMAPMODE_VIEWPORT = _openframeworks.OF_BITMAPMODE_VIEWPORT + +_openframeworks.OF_BITMAPMODE_MODEL_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL = _openframeworks.OF_BITMAPMODE_MODEL + +_openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL_BILLBOARD = _openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD + +_openframeworks.OF_ENCODING_UTF8_swigconstant(_openframeworks) OF_ENCODING_UTF8 = _openframeworks.OF_ENCODING_UTF8 + +_openframeworks.OF_ENCODING_ISO_8859_15_swigconstant(_openframeworks) OF_ENCODING_ISO_8859_15 = _openframeworks.OF_ENCODING_ISO_8859_15 class ofFbo(_object): __swig_setmethods__ = {} @@ -398,95 +1018,192 @@ class ofFbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFbo - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFbo_allocate(self, *args) - def isAllocated(self): return _openframeworks.ofFbo_isAllocated(self) - def draw(self, *args): return _openframeworks.ofFbo_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofFbo_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFbo_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFbo_resetAnchor(self) - def setDefaultTextureIndex(self, *args): return _openframeworks.ofFbo_setDefaultTextureIndex(self, *args) - def getDefaultTextureIndex(self): return _openframeworks.ofFbo_getDefaultTextureIndex(self) - def getTextureReference(self, *args): return _openframeworks.ofFbo_getTextureReference(self, *args) - def getDepthTexture(self): return _openframeworks.ofFbo_getDepthTexture(self) - def setUseTexture(self, *args): return _openframeworks.ofFbo_setUseTexture(self, *args) - def begin(self, setupScreen=True): return _openframeworks.ofFbo_begin(self, setupScreen) - def end(self): return _openframeworks.ofFbo_end(self) - def readToPixels(self, *args): return _openframeworks.ofFbo_readToPixels(self, *args) - def getWidth(self): return _openframeworks.ofFbo_getWidth(self) - def getHeight(self): return _openframeworks.ofFbo_getHeight(self) - def bind(self): return _openframeworks.ofFbo_bind(self) - def unbind(self): return _openframeworks.ofFbo_unbind(self) - def checkStatus(self): return _openframeworks.ofFbo_checkStatus(self) - def createAndAttachTexture(self, *args): return _openframeworks.ofFbo_createAndAttachTexture(self, *args) - def attachTexture(self, *args): return _openframeworks.ofFbo_attachTexture(self, *args) - def createAndAttachRenderbuffer(self, *args): return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, *args) - def createAndAttachDepthStencilTexture(self, *args): return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) - def getNumTextures(self): return _openframeworks.ofFbo_getNumTextures(self) - def setActiveDrawBuffer(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffer(self, *args) - def setActiveDrawBuffers(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffers(self, *args) - def activateAllDrawBuffers(self): return _openframeworks.ofFbo_activateAllDrawBuffers(self) - def getFbo(self): return _openframeworks.ofFbo_getFbo(self) + __del__ = lambda self: None + + def allocate(self, *args): + return _openframeworks.ofFbo_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFbo_isAllocated(self) + + def destroy(self): + return _openframeworks.ofFbo_destroy(self) + + def clear(self): + return _openframeworks.ofFbo_clear(self) + + def draw(self, *args): + return _openframeworks.ofFbo_draw(self, *args) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFbo_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFbo_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFbo_resetAnchor(self) + + def setDefaultTextureIndex(self, defaultTexture): + return _openframeworks.ofFbo_setDefaultTextureIndex(self, defaultTexture) + + def getDefaultTextureIndex(self): + return _openframeworks.ofFbo_getDefaultTextureIndex(self) + + def getTextureReference(self, *args): + return _openframeworks.ofFbo_getTextureReference(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofFbo_getTexture(self, *args) + + def getDepthTexture(self, *args): + return _openframeworks.ofFbo_getDepthTexture(self, *args) + + def setUseTexture(self, arg2): + return _openframeworks.ofFbo_setUseTexture(self, arg2) + + def isUsingTexture(self): + return _openframeworks.ofFbo_isUsingTexture(self) + + def begin(self, setupScreen=True): + return _openframeworks.ofFbo_begin(self, setupScreen) + + def end(self): + return _openframeworks.ofFbo_end(self) + + def readToPixels(self, *args): + return _openframeworks.ofFbo_readToPixels(self, *args) + + def getWidth(self): + return _openframeworks.ofFbo_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFbo_getHeight(self) + + def bind(self): + return _openframeworks.ofFbo_bind(self) + + def unbind(self): + return _openframeworks.ofFbo_unbind(self) + + def flagDirty(self): + return _openframeworks.ofFbo_flagDirty(self) + + def updateTexture(self, attachmentPoint): + return _openframeworks.ofFbo_updateTexture(self, attachmentPoint) + + def checkStatus(self): + return _openframeworks.ofFbo_checkStatus(self) + + def createAndAttachTexture(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachTexture(self, internalFormat, attachmentPoint) + + def attachTexture(self, texture, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_attachTexture(self, texture, internalFormat, attachmentPoint) + + def createAndAttachRenderbuffer(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, internalFormat, attachmentPoint) + + def createAndAttachDepthStencilTexture(self, *args): + return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) + + def getNumTextures(self): + return _openframeworks.ofFbo_getNumTextures(self) + + def setActiveDrawBuffer(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffer(self, i) + + def setActiveDrawBuffers(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffers(self, i) + + def activateAllDrawBuffers(self): + return _openframeworks.ofFbo_activateAllDrawBuffers(self) + + def getFbo(self): + return _openframeworks.ofFbo_getFbo(self) + + def getId(self): + return _openframeworks.ofFbo_getId(self) + + def getIdDrawBuffer(self): + return _openframeworks.ofFbo_getIdDrawBuffer(self) __swig_getmethods__["checkGLSupport"] = lambda x: _openframeworks.ofFbo_checkGLSupport - if _newclass:checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) + if _newclass: + checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) __swig_getmethods__["maxColorAttachments"] = lambda x: _openframeworks.ofFbo_maxColorAttachments - if _newclass:maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) + if _newclass: + maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) __swig_getmethods__["maxDrawBuffers"] = lambda x: _openframeworks.ofFbo_maxDrawBuffers - if _newclass:maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) + if _newclass: + maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) __swig_getmethods__["maxSamples"] = lambda x: _openframeworks.ofFbo_maxSamples - if _newclass:maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) - def getDepthBuffer(self): return _openframeworks.ofFbo_getDepthBuffer(self) - def getStencilBuffer(self): return _openframeworks.ofFbo_getStencilBuffer(self) + if _newclass: + maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) + + def getDepthBuffer(self): + return _openframeworks.ofFbo_getDepthBuffer(self) + + def getStencilBuffer(self): + return _openframeworks.ofFbo_getStencilBuffer(self) ofFbo_swigregister = _openframeworks.ofFbo_swigregister ofFbo_swigregister(ofFbo) def ofFbo_checkGLSupport(): - return _openframeworks.ofFbo_checkGLSupport() + return _openframeworks.ofFbo_checkGLSupport() ofFbo_checkGLSupport = _openframeworks.ofFbo_checkGLSupport def ofFbo_maxColorAttachments(): - return _openframeworks.ofFbo_maxColorAttachments() + return _openframeworks.ofFbo_maxColorAttachments() ofFbo_maxColorAttachments = _openframeworks.ofFbo_maxColorAttachments def ofFbo_maxDrawBuffers(): - return _openframeworks.ofFbo_maxDrawBuffers() + return _openframeworks.ofFbo_maxDrawBuffers() ofFbo_maxDrawBuffers = _openframeworks.ofFbo_maxDrawBuffers def ofFbo_maxSamples(): - return _openframeworks.ofFbo_maxSamples() + return _openframeworks.ofFbo_maxSamples() ofFbo_maxSamples = _openframeworks.ofFbo_maxSamples def ofGetUsingArbTex(): - return _openframeworks.ofGetUsingArbTex() + return _openframeworks.ofGetUsingArbTex() ofGetUsingArbTex = _openframeworks.ofGetUsingArbTex def ofEnableArbTex(): - return _openframeworks.ofEnableArbTex() + return _openframeworks.ofEnableArbTex() ofEnableArbTex = _openframeworks.ofEnableArbTex def ofDisableArbTex(): - return _openframeworks.ofDisableArbTex() + return _openframeworks.ofDisableArbTex() ofDisableArbTex = _openframeworks.ofDisableArbTex def ofGetUsingNormalizedTexCoords(): - return _openframeworks.ofGetUsingNormalizedTexCoords() + return _openframeworks.ofGetUsingNormalizedTexCoords() ofGetUsingNormalizedTexCoords = _openframeworks.ofGetUsingNormalizedTexCoords def ofEnableNormalizedTexCoords(): - return _openframeworks.ofEnableNormalizedTexCoords() + return _openframeworks.ofEnableNormalizedTexCoords() ofEnableNormalizedTexCoords = _openframeworks.ofEnableNormalizedTexCoords def ofDisableNormalizedTexCoords(): - return _openframeworks.ofDisableNormalizedTexCoords() + return _openframeworks.ofDisableNormalizedTexCoords() ofDisableNormalizedTexCoords = _openframeworks.ofDisableNormalizedTexCoords + +_openframeworks.OF_COMPRESS_NONE_swigconstant(_openframeworks) OF_COMPRESS_NONE = _openframeworks.OF_COMPRESS_NONE + +_openframeworks.OF_COMPRESS_SRGB_swigconstant(_openframeworks) OF_COMPRESS_SRGB = _openframeworks.OF_COMPRESS_SRGB + +_openframeworks.OF_COMPRESS_ARB_swigconstant(_openframeworks) OF_COMPRESS_ARB = _openframeworks.OF_COMPRESS_ARB class ofTextureData(_object): __swig_setmethods__ = {} @@ -494,71 +1211,97 @@ class ofTextureData(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTextureData, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTextureData() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["textureID"] = _openframeworks.ofTextureData_textureID_set __swig_getmethods__["textureID"] = _openframeworks.ofTextureData_textureID_get - if _newclass:textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) + if _newclass: + textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) __swig_setmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_set __swig_getmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_get - if _newclass:textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) - __swig_setmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_set - __swig_getmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_get - if _newclass:glTypeInternal = _swig_property(_openframeworks.ofTextureData_glTypeInternal_get, _openframeworks.ofTextureData_glTypeInternal_set) + if _newclass: + textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) + __swig_setmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_set + __swig_getmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_get + if _newclass: + glInternalFormat = _swig_property(_openframeworks.ofTextureData_glInternalFormat_get, _openframeworks.ofTextureData_glInternalFormat_set) __swig_setmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_set __swig_getmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_get - if _newclass:tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) + if _newclass: + tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) __swig_setmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_set __swig_getmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_get - if _newclass:tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) + if _newclass: + tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) __swig_setmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_set __swig_getmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_get - if _newclass:tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) + if _newclass: + tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) __swig_setmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_set __swig_getmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_get - if _newclass:tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) + if _newclass: + tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) __swig_setmethods__["width"] = _openframeworks.ofTextureData_width_set __swig_getmethods__["width"] = _openframeworks.ofTextureData_width_get - if _newclass:width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) __swig_setmethods__["height"] = _openframeworks.ofTextureData_height_set __swig_getmethods__["height"] = _openframeworks.ofTextureData_height_get - if _newclass:height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) __swig_setmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_set __swig_getmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_get - if _newclass:bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) + if _newclass: + bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) __swig_setmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_set __swig_getmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_get - if _newclass:compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) + if _newclass: + compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) __swig_setmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_set __swig_getmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_get - if _newclass:bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) - __swig_setmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_set - __swig_getmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_get - if _newclass:bUseExternalTextureID = _swig_property(_openframeworks.ofTextureData_bUseExternalTextureID_get, _openframeworks.ofTextureData_bUseExternalTextureID_set) - __swig_setmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_set - __swig_getmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_get - if _newclass:textureMatrix = _swig_property(_openframeworks.ofTextureData_textureMatrix_get, _openframeworks.ofTextureData_textureMatrix_set) - __swig_setmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_set - __swig_getmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_get - if _newclass:useTextureMatrix = _swig_property(_openframeworks.ofTextureData_useTextureMatrix_get, _openframeworks.ofTextureData_useTextureMatrix_set) + if _newclass: + bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) + __swig_setmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_set + __swig_getmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_get + if _newclass: + minFilter = _swig_property(_openframeworks.ofTextureData_minFilter_get, _openframeworks.ofTextureData_minFilter_set) + __swig_setmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_set + __swig_getmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_get + if _newclass: + magFilter = _swig_property(_openframeworks.ofTextureData_magFilter_get, _openframeworks.ofTextureData_magFilter_set) + __swig_setmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_set + __swig_getmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_get + if _newclass: + wrapModeHorizontal = _swig_property(_openframeworks.ofTextureData_wrapModeHorizontal_get, _openframeworks.ofTextureData_wrapModeHorizontal_set) + __swig_setmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_set + __swig_getmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_get + if _newclass: + wrapModeVertical = _swig_property(_openframeworks.ofTextureData_wrapModeVertical_get, _openframeworks.ofTextureData_wrapModeVertical_set) + __swig_setmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_set + __swig_getmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_get + if _newclass: + bufferId = _swig_property(_openframeworks.ofTextureData_bufferId_get, _openframeworks.ofTextureData_bufferId_set) __swig_destroy__ = _openframeworks.delete_ofTextureData - __del__ = lambda self : None; + __del__ = lambda self: None ofTextureData_swigregister = _openframeworks.ofTextureData_swigregister ofTextureData_swigregister(ofTextureData) def ofEnableTextureEdgeHack(): - return _openframeworks.ofEnableTextureEdgeHack() + return _openframeworks.ofEnableTextureEdgeHack() ofEnableTextureEdgeHack = _openframeworks.ofEnableTextureEdgeHack def ofDisableTextureEdgeHack(): - return _openframeworks.ofDisableTextureEdgeHack() + return _openframeworks.ofDisableTextureEdgeHack() ofDisableTextureEdgeHack = _openframeworks.ofDisableTextureEdgeHack def ofIsTextureEdgeHackEnabled(): - return _openframeworks.ofIsTextureEdgeHackEnabled() + return _openframeworks.ofIsTextureEdgeHackEnabled() ofIsTextureEdgeHackEnabled = _openframeworks.ofIsTextureEdgeHackEnabled class ofTexture(_object): __swig_setmethods__ = {} @@ -566,82 +1309,264 @@ class ofTexture(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTexture, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofTexture(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofTexture_allocate(self, *args) + + def allocateAsBufferTexture(self, buffer, glInternalFormat): + return _openframeworks.ofTexture_allocateAsBufferTexture(self, buffer, glInternalFormat) + + def isAllocated(self): + return _openframeworks.ofTexture_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofTexture_bAllocated(self) __swig_destroy__ = _openframeworks.delete_ofTexture - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofTexture_allocate(self, *args) - def clear(self): return _openframeworks.ofTexture_clear(self) - def setUseExternalTextureID(self, *args): return _openframeworks.ofTexture_setUseExternalTextureID(self, *args) - def loadData(self, *args): return _openframeworks.ofTexture_loadData(self, *args) - def setRGToRGBASwizzles(self, *args): return _openframeworks.ofTexture_setRGToRGBASwizzles(self, *args) - def loadScreenData(self, *args): return _openframeworks.ofTexture_loadScreenData(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofTexture_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofTexture_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofTexture_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofTexture_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofTexture_drawSubsection(self, *args) - def readToPixels(self, *args): return _openframeworks.ofTexture_readToPixels(self, *args) - def bind(self): return _openframeworks.ofTexture_bind(self) - def unbind(self): return _openframeworks.ofTexture_unbind(self) - def getCoordFromPoint(self, *args): return _openframeworks.ofTexture_getCoordFromPoint(self, *args) - def getCoordFromPercent(self, *args): return _openframeworks.ofTexture_getCoordFromPercent(self, *args) - def setTextureWrap(self, *args): return _openframeworks.ofTexture_setTextureWrap(self, *args) - def setTextureMinMagFilter(self, *args): return _openframeworks.ofTexture_setTextureMinMagFilter(self, *args) - def setCompression(self, *args): return _openframeworks.ofTexture_setCompression(self, *args) - def bAllocated(self): return _openframeworks.ofTexture_bAllocated(self) - def isAllocated(self): return _openframeworks.ofTexture_isAllocated(self) - def getTextureData(self, *args): return _openframeworks.ofTexture_getTextureData(self, *args) + __del__ = lambda self: None + + def clear(self): + return _openframeworks.ofTexture_clear(self) + + def setUseExternalTextureID(self, externTexID): + return _openframeworks.ofTexture_setUseExternalTextureID(self, externTexID) + + def loadData(self, *args): + return _openframeworks.ofTexture_loadData(self, *args) + + def loadScreenData(self, x, y, w, h): + return _openframeworks.ofTexture_loadScreenData(self, x, y, w, h) + + def draw(self, *args): + return _openframeworks.ofTexture_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofTexture_drawSubsection(self, *args) + + def getQuad(self, p1, p2, p3, p4): + return _openframeworks.ofTexture_getQuad(self, p1, p2, p3, p4) + + def getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode): + return _openframeworks.ofTexture_getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode) + + def bind(self, textureLocation=0): + return _openframeworks.ofTexture_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofTexture_unbind(self, textureLocation) + + def getAlphaMask(self): + return _openframeworks.ofTexture_getAlphaMask(self) + + def getHeight(self): + return _openframeworks.ofTexture_getHeight(self) + + def getWidth(self): + return _openframeworks.ofTexture_getWidth(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofTexture_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofTexture_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofTexture_resetAnchor(self) + + def getCoordFromPoint(self, xPos, yPos): + return _openframeworks.ofTexture_getCoordFromPoint(self, xPos, yPos) + + def getCoordFromPercent(self, xPts, yPts): + return _openframeworks.ofTexture_getCoordFromPercent(self, xPts, yPts) + + def setAlphaMask(self, mask): + return _openframeworks.ofTexture_setAlphaMask(self, mask) + + def disableAlphaMask(self): + return _openframeworks.ofTexture_disableAlphaMask(self) + + def setTextureWrap(self, wrapModeHorizontal, wrapModeVertical): + return _openframeworks.ofTexture_setTextureWrap(self, wrapModeHorizontal, wrapModeVertical) + + def setTextureMinMagFilter(self, minFilter, magFilter): + return _openframeworks.ofTexture_setTextureMinMagFilter(self, minFilter, magFilter) + + def setTextureMatrix(self, m): + return _openframeworks.ofTexture_setTextureMatrix(self, m) + + def getTextureMatrix(self): + return _openframeworks.ofTexture_getTextureMatrix(self) + + def isUsingTextureMatrix(self): + return _openframeworks.ofTexture_isUsingTextureMatrix(self) + + def disableTextureMatrix(self): + return _openframeworks.ofTexture_disableTextureMatrix(self) + + def setCompression(self, compression): + return _openframeworks.ofTexture_setCompression(self, compression) + + def setRGToRGBASwizzles(self, rToRGBSwizzles): + return _openframeworks.ofTexture_setRGToRGBASwizzles(self, rToRGBSwizzles) + + def setSwizzle(self, srcSwizzle, dstChannel): + return _openframeworks.ofTexture_setSwizzle(self, srcSwizzle, dstChannel) + + def readToPixels(self, *args): + return _openframeworks.ofTexture_readToPixels(self, *args) + + def copyTo(self, buffer): + return _openframeworks.ofTexture_copyTo(self, buffer) + + def getTextureData(self, *args): + return _openframeworks.ofTexture_getTextureData(self, *args) + + def enableMipmap(self): + return _openframeworks.ofTexture_enableMipmap(self) + + def disableMipmap(self): + return _openframeworks.ofTexture_disableMipmap(self) + + def generateMipmap(self): + return _openframeworks.ofTexture_generateMipmap(self) + + def hasMipmap(self): + return _openframeworks.ofTexture_hasMipmap(self) __swig_setmethods__["texData"] = _openframeworks.ofTexture_texData_set __swig_getmethods__["texData"] = _openframeworks.ofTexture_texData_get - if _newclass:texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) - def getHeight(self): return _openframeworks.ofTexture_getHeight(self) - def getWidth(self): return _openframeworks.ofTexture_getWidth(self) + if _newclass: + texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) ofTexture_swigregister = _openframeworks.ofTexture_swigregister ofTexture_swigregister(ofTexture) + +_openframeworks.OF_IMAGE_QUALITY_BEST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_BEST = _openframeworks.OF_IMAGE_QUALITY_BEST + +_openframeworks.OF_IMAGE_QUALITY_HIGH_swigconstant(_openframeworks) OF_IMAGE_QUALITY_HIGH = _openframeworks.OF_IMAGE_QUALITY_HIGH + +_openframeworks.OF_IMAGE_QUALITY_MEDIUM_swigconstant(_openframeworks) OF_IMAGE_QUALITY_MEDIUM = _openframeworks.OF_IMAGE_QUALITY_MEDIUM + +_openframeworks.OF_IMAGE_QUALITY_LOW_swigconstant(_openframeworks) OF_IMAGE_QUALITY_LOW = _openframeworks.OF_IMAGE_QUALITY_LOW + +_openframeworks.OF_IMAGE_QUALITY_WORST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_WORST = _openframeworks.OF_IMAGE_QUALITY_WORST + +_openframeworks.OF_IMAGE_FORMAT_BMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_BMP = _openframeworks.OF_IMAGE_FORMAT_BMP + +_openframeworks.OF_IMAGE_FORMAT_ICO_swigconstant(_openframeworks) OF_IMAGE_FORMAT_ICO = _openframeworks.OF_IMAGE_FORMAT_ICO + +_openframeworks.OF_IMAGE_FORMAT_JPEG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JPEG = _openframeworks.OF_IMAGE_FORMAT_JPEG + +_openframeworks.OF_IMAGE_FORMAT_JNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JNG = _openframeworks.OF_IMAGE_FORMAT_JNG + +_openframeworks.OF_IMAGE_FORMAT_KOALA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_KOALA = _openframeworks.OF_IMAGE_FORMAT_KOALA + +_openframeworks.OF_IMAGE_FORMAT_LBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_LBM = _openframeworks.OF_IMAGE_FORMAT_LBM + +_openframeworks.OF_IMAGE_FORMAT_IFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_IFF = _openframeworks.OF_IMAGE_FORMAT_IFF + +_openframeworks.OF_IMAGE_FORMAT_MNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_MNG = _openframeworks.OF_IMAGE_FORMAT_MNG + +_openframeworks.OF_IMAGE_FORMAT_PBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBM = _openframeworks.OF_IMAGE_FORMAT_PBM + +_openframeworks.OF_IMAGE_FORMAT_PBMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBMRAW = _openframeworks.OF_IMAGE_FORMAT_PBMRAW + +_openframeworks.OF_IMAGE_FORMAT_PCD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCD = _openframeworks.OF_IMAGE_FORMAT_PCD + +_openframeworks.OF_IMAGE_FORMAT_PCX_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCX = _openframeworks.OF_IMAGE_FORMAT_PCX + +_openframeworks.OF_IMAGE_FORMAT_PGM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGM = _openframeworks.OF_IMAGE_FORMAT_PGM + +_openframeworks.OF_IMAGE_FORMAT_PGMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGMRAW = _openframeworks.OF_IMAGE_FORMAT_PGMRAW + +_openframeworks.OF_IMAGE_FORMAT_PNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PNG = _openframeworks.OF_IMAGE_FORMAT_PNG + +_openframeworks.OF_IMAGE_FORMAT_PPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPM = _openframeworks.OF_IMAGE_FORMAT_PPM + +_openframeworks.OF_IMAGE_FORMAT_PPMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPMRAW = _openframeworks.OF_IMAGE_FORMAT_PPMRAW + +_openframeworks.OF_IMAGE_FORMAT_RAS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAS = _openframeworks.OF_IMAGE_FORMAT_RAS + +_openframeworks.OF_IMAGE_FORMAT_TARGA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TARGA = _openframeworks.OF_IMAGE_FORMAT_TARGA + +_openframeworks.OF_IMAGE_FORMAT_TIFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TIFF = _openframeworks.OF_IMAGE_FORMAT_TIFF + +_openframeworks.OF_IMAGE_FORMAT_WBMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_WBMP = _openframeworks.OF_IMAGE_FORMAT_WBMP + +_openframeworks.OF_IMAGE_FORMAT_PSD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PSD = _openframeworks.OF_IMAGE_FORMAT_PSD + +_openframeworks.OF_IMAGE_FORMAT_CUT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_CUT = _openframeworks.OF_IMAGE_FORMAT_CUT + +_openframeworks.OF_IMAGE_FORMAT_XBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XBM = _openframeworks.OF_IMAGE_FORMAT_XBM + +_openframeworks.OF_IMAGE_FORMAT_XPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XPM = _openframeworks.OF_IMAGE_FORMAT_XPM + +_openframeworks.OF_IMAGE_FORMAT_DDS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_DDS = _openframeworks.OF_IMAGE_FORMAT_DDS + +_openframeworks.OF_IMAGE_FORMAT_GIF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_GIF = _openframeworks.OF_IMAGE_FORMAT_GIF + +_openframeworks.OF_IMAGE_FORMAT_HDR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_HDR = _openframeworks.OF_IMAGE_FORMAT_HDR + +_openframeworks.OF_IMAGE_FORMAT_FAXG3_swigconstant(_openframeworks) OF_IMAGE_FORMAT_FAXG3 = _openframeworks.OF_IMAGE_FORMAT_FAXG3 + +_openframeworks.OF_IMAGE_FORMAT_SGI_swigconstant(_openframeworks) OF_IMAGE_FORMAT_SGI = _openframeworks.OF_IMAGE_FORMAT_SGI + +_openframeworks.OF_IMAGE_FORMAT_EXR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_EXR = _openframeworks.OF_IMAGE_FORMAT_EXR + +_openframeworks.OF_IMAGE_FORMAT_J2K_swigconstant(_openframeworks) OF_IMAGE_FORMAT_J2K = _openframeworks.OF_IMAGE_FORMAT_J2K + +_openframeworks.OF_IMAGE_FORMAT_JP2_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JP2 = _openframeworks.OF_IMAGE_FORMAT_JP2 + +_openframeworks.OF_IMAGE_FORMAT_PFM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PFM = _openframeworks.OF_IMAGE_FORMAT_PFM + +_openframeworks.OF_IMAGE_FORMAT_PICT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PICT = _openframeworks.OF_IMAGE_FORMAT_PICT + +_openframeworks.OF_IMAGE_FORMAT_RAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAW = _openframeworks.OF_IMAGE_FORMAT_RAW class ofImage(_object): __swig_setmethods__ = {} @@ -649,57 +1574,123 @@ class ofImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofImage_allocate(self, *args) - def clear(self): return _openframeworks.ofImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofImage_getTextureReference(self) - def bind(self): return _openframeworks.ofImage_bind(self) - def unbind(self): return _openframeworks.ofImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofImage_mirror(self, *args) - def update(self): return _openframeworks.ofImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofImage_getHeight(self) - def getWidth(self): return _openframeworks.ofImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofImage_width_get, _openframeworks.ofImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofImage_height_get, _openframeworks.ofImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofImage_bpp_get, _openframeworks.ofImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofImage_type_get, _openframeworks.ofImage_type_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofImage_clear(self) + + def load(self, *args): + return _openframeworks.ofImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofImage_saveImage(self, *args) ofImage_swigregister = _openframeworks.ofImage_swigregister ofImage_swigregister(ofImage) @@ -709,167 +1700,344 @@ class ofFloatImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFloatImage_allocate(self, *args) - def clear(self): return _openframeworks.ofFloatImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofFloatImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofFloatImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofFloatImage_getTextureReference(self) - def bind(self): return _openframeworks.ofFloatImage_bind(self) - def unbind(self): return _openframeworks.ofFloatImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofFloatImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofFloatImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofFloatImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofFloatImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofFloatImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofFloatImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofFloatImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofFloatImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofFloatImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofFloatImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofFloatImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatImage_mirror(self, *args) - def update(self): return _openframeworks.ofFloatImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofFloatImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFloatImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFloatImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofFloatImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofFloatImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofFloatImage_getHeight(self) - def getWidth(self): return _openframeworks.ofFloatImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofFloatImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofFloatImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofFloatImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofFloatImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofFloatImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofFloatImage_width_get, _openframeworks.ofFloatImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofFloatImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofFloatImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofFloatImage_height_get, _openframeworks.ofFloatImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofFloatImage_bpp_get, _openframeworks.ofFloatImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofFloatImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofFloatImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofFloatImage_type_get, _openframeworks.ofFloatImage_type_set) -ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister -ofFloatImage_swigregister(ofFloatImage) + try: + self.this.append(this) + except Exception: + self.this = this -class ofShortImage(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofShortImage_allocate(self, *args) - def clear(self): return _openframeworks.ofShortImage_clear(self) - def __init__(self, *args): - this = _openframeworks.new_ofShortImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofShortImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofShortImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofShortImage_getTextureReference(self) - def bind(self): return _openframeworks.ofShortImage_bind(self) - def unbind(self): return _openframeworks.ofShortImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofShortImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofShortImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofShortImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofShortImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofShortImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofShortImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofShortImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofShortImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofShortImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofShortImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofShortImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofShortImage_mirror(self, *args) - def update(self): return _openframeworks.ofShortImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofShortImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofShortImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofShortImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofShortImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofShortImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofShortImage_getHeight(self) - def getWidth(self): return _openframeworks.ofShortImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofShortImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofShortImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofShortImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofShortImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofShortImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofShortImage_width_get, _openframeworks.ofShortImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofShortImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofShortImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofShortImage_height_get, _openframeworks.ofShortImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofShortImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofShortImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofShortImage_bpp_get, _openframeworks.ofShortImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofShortImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofShortImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofShortImage_type_get, _openframeworks.ofShortImage_type_set) -ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister -ofShortImage_swigregister(ofShortImage) + def allocate(self, w, h, type): + return _openframeworks.ofFloatImage_allocate(self, w, h, type) + def isAllocated(self): + return _openframeworks.ofFloatImage_isAllocated(self) -def ofSoundStreamSetup(*args): - return _openframeworks.ofSoundStreamSetup(*args) -ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + def bAllocated(self): + return _openframeworks.ofFloatImage_bAllocated(self) -def ofSoundStreamStop(): - return _openframeworks.ofSoundStreamStop() -ofSoundStreamStop = _openframeworks.ofSoundStreamStop + def clear(self): + return _openframeworks.ofFloatImage_clear(self) -def ofSoundStreamStart(): - return _openframeworks.ofSoundStreamStart() -ofSoundStreamStart = _openframeworks.ofSoundStreamStart + def load(self, *args): + return _openframeworks.ofFloatImage_load(self, *args) -def ofSoundStreamClose(): - return _openframeworks.ofSoundStreamClose() -ofSoundStreamClose = _openframeworks.ofSoundStreamClose + def loadImage(self, *args): + return _openframeworks.ofFloatImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofFloatImage + __del__ = lambda self: None -def ofSoundStreamListDevices(): - return _openframeworks.ofSoundStreamListDevices() -ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices -class ofSoundStream(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofSoundStream() - try: self.this.append(this) - except: self.this = this - def setSoundStream(self, *args): return _openframeworks.ofSoundStream_setSoundStream(self, *args) - def getSoundStream(self): return _openframeworks.ofSoundStream_getSoundStream(self) - def listDevices(self): return _openframeworks.ofSoundStream_listDevices(self) - def setDeviceID(self, *args): return _openframeworks.ofSoundStream_setDeviceID(self, *args) - def setup(self, *args): return _openframeworks.ofSoundStream_setup(self, *args) - def setInput(self, *args): return _openframeworks.ofSoundStream_setInput(self, *args) - def setOutput(self, *args): return _openframeworks.ofSoundStream_setOutput(self, *args) - def start(self): return _openframeworks.ofSoundStream_start(self) - def stop(self): return _openframeworks.ofSoundStream_stop(self) - def close(self): return _openframeworks.ofSoundStream_close(self) - def getTickCount(self): return _openframeworks.ofSoundStream_getTickCount(self) - def getNumInputChannels(self): return _openframeworks.ofSoundStream_getNumInputChannels(self) - def getNumOutputChannels(self): return _openframeworks.ofSoundStream_getNumOutputChannels(self) - def getSampleRate(self): return _openframeworks.ofSoundStream_getSampleRate(self) - def getBufferSize(self): return _openframeworks.ofSoundStream_getBufferSize(self) - __swig_destroy__ = _openframeworks.delete_ofSoundStream - __del__ = lambda self : None; + def draw(self, *args): + return _openframeworks.ofFloatImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofFloatImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofFloatImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofFloatImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofFloatImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofFloatImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofFloatImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofFloatImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofFloatImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofFloatImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofFloatImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofFloatImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofFloatImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofFloatImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofFloatImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofFloatImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofFloatImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofFloatImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofFloatImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofFloatImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofFloatImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofFloatImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofFloatImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofFloatImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFloatImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFloatImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFloatImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofFloatImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofFloatImage_saveImage(self, *args) +ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister +ofFloatImage_swigregister(ofFloatImage) + +class ofShortImage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofShortImage(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofShortImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofShortImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofShortImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofShortImage_clear(self) + + def load(self, *args): + return _openframeworks.ofShortImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofShortImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofShortImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofShortImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofShortImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofShortImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofShortImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofShortImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofShortImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofShortImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofShortImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofShortImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofShortImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofShortImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofShortImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofShortImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofShortImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofShortImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofShortImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofShortImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofShortImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofShortImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofShortImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofShortImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofShortImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofShortImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofShortImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofShortImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofShortImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofShortImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofShortImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofShortImage_saveImage(self, *args) +ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister +ofShortImage_swigregister(ofShortImage) + + +def ofSoundStreamSetup(*args): + return _openframeworks.ofSoundStreamSetup(*args) +ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + +def ofSoundStreamStop(): + return _openframeworks.ofSoundStreamStop() +ofSoundStreamStop = _openframeworks.ofSoundStreamStop + +def ofSoundStreamStart(): + return _openframeworks.ofSoundStreamStart() +ofSoundStreamStart = _openframeworks.ofSoundStreamStart + +def ofSoundStreamClose(): + return _openframeworks.ofSoundStreamClose() +ofSoundStreamClose = _openframeworks.ofSoundStreamClose + +def ofSoundStreamListDevices(): + return _openframeworks.ofSoundStreamListDevices() +ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices +class ofSoundStream(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofSoundStream() + try: + self.this.append(this) + except Exception: + self.this = this + + def setSoundStream(self, soundStreamPtr): + return _openframeworks.ofSoundStream_setSoundStream(self, soundStreamPtr) + + def getSoundStream(self): + return _openframeworks.ofSoundStream_getSoundStream(self) + + def printDeviceList(self): + return _openframeworks.ofSoundStream_printDeviceList(self) + + def getDeviceList(self): + return _openframeworks.ofSoundStream_getDeviceList(self) + + def getMatchingDevices(self, *args): + return _openframeworks.ofSoundStream_getMatchingDevices(self, *args) + + def setDeviceID(self, deviceID): + return _openframeworks.ofSoundStream_setDeviceID(self, deviceID) + + def setDevice(self, device): + return _openframeworks.ofSoundStream_setDevice(self, device) + + def setup(self, *args): + return _openframeworks.ofSoundStream_setup(self, *args) + + def setInput(self, *args): + return _openframeworks.ofSoundStream_setInput(self, *args) + + def setOutput(self, *args): + return _openframeworks.ofSoundStream_setOutput(self, *args) + + def start(self): + return _openframeworks.ofSoundStream_start(self) + + def stop(self): + return _openframeworks.ofSoundStream_stop(self) + + def close(self): + return _openframeworks.ofSoundStream_close(self) + + def getTickCount(self): + return _openframeworks.ofSoundStream_getTickCount(self) + + def getNumInputChannels(self): + return _openframeworks.ofSoundStream_getNumInputChannels(self) + + def getNumOutputChannels(self): + return _openframeworks.ofSoundStream_getNumOutputChannels(self) + + def getSampleRate(self): + return _openframeworks.ofSoundStream_getSampleRate(self) + + def getBufferSize(self): + return _openframeworks.ofSoundStream_getBufferSize(self) + + def listDevices(self): + return _openframeworks.ofSoundStream_listDevices(self) + __swig_destroy__ = _openframeworks.delete_ofSoundStream + __del__ = lambda self: None ofSoundStream_swigregister = _openframeworks.ofSoundStream_swigregister ofSoundStream_swigregister(ofSoundStream) @@ -879,33 +2047,87 @@ class ofSoundPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSoundPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSoundPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofSoundPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofSoundPlayer_getPlayer(self) - def loadSound(self, *args): return _openframeworks.ofSoundPlayer_loadSound(self, *args) - def unloadSound(self): return _openframeworks.ofSoundPlayer_unloadSound(self) - def play(self): return _openframeworks.ofSoundPlayer_play(self) - def stop(self): return _openframeworks.ofSoundPlayer_stop(self) - def setVolume(self, *args): return _openframeworks.ofSoundPlayer_setVolume(self, *args) - def setPan(self, *args): return _openframeworks.ofSoundPlayer_setPan(self, *args) - def setSpeed(self, *args): return _openframeworks.ofSoundPlayer_setSpeed(self, *args) - def setPaused(self, *args): return _openframeworks.ofSoundPlayer_setPaused(self, *args) - def setLoop(self, *args): return _openframeworks.ofSoundPlayer_setLoop(self, *args) - def setMultiPlay(self, *args): return _openframeworks.ofSoundPlayer_setMultiPlay(self, *args) - def setPosition(self, *args): return _openframeworks.ofSoundPlayer_setPosition(self, *args) - def setPositionMS(self, *args): return _openframeworks.ofSoundPlayer_setPositionMS(self, *args) - def getPositionMS(self): return _openframeworks.ofSoundPlayer_getPositionMS(self) - def getPosition(self): return _openframeworks.ofSoundPlayer_getPosition(self) - def getIsPlaying(self): return _openframeworks.ofSoundPlayer_getIsPlaying(self) - def getSpeed(self): return _openframeworks.ofSoundPlayer_getSpeed(self) - def getPan(self): return _openframeworks.ofSoundPlayer_getPan(self) - def getVolume(self): return _openframeworks.ofSoundPlayer_getVolume(self) - def isLoaded(self): return _openframeworks.ofSoundPlayer_isLoaded(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlayer(self, newPlayer): + return _openframeworks.ofSoundPlayer_setPlayer(self, newPlayer) + + def getPlayer(self): + return _openframeworks.ofSoundPlayer_getPlayer(self) + + def load(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_load(self, fileName, stream) + + def loadSound(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_loadSound(self, fileName, stream) + + def unload(self): + return _openframeworks.ofSoundPlayer_unload(self) + + def unloadSound(self): + return _openframeworks.ofSoundPlayer_unloadSound(self) + + def play(self): + return _openframeworks.ofSoundPlayer_play(self) + + def stop(self): + return _openframeworks.ofSoundPlayer_stop(self) + + def setVolume(self, vol): + return _openframeworks.ofSoundPlayer_setVolume(self, vol) + + def setPan(self, pan): + return _openframeworks.ofSoundPlayer_setPan(self, pan) + + def setSpeed(self, speed): + return _openframeworks.ofSoundPlayer_setSpeed(self, speed) + + def setPaused(self, paused): + return _openframeworks.ofSoundPlayer_setPaused(self, paused) + + def setLoop(self, loop): + return _openframeworks.ofSoundPlayer_setLoop(self, loop) + + def setMultiPlay(self, multiplay): + return _openframeworks.ofSoundPlayer_setMultiPlay(self, multiplay) + + def setPosition(self, percent): + return _openframeworks.ofSoundPlayer_setPosition(self, percent) + + def setPositionMS(self, ms): + return _openframeworks.ofSoundPlayer_setPositionMS(self, ms) + + def getPositionMS(self): + return _openframeworks.ofSoundPlayer_getPositionMS(self) + + def getPosition(self): + return _openframeworks.ofSoundPlayer_getPosition(self) + + def isPlaying(self): + return _openframeworks.ofSoundPlayer_isPlaying(self) + + def getIsPlaying(self): + return _openframeworks.ofSoundPlayer_getIsPlaying(self) + + def getSpeed(self): + return _openframeworks.ofSoundPlayer_getSpeed(self) + + def getPan(self): + return _openframeworks.ofSoundPlayer_getPan(self) + + def getVolume(self): + return _openframeworks.ofSoundPlayer_getVolume(self) + + def isLoaded(self): + return _openframeworks.ofSoundPlayer_isLoaded(self) __swig_destroy__ = _openframeworks.delete_ofSoundPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofSoundPlayer_swigregister = _openframeworks.ofSoundPlayer_swigregister ofSoundPlayer_swigregister(ofSoundPlayer) @@ -915,82 +2137,180 @@ class ofColor(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofColor_fromHex) - def set(self, *args): return _openframeworks.ofColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofColor_getHex(self) - def clamp(self): return _openframeworks.ofColor_clamp(self) - def invert(self): return _openframeworks.ofColor_invert(self) - def normalize(self): return _openframeworks.ofColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofColor_getClamped(self) - def getInverted(self): return _openframeworks.ofColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofColor_fromHex) + + def set(self, *args): + return _openframeworks.ofColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofColor_clamp(self) + + def invert(self): + return _openframeworks.ofColor_invert(self) + + def normalize(self): + return _openframeworks.ofColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofColor_getHex(self) + + def getHue(self): + return _openframeworks.ofColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofColor_limit) - def getR(self): return _openframeworks.ofColor_getR(self) - def getG(self): return _openframeworks.ofColor_getG(self) - def getB(self): return _openframeworks.ofColor_getB(self) - def getA(self): return _openframeworks.ofColor_getA(self) - def setR(self, *args): return _openframeworks.ofColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofColor_setA(self, *args) - def __str__(self): return _openframeworks.ofColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofColor_limit) + + def __eq__(self, color): + return _openframeworks.ofColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofColor_getR(self) + + def getG(self): + return _openframeworks.ofColor_getG(self) + + def getB(self): + return _openframeworks.ofColor_getB(self) + + def getA(self): + return _openframeworks.ofColor_getA(self) + + def setR(self, r): + return _openframeworks.ofColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofColor_r_set __swig_getmethods__["r"] = _openframeworks.ofColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofColor_g_set __swig_getmethods__["g"] = _openframeworks.ofColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofColor_b_set __swig_getmethods__["b"] = _openframeworks.ofColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofColor_a_set __swig_getmethods__["a"] = _openframeworks.ofColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofColor + __del__ = lambda self: None ofColor_swigregister = _openframeworks.ofColor_swigregister ofColor_swigregister(ofColor) def ofColor_fromHsb(*args): - return _openframeworks.ofColor_fromHsb(*args) + return _openframeworks.ofColor_fromHsb(*args) ofColor_fromHsb = _openframeworks.ofColor_fromHsb def ofColor_fromHex(*args): - return _openframeworks.ofColor_fromHex(*args) + return _openframeworks.ofColor_fromHex(*args) ofColor_fromHex = _openframeworks.ofColor_fromHex + +def ofColor_limit(): + return _openframeworks.ofColor_limit() +ofColor_limit = _openframeworks.ofColor_limit cvar = _openframeworks.cvar ofColor.white = _openframeworks.cvar.ofColor_white ofColor.gray = _openframeworks.cvar.ofColor_gray @@ -1141,92 +2461,186 @@ def ofColor_fromHex(*args): ofColor.whiteSmoke = _openframeworks.cvar.ofColor_whiteSmoke ofColor.yellowGreen = _openframeworks.cvar.ofColor_yellowGreen -def ofColor_limit(): - return _openframeworks.ofColor_limit() -ofColor_limit = _openframeworks.ofColor_limit - class ofFloatColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofFloatColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofFloatColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) - def set(self, *args): return _openframeworks.ofFloatColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofFloatColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofFloatColor_getHex(self) - def clamp(self): return _openframeworks.ofFloatColor_clamp(self) - def invert(self): return _openframeworks.ofFloatColor_invert(self) - def normalize(self): return _openframeworks.ofFloatColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofFloatColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofFloatColor_getClamped(self) - def getInverted(self): return _openframeworks.ofFloatColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofFloatColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofFloatColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofFloatColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofFloatColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofFloatColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofFloatColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofFloatColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofFloatColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofFloatColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofFloatColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofFloatColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofFloatColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofFloatColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofFloatColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFloatColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofFloatColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofFloatColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofFloatColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofFloatColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofFloatColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofFloatColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofFloatColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofFloatColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) + + def set(self, *args): + return _openframeworks.ofFloatColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofFloatColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofFloatColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofFloatColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofFloatColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofFloatColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofFloatColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofFloatColor_clamp(self) + + def invert(self): + return _openframeworks.ofFloatColor_invert(self) + + def normalize(self): + return _openframeworks.ofFloatColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofFloatColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofFloatColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofFloatColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofFloatColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofFloatColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofFloatColor_getHex(self) + + def getHue(self): + return _openframeworks.ofFloatColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofFloatColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofFloatColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofFloatColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofFloatColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofFloatColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofFloatColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofFloatColor_limit) - def getR(self): return _openframeworks.ofFloatColor_getR(self) - def getG(self): return _openframeworks.ofFloatColor_getG(self) - def getB(self): return _openframeworks.ofFloatColor_getB(self) - def getA(self): return _openframeworks.ofFloatColor_getA(self) - def setR(self, *args): return _openframeworks.ofFloatColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofFloatColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofFloatColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofFloatColor_setA(self, *args) - def __str__(self): return _openframeworks.ofFloatColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofFloatColor_limit) + + def __eq__(self, color): + return _openframeworks.ofFloatColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofFloatColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofFloatColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofFloatColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofFloatColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofFloatColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofFloatColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofFloatColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofFloatColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofFloatColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofFloatColor_getR(self) + + def getG(self): + return _openframeworks.ofFloatColor_getG(self) + + def getB(self): + return _openframeworks.ofFloatColor_getB(self) + + def getA(self): + return _openframeworks.ofFloatColor_getA(self) + + def setR(self, r): + return _openframeworks.ofFloatColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofFloatColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofFloatColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofFloatColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofFloatColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofFloatColor_r_set __swig_getmethods__["r"] = _openframeworks.ofFloatColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofFloatColor_g_set __swig_getmethods__["g"] = _openframeworks.ofFloatColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofFloatColor_b_set __swig_getmethods__["b"] = _openframeworks.ofFloatColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofFloatColor_a_set __swig_getmethods__["a"] = _openframeworks.ofFloatColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofFloatColor + __del__ = lambda self: None ofFloatColor_swigregister = _openframeworks.ofFloatColor_swigregister ofFloatColor_swigregister(ofFloatColor) def ofFloatColor_fromHsb(*args): - return _openframeworks.ofFloatColor_fromHsb(*args) + return _openframeworks.ofFloatColor_fromHsb(*args) ofFloatColor_fromHsb = _openframeworks.ofFloatColor_fromHsb def ofFloatColor_fromHex(*args): - return _openframeworks.ofFloatColor_fromHex(*args) + return _openframeworks.ofFloatColor_fromHex(*args) ofFloatColor_fromHex = _openframeworks.ofFloatColor_fromHex + +def ofFloatColor_limit(): + return _openframeworks.ofFloatColor_limit() +ofFloatColor_limit = _openframeworks.ofFloatColor_limit ofFloatColor.white = _openframeworks.cvar.ofFloatColor_white ofFloatColor.gray = _openframeworks.cvar.ofFloatColor_gray ofFloatColor.black = _openframeworks.cvar.ofFloatColor_black @@ -1376,92 +2790,186 @@ def ofFloatColor_fromHex(*args): ofFloatColor.whiteSmoke = _openframeworks.cvar.ofFloatColor_whiteSmoke ofFloatColor.yellowGreen = _openframeworks.cvar.ofFloatColor_yellowGreen -def ofFloatColor_limit(): - return _openframeworks.ofFloatColor_limit() -ofFloatColor_limit = _openframeworks.ofFloatColor_limit - class ofShortColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofShortColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofShortColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofShortColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofShortColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) - def set(self, *args): return _openframeworks.ofShortColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofShortColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofShortColor_getHex(self) - def clamp(self): return _openframeworks.ofShortColor_clamp(self) - def invert(self): return _openframeworks.ofShortColor_invert(self) - def normalize(self): return _openframeworks.ofShortColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofShortColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofShortColor_getClamped(self) - def getInverted(self): return _openframeworks.ofShortColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofShortColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofShortColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofShortColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofShortColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofShortColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofShortColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofShortColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofShortColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofShortColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofShortColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofShortColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofShortColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofShortColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofShortColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShortColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofShortColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofShortColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofShortColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofShortColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofShortColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofShortColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofShortColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofShortColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) + + def set(self, *args): + return _openframeworks.ofShortColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofShortColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofShortColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofShortColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofShortColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofShortColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofShortColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofShortColor_clamp(self) + + def invert(self): + return _openframeworks.ofShortColor_invert(self) + + def normalize(self): + return _openframeworks.ofShortColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofShortColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofShortColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofShortColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofShortColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofShortColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofShortColor_getHex(self) + + def getHue(self): + return _openframeworks.ofShortColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofShortColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofShortColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofShortColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofShortColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofShortColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofShortColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofShortColor_limit) - def getR(self): return _openframeworks.ofShortColor_getR(self) - def getG(self): return _openframeworks.ofShortColor_getG(self) - def getB(self): return _openframeworks.ofShortColor_getB(self) - def getA(self): return _openframeworks.ofShortColor_getA(self) - def setR(self, *args): return _openframeworks.ofShortColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofShortColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofShortColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofShortColor_setA(self, *args) - def __str__(self): return _openframeworks.ofShortColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofShortColor_limit) + + def __eq__(self, color): + return _openframeworks.ofShortColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofShortColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofShortColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofShortColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofShortColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofShortColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofShortColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofShortColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofShortColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofShortColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofShortColor_getR(self) + + def getG(self): + return _openframeworks.ofShortColor_getG(self) + + def getB(self): + return _openframeworks.ofShortColor_getB(self) + + def getA(self): + return _openframeworks.ofShortColor_getA(self) + + def setR(self, r): + return _openframeworks.ofShortColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofShortColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofShortColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofShortColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofShortColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofShortColor_r_set __swig_getmethods__["r"] = _openframeworks.ofShortColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofShortColor_g_set __swig_getmethods__["g"] = _openframeworks.ofShortColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofShortColor_b_set __swig_getmethods__["b"] = _openframeworks.ofShortColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofShortColor_a_set __swig_getmethods__["a"] = _openframeworks.ofShortColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofShortColor + __del__ = lambda self: None ofShortColor_swigregister = _openframeworks.ofShortColor_swigregister ofShortColor_swigregister(ofShortColor) def ofShortColor_fromHsb(*args): - return _openframeworks.ofShortColor_fromHsb(*args) + return _openframeworks.ofShortColor_fromHsb(*args) ofShortColor_fromHsb = _openframeworks.ofShortColor_fromHsb def ofShortColor_fromHex(*args): - return _openframeworks.ofShortColor_fromHex(*args) + return _openframeworks.ofShortColor_fromHex(*args) ofShortColor_fromHex = _openframeworks.ofShortColor_fromHex + +def ofShortColor_limit(): + return _openframeworks.ofShortColor_limit() +ofShortColor_limit = _openframeworks.ofShortColor_limit ofShortColor.white = _openframeworks.cvar.ofShortColor_white ofShortColor.gray = _openframeworks.cvar.ofShortColor_gray ofShortColor.black = _openframeworks.cvar.ofShortColor_black @@ -1611,29 +3119,136 @@ def ofShortColor_fromHex(*args): ofShortColor.whiteSmoke = _openframeworks.cvar.ofShortColor_whiteSmoke ofShortColor.yellowGreen = _openframeworks.cvar.ofShortColor_yellowGreen -def ofShortColor_limit(): - return _openframeworks.ofShortColor_limit() -ofShortColor_limit = _openframeworks.ofShortColor_limit - def ofIsVFlipped(): - return _openframeworks.ofIsVFlipped() + return _openframeworks.ofIsVFlipped() ofIsVFlipped = _openframeworks.ofIsVFlipped +class ofBaseHasTexturePlanes(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseHasTexturePlanes, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseHasTexturePlanes, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseHasTexturePlanes + __del__ = lambda self: None + + def getTexturePlanes(self, *args): + return _openframeworks.ofBaseHasTexturePlanes_getTexturePlanes(self, *args) +ofBaseHasTexturePlanes_swigregister = _openframeworks.ofBaseHasTexturePlanes_swigregister +ofBaseHasTexturePlanes_swigregister(ofBaseHasTexturePlanes) + +class ofBaseURLFileLoader(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseURLFileLoader, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseURLFileLoader, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseURLFileLoader + __del__ = lambda self: None + + def get(self, url): + return _openframeworks.ofBaseURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofBaseURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofBaseURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofBaseURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofBaseURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofBaseURLFileLoader_handleRequest(self, request) +ofBaseURLFileLoader_swigregister = _openframeworks.ofBaseURLFileLoader_swigregister +ofBaseURLFileLoader_swigregister(ofBaseURLFileLoader) + +class ofBaseMaterial(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseMaterial, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseMaterial, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseMaterial + __del__ = lambda self: None + + def getDiffuseColor(self): + return _openframeworks.ofBaseMaterial_getDiffuseColor(self) + + def getAmbientColor(self): + return _openframeworks.ofBaseMaterial_getAmbientColor(self) + + def getSpecularColor(self): + return _openframeworks.ofBaseMaterial_getSpecularColor(self) + + def getEmissiveColor(self): + return _openframeworks.ofBaseMaterial_getEmissiveColor(self) + + def getShininess(self): + return _openframeworks.ofBaseMaterial_getShininess(self) + + def begin(self): + return _openframeworks.ofBaseMaterial_begin(self) + + def end(self): + return _openframeworks.ofBaseMaterial_end(self) + + def getShader(self, textureTarget, renderer): + return _openframeworks.ofBaseMaterial_getShader(self, textureTarget, renderer) + + def uploadMatrices(self, shader, renderer): + return _openframeworks.ofBaseMaterial_uploadMatrices(self, shader, renderer) + + def updateMaterial(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateMaterial(self, shader, renderer) + + def updateLights(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateLights(self, shader, renderer) +ofBaseMaterial_swigregister = _openframeworks.ofBaseMaterial_swigregister +ofBaseMaterial_swigregister(ofBaseMaterial) + class ofSerialDeviceInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofSerialDeviceInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerialDeviceInfo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSerialDeviceInfo(*args) - try: self.this.append(this) - except: self.this = this - def getDevicePath(self): return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) - def getDeviceName(self): return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) - def getDeviceID(self): return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getDevicePath(self): + return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) + + def getDeviceName(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) + + def getDeviceID(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) __swig_destroy__ = _openframeworks.delete_ofSerialDeviceInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofSerialDeviceInfo_swigregister = _openframeworks.ofSerialDeviceInfo_swigregister ofSerialDeviceInfo_swigregister(ofSerialDeviceInfo) @@ -1643,297 +3258,431 @@ class ofStyle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofStyle, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofStyle() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofStyle - __del__ = lambda self : None; + __del__ = lambda self: None __swig_setmethods__["color"] = _openframeworks.ofStyle_color_set __swig_getmethods__["color"] = _openframeworks.ofStyle_color_get - if _newclass:color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) + if _newclass: + color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) __swig_setmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_set __swig_getmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_get - if _newclass:bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) + if _newclass: + bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) __swig_setmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_set __swig_getmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_get - if _newclass:polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) + if _newclass: + polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) __swig_setmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_set __swig_getmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_get - if _newclass:rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) + if _newclass: + rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) __swig_setmethods__["bFill"] = _openframeworks.ofStyle_bFill_set __swig_getmethods__["bFill"] = _openframeworks.ofStyle_bFill_get - if _newclass:bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) + if _newclass: + bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) __swig_setmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_set __swig_getmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_get - if _newclass:drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) + if _newclass: + drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) __swig_setmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_set __swig_getmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_get - if _newclass:blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) + if _newclass: + blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) __swig_setmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_set __swig_getmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_get - if _newclass:smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) + if _newclass: + smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) __swig_setmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_set __swig_getmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_get - if _newclass:circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) + if _newclass: + circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) __swig_setmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_set __swig_getmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_get - if _newclass:sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) + if _newclass: + sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) __swig_setmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_set __swig_getmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_get - if _newclass:curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) + if _newclass: + curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) __swig_setmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_set __swig_getmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_get - if _newclass:lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) + if _newclass: + lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) ofStyle_swigregister = _openframeworks.ofStyle_swigregister ofStyle_swigregister(ofStyle) def ofResetElapsedTimeCounter(): - return _openframeworks.ofResetElapsedTimeCounter() + return _openframeworks.ofResetElapsedTimeCounter() ofResetElapsedTimeCounter = _openframeworks.ofResetElapsedTimeCounter def ofGetElapsedTimef(): - return _openframeworks.ofGetElapsedTimef() + return _openframeworks.ofGetElapsedTimef() ofGetElapsedTimef = _openframeworks.ofGetElapsedTimef def ofGetElapsedTimeMillis(): - return _openframeworks.ofGetElapsedTimeMillis() + return _openframeworks.ofGetElapsedTimeMillis() ofGetElapsedTimeMillis = _openframeworks.ofGetElapsedTimeMillis def ofGetElapsedTimeMicros(): - return _openframeworks.ofGetElapsedTimeMicros() + return _openframeworks.ofGetElapsedTimeMicros() ofGetElapsedTimeMicros = _openframeworks.ofGetElapsedTimeMicros def ofGetFrameNum(): - return _openframeworks.ofGetFrameNum() + return _openframeworks.ofGetFrameNum() ofGetFrameNum = _openframeworks.ofGetFrameNum def ofGetSeconds(): - return _openframeworks.ofGetSeconds() + return _openframeworks.ofGetSeconds() ofGetSeconds = _openframeworks.ofGetSeconds def ofGetMinutes(): - return _openframeworks.ofGetMinutes() + return _openframeworks.ofGetMinutes() ofGetMinutes = _openframeworks.ofGetMinutes def ofGetHours(): - return _openframeworks.ofGetHours() + return _openframeworks.ofGetHours() ofGetHours = _openframeworks.ofGetHours def ofGetUnixTime(): - return _openframeworks.ofGetUnixTime() + return _openframeworks.ofGetUnixTime() ofGetUnixTime = _openframeworks.ofGetUnixTime def ofGetSystemTime(): - return _openframeworks.ofGetSystemTime() + return _openframeworks.ofGetSystemTime() ofGetSystemTime = _openframeworks.ofGetSystemTime def ofGetSystemTimeMicros(): - return _openframeworks.ofGetSystemTimeMicros() + return _openframeworks.ofGetSystemTimeMicros() ofGetSystemTimeMicros = _openframeworks.ofGetSystemTimeMicros +def ofSleepMillis(millis): + return _openframeworks.ofSleepMillis(millis) +ofSleepMillis = _openframeworks.ofSleepMillis + def ofGetTimestampString(*args): - return _openframeworks.ofGetTimestampString(*args) + return _openframeworks.ofGetTimestampString(*args) ofGetTimestampString = _openframeworks.ofGetTimestampString def ofGetYear(): - return _openframeworks.ofGetYear() + return _openframeworks.ofGetYear() ofGetYear = _openframeworks.ofGetYear def ofGetMonth(): - return _openframeworks.ofGetMonth() + return _openframeworks.ofGetMonth() ofGetMonth = _openframeworks.ofGetMonth def ofGetDay(): - return _openframeworks.ofGetDay() + return _openframeworks.ofGetDay() ofGetDay = _openframeworks.ofGetDay def ofGetWeekday(): - return _openframeworks.ofGetWeekday() + return _openframeworks.ofGetWeekday() ofGetWeekday = _openframeworks.ofGetWeekday -def ofLaunchBrowser(*args): - return _openframeworks.ofLaunchBrowser(*args) -ofLaunchBrowser = _openframeworks.ofLaunchBrowser - def ofEnableDataPath(): - return _openframeworks.ofEnableDataPath() + return _openframeworks.ofEnableDataPath() ofEnableDataPath = _openframeworks.ofEnableDataPath def ofDisableDataPath(): - return _openframeworks.ofDisableDataPath() + return _openframeworks.ofDisableDataPath() ofDisableDataPath = _openframeworks.ofDisableDataPath -def ofToDataPath(*args): - return _openframeworks.ofToDataPath(*args) +def ofToDataPath(path, absolute=False): + return _openframeworks.ofToDataPath(path, absolute) ofToDataPath = _openframeworks.ofToDataPath -def ofSetWorkingDirectoryToDefault(): - return _openframeworks.ofSetWorkingDirectoryToDefault() -ofSetWorkingDirectoryToDefault = _openframeworks.ofSetWorkingDirectoryToDefault +def ofRestoreWorkingDirectoryToDefault(): + return _openframeworks.ofRestoreWorkingDirectoryToDefault() +ofRestoreWorkingDirectoryToDefault = _openframeworks.ofRestoreWorkingDirectoryToDefault -def ofSetDataPathRoot(*args): - return _openframeworks.ofSetDataPathRoot(*args) +def ofSetDataPathRoot(root): + return _openframeworks.ofSetDataPathRoot(root) ofSetDataPathRoot = _openframeworks.ofSetDataPathRoot -def ofToHex(*args): - return _openframeworks.ofToHex(*args) -ofToHex = _openframeworks.ofToHex +def ofSplitString(source, delimiter, ignoreEmpty=False, trim=False): + return _openframeworks.ofSplitString(source, delimiter, ignoreEmpty, trim) +ofSplitString = _openframeworks.ofSplitString -def ofHexToInt(*args): - return _openframeworks.ofHexToInt(*args) -ofHexToInt = _openframeworks.ofHexToInt +def ofJoinString(stringElements, delimiter): + return _openframeworks.ofJoinString(stringElements, delimiter) +ofJoinString = _openframeworks.ofJoinString -def ofHexToChar(*args): - return _openframeworks.ofHexToChar(*args) -ofHexToChar = _openframeworks.ofHexToChar +def ofStringReplace(input, searchStr, replaceStr): + return _openframeworks.ofStringReplace(input, searchStr, replaceStr) +ofStringReplace = _openframeworks.ofStringReplace -def ofHexToFloat(*args): - return _openframeworks.ofHexToFloat(*args) -ofHexToFloat = _openframeworks.ofHexToFloat +def ofIsStringInString(haystack, needle): + return _openframeworks.ofIsStringInString(haystack, needle) +ofIsStringInString = _openframeworks.ofIsStringInString -def ofHexToString(*args): - return _openframeworks.ofHexToString(*args) -ofHexToString = _openframeworks.ofHexToString +def ofStringTimesInString(haystack, needle): + return _openframeworks.ofStringTimesInString(haystack, needle) +ofStringTimesInString = _openframeworks.ofStringTimesInString + +def ofToLower(*args): + return _openframeworks.ofToLower(*args) +ofToLower = _openframeworks.ofToLower + +def ofToUpper(*args): + return _openframeworks.ofToUpper(*args) +ofToUpper = _openframeworks.ofToUpper + +def ofTrimFront(*args): + return _openframeworks.ofTrimFront(*args) +ofTrimFront = _openframeworks.ofTrimFront + +def ofTrimBack(*args): + return _openframeworks.ofTrimBack(*args) +ofTrimBack = _openframeworks.ofTrimBack + +def ofTrim(*args): + return _openframeworks.ofTrim(*args) +ofTrim = _openframeworks.ofTrim -def ofToInt(*args): - return _openframeworks.ofToInt(*args) +def ofAppendUTF8(str, utf8): + return _openframeworks.ofAppendUTF8(str, utf8) +ofAppendUTF8 = _openframeworks.ofAppendUTF8 + +def ofToInt(intString): + return _openframeworks.ofToInt(intString) ofToInt = _openframeworks.ofToInt -def ofToChar(*args): - return _openframeworks.ofToChar(*args) -ofToChar = _openframeworks.ofToChar +def ofToInt64(intString): + return _openframeworks.ofToInt64(intString) +ofToInt64 = _openframeworks.ofToInt64 -def ofToFloat(*args): - return _openframeworks.ofToFloat(*args) +def ofToFloat(floatString): + return _openframeworks.ofToFloat(floatString) ofToFloat = _openframeworks.ofToFloat -def ofToDouble(*args): - return _openframeworks.ofToDouble(*args) +def ofToDouble(doubleString): + return _openframeworks.ofToDouble(doubleString) ofToDouble = _openframeworks.ofToDouble -def ofToBool(*args): - return _openframeworks.ofToBool(*args) +def ofToBool(boolString): + return _openframeworks.ofToBool(boolString) ofToBool = _openframeworks.ofToBool -def ofToBinary(*args): - return _openframeworks.ofToBinary(*args) +def ofToHex(value): + return _openframeworks.ofToHex(value) +ofToHex = _openframeworks.ofToHex + +def ofHexToInt(intHexString): + return _openframeworks.ofHexToInt(intHexString) +ofHexToInt = _openframeworks.ofHexToInt + +def ofHexToChar(charHexString): + return _openframeworks.ofHexToChar(charHexString) +ofHexToChar = _openframeworks.ofHexToChar + +def ofHexToFloat(floatHexString): + return _openframeworks.ofHexToFloat(floatHexString) +ofHexToFloat = _openframeworks.ofHexToFloat + +def ofHexToString(stringHexString): + return _openframeworks.ofHexToString(stringHexString) +ofHexToString = _openframeworks.ofHexToString + +def ofToChar(charString): + return _openframeworks.ofToChar(charString) +ofToChar = _openframeworks.ofToChar + +def ofToBinary(value): + return _openframeworks.ofToBinary(value) ofToBinary = _openframeworks.ofToBinary -def ofBinaryToInt(*args): - return _openframeworks.ofBinaryToInt(*args) +def ofBinaryToInt(value): + return _openframeworks.ofBinaryToInt(value) ofBinaryToInt = _openframeworks.ofBinaryToInt -def ofBinaryToChar(*args): - return _openframeworks.ofBinaryToChar(*args) +def ofBinaryToChar(value): + return _openframeworks.ofBinaryToChar(value) ofBinaryToChar = _openframeworks.ofBinaryToChar -def ofBinaryToFloat(*args): - return _openframeworks.ofBinaryToFloat(*args) +def ofBinaryToFloat(value): + return _openframeworks.ofBinaryToFloat(value) ofBinaryToFloat = _openframeworks.ofBinaryToFloat -def ofBinaryToString(*args): - return _openframeworks.ofBinaryToString(*args) +def ofBinaryToString(value): + return _openframeworks.ofBinaryToString(value) ofBinaryToString = _openframeworks.ofBinaryToString def ofGetVersionInfo(): - return _openframeworks.ofGetVersionInfo() + return _openframeworks.ofGetVersionInfo() ofGetVersionInfo = _openframeworks.ofGetVersionInfo def ofGetVersionMajor(): - return _openframeworks.ofGetVersionMajor() + return _openframeworks.ofGetVersionMajor() ofGetVersionMajor = _openframeworks.ofGetVersionMajor def ofGetVersionMinor(): - return _openframeworks.ofGetVersionMinor() + return _openframeworks.ofGetVersionMinor() ofGetVersionMinor = _openframeworks.ofGetVersionMinor def ofGetVersionPatch(): - return _openframeworks.ofGetVersionPatch() + return _openframeworks.ofGetVersionPatch() ofGetVersionPatch = _openframeworks.ofGetVersionPatch -def ofSaveScreen(*args): - return _openframeworks.ofSaveScreen(*args) +def ofGetVersionPreRelease(): + return _openframeworks.ofGetVersionPreRelease() +ofGetVersionPreRelease = _openframeworks.ofGetVersionPreRelease + +def ofSaveScreen(filename): + return _openframeworks.ofSaveScreen(filename) ofSaveScreen = _openframeworks.ofSaveScreen def ofSaveFrame(bUseViewport=False): - return _openframeworks.ofSaveFrame(bUseViewport) + return _openframeworks.ofSaveFrame(bUseViewport) ofSaveFrame = _openframeworks.ofSaveFrame -def ofSaveViewport(*args): - return _openframeworks.ofSaveViewport(*args) +def ofSaveViewport(filename): + return _openframeworks.ofSaveViewport(filename) ofSaveViewport = _openframeworks.ofSaveViewport -def ofSplitString(*args): - return _openframeworks.ofSplitString(*args) -ofSplitString = _openframeworks.ofSplitString +def ofLaunchBrowser(url, uriEncodeQuery=False): + return _openframeworks.ofLaunchBrowser(url, uriEncodeQuery) +ofLaunchBrowser = _openframeworks.ofLaunchBrowser -def ofJoinString(*args): - return _openframeworks.ofJoinString(*args) -ofJoinString = _openframeworks.ofJoinString +def ofSystem(command): + return _openframeworks.ofSystem(command) +ofSystem = _openframeworks.ofSystem -def ofStringReplace(*args): - return _openframeworks.ofStringReplace(*args) -ofStringReplace = _openframeworks.ofStringReplace +def ofGetTargetPlatform(): + return _openframeworks.ofGetTargetPlatform() +ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform -def ofIsStringInString(*args): - return _openframeworks.ofIsStringInString(*args) -ofIsStringInString = _openframeworks.ofIsStringInString +def ofGetEnv(var): + return _openframeworks.ofGetEnv(var) +ofGetEnv = _openframeworks.ofGetEnv +class ofUTF8Iterator(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofUTF8Iterator, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofUTF8Iterator, name) + __repr__ = _swig_repr -def ofStringTimesInString(*args): - return _openframeworks.ofStringTimesInString(*args) -ofStringTimesInString = _openframeworks.ofStringTimesInString + def __init__(self, str): + this = _openframeworks.new_ofUTF8Iterator(str) + try: + self.this.append(this) + except Exception: + self.this = this -def ofToLower(*args): - return _openframeworks.ofToLower(*args) -ofToLower = _openframeworks.ofToLower + def begin(self): + return _openframeworks.ofUTF8Iterator_begin(self) -def ofToUpper(*args): - return _openframeworks.ofToUpper(*args) -ofToUpper = _openframeworks.ofToUpper + def end(self): + return _openframeworks.ofUTF8Iterator_end(self) -def ofSystem(*args): - return _openframeworks.ofSystem(*args) -ofSystem = _openframeworks.ofSystem + def rbegin(self): + return _openframeworks.ofUTF8Iterator_rbegin(self) -def ofGetTargetPlatform(): - return _openframeworks.ofGetTargetPlatform() -ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform + def rend(self): + return _openframeworks.ofUTF8Iterator_rend(self) + __swig_destroy__ = _openframeworks.delete_ofUTF8Iterator + __del__ = lambda self: None +ofUTF8Iterator_swigregister = _openframeworks.ofUTF8Iterator_swigregister +ofUTF8Iterator_swigregister(ofUTF8Iterator) + + +def setWorkingDirectoryToDefault(): + return _openframeworks.setWorkingDirectoryToDefault() +setWorkingDirectoryToDefault = _openframeworks.setWorkingDirectoryToDefault + +def initutils(): + return _openframeworks.initutils() +initutils = _openframeworks.initutils + +def endutils(): + return _openframeworks.endutils() +endutils = _openframeworks.endutils class ofBuffer(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofBuffer, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofBuffer, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBuffer(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofBuffer_set(self, *args) + + def append(self, *args): + return _openframeworks.ofBuffer_append(self, *args) + + def writeTo(self, stream): + return _openframeworks.ofBuffer_writeTo(self, stream) + + def clear(self): + return _openframeworks.ofBuffer_clear(self) + + def allocate(self, _size): + return _openframeworks.ofBuffer_allocate(self, _size) + + def getData(self, *args): + return _openframeworks.ofBuffer_getData(self, *args) + + def getBinaryBuffer(self, *args): + return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) + + def getText(self): + return _openframeworks.ofBuffer_getText(self) + + def size(self): + return _openframeworks.ofBuffer_size(self) + + def getNextLine(self): + return _openframeworks.ofBuffer_getNextLine(self) + + def getFirstLine(self): + return _openframeworks.ofBuffer_getFirstLine(self) + + def isLastLine(self): + return _openframeworks.ofBuffer_isLastLine(self) + + def resetLineReader(self): + return _openframeworks.ofBuffer_resetLineReader(self) + + def begin(self, *args): + return _openframeworks.ofBuffer_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofBuffer_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofBuffer_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofBuffer_rend(self, *args) + + def getLines(self): + return _openframeworks.ofBuffer_getLines(self) __swig_destroy__ = _openframeworks.delete_ofBuffer - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBuffer_set(self, *args) - def append(self, *args): return _openframeworks.ofBuffer_append(self, *args) - def writeTo(self, *args): return _openframeworks.ofBuffer_writeTo(self, *args) - def clear(self): return _openframeworks.ofBuffer_clear(self) - def allocate(self, *args): return _openframeworks.ofBuffer_allocate(self, *args) - def getBinaryBuffer(self, *args): return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) - def getText(self): return _openframeworks.ofBuffer_getText(self) - def size(self): return _openframeworks.ofBuffer_size(self) - def getNextLine(self): return _openframeworks.ofBuffer_getNextLine(self) - def getFirstLine(self): return _openframeworks.ofBuffer_getFirstLine(self) - def isLastLine(self): return _openframeworks.ofBuffer_isLastLine(self) - def resetLineReader(self): return _openframeworks.ofBuffer_resetLineReader(self) + __del__ = lambda self: None ofBuffer_swigregister = _openframeworks.ofBuffer_swigregister ofBuffer_swigregister(ofBuffer) -def ofBufferFromFile(*args): - return _openframeworks.ofBufferFromFile(*args) +def ofBufferFromFile(path, binary=False): + return _openframeworks.ofBufferFromFile(path, binary) ofBufferFromFile = _openframeworks.ofBufferFromFile -def ofBufferToFile(*args): - return _openframeworks.ofBufferToFile(*args) +def ofBufferToFile(path, buffer, binary=False): + return _openframeworks.ofBufferToFile(path, buffer, binary) ofBufferToFile = _openframeworks.ofBufferToFile class ofFilePath(_object): __swig_setmethods__ = {} @@ -1942,116 +3691,143 @@ class ofFilePath(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofFilePath, name) __repr__ = _swig_repr __swig_getmethods__["getFileExt"] = lambda x: _openframeworks.ofFilePath_getFileExt - if _newclass:getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) + if _newclass: + getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) __swig_getmethods__["removeExt"] = lambda x: _openframeworks.ofFilePath_removeExt - if _newclass:removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) + if _newclass: + removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) __swig_getmethods__["addLeadingSlash"] = lambda x: _openframeworks.ofFilePath_addLeadingSlash - if _newclass:addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) + if _newclass: + addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) __swig_getmethods__["addTrailingSlash"] = lambda x: _openframeworks.ofFilePath_addTrailingSlash - if _newclass:addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) + if _newclass: + addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) __swig_getmethods__["removeTrailingSlash"] = lambda x: _openframeworks.ofFilePath_removeTrailingSlash - if _newclass:removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) + if _newclass: + removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) __swig_getmethods__["getPathForDirectory"] = lambda x: _openframeworks.ofFilePath_getPathForDirectory - if _newclass:getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) + if _newclass: + getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) __swig_getmethods__["getAbsolutePath"] = lambda x: _openframeworks.ofFilePath_getAbsolutePath - if _newclass:getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) + if _newclass: + getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) __swig_getmethods__["isAbsolute"] = lambda x: _openframeworks.ofFilePath_isAbsolute - if _newclass:isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) + if _newclass: + isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) __swig_getmethods__["getFileName"] = lambda x: _openframeworks.ofFilePath_getFileName - if _newclass:getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) + if _newclass: + getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) __swig_getmethods__["getBaseName"] = lambda x: _openframeworks.ofFilePath_getBaseName - if _newclass:getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) + if _newclass: + getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) __swig_getmethods__["getEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_getEnclosingDirectory - if _newclass:getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) + if _newclass: + getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) __swig_getmethods__["createEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_createEnclosingDirectory - if _newclass:createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) + if _newclass: + createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) __swig_getmethods__["getCurrentWorkingDirectory"] = lambda x: _openframeworks.ofFilePath_getCurrentWorkingDirectory - if _newclass:getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) + if _newclass: + getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) __swig_getmethods__["join"] = lambda x: _openframeworks.ofFilePath_join - if _newclass:join = staticmethod(_openframeworks.ofFilePath_join) + if _newclass: + join = staticmethod(_openframeworks.ofFilePath_join) __swig_getmethods__["getCurrentExePath"] = lambda x: _openframeworks.ofFilePath_getCurrentExePath - if _newclass:getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) + if _newclass: + getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) __swig_getmethods__["getCurrentExeDir"] = lambda x: _openframeworks.ofFilePath_getCurrentExeDir - if _newclass:getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) + if _newclass: + getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) __swig_getmethods__["getUserHomeDir"] = lambda x: _openframeworks.ofFilePath_getUserHomeDir - if _newclass:getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) - def __init__(self): + if _newclass: + getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) + __swig_getmethods__["makeRelative"] = lambda x: _openframeworks.ofFilePath_makeRelative + if _newclass: + makeRelative = staticmethod(_openframeworks.ofFilePath_makeRelative) + + def __init__(self): this = _openframeworks.new_ofFilePath() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFilePath - __del__ = lambda self : None; + __del__ = lambda self: None ofFilePath_swigregister = _openframeworks.ofFilePath_swigregister ofFilePath_swigregister(ofFilePath) -def ofFilePath_getFileExt(*args): - return _openframeworks.ofFilePath_getFileExt(*args) +def ofFilePath_getFileExt(filename): + return _openframeworks.ofFilePath_getFileExt(filename) ofFilePath_getFileExt = _openframeworks.ofFilePath_getFileExt -def ofFilePath_removeExt(*args): - return _openframeworks.ofFilePath_removeExt(*args) +def ofFilePath_removeExt(filename): + return _openframeworks.ofFilePath_removeExt(filename) ofFilePath_removeExt = _openframeworks.ofFilePath_removeExt -def ofFilePath_addLeadingSlash(*args): - return _openframeworks.ofFilePath_addLeadingSlash(*args) +def ofFilePath_addLeadingSlash(path): + return _openframeworks.ofFilePath_addLeadingSlash(path) ofFilePath_addLeadingSlash = _openframeworks.ofFilePath_addLeadingSlash -def ofFilePath_addTrailingSlash(*args): - return _openframeworks.ofFilePath_addTrailingSlash(*args) +def ofFilePath_addTrailingSlash(path): + return _openframeworks.ofFilePath_addTrailingSlash(path) ofFilePath_addTrailingSlash = _openframeworks.ofFilePath_addTrailingSlash -def ofFilePath_removeTrailingSlash(*args): - return _openframeworks.ofFilePath_removeTrailingSlash(*args) +def ofFilePath_removeTrailingSlash(path): + return _openframeworks.ofFilePath_removeTrailingSlash(path) ofFilePath_removeTrailingSlash = _openframeworks.ofFilePath_removeTrailingSlash -def ofFilePath_getPathForDirectory(*args): - return _openframeworks.ofFilePath_getPathForDirectory(*args) +def ofFilePath_getPathForDirectory(path): + return _openframeworks.ofFilePath_getPathForDirectory(path) ofFilePath_getPathForDirectory = _openframeworks.ofFilePath_getPathForDirectory -def ofFilePath_getAbsolutePath(*args): - return _openframeworks.ofFilePath_getAbsolutePath(*args) +def ofFilePath_getAbsolutePath(path, bRelativeToData=True): + return _openframeworks.ofFilePath_getAbsolutePath(path, bRelativeToData) ofFilePath_getAbsolutePath = _openframeworks.ofFilePath_getAbsolutePath -def ofFilePath_isAbsolute(*args): - return _openframeworks.ofFilePath_isAbsolute(*args) +def ofFilePath_isAbsolute(path): + return _openframeworks.ofFilePath_isAbsolute(path) ofFilePath_isAbsolute = _openframeworks.ofFilePath_isAbsolute -def ofFilePath_getFileName(*args): - return _openframeworks.ofFilePath_getFileName(*args) +def ofFilePath_getFileName(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getFileName(filePath, bRelativeToData) ofFilePath_getFileName = _openframeworks.ofFilePath_getFileName -def ofFilePath_getBaseName(*args): - return _openframeworks.ofFilePath_getBaseName(*args) +def ofFilePath_getBaseName(filePath): + return _openframeworks.ofFilePath_getBaseName(filePath) ofFilePath_getBaseName = _openframeworks.ofFilePath_getBaseName -def ofFilePath_getEnclosingDirectory(*args): - return _openframeworks.ofFilePath_getEnclosingDirectory(*args) +def ofFilePath_getEnclosingDirectory(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getEnclosingDirectory(filePath, bRelativeToData) ofFilePath_getEnclosingDirectory = _openframeworks.ofFilePath_getEnclosingDirectory -def ofFilePath_createEnclosingDirectory(*args): - return _openframeworks.ofFilePath_createEnclosingDirectory(*args) +def ofFilePath_createEnclosingDirectory(filePath, bRelativeToData=True, bRecursive=True): + return _openframeworks.ofFilePath_createEnclosingDirectory(filePath, bRelativeToData, bRecursive) ofFilePath_createEnclosingDirectory = _openframeworks.ofFilePath_createEnclosingDirectory def ofFilePath_getCurrentWorkingDirectory(): - return _openframeworks.ofFilePath_getCurrentWorkingDirectory() + return _openframeworks.ofFilePath_getCurrentWorkingDirectory() ofFilePath_getCurrentWorkingDirectory = _openframeworks.ofFilePath_getCurrentWorkingDirectory -def ofFilePath_join(*args): - return _openframeworks.ofFilePath_join(*args) +def ofFilePath_join(path1, path2): + return _openframeworks.ofFilePath_join(path1, path2) ofFilePath_join = _openframeworks.ofFilePath_join def ofFilePath_getCurrentExePath(): - return _openframeworks.ofFilePath_getCurrentExePath() + return _openframeworks.ofFilePath_getCurrentExePath() ofFilePath_getCurrentExePath = _openframeworks.ofFilePath_getCurrentExePath def ofFilePath_getCurrentExeDir(): - return _openframeworks.ofFilePath_getCurrentExeDir() + return _openframeworks.ofFilePath_getCurrentExeDir() ofFilePath_getCurrentExeDir = _openframeworks.ofFilePath_getCurrentExeDir def ofFilePath_getUserHomeDir(): - return _openframeworks.ofFilePath_getUserHomeDir() + return _openframeworks.ofFilePath_getUserHomeDir() ofFilePath_getUserHomeDir = _openframeworks.ofFilePath_getUserHomeDir +def ofFilePath_makeRelative(arg2, to): + return _openframeworks.ofFilePath_makeRelative(arg2, to) +ofFilePath_makeRelative = _openframeworks.ofFilePath_makeRelative + class ofFile(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFile, name, value) @@ -2063,74 +3839,152 @@ class ofFile(_object): WriteOnly = _openframeworks.ofFile_WriteOnly ReadWrite = _openframeworks.ofFile_ReadWrite Append = _openframeworks.ofFile_Append - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFile(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFile - __del__ = lambda self : None; - def open(self, *args): return _openframeworks.ofFile_open(self, *args) - def changeMode(self, *args): return _openframeworks.ofFile_changeMode(self, *args) - def close(self): return _openframeworks.ofFile_close(self) - def create(self): return _openframeworks.ofFile_create(self) - def exists(self): return _openframeworks.ofFile_exists(self) - def path(self): return _openframeworks.ofFile_path(self) - def getExtension(self): return _openframeworks.ofFile_getExtension(self) - def getFileName(self): return _openframeworks.ofFile_getFileName(self) - def getBaseName(self): return _openframeworks.ofFile_getBaseName(self) - def getEnclosingDirectory(self): return _openframeworks.ofFile_getEnclosingDirectory(self) - def getAbsolutePath(self): return _openframeworks.ofFile_getAbsolutePath(self) - def canRead(self): return _openframeworks.ofFile_canRead(self) - def canWrite(self): return _openframeworks.ofFile_canWrite(self) - def canExecute(self): return _openframeworks.ofFile_canExecute(self) - def isFile(self): return _openframeworks.ofFile_isFile(self) - def isLink(self): return _openframeworks.ofFile_isLink(self) - def isDirectory(self): return _openframeworks.ofFile_isDirectory(self) - def isDevice(self): return _openframeworks.ofFile_isDevice(self) - def isHidden(self): return _openframeworks.ofFile_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofFile_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofFile_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofFile_setExecutable(self, executable) - def copyTo(self, *args): return _openframeworks.ofFile_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofFile_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofFile_renameTo(self, *args) - def remove(self, recursive=False): return _openframeworks.ofFile_remove(self, recursive) - def getSize(self): return _openframeworks.ofFile_getSize(self) - def getPocoFile(self): return _openframeworks.ofFile_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofFile___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFile___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofFile___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofFile___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofFile___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofFile___ge__(self, *args) - def readToBuffer(self): return _openframeworks.ofFile_readToBuffer(self) - def writeFromBuffer(self, *args): return _openframeworks.ofFile_writeFromBuffer(self, *args) - def getFileBuffer(self): return _openframeworks.ofFile_getFileBuffer(self) + __del__ = lambda self: None + + def open(self, *args): + return _openframeworks.ofFile_open(self, *args) + + def changeMode(self, mode, binary=False): + return _openframeworks.ofFile_changeMode(self, mode, binary) + + def close(self): + return _openframeworks.ofFile_close(self) + + def create(self): + return _openframeworks.ofFile_create(self) + + def exists(self): + return _openframeworks.ofFile_exists(self) + + def path(self): + return _openframeworks.ofFile_path(self) + + def getExtension(self): + return _openframeworks.ofFile_getExtension(self) + + def getFileName(self): + return _openframeworks.ofFile_getFileName(self) + + def getBaseName(self): + return _openframeworks.ofFile_getBaseName(self) + + def getEnclosingDirectory(self): + return _openframeworks.ofFile_getEnclosingDirectory(self) + + def getAbsolutePath(self): + return _openframeworks.ofFile_getAbsolutePath(self) + + def canRead(self): + return _openframeworks.ofFile_canRead(self) + + def canWrite(self): + return _openframeworks.ofFile_canWrite(self) + + def canExecute(self): + return _openframeworks.ofFile_canExecute(self) + + def isFile(self): + return _openframeworks.ofFile_isFile(self) + + def isLink(self): + return _openframeworks.ofFile_isLink(self) + + def isDirectory(self): + return _openframeworks.ofFile_isDirectory(self) + + def isDevice(self): + return _openframeworks.ofFile_isDevice(self) + + def isHidden(self): + return _openframeworks.ofFile_isHidden(self) + + def setWriteable(self, writeable=True): + return _openframeworks.ofFile_setWriteable(self, writeable) + + def setReadOnly(self, readable=True): + return _openframeworks.ofFile_setReadOnly(self, readable) + + def setExecutable(self, executable=True): + return _openframeworks.ofFile_setExecutable(self, executable) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive=False): + return _openframeworks.ofFile_remove(self, recursive) + + def getSize(self): + return _openframeworks.ofFile_getSize(self) + + def __eq__(self, file): + return _openframeworks.ofFile___eq__(self, file) + + def __ne__(self, file): + return _openframeworks.ofFile___ne__(self, file) + + def __lt__(self, file): + return _openframeworks.ofFile___lt__(self, file) + + def __le__(self, file): + return _openframeworks.ofFile___le__(self, file) + + def __gt__(self, file): + return _openframeworks.ofFile___gt__(self, file) + + def __ge__(self, file): + return _openframeworks.ofFile___ge__(self, file) + + def readToBuffer(self): + return _openframeworks.ofFile_readToBuffer(self) + + def writeFromBuffer(self, buffer): + return _openframeworks.ofFile_writeFromBuffer(self, buffer) + + def getFileBuffer(self): + return _openframeworks.ofFile_getFileBuffer(self) __swig_getmethods__["copyFromTo"] = lambda x: _openframeworks.ofFile_copyFromTo - if _newclass:copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) + if _newclass: + copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) __swig_getmethods__["moveFromTo"] = lambda x: _openframeworks.ofFile_moveFromTo - if _newclass:moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) + if _newclass: + moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) __swig_getmethods__["doesFileExist"] = lambda x: _openframeworks.ofFile_doesFileExist - if _newclass:doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) + if _newclass: + doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) __swig_getmethods__["removeFile"] = lambda x: _openframeworks.ofFile_removeFile - if _newclass:removeFile = staticmethod(_openframeworks.ofFile_removeFile) + if _newclass: + removeFile = staticmethod(_openframeworks.ofFile_removeFile) ofFile_swigregister = _openframeworks.ofFile_swigregister ofFile_swigregister(ofFile) -def ofFile_copyFromTo(*args): - return _openframeworks.ofFile_copyFromTo(*args) +def ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_copyFromTo = _openframeworks.ofFile_copyFromTo -def ofFile_moveFromTo(*args): - return _openframeworks.ofFile_moveFromTo(*args) +def ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_moveFromTo = _openframeworks.ofFile_moveFromTo -def ofFile_doesFileExist(*args): - return _openframeworks.ofFile_doesFileExist(*args) +def ofFile_doesFileExist(fPath, bRelativeToData=True): + return _openframeworks.ofFile_doesFileExist(fPath, bRelativeToData) ofFile_doesFileExist = _openframeworks.ofFile_doesFileExist -def ofFile_removeFile(*args): - return _openframeworks.ofFile_removeFile(*args) +def ofFile_removeFile(path, bRelativeToData=True): + return _openframeworks.ofFile_removeFile(path, bRelativeToData) ofFile_removeFile = _openframeworks.ofFile_removeFile class ofDirectory(_object): @@ -2139,146 +3993,259 @@ class ofDirectory(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofDirectory, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofDirectory(*args) - try: self.this.append(this) - except: self.this = this - def open(self, *args): return _openframeworks.ofDirectory_open(self, *args) - def close(self): return _openframeworks.ofDirectory_close(self) - def create(self, recursive=False): return _openframeworks.ofDirectory_create(self, recursive) - def exists(self): return _openframeworks.ofDirectory_exists(self) - def path(self): return _openframeworks.ofDirectory_path(self) - def getAbsolutePath(self): return _openframeworks.ofDirectory_getAbsolutePath(self) - def isDirectory(self): return _openframeworks.ofDirectory_isDirectory(self) - def isHidden(self): return _openframeworks.ofDirectory_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofDirectory_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofDirectory_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofDirectory_setExecutable(self, executable) - def setShowHidden(self, *args): return _openframeworks.ofDirectory_setShowHidden(self, *args) - def copyTo(self, *args): return _openframeworks.ofDirectory_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofDirectory_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofDirectory_renameTo(self, *args) - def remove(self, *args): return _openframeworks.ofDirectory_remove(self, *args) - def allowExt(self, *args): return _openframeworks.ofDirectory_allowExt(self, *args) - def listDir(self, *args): return _openframeworks.ofDirectory_listDir(self, *args) - def getOriginalDirectory(self): return _openframeworks.ofDirectory_getOriginalDirectory(self) - def getName(self, *args): return _openframeworks.ofDirectory_getName(self, *args) - def getPath(self, *args): return _openframeworks.ofDirectory_getPath(self, *args) - def getFile(self, *args): return _openframeworks.ofDirectory_getFile(self, *args) - def getFiles(self): return _openframeworks.ofDirectory_getFiles(self) - def __getitem__(self, *args): return _openframeworks.ofDirectory___getitem__(self, *args) - def getShowHidden(self): return _openframeworks.ofDirectory_getShowHidden(self) - def reset(self): return _openframeworks.ofDirectory_reset(self) - def sort(self): return _openframeworks.ofDirectory_sort(self) - def size(self): return _openframeworks.ofDirectory_size(self) - def numFiles(self): return _openframeworks.ofDirectory_numFiles(self) - def getPocoFile(self): return _openframeworks.ofDirectory_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofDirectory___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofDirectory___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofDirectory___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofDirectory___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofDirectory___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofDirectory___ge__(self, *args) - __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory - if _newclass:createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) - __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty - if _newclass:isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) - __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist - if _newclass:doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) - __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory - if _newclass:removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) - __swig_destroy__ = _openframeworks.delete_ofDirectory - __del__ = lambda self : None; -ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister -ofDirectory_swigregister(ofDirectory) + try: + self.this.append(this) + except Exception: + self.this = this -def ofDirectory_createDirectory(*args): - return _openframeworks.ofDirectory_createDirectory(*args) -ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + def open(self, path): + return _openframeworks.ofDirectory_open(self, path) -def ofDirectory_isDirectoryEmpty(*args): - return _openframeworks.ofDirectory_isDirectoryEmpty(*args) -ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + def close(self): + return _openframeworks.ofDirectory_close(self) -def ofDirectory_doesDirectoryExist(*args): - return _openframeworks.ofDirectory_doesDirectoryExist(*args) -ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + def create(self, recursive=False): + return _openframeworks.ofDirectory_create(self, recursive) -def ofDirectory_removeDirectory(*args): - return _openframeworks.ofDirectory_removeDirectory(*args) -ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + def exists(self): + return _openframeworks.ofDirectory_exists(self) + def path(self): + return _openframeworks.ofDirectory_path(self) -def log(*args): - return _openframeworks.log(*args) -log = _openframeworks.log -OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE -OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE -OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING -OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR -OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR -OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + def getAbsolutePath(self): + return _openframeworks.ofDirectory_getAbsolutePath(self) -def ofSetLogLevel(*args): - return _openframeworks.ofSetLogLevel(*args) -ofSetLogLevel = _openframeworks.ofSetLogLevel + def isDirectory(self): + return _openframeworks.ofDirectory_isDirectory(self) -def ofGetLogLevel(): - return _openframeworks.ofGetLogLevel() -ofGetLogLevel = _openframeworks.ofGetLogLevel + def isHidden(self): + return _openframeworks.ofDirectory_isHidden(self) -def ofGetLogLevelName(*args): - return _openframeworks.ofGetLogLevelName(*args) -ofGetLogLevelName = _openframeworks.ofGetLogLevelName + def setWriteable(self, writeable=True): + return _openframeworks.ofDirectory_setWriteable(self, writeable) -def ofLogToFile(*args): - return _openframeworks.ofLogToFile(*args) -ofLogToFile = _openframeworks.ofLogToFile + def setReadOnly(self, readable=True): + return _openframeworks.ofDirectory_setReadOnly(self, readable) -def ofLogToConsole(): - return _openframeworks.ofLogToConsole() -ofLogToConsole = _openframeworks.ofLogToConsole -class ofFileDialogResult(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofFileDialogResult() - try: self.this.append(this) - except: self.this = this - def getName(self): return _openframeworks.ofFileDialogResult_getName(self) - def getPath(self): return _openframeworks.ofFileDialogResult_getPath(self) - __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set - __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get - if _newclass:filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) - __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set - __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get - if _newclass:fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) - __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set + def setExecutable(self, executable=True): + return _openframeworks.ofDirectory_setExecutable(self, executable) + + def setShowHidden(self, showHidden): + return _openframeworks.ofDirectory_setShowHidden(self, showHidden) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive): + return _openframeworks.ofDirectory_remove(self, recursive) + + def allowExt(self, extension): + return _openframeworks.ofDirectory_allowExt(self, extension) + + def listDir(self, *args): + return _openframeworks.ofDirectory_listDir(self, *args) + + def getOriginalDirectory(self): + return _openframeworks.ofDirectory_getOriginalDirectory(self) + + def getName(self, position): + return _openframeworks.ofDirectory_getName(self, position) + + def getPath(self, position): + return _openframeworks.ofDirectory_getPath(self, position) + + def getFile(self, *args): + return _openframeworks.ofDirectory_getFile(self, *args) + + def getFiles(self): + return _openframeworks.ofDirectory_getFiles(self) + + def __getitem__(self, position): + return _openframeworks.ofDirectory___getitem__(self, position) + + def getShowHidden(self): + return _openframeworks.ofDirectory_getShowHidden(self) + + def reset(self): + return _openframeworks.ofDirectory_reset(self) + + def sort(self): + return _openframeworks.ofDirectory_sort(self) + + def getSorted(self): + return _openframeworks.ofDirectory_getSorted(self) + + def size(self): + return _openframeworks.ofDirectory_size(self) + + def numFiles(self): + return _openframeworks.ofDirectory_numFiles(self) + + def __eq__(self, dir): + return _openframeworks.ofDirectory___eq__(self, dir) + + def __ne__(self, dir): + return _openframeworks.ofDirectory___ne__(self, dir) + + def __lt__(self, dir): + return _openframeworks.ofDirectory___lt__(self, dir) + + def __le__(self, dir): + return _openframeworks.ofDirectory___le__(self, dir) + + def __gt__(self, dir): + return _openframeworks.ofDirectory___gt__(self, dir) + + def __ge__(self, dir): + return _openframeworks.ofDirectory___ge__(self, dir) + __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory + if _newclass: + createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) + __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty + if _newclass: + isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) + __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist + if _newclass: + doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) + __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory + if _newclass: + removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) + + def begin(self): + return _openframeworks.ofDirectory_begin(self) + + def end(self): + return _openframeworks.ofDirectory_end(self) + + def rbegin(self): + return _openframeworks.ofDirectory_rbegin(self) + + def rend(self): + return _openframeworks.ofDirectory_rend(self) + __swig_destroy__ = _openframeworks.delete_ofDirectory + __del__ = lambda self: None +ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister +ofDirectory_swigregister(ofDirectory) + +def ofDirectory_createDirectory(dirPath, bRelativeToData=True, recursive=False): + return _openframeworks.ofDirectory_createDirectory(dirPath, bRelativeToData, recursive) +ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + +def ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData) +ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + +def ofDirectory_doesDirectoryExist(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_doesDirectoryExist(dirPath, bRelativeToData) +ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + +def ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData=True): + return _openframeworks.ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData) +ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + + +def log(level, message): + return _openframeworks.log(level, message) +log = _openframeworks.log + +_openframeworks.OF_LOG_VERBOSE_swigconstant(_openframeworks) +OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE + +_openframeworks.OF_LOG_NOTICE_swigconstant(_openframeworks) +OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE + +_openframeworks.OF_LOG_WARNING_swigconstant(_openframeworks) +OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING + +_openframeworks.OF_LOG_ERROR_swigconstant(_openframeworks) +OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR + +_openframeworks.OF_LOG_FATAL_ERROR_swigconstant(_openframeworks) +OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR + +_openframeworks.OF_LOG_SILENT_swigconstant(_openframeworks) +OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + +def ofSetLogLevel(*args): + return _openframeworks.ofSetLogLevel(*args) +ofSetLogLevel = _openframeworks.ofSetLogLevel + +def ofGetLogLevel(): + return _openframeworks.ofGetLogLevel() +ofGetLogLevel = _openframeworks.ofGetLogLevel + +def ofGetLogLevelName(level, pad=False): + return _openframeworks.ofGetLogLevelName(level, pad) +ofGetLogLevelName = _openframeworks.ofGetLogLevelName + +def ofLogToFile(path, append=False): + return _openframeworks.ofLogToFile(path, append) +ofLogToFile = _openframeworks.ofLogToFile + +def ofLogToConsole(): + return _openframeworks.ofLogToConsole() +ofLogToConsole = _openframeworks.ofLogToConsole +class ofFileDialogResult(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofFileDialogResult() + try: + self.this.append(this) + except Exception: + self.this = this + + def getName(self): + return _openframeworks.ofFileDialogResult_getName(self) + + def getPath(self): + return _openframeworks.ofFileDialogResult_getPath(self) + __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set + __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get + if _newclass: + filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) + __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set + __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get + if _newclass: + fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) + __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set __swig_getmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_get - if _newclass:bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) + if _newclass: + bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) __swig_destroy__ = _openframeworks.delete_ofFileDialogResult - __del__ = lambda self : None; + __del__ = lambda self: None ofFileDialogResult_swigregister = _openframeworks.ofFileDialogResult_swigregister ofFileDialogResult_swigregister(ofFileDialogResult) -def ofSystemAlertDialog(*args): - return _openframeworks.ofSystemAlertDialog(*args) +def ofSystemAlertDialog(errorMessage): + return _openframeworks.ofSystemAlertDialog(errorMessage) ofSystemAlertDialog = _openframeworks.ofSystemAlertDialog -def ofSystemLoadDialog(windowTitle="", bFolderSelection=False, defaultPath=""): - return _openframeworks.ofSystemLoadDialog(windowTitle, bFolderSelection, defaultPath) +def ofSystemLoadDialog(*args): + return _openframeworks.ofSystemLoadDialog(*args) ofSystemLoadDialog = _openframeworks.ofSystemLoadDialog -def ofSystemSaveDialog(*args): - return _openframeworks.ofSystemSaveDialog(*args) +def ofSystemSaveDialog(defaultName, messageName): + return _openframeworks.ofSystemSaveDialog(defaultName, messageName) ofSystemSaveDialog = _openframeworks.ofSystemSaveDialog def ofSystemTextBoxDialog(*args): - return _openframeworks.ofSystemTextBoxDialog(*args) + return _openframeworks.ofSystemTextBoxDialog(*args) ofSystemTextBoxDialog = _openframeworks.ofSystemTextBoxDialog class ofHttpRequest(_object): __swig_setmethods__ = {} @@ -2286,22 +4253,37 @@ class ofHttpRequest(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpRequest, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpRequest(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["url"] = _openframeworks.ofHttpRequest_url_set __swig_getmethods__["url"] = _openframeworks.ofHttpRequest_url_get - if _newclass:url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) + if _newclass: + url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) __swig_setmethods__["name"] = _openframeworks.ofHttpRequest_name_set __swig_getmethods__["name"] = _openframeworks.ofHttpRequest_name_get - if _newclass:name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) + if _newclass: + name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) __swig_setmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_set __swig_getmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_get - if _newclass:saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) - def getID(self): return _openframeworks.ofHttpRequest_getID(self) + if _newclass: + saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) + __swig_setmethods__["headers"] = _openframeworks.ofHttpRequest_headers_set + __swig_getmethods__["headers"] = _openframeworks.ofHttpRequest_headers_get + if _newclass: + headers = _swig_property(_openframeworks.ofHttpRequest_headers_get, _openframeworks.ofHttpRequest_headers_set) + + def getId(self): + return _openframeworks.ofHttpRequest_getId(self) + + def getID(self): + return _openframeworks.ofHttpRequest_getID(self) __swig_destroy__ = _openframeworks.delete_ofHttpRequest - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpRequest_swigregister = _openframeworks.ofHttpRequest_swigregister ofHttpRequest_swigregister(ofHttpRequest) @@ -2311,58 +4293,65 @@ class ofHttpResponse(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpResponse, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpResponse(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["request"] = _openframeworks.ofHttpResponse_request_set __swig_getmethods__["request"] = _openframeworks.ofHttpResponse_request_get - if _newclass:request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) + if _newclass: + request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) __swig_setmethods__["data"] = _openframeworks.ofHttpResponse_data_set __swig_getmethods__["data"] = _openframeworks.ofHttpResponse_data_get - if _newclass:data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) + if _newclass: + data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) __swig_setmethods__["status"] = _openframeworks.ofHttpResponse_status_set __swig_getmethods__["status"] = _openframeworks.ofHttpResponse_status_get - if _newclass:status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) + if _newclass: + status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) __swig_setmethods__["error"] = _openframeworks.ofHttpResponse_error_set __swig_getmethods__["error"] = _openframeworks.ofHttpResponse_error_get - if _newclass:error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) + if _newclass: + error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) __swig_destroy__ = _openframeworks.delete_ofHttpResponse - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpResponse_swigregister = _openframeworks.ofHttpResponse_swigregister ofHttpResponse_swigregister(ofHttpResponse) -def ofLoadURL(*args): - return _openframeworks.ofLoadURL(*args) +def ofLoadURL(url): + return _openframeworks.ofLoadURL(url) ofLoadURL = _openframeworks.ofLoadURL def ofLoadURLAsync(*args): - return _openframeworks.ofLoadURLAsync(*args) + return _openframeworks.ofLoadURLAsync(*args) ofLoadURLAsync = _openframeworks.ofLoadURLAsync -def ofSaveURLTo(*args): - return _openframeworks.ofSaveURLTo(*args) +def ofSaveURLTo(url, path): + return _openframeworks.ofSaveURLTo(url, path) ofSaveURLTo = _openframeworks.ofSaveURLTo -def ofSaveURLAsync(*args): - return _openframeworks.ofSaveURLAsync(*args) +def ofSaveURLAsync(url, path): + return _openframeworks.ofSaveURLAsync(url, path) ofSaveURLAsync = _openframeworks.ofSaveURLAsync -def ofRemoveURLRequest(*args): - return _openframeworks.ofRemoveURLRequest(*args) +def ofRemoveURLRequest(id): + return _openframeworks.ofRemoveURLRequest(id) ofRemoveURLRequest = _openframeworks.ofRemoveURLRequest def ofRemoveAllURLRequests(): - return _openframeworks.ofRemoveAllURLRequests() + return _openframeworks.ofRemoveAllURLRequests() ofRemoveAllURLRequests = _openframeworks.ofRemoveAllURLRequests def ofStopURLLoader(): - return _openframeworks.ofStopURLLoader() + return _openframeworks.ofStopURLLoader() ofStopURLLoader = _openframeworks.ofStopURLLoader def ofURLResponseEvent(): - return _openframeworks.ofURLResponseEvent() + return _openframeworks.ofURLResponseEvent() ofURLResponseEvent = _openframeworks.ofURLResponseEvent class ofURLFileLoader(_object): __swig_setmethods__ = {} @@ -2370,19 +4359,39 @@ class ofURLFileLoader(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofURLFileLoader, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofURLFileLoader() - try: self.this.append(this) - except: self.this = this - def get(self, *args): return _openframeworks.ofURLFileLoader_get(self, *args) - def getAsync(self, *args): return _openframeworks.ofURLFileLoader_getAsync(self, *args) - def saveTo(self, *args): return _openframeworks.ofURLFileLoader_saveTo(self, *args) - def saveAsync(self, *args): return _openframeworks.ofURLFileLoader_saveAsync(self, *args) - def remove(self, *args): return _openframeworks.ofURLFileLoader_remove(self, *args) - def clear(self): return _openframeworks.ofURLFileLoader_clear(self) - def stop(self): return _openframeworks.ofURLFileLoader_stop(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def get(self, url): + return _openframeworks.ofURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofURLFileLoader_handleRequest(self, request) __swig_destroy__ = _openframeworks.delete_ofURLFileLoader - __del__ = lambda self : None; + __del__ = lambda self: None ofURLFileLoader_swigregister = _openframeworks.ofURLFileLoader_swigregister ofURLFileLoader_swigregister(ofURLFileLoader) @@ -2392,86 +4401,221 @@ class ofRectangle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofRectangle, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofRectangle - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofRectangle(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofRectangle_set(self, *args) - def setX(self, *args): return _openframeworks.ofRectangle_setX(self, *args) - def setY(self, *args): return _openframeworks.ofRectangle_setY(self, *args) - def setWidth(self, *args): return _openframeworks.ofRectangle_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofRectangle_setHeight(self, *args) - def setPosition(self, *args): return _openframeworks.ofRectangle_setPosition(self, *args) - def setFromCenter(self, *args): return _openframeworks.ofRectangle_setFromCenter(self, *args) - def translate(self, *args): return _openframeworks.ofRectangle_translate(self, *args) - def translateX(self, *args): return _openframeworks.ofRectangle_translateX(self, *args) - def translateY(self, *args): return _openframeworks.ofRectangle_translateY(self, *args) - def scale(self, *args): return _openframeworks.ofRectangle_scale(self, *args) - def scaleWidth(self, *args): return _openframeworks.ofRectangle_scaleWidth(self, *args) - def scaleHeight(self, *args): return _openframeworks.ofRectangle_scaleHeight(self, *args) - def scaleFromCenter(self, *args): return _openframeworks.ofRectangle_scaleFromCenter(self, *args) - def scaleToScaleMode(self, *args): return _openframeworks.ofRectangle_scaleToScaleMode(self, *args) - def scaleToAspectRatio(self, *args): return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) - def scaleTo(self, *args): return _openframeworks.ofRectangle_scaleTo(self, *args) - def alignToHorz(self, *args): return _openframeworks.ofRectangle_alignToHorz(self, *args) - def alignToVert(self, *args): return _openframeworks.ofRectangle_alignToVert(self, *args) - def alignTo(self, *args): return _openframeworks.ofRectangle_alignTo(self, *args) - def inside(self, *args): return _openframeworks.ofRectangle_inside(self, *args) - def intersects(self, *args): return _openframeworks.ofRectangle_intersects(self, *args) - def growToInclude(self, *args): return _openframeworks.ofRectangle_growToInclude(self, *args) - def getIntersection(self, *args): return _openframeworks.ofRectangle_getIntersection(self, *args) - def getUnion(self, *args): return _openframeworks.ofRectangle_getUnion(self, *args) - def standardize(self): return _openframeworks.ofRectangle_standardize(self) - def getStandardized(self): return _openframeworks.ofRectangle_getStandardized(self) - def isStandardized(self): return _openframeworks.ofRectangle_isStandardized(self) - def getArea(self): return _openframeworks.ofRectangle_getArea(self) - def getPerimeter(self): return _openframeworks.ofRectangle_getPerimeter(self) - def getAspectRatio(self): return _openframeworks.ofRectangle_getAspectRatio(self) - def isEmpty(self): return _openframeworks.ofRectangle_isEmpty(self) - def getMin(self): return _openframeworks.ofRectangle_getMin(self) - def getMax(self): return _openframeworks.ofRectangle_getMax(self) - def getMinX(self): return _openframeworks.ofRectangle_getMinX(self) - def getMaxX(self): return _openframeworks.ofRectangle_getMaxX(self) - def getMinY(self): return _openframeworks.ofRectangle_getMinY(self) - def getMaxY(self): return _openframeworks.ofRectangle_getMaxY(self) - def getLeft(self): return _openframeworks.ofRectangle_getLeft(self) - def getRight(self): return _openframeworks.ofRectangle_getRight(self) - def getTop(self): return _openframeworks.ofRectangle_getTop(self) - def getBottom(self): return _openframeworks.ofRectangle_getBottom(self) - def getTopLeft(self): return _openframeworks.ofRectangle_getTopLeft(self) - def getTopRight(self): return _openframeworks.ofRectangle_getTopRight(self) - def getBottomLeft(self): return _openframeworks.ofRectangle_getBottomLeft(self) - def getBottomRight(self): return _openframeworks.ofRectangle_getBottomRight(self) - def getHorzAnchor(self, *args): return _openframeworks.ofRectangle_getHorzAnchor(self, *args) - def getVertAnchor(self, *args): return _openframeworks.ofRectangle_getVertAnchor(self, *args) - def getPosition(self): return _openframeworks.ofRectangle_getPosition(self) - def getPositionRef(self): return _openframeworks.ofRectangle_getPositionRef(self) - def getCenter(self): return _openframeworks.ofRectangle_getCenter(self) - def getX(self): return _openframeworks.ofRectangle_getX(self) - def getY(self): return _openframeworks.ofRectangle_getY(self) - def getWidth(self): return _openframeworks.ofRectangle_getWidth(self) - def getHeight(self): return _openframeworks.ofRectangle_getHeight(self) - def __add__(self, *args): return _openframeworks.ofRectangle___add__(self, *args) - def __eq__(self, *args): return _openframeworks.ofRectangle___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofRectangle___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofRectangle + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofRectangle_set(self, *args) + + def setX(self, px): + return _openframeworks.ofRectangle_setX(self, px) + + def setY(self, py): + return _openframeworks.ofRectangle_setY(self, py) + + def setWidth(self, w): + return _openframeworks.ofRectangle_setWidth(self, w) + + def setHeight(self, h): + return _openframeworks.ofRectangle_setHeight(self, h) + + def setPosition(self, *args): + return _openframeworks.ofRectangle_setPosition(self, *args) + + def setSize(self, w, h): + return _openframeworks.ofRectangle_setSize(self, w, h) + + def setFromCenter(self, *args): + return _openframeworks.ofRectangle_setFromCenter(self, *args) + + def translate(self, *args): + return _openframeworks.ofRectangle_translate(self, *args) + + def translateX(self, dx): + return _openframeworks.ofRectangle_translateX(self, dx) + + def translateY(self, dy): + return _openframeworks.ofRectangle_translateY(self, dy) + + def scale(self, *args): + return _openframeworks.ofRectangle_scale(self, *args) + + def scaleWidth(self, sX): + return _openframeworks.ofRectangle_scaleWidth(self, sX) + + def scaleHeight(self, sY): + return _openframeworks.ofRectangle_scaleHeight(self, sY) + + def scaleFromCenter(self, *args): + return _openframeworks.ofRectangle_scaleFromCenter(self, *args) + + def scaleToScaleMode(self, targetRect, scaleMode=OF_SCALEMODE_FIT): + return _openframeworks.ofRectangle_scaleToScaleMode(self, targetRect, scaleMode) + + def scaleToAspectRatio(self, *args): + return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) + + def scaleTo(self, *args): + return _openframeworks.ofRectangle_scaleTo(self, *args) + + def alignToHorz(self, *args): + return _openframeworks.ofRectangle_alignToHorz(self, *args) + + def alignToVert(self, *args): + return _openframeworks.ofRectangle_alignToVert(self, *args) + + def alignTo(self, *args): + return _openframeworks.ofRectangle_alignTo(self, *args) + + def inside(self, *args): + return _openframeworks.ofRectangle_inside(self, *args) + + def intersects(self, *args): + return _openframeworks.ofRectangle_intersects(self, *args) + + def growToInclude(self, *args): + return _openframeworks.ofRectangle_growToInclude(self, *args) + + def getIntersection(self, rect): + return _openframeworks.ofRectangle_getIntersection(self, rect) + + def getUnion(self, rect): + return _openframeworks.ofRectangle_getUnion(self, rect) + + def standardize(self): + return _openframeworks.ofRectangle_standardize(self) + + def getStandardized(self): + return _openframeworks.ofRectangle_getStandardized(self) + + def isStandardized(self): + return _openframeworks.ofRectangle_isStandardized(self) + + def getArea(self): + return _openframeworks.ofRectangle_getArea(self) + + def getPerimeter(self): + return _openframeworks.ofRectangle_getPerimeter(self) + + def getAspectRatio(self): + return _openframeworks.ofRectangle_getAspectRatio(self) + + def isEmpty(self): + return _openframeworks.ofRectangle_isEmpty(self) + + def getMin(self): + return _openframeworks.ofRectangle_getMin(self) + + def getMax(self): + return _openframeworks.ofRectangle_getMax(self) + + def getMinX(self): + return _openframeworks.ofRectangle_getMinX(self) + + def getMaxX(self): + return _openframeworks.ofRectangle_getMaxX(self) + + def getMinY(self): + return _openframeworks.ofRectangle_getMinY(self) + + def getMaxY(self): + return _openframeworks.ofRectangle_getMaxY(self) + + def getLeft(self): + return _openframeworks.ofRectangle_getLeft(self) + + def getRight(self): + return _openframeworks.ofRectangle_getRight(self) + + def getTop(self): + return _openframeworks.ofRectangle_getTop(self) + + def getBottom(self): + return _openframeworks.ofRectangle_getBottom(self) + + def getTopLeft(self): + return _openframeworks.ofRectangle_getTopLeft(self) + + def getTopRight(self): + return _openframeworks.ofRectangle_getTopRight(self) + + def getBottomLeft(self): + return _openframeworks.ofRectangle_getBottomLeft(self) + + def getBottomRight(self): + return _openframeworks.ofRectangle_getBottomRight(self) + + def getHorzAnchor(self, anchor): + return _openframeworks.ofRectangle_getHorzAnchor(self, anchor) + + def getVertAnchor(self, anchor): + return _openframeworks.ofRectangle_getVertAnchor(self, anchor) + + def getPosition(self): + return _openframeworks.ofRectangle_getPosition(self) + + def getPositionRef(self): + return _openframeworks.ofRectangle_getPositionRef(self) + + def getCenter(self): + return _openframeworks.ofRectangle_getCenter(self) + + def getX(self): + return _openframeworks.ofRectangle_getX(self) + + def getY(self): + return _openframeworks.ofRectangle_getY(self) + + def getWidth(self): + return _openframeworks.ofRectangle_getWidth(self) + + def getHeight(self): + return _openframeworks.ofRectangle_getHeight(self) + + def __add__(self, p): + return _openframeworks.ofRectangle___add__(self, p) + + def __sub__(self, p): + return _openframeworks.ofRectangle___sub__(self, p) + + def __eq__(self, rect): + return _openframeworks.ofRectangle___eq__(self, rect) + + def __ne__(self, rect): + return _openframeworks.ofRectangle___ne__(self, rect) + + def isZero(self): + return _openframeworks.ofRectangle_isZero(self) __swig_setmethods__["position"] = _openframeworks.ofRectangle_position_set __swig_getmethods__["position"] = _openframeworks.ofRectangle_position_get - if _newclass:position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) + if _newclass: + position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) __swig_setmethods__["width"] = _openframeworks.ofRectangle_width_set __swig_getmethods__["width"] = _openframeworks.ofRectangle_width_get - if _newclass:width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) __swig_setmethods__["height"] = _openframeworks.ofRectangle_height_set __swig_getmethods__["height"] = _openframeworks.ofRectangle_height_get - if _newclass:height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) __swig_setmethods__["x"] = _openframeworks.ofRectangle_x_set __swig_getmethods__["x"] = _openframeworks.ofRectangle_x_get - if _newclass:x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) __swig_setmethods__["y"] = _openframeworks.ofRectangle_y_set __swig_getmethods__["y"] = _openframeworks.ofRectangle_y_get - if _newclass:y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) - def __str__(self): return _openframeworks.ofRectangle___str__(self) + if _newclass: + y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) + + def __str__(self): + return _openframeworks.ofRectangle___str__(self) ofRectangle_swigregister = _openframeworks.ofRectangle_swigregister ofRectangle_swigregister(ofRectangle) @@ -2481,309 +4625,700 @@ class ofNode(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofNode, name) __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofNode() - try: self.this.append(this) - except: self.this = this __swig_destroy__ = _openframeworks.delete_ofNode - __del__ = lambda self : None; - def setParent(self, *args): return _openframeworks.ofNode_setParent(self, *args) - def clearParent(self, bMaintainGlobalTransform=False): return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) - def getParent(self): return _openframeworks.ofNode_getParent(self) - def getPosition(self): return _openframeworks.ofNode_getPosition(self) - def getX(self): return _openframeworks.ofNode_getX(self) - def getY(self): return _openframeworks.ofNode_getY(self) - def getZ(self): return _openframeworks.ofNode_getZ(self) - def getXAxis(self): return _openframeworks.ofNode_getXAxis(self) - def getYAxis(self): return _openframeworks.ofNode_getYAxis(self) - def getZAxis(self): return _openframeworks.ofNode_getZAxis(self) - def getSideDir(self): return _openframeworks.ofNode_getSideDir(self) - def getLookAtDir(self): return _openframeworks.ofNode_getLookAtDir(self) - def getUpDir(self): return _openframeworks.ofNode_getUpDir(self) - def getPitch(self): return _openframeworks.ofNode_getPitch(self) - def getHeading(self): return _openframeworks.ofNode_getHeading(self) - def getRoll(self): return _openframeworks.ofNode_getRoll(self) - def getOrientationQuat(self): return _openframeworks.ofNode_getOrientationQuat(self) - def getOrientationEuler(self): return _openframeworks.ofNode_getOrientationEuler(self) - def getScale(self): return _openframeworks.ofNode_getScale(self) - def getLocalTransformMatrix(self): return _openframeworks.ofNode_getLocalTransformMatrix(self) - def getGlobalTransformMatrix(self): return _openframeworks.ofNode_getGlobalTransformMatrix(self) - def getGlobalPosition(self): return _openframeworks.ofNode_getGlobalPosition(self) - def getGlobalOrientation(self): return _openframeworks.ofNode_getGlobalOrientation(self) - def getGlobalScale(self): return _openframeworks.ofNode_getGlobalScale(self) - def setTransformMatrix(self, *args): return _openframeworks.ofNode_setTransformMatrix(self, *args) - def setPosition(self, *args): return _openframeworks.ofNode_setPosition(self, *args) - def setGlobalPosition(self, *args): return _openframeworks.ofNode_setGlobalPosition(self, *args) - def setOrientation(self, *args): return _openframeworks.ofNode_setOrientation(self, *args) - def setGlobalOrientation(self, *args): return _openframeworks.ofNode_setGlobalOrientation(self, *args) - def setScale(self, *args): return _openframeworks.ofNode_setScale(self, *args) - def move(self, *args): return _openframeworks.ofNode_move(self, *args) - def truck(self, *args): return _openframeworks.ofNode_truck(self, *args) - def boom(self, *args): return _openframeworks.ofNode_boom(self, *args) - def dolly(self, *args): return _openframeworks.ofNode_dolly(self, *args) - def tilt(self, *args): return _openframeworks.ofNode_tilt(self, *args) - def pan(self, *args): return _openframeworks.ofNode_pan(self, *args) - def roll(self, *args): return _openframeworks.ofNode_roll(self, *args) - def rotate(self, *args): return _openframeworks.ofNode_rotate(self, *args) - def rotateAround(self, *args): return _openframeworks.ofNode_rotateAround(self, *args) - def lookAt(self, *args): return _openframeworks.ofNode_lookAt(self, *args) - def orbit(self, *args): return _openframeworks.ofNode_orbit(self, *args) - def transformGL(self): return _openframeworks.ofNode_transformGL(self) - def restoreTransformGL(self): return _openframeworks.ofNode_restoreTransformGL(self) - def resetTransform(self): return _openframeworks.ofNode_resetTransform(self) - def customDraw(self): return _openframeworks.ofNode_customDraw(self) - def draw(self): return _openframeworks.ofNode_draw(self) + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofNode(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setParent(self, parent, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_setParent(self, parent, bMaintainGlobalTransform) + + def clearParent(self, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) + + def getParent(self): + return _openframeworks.ofNode_getParent(self) + + def getPosition(self): + return _openframeworks.ofNode_getPosition(self) + + def getX(self): + return _openframeworks.ofNode_getX(self) + + def getY(self): + return _openframeworks.ofNode_getY(self) + + def getZ(self): + return _openframeworks.ofNode_getZ(self) + + def getXAxis(self): + return _openframeworks.ofNode_getXAxis(self) + + def getYAxis(self): + return _openframeworks.ofNode_getYAxis(self) + + def getZAxis(self): + return _openframeworks.ofNode_getZAxis(self) + + def getSideDir(self): + return _openframeworks.ofNode_getSideDir(self) + + def getLookAtDir(self): + return _openframeworks.ofNode_getLookAtDir(self) + + def getUpDir(self): + return _openframeworks.ofNode_getUpDir(self) + + def getPitch(self): + return _openframeworks.ofNode_getPitch(self) + + def getHeading(self): + return _openframeworks.ofNode_getHeading(self) + + def getRoll(self): + return _openframeworks.ofNode_getRoll(self) + + def getOrientationQuat(self): + return _openframeworks.ofNode_getOrientationQuat(self) + + def getOrientationEuler(self): + return _openframeworks.ofNode_getOrientationEuler(self) + + def getScale(self): + return _openframeworks.ofNode_getScale(self) + + def getLocalTransformMatrix(self): + return _openframeworks.ofNode_getLocalTransformMatrix(self) + + def getGlobalTransformMatrix(self): + return _openframeworks.ofNode_getGlobalTransformMatrix(self) + + def getGlobalPosition(self): + return _openframeworks.ofNode_getGlobalPosition(self) + + def getGlobalOrientation(self): + return _openframeworks.ofNode_getGlobalOrientation(self) + + def getGlobalScale(self): + return _openframeworks.ofNode_getGlobalScale(self) + + def setTransformMatrix(self, m44): + return _openframeworks.ofNode_setTransformMatrix(self, m44) + + def setPosition(self, *args): + return _openframeworks.ofNode_setPosition(self, *args) + + def setGlobalPosition(self, *args): + return _openframeworks.ofNode_setGlobalPosition(self, *args) + + def setOrientation(self, *args): + return _openframeworks.ofNode_setOrientation(self, *args) + + def setGlobalOrientation(self, q): + return _openframeworks.ofNode_setGlobalOrientation(self, q) + + def setScale(self, *args): + return _openframeworks.ofNode_setScale(self, *args) + + def move(self, *args): + return _openframeworks.ofNode_move(self, *args) + + def truck(self, amount): + return _openframeworks.ofNode_truck(self, amount) + + def boom(self, amount): + return _openframeworks.ofNode_boom(self, amount) + + def dolly(self, amount): + return _openframeworks.ofNode_dolly(self, amount) + + def tilt(self, degrees): + return _openframeworks.ofNode_tilt(self, degrees) + + def pan(self, degrees): + return _openframeworks.ofNode_pan(self, degrees) + + def roll(self, degrees): + return _openframeworks.ofNode_roll(self, degrees) + + def rotate(self, *args): + return _openframeworks.ofNode_rotate(self, *args) + + def rotateAround(self, *args): + return _openframeworks.ofNode_rotateAround(self, *args) + + def lookAt(self, *args): + return _openframeworks.ofNode_lookAt(self, *args) + + def orbit(self, *args): + return _openframeworks.ofNode_orbit(self, *args) + + def transformGL(self, renderer=None): + return _openframeworks.ofNode_transformGL(self, renderer) + + def restoreTransformGL(self, renderer=None): + return _openframeworks.ofNode_restoreTransformGL(self, renderer) + + def resetTransform(self): + return _openframeworks.ofNode_resetTransform(self) + + def customDraw(self, *args): + return _openframeworks.ofNode_customDraw(self, *args) + + def draw(self): + return _openframeworks.ofNode_draw(self) ofNode_swigregister = _openframeworks.ofNode_swigregister ofNode_swigregister(ofNode) -def ofDrawAxis(*args): - return _openframeworks.ofDrawAxis(*args) +def ofDrawAxis(size): + return _openframeworks.ofDrawAxis(size) ofDrawAxis = _openframeworks.ofDrawAxis -def ofDrawGrid(scale=10.0, ticks=8.0, labels=False, x=True, y=True, z=True): - return _openframeworks.ofDrawGrid(scale, ticks, labels, x, y, z) +def ofDrawGrid(stepSize=1.25, numberOfSteps=8, labels=False, x=True, y=True, z=True): + return _openframeworks.ofDrawGrid(stepSize, numberOfSteps, labels, x, y, z) ofDrawGrid = _openframeworks.ofDrawGrid -def ofDrawGridPlane(*args): - return _openframeworks.ofDrawGridPlane(*args) +def ofDrawGridPlane(stepSize=1.25, numberOfSteps=8, labels=False): + return _openframeworks.ofDrawGridPlane(stepSize, numberOfSteps, labels) ofDrawGridPlane = _openframeworks.ofDrawGridPlane -def ofDrawArrow(*args): - return _openframeworks.ofDrawArrow(*args) +def ofDrawArrow(start, end, headSize=0.05): + return _openframeworks.ofDrawArrow(start, end, headSize) ofDrawArrow = _openframeworks.ofDrawArrow -def ofDrawRotationAxes(*args): - return _openframeworks.ofDrawRotationAxes(*args) +def ofDrawRotationAxes(radius, stripWidth=10, circleRes=60): + return _openframeworks.ofDrawRotationAxes(radius, stripWidth, circleRes) ofDrawRotationAxes = _openframeworks.ofDrawRotationAxes class ofCamera(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofCamera, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofCamera, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofCamera() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCamera - __del__ = lambda self : None; - def setFov(self, *args): return _openframeworks.ofCamera_setFov(self, *args) - def setNearClip(self, *args): return _openframeworks.ofCamera_setNearClip(self, *args) - def setFarClip(self, *args): return _openframeworks.ofCamera_setFarClip(self, *args) - def setLensOffset(self, *args): return _openframeworks.ofCamera_setLensOffset(self, *args) - def setAspectRatio(self, *args): return _openframeworks.ofCamera_setAspectRatio(self, *args) - def setForceAspectRatio(self, *args): return _openframeworks.ofCamera_setForceAspectRatio(self, *args) - def getFov(self): return _openframeworks.ofCamera_getFov(self) - def getNearClip(self): return _openframeworks.ofCamera_getNearClip(self) - def getFarClip(self): return _openframeworks.ofCamera_getFarClip(self) - def getLensOffset(self): return _openframeworks.ofCamera_getLensOffset(self) - def getForceAspectRatio(self): return _openframeworks.ofCamera_getForceAspectRatio(self) - def getAspectRatio(self): return _openframeworks.ofCamera_getAspectRatio(self) - def setupPerspective(self, *args): return _openframeworks.ofCamera_setupPerspective(self, *args) - def setupOffAxisViewPortal(self, *args): return _openframeworks.ofCamera_setupOffAxisViewPortal(self, *args) - def setVFlip(self, *args): return _openframeworks.ofCamera_setVFlip(self, *args) - def isVFlipped(self): return _openframeworks.ofCamera_isVFlipped(self) - def enableOrtho(self): return _openframeworks.ofCamera_enableOrtho(self) - def disableOrtho(self): return _openframeworks.ofCamera_disableOrtho(self) - def getOrtho(self): return _openframeworks.ofCamera_getOrtho(self) - def getImagePlaneDistance(self, *args): return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) - def begin(self, *args): return _openframeworks.ofCamera_begin(self, *args) - def end(self): return _openframeworks.ofCamera_end(self) - def getProjectionMatrix(self, *args): return _openframeworks.ofCamera_getProjectionMatrix(self, *args) - def getModelViewMatrix(self): return _openframeworks.ofCamera_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self, *args): return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) - def worldToScreen(self, *args): return _openframeworks.ofCamera_worldToScreen(self, *args) - def screenToWorld(self, *args): return _openframeworks.ofCamera_screenToWorld(self, *args) - def worldToCamera(self, *args): return _openframeworks.ofCamera_worldToCamera(self, *args) - def cameraToWorld(self, *args): return _openframeworks.ofCamera_cameraToWorld(self, *args) + __del__ = lambda self: None + + def setFov(self, f): + return _openframeworks.ofCamera_setFov(self, f) + + def setNearClip(self, f): + return _openframeworks.ofCamera_setNearClip(self, f) + + def setFarClip(self, f): + return _openframeworks.ofCamera_setFarClip(self, f) + + def setLensOffset(self, lensOffset): + return _openframeworks.ofCamera_setLensOffset(self, lensOffset) + + def setAspectRatio(self, aspectRatio): + return _openframeworks.ofCamera_setAspectRatio(self, aspectRatio) + + def setForceAspectRatio(self, forceAspectRatio): + return _openframeworks.ofCamera_setForceAspectRatio(self, forceAspectRatio) + + def getFov(self): + return _openframeworks.ofCamera_getFov(self) + + def getNearClip(self): + return _openframeworks.ofCamera_getNearClip(self) + + def getFarClip(self): + return _openframeworks.ofCamera_getFarClip(self) + + def getLensOffset(self): + return _openframeworks.ofCamera_getLensOffset(self) + + def getForceAspectRatio(self): + return _openframeworks.ofCamera_getForceAspectRatio(self) + + def getAspectRatio(self): + return _openframeworks.ofCamera_getAspectRatio(self) + + def setupPerspective(self, *args): + return _openframeworks.ofCamera_setupPerspective(self, *args) + + def setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight): + return _openframeworks.ofCamera_setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight) + + def setVFlip(self, vflip): + return _openframeworks.ofCamera_setVFlip(self, vflip) + + def isVFlipped(self): + return _openframeworks.ofCamera_isVFlipped(self) + + def enableOrtho(self): + return _openframeworks.ofCamera_enableOrtho(self) + + def disableOrtho(self): + return _openframeworks.ofCamera_disableOrtho(self) + + def getOrtho(self): + return _openframeworks.ofCamera_getOrtho(self) + + def getImagePlaneDistance(self, *args): + return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) + + def begin(self, *args): + return _openframeworks.ofCamera_begin(self, *args) + + def end(self): + return _openframeworks.ofCamera_end(self) + + def getProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getProjectionMatrix(self, *args) + + def getModelViewMatrix(self): + return _openframeworks.ofCamera_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) + + def worldToScreen(self, *args): + return _openframeworks.ofCamera_worldToScreen(self, *args) + + def screenToWorld(self, *args): + return _openframeworks.ofCamera_screenToWorld(self, *args) + + def worldToCamera(self, *args): + return _openframeworks.ofCamera_worldToCamera(self, *args) + + def cameraToWorld(self, *args): + return _openframeworks.ofCamera_cameraToWorld(self, *args) + + def setRenderer(self, renderer): + return _openframeworks.ofCamera_setRenderer(self, renderer) ofCamera_swigregister = _openframeworks.ofCamera_swigregister ofCamera_swigregister(ofCamera) class ofEasyCam(ofCamera): __swig_setmethods__ = {} - for _s in [ofCamera]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofCamera]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofEasyCam, name, value) __swig_getmethods__ = {} - for _s in [ofCamera]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofCamera]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofEasyCam, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofEasyCam() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofEasyCam - __del__ = lambda self : None; - def begin(self, *args): return _openframeworks.ofEasyCam_begin(self, *args) - def reset(self): return _openframeworks.ofEasyCam_reset(self) - def setTarget(self, *args): return _openframeworks.ofEasyCam_setTarget(self, *args) - def getTarget(self): return _openframeworks.ofEasyCam_getTarget(self) - def setDistance(self, *args): return _openframeworks.ofEasyCam_setDistance(self, *args) - def getDistance(self): return _openframeworks.ofEasyCam_getDistance(self) - def setDrag(self, *args): return _openframeworks.ofEasyCam_setDrag(self, *args) - def getDrag(self): return _openframeworks.ofEasyCam_getDrag(self) - def setTranslationKey(self, *args): return _openframeworks.ofEasyCam_setTranslationKey(self, *args) - def getTranslationKey(self): return _openframeworks.ofEasyCam_getTranslationKey(self) - def enableMouseInput(self): return _openframeworks.ofEasyCam_enableMouseInput(self) - def disableMouseInput(self): return _openframeworks.ofEasyCam_disableMouseInput(self) - def getMouseInputEnabled(self): return _openframeworks.ofEasyCam_getMouseInputEnabled(self) - def enableMouseMiddleButton(self): return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) - def disableMouseMiddleButton(self): return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) - def getMouseMiddleButtonEnabled(self): return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) - def setAutoDistance(self, *args): return _openframeworks.ofEasyCam_setAutoDistance(self, *args) -ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister -ofEasyCam_swigregister(ofEasyCam) + __del__ = lambda self: None -class ofMesh(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) - __swig_getmethods__ = {} + def begin(self, *args): + return _openframeworks.ofEasyCam_begin(self, *args) + + def reset(self): + return _openframeworks.ofEasyCam_reset(self) + + def setTarget(self, *args): + return _openframeworks.ofEasyCam_setTarget(self, *args) + + def getTarget(self): + return _openframeworks.ofEasyCam_getTarget(self) + + def setDistance(self, distance): + return _openframeworks.ofEasyCam_setDistance(self, distance) + + def getDistance(self): + return _openframeworks.ofEasyCam_getDistance(self) + + def setDrag(self, drag): + return _openframeworks.ofEasyCam_setDrag(self, drag) + + def getDrag(self): + return _openframeworks.ofEasyCam_getDrag(self) + + def setAutoDistance(self, bAutoDistance): + return _openframeworks.ofEasyCam_setAutoDistance(self, bAutoDistance) + + def setEvents(self, events): + return _openframeworks.ofEasyCam_setEvents(self, events) + + def setTranslationKey(self, key): + return _openframeworks.ofEasyCam_setTranslationKey(self, key) + + def getTranslationKey(self): + return _openframeworks.ofEasyCam_getTranslationKey(self) + + def enableMouseInput(self): + return _openframeworks.ofEasyCam_enableMouseInput(self) + + def disableMouseInput(self): + return _openframeworks.ofEasyCam_disableMouseInput(self) + + def getMouseInputEnabled(self): + return _openframeworks.ofEasyCam_getMouseInputEnabled(self) + + def enableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) + + def disableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) + + def getMouseMiddleButtonEnabled(self): + return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) +ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister +ofEasyCam_swigregister(ofEasyCam) + +class ofMesh(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) + __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMesh, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofMesh(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _openframeworks.delete_ofMesh - __del__ = lambda self : None; - def setMode(self, *args): return _openframeworks.ofMesh_setMode(self, *args) - def getMode(self): return _openframeworks.ofMesh_getMode(self) - def clear(self): return _openframeworks.ofMesh_clear(self) - def setupIndicesAuto(self): return _openframeworks.ofMesh_setupIndicesAuto(self) - def getVertex(self, *args): return _openframeworks.ofMesh_getVertex(self, *args) - def addVertex(self, *args): return _openframeworks.ofMesh_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofMesh_addVertices(self, *args) - def removeVertex(self, *args): return _openframeworks.ofMesh_removeVertex(self, *args) - def setVertex(self, *args): return _openframeworks.ofMesh_setVertex(self, *args) - def clearVertices(self): return _openframeworks.ofMesh_clearVertices(self) - def getNormal(self, *args): return _openframeworks.ofMesh_getNormal(self, *args) - def addNormal(self, *args): return _openframeworks.ofMesh_addNormal(self, *args) - def addNormals(self, *args): return _openframeworks.ofMesh_addNormals(self, *args) - def removeNormal(self, *args): return _openframeworks.ofMesh_removeNormal(self, *args) - def setNormal(self, *args): return _openframeworks.ofMesh_setNormal(self, *args) - def clearNormals(self): return _openframeworks.ofMesh_clearNormals(self) - def getColor(self, *args): return _openframeworks.ofMesh_getColor(self, *args) - def addColor(self, *args): return _openframeworks.ofMesh_addColor(self, *args) - def addColors(self, *args): return _openframeworks.ofMesh_addColors(self, *args) - def removeColor(self, *args): return _openframeworks.ofMesh_removeColor(self, *args) - def setColor(self, *args): return _openframeworks.ofMesh_setColor(self, *args) - def clearColors(self): return _openframeworks.ofMesh_clearColors(self) - def getTexCoord(self, *args): return _openframeworks.ofMesh_getTexCoord(self, *args) - def addTexCoord(self, *args): return _openframeworks.ofMesh_addTexCoord(self, *args) - def addTexCoords(self, *args): return _openframeworks.ofMesh_addTexCoords(self, *args) - def removeTexCoord(self, *args): return _openframeworks.ofMesh_removeTexCoord(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMesh_setTexCoord(self, *args) - def clearTexCoords(self): return _openframeworks.ofMesh_clearTexCoords(self) - def getIndex(self, *args): return _openframeworks.ofMesh_getIndex(self, *args) - def addIndex(self, *args): return _openframeworks.ofMesh_addIndex(self, *args) - def addIndices(self, *args): return _openframeworks.ofMesh_addIndices(self, *args) - def removeIndex(self, *args): return _openframeworks.ofMesh_removeIndex(self, *args) - def setIndex(self, *args): return _openframeworks.ofMesh_setIndex(self, *args) - def clearIndices(self): return _openframeworks.ofMesh_clearIndices(self) - def addTriangle(self, *args): return _openframeworks.ofMesh_addTriangle(self, *args) - def getNumVertices(self): return _openframeworks.ofMesh_getNumVertices(self) - def getNumColors(self): return _openframeworks.ofMesh_getNumColors(self) - def getNumNormals(self): return _openframeworks.ofMesh_getNumNormals(self) - def getNumTexCoords(self): return _openframeworks.ofMesh_getNumTexCoords(self) - def getNumIndices(self): return _openframeworks.ofMesh_getNumIndices(self) - def getVerticesPointer(self, *args): return _openframeworks.ofMesh_getVerticesPointer(self, *args) - def getColorsPointer(self, *args): return _openframeworks.ofMesh_getColorsPointer(self, *args) - def getNormalsPointer(self, *args): return _openframeworks.ofMesh_getNormalsPointer(self, *args) - def getTexCoordsPointer(self, *args): return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) - def getIndexPointer(self, *args): return _openframeworks.ofMesh_getIndexPointer(self, *args) - def getVertices(self, *args): return _openframeworks.ofMesh_getVertices(self, *args) - def getColors(self, *args): return _openframeworks.ofMesh_getColors(self, *args) - def getNormals(self, *args): return _openframeworks.ofMesh_getNormals(self, *args) - def getTexCoords(self, *args): return _openframeworks.ofMesh_getTexCoords(self, *args) - def getIndices(self, *args): return _openframeworks.ofMesh_getIndices(self, *args) - def getCentroid(self): return _openframeworks.ofMesh_getCentroid(self) - def haveVertsChanged(self): return _openframeworks.ofMesh_haveVertsChanged(self) - def haveColorsChanged(self): return _openframeworks.ofMesh_haveColorsChanged(self) - def haveNormalsChanged(self): return _openframeworks.ofMesh_haveNormalsChanged(self) - def haveTexCoordsChanged(self): return _openframeworks.ofMesh_haveTexCoordsChanged(self) - def haveIndicesChanged(self): return _openframeworks.ofMesh_haveIndicesChanged(self) - def hasVertices(self): return _openframeworks.ofMesh_hasVertices(self) - def hasColors(self): return _openframeworks.ofMesh_hasColors(self) - def hasNormals(self): return _openframeworks.ofMesh_hasNormals(self) - def hasTexCoords(self): return _openframeworks.ofMesh_hasTexCoords(self) - def hasIndices(self): return _openframeworks.ofMesh_hasIndices(self) - def drawVertices(self): return _openframeworks.ofMesh_drawVertices(self) - def drawWireframe(self): return _openframeworks.ofMesh_drawWireframe(self) - def drawFaces(self): return _openframeworks.ofMesh_drawFaces(self) - def load(self, *args): return _openframeworks.ofMesh_load(self, *args) - def save(self, *args): return _openframeworks.ofMesh_save(self, *args) - def enableColors(self): return _openframeworks.ofMesh_enableColors(self) - def enableTextures(self): return _openframeworks.ofMesh_enableTextures(self) - def enableNormals(self): return _openframeworks.ofMesh_enableNormals(self) - def enableIndices(self): return _openframeworks.ofMesh_enableIndices(self) - def disableColors(self): return _openframeworks.ofMesh_disableColors(self) - def disableTextures(self): return _openframeworks.ofMesh_disableTextures(self) - def disableNormals(self): return _openframeworks.ofMesh_disableNormals(self) - def disableIndices(self): return _openframeworks.ofMesh_disableIndices(self) - def usingColors(self): return _openframeworks.ofMesh_usingColors(self) - def usingTextures(self): return _openframeworks.ofMesh_usingTextures(self) - def usingNormals(self): return _openframeworks.ofMesh_usingNormals(self) - def usingIndices(self): return _openframeworks.ofMesh_usingIndices(self) - def append(self, *args): return _openframeworks.ofMesh_append(self, *args) - def setColorForIndices(self, *args): return _openframeworks.ofMesh_setColorForIndices(self, *args) - def getMeshForIndices(self, *args): return _openframeworks.ofMesh_getMeshForIndices(self, *args) - def mergeDuplicateVertices(self): return _openframeworks.ofMesh_mergeDuplicateVertices(self) - def getUniqueFaces(self): return _openframeworks.ofMesh_getUniqueFaces(self) - def getFaceNormals(self, perVetex=False): return _openframeworks.ofMesh_getFaceNormals(self, perVetex) - def setFromTriangles(self, *args): return _openframeworks.ofMesh_setFromTriangles(self, *args) - def smoothNormals(self, *args): return _openframeworks.ofMesh_smoothNormals(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setFromTriangles(self, tris, bUseFaceNormal=False): + return _openframeworks.ofMesh_setFromTriangles(self, tris, bUseFaceNormal) + + def setMode(self, mode): + return _openframeworks.ofMesh_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofMesh_getMode(self) __swig_getmethods__["plane"] = lambda x: _openframeworks.ofMesh_plane - if _newclass:plane = staticmethod(_openframeworks.ofMesh_plane) + if _newclass: + plane = staticmethod(_openframeworks.ofMesh_plane) __swig_getmethods__["sphere"] = lambda x: _openframeworks.ofMesh_sphere - if _newclass:sphere = staticmethod(_openframeworks.ofMesh_sphere) + if _newclass: + sphere = staticmethod(_openframeworks.ofMesh_sphere) __swig_getmethods__["icosahedron"] = lambda x: _openframeworks.ofMesh_icosahedron - if _newclass:icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) + if _newclass: + icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) __swig_getmethods__["icosphere"] = lambda x: _openframeworks.ofMesh_icosphere - if _newclass:icosphere = staticmethod(_openframeworks.ofMesh_icosphere) + if _newclass: + icosphere = staticmethod(_openframeworks.ofMesh_icosphere) __swig_getmethods__["cylinder"] = lambda x: _openframeworks.ofMesh_cylinder - if _newclass:cylinder = staticmethod(_openframeworks.ofMesh_cylinder) + if _newclass: + cylinder = staticmethod(_openframeworks.ofMesh_cylinder) __swig_getmethods__["cone"] = lambda x: _openframeworks.ofMesh_cone - if _newclass:cone = staticmethod(_openframeworks.ofMesh_cone) + if _newclass: + cone = staticmethod(_openframeworks.ofMesh_cone) __swig_getmethods__["box"] = lambda x: _openframeworks.ofMesh_box - if _newclass:box = staticmethod(_openframeworks.ofMesh_box) + if _newclass: + box = staticmethod(_openframeworks.ofMesh_box) __swig_getmethods__["axis"] = lambda x: _openframeworks.ofMesh_axis - if _newclass:axis = staticmethod(_openframeworks.ofMesh_axis) - def draw(self, *args): return _openframeworks.ofMesh_draw(self, *args) + if _newclass: + axis = staticmethod(_openframeworks.ofMesh_axis) + + def addVertex(self, v): + return _openframeworks.ofMesh_addVertex(self, v) + + def addVertices(self, *args): + return _openframeworks.ofMesh_addVertices(self, *args) + + def removeVertex(self, index): + return _openframeworks.ofMesh_removeVertex(self, index) + + def setVertex(self, index, v): + return _openframeworks.ofMesh_setVertex(self, index, v) + + def clearVertices(self): + return _openframeworks.ofMesh_clearVertices(self) + + def clear(self): + return _openframeworks.ofMesh_clear(self) + + def getNumVertices(self): + return _openframeworks.ofMesh_getNumVertices(self) + + def getVerticesPointer(self, *args): + return _openframeworks.ofMesh_getVerticesPointer(self, *args) + + def getVertex(self, i): + return _openframeworks.ofMesh_getVertex(self, i) + + def getVertices(self, *args): + return _openframeworks.ofMesh_getVertices(self, *args) + + def haveVertsChanged(self): + return _openframeworks.ofMesh_haveVertsChanged(self) + + def hasVertices(self): + return _openframeworks.ofMesh_hasVertices(self) + + def append(self, mesh): + return _openframeworks.ofMesh_append(self, mesh) + + def mergeDuplicateVertices(self): + return _openframeworks.ofMesh_mergeDuplicateVertices(self) + + def getCentroid(self): + return _openframeworks.ofMesh_getCentroid(self) + + def getNormal(self, i): + return _openframeworks.ofMesh_getNormal(self, i) + + def addNormal(self, n): + return _openframeworks.ofMesh_addNormal(self, n) + + def addNormals(self, *args): + return _openframeworks.ofMesh_addNormals(self, *args) + + def removeNormal(self, index): + return _openframeworks.ofMesh_removeNormal(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMesh_setNormal(self, index, n) + + def clearNormals(self): + return _openframeworks.ofMesh_clearNormals(self) + + def getNumNormals(self): + return _openframeworks.ofMesh_getNumNormals(self) + + def getNormalsPointer(self, *args): + return _openframeworks.ofMesh_getNormalsPointer(self, *args) + + def getNormals(self, *args): + return _openframeworks.ofMesh_getNormals(self, *args) + + def haveNormalsChanged(self): + return _openframeworks.ofMesh_haveNormalsChanged(self) + + def hasNormals(self): + return _openframeworks.ofMesh_hasNormals(self) + + def enableNormals(self): + return _openframeworks.ofMesh_enableNormals(self) + + def disableNormals(self): + return _openframeworks.ofMesh_disableNormals(self) + + def usingNormals(self): + return _openframeworks.ofMesh_usingNormals(self) + + def smoothNormals(self, angle): + return _openframeworks.ofMesh_smoothNormals(self, angle) + + def getFace(self, faceId): + return _openframeworks.ofMesh_getFace(self, faceId) + + def getFaceNormals(self, perVetex=False): + return _openframeworks.ofMesh_getFaceNormals(self, perVetex) + + def getUniqueFaces(self): + return _openframeworks.ofMesh_getUniqueFaces(self) + + def getColor(self, i): + return _openframeworks.ofMesh_getColor(self, i) + + def addColor(self, c): + return _openframeworks.ofMesh_addColor(self, c) + + def addColors(self, *args): + return _openframeworks.ofMesh_addColors(self, *args) + + def removeColor(self, index): + return _openframeworks.ofMesh_removeColor(self, index) + + def setColor(self, index, c): + return _openframeworks.ofMesh_setColor(self, index, c) + + def clearColors(self): + return _openframeworks.ofMesh_clearColors(self) + + def getNumColors(self): + return _openframeworks.ofMesh_getNumColors(self) + + def getColorsPointer(self, *args): + return _openframeworks.ofMesh_getColorsPointer(self, *args) + + def getColors(self, *args): + return _openframeworks.ofMesh_getColors(self, *args) + + def haveColorsChanged(self): + return _openframeworks.ofMesh_haveColorsChanged(self) + + def hasColors(self): + return _openframeworks.ofMesh_hasColors(self) + + def enableColors(self): + return _openframeworks.ofMesh_enableColors(self) + + def disableColors(self): + return _openframeworks.ofMesh_disableColors(self) + + def usingColors(self): + return _openframeworks.ofMesh_usingColors(self) + + def getTexCoord(self, i): + return _openframeworks.ofMesh_getTexCoord(self, i) + + def addTexCoord(self, t): + return _openframeworks.ofMesh_addTexCoord(self, t) + + def addTexCoords(self, *args): + return _openframeworks.ofMesh_addTexCoords(self, *args) + + def removeTexCoord(self, index): + return _openframeworks.ofMesh_removeTexCoord(self, index) + + def setTexCoord(self, index, t): + return _openframeworks.ofMesh_setTexCoord(self, index, t) + + def clearTexCoords(self): + return _openframeworks.ofMesh_clearTexCoords(self) + + def getNumTexCoords(self): + return _openframeworks.ofMesh_getNumTexCoords(self) + + def getTexCoordsPointer(self, *args): + return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) + + def getTexCoords(self, *args): + return _openframeworks.ofMesh_getTexCoords(self, *args) + + def haveTexCoordsChanged(self): + return _openframeworks.ofMesh_haveTexCoordsChanged(self) + + def hasTexCoords(self): + return _openframeworks.ofMesh_hasTexCoords(self) + + def enableTextures(self): + return _openframeworks.ofMesh_enableTextures(self) + + def disableTextures(self): + return _openframeworks.ofMesh_disableTextures(self) + + def usingTextures(self): + return _openframeworks.ofMesh_usingTextures(self) + + def setupIndicesAuto(self): + return _openframeworks.ofMesh_setupIndicesAuto(self) + + def getIndex(self, i): + return _openframeworks.ofMesh_getIndex(self, i) + + def addIndex(self, i): + return _openframeworks.ofMesh_addIndex(self, i) + + def addIndices(self, *args): + return _openframeworks.ofMesh_addIndices(self, *args) + + def removeIndex(self, index): + return _openframeworks.ofMesh_removeIndex(self, index) + + def setIndex(self, index, val): + return _openframeworks.ofMesh_setIndex(self, index, val) + + def clearIndices(self): + return _openframeworks.ofMesh_clearIndices(self) + + def getNumIndices(self): + return _openframeworks.ofMesh_getNumIndices(self) + + def getIndexPointer(self, *args): + return _openframeworks.ofMesh_getIndexPointer(self, *args) + + def getIndices(self, *args): + return _openframeworks.ofMesh_getIndices(self, *args) + + def haveIndicesChanged(self): + return _openframeworks.ofMesh_haveIndicesChanged(self) + + def hasIndices(self): + return _openframeworks.ofMesh_hasIndices(self) + + def addTriangle(self, index1, index2, index3): + return _openframeworks.ofMesh_addTriangle(self, index1, index2, index3) + + def enableIndices(self): + return _openframeworks.ofMesh_enableIndices(self) + + def disableIndices(self): + return _openframeworks.ofMesh_disableIndices(self) + + def usingIndices(self): + return _openframeworks.ofMesh_usingIndices(self) + + def setColorForIndices(self, startIndex, endIndex, color): + return _openframeworks.ofMesh_setColorForIndices(self, startIndex, endIndex, color) + + def getMeshForIndices(self, *args): + return _openframeworks.ofMesh_getMeshForIndices(self, *args) + + def drawVertices(self): + return _openframeworks.ofMesh_drawVertices(self) + + def drawWireframe(self): + return _openframeworks.ofMesh_drawWireframe(self) + + def drawFaces(self): + return _openframeworks.ofMesh_drawFaces(self) + + def draw(self, *args): + return _openframeworks.ofMesh_draw(self, *args) + + def load(self, path): + return _openframeworks.ofMesh_load(self, path) + + def save(self, path, useBinary=False): + return _openframeworks.ofMesh_save(self, path, useBinary) + __swig_destroy__ = _openframeworks.delete_ofMesh + __del__ = lambda self: None ofMesh_swigregister = _openframeworks.ofMesh_swigregister ofMesh_swigregister(ofMesh) def ofMesh_plane(*args): - return _openframeworks.ofMesh_plane(*args) + return _openframeworks.ofMesh_plane(*args) ofMesh_plane = _openframeworks.ofMesh_plane def ofMesh_sphere(*args): - return _openframeworks.ofMesh_sphere(*args) + return _openframeworks.ofMesh_sphere(*args) ofMesh_sphere = _openframeworks.ofMesh_sphere -def ofMesh_icosahedron(*args): - return _openframeworks.ofMesh_icosahedron(*args) +def ofMesh_icosahedron(radius): + return _openframeworks.ofMesh_icosahedron(radius) ofMesh_icosahedron = _openframeworks.ofMesh_icosahedron -def ofMesh_icosphere(*args): - return _openframeworks.ofMesh_icosphere(*args) +def ofMesh_icosphere(radius, iterations=2): + return _openframeworks.ofMesh_icosphere(radius, iterations) ofMesh_icosphere = _openframeworks.ofMesh_icosphere def ofMesh_cylinder(*args): - return _openframeworks.ofMesh_cylinder(*args) + return _openframeworks.ofMesh_cylinder(*args) ofMesh_cylinder = _openframeworks.ofMesh_cylinder def ofMesh_cone(*args): - return _openframeworks.ofMesh_cone(*args) + return _openframeworks.ofMesh_cone(*args) ofMesh_cone = _openframeworks.ofMesh_cone -def ofMesh_box(*args): - return _openframeworks.ofMesh_box(*args) +def ofMesh_box(width, height, depth, resX=2, resY=2, resZ=2): + return _openframeworks.ofMesh_box(width, height, depth, resX, resY, resZ) ofMesh_box = _openframeworks.ofMesh_box def ofMesh_axis(size=1.0): - return _openframeworks.ofMesh_axis(size) + return _openframeworks.ofMesh_axis(size) ofMesh_axis = _openframeworks.ofMesh_axis class ofMeshFace(_object): @@ -2792,27 +5327,60 @@ class ofMeshFace(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMeshFace, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMeshFace() - try: self.this.append(this) - except: self.this = this - def getFaceNormal(self): return _openframeworks.ofMeshFace_getFaceNormal(self) - def setVertex(self, *args): return _openframeworks.ofMeshFace_setVertex(self, *args) - def getVertex(self, *args): return _openframeworks.ofMeshFace_getVertex(self, *args) - def setNormal(self, *args): return _openframeworks.ofMeshFace_setNormal(self, *args) - def getNormal(self, *args): return _openframeworks.ofMeshFace_getNormal(self, *args) - def setColor(self, *args): return _openframeworks.ofMeshFace_setColor(self, *args) - def getColor(self, *args): return _openframeworks.ofMeshFace_getColor(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMeshFace_setTexCoord(self, *args) - def getTexCoord(self, *args): return _openframeworks.ofMeshFace_getTexCoord(self, *args) - def setHasColors(self, *args): return _openframeworks.ofMeshFace_setHasColors(self, *args) - def setHasNormals(self, *args): return _openframeworks.ofMeshFace_setHasNormals(self, *args) - def setHasTexcoords(self, *args): return _openframeworks.ofMeshFace_setHasTexcoords(self, *args) - def hasColors(self): return _openframeworks.ofMeshFace_hasColors(self) - def hasNormals(self): return _openframeworks.ofMeshFace_hasNormals(self) - def hasTexcoords(self): return _openframeworks.ofMeshFace_hasTexcoords(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getFaceNormal(self): + return _openframeworks.ofMeshFace_getFaceNormal(self) + + def setVertex(self, index, v): + return _openframeworks.ofMeshFace_setVertex(self, index, v) + + def getVertex(self, index): + return _openframeworks.ofMeshFace_getVertex(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMeshFace_setNormal(self, index, n) + + def getNormal(self, index): + return _openframeworks.ofMeshFace_getNormal(self, index) + + def setColor(self, index, color): + return _openframeworks.ofMeshFace_setColor(self, index, color) + + def getColor(self, index): + return _openframeworks.ofMeshFace_getColor(self, index) + + def setTexCoord(self, index, tCoord): + return _openframeworks.ofMeshFace_setTexCoord(self, index, tCoord) + + def getTexCoord(self, index): + return _openframeworks.ofMeshFace_getTexCoord(self, index) + + def setHasColors(self, bColors): + return _openframeworks.ofMeshFace_setHasColors(self, bColors) + + def setHasNormals(self, bNormals): + return _openframeworks.ofMeshFace_setHasNormals(self, bNormals) + + def setHasTexcoords(self, bTexcoords): + return _openframeworks.ofMeshFace_setHasTexcoords(self, bTexcoords) + + def hasColors(self): + return _openframeworks.ofMeshFace_hasColors(self) + + def hasNormals(self): + return _openframeworks.ofMeshFace_hasNormals(self) + + def hasTexcoords(self): + return _openframeworks.ofMeshFace_hasTexcoords(self) __swig_destroy__ = _openframeworks.delete_ofMeshFace - __del__ = lambda self : None; + __del__ = lambda self: None ofMeshFace_swigregister = _openframeworks.ofMeshFace_swigregister ofMeshFace_swigregister(ofMeshFace) @@ -2822,25 +5390,54 @@ class ofPlanePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPlanePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPlanePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofPlanePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofPlanePrimitive_set(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofPlanePrimitive_resizeToTexture(self, *args) - def setWidth(self, *args): return _openframeworks.ofPlanePrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofPlanePrimitive_setHeight(self, *args) - def setColumns(self, *args): return _openframeworks.ofPlanePrimitive_setColumns(self, *args) - def setRows(self, *args): return _openframeworks.ofPlanePrimitive_setRows(self, *args) - def setResolution(self, *args): return _openframeworks.ofPlanePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofPlanePrimitive_setMode(self, *args) - def getNumColumns(self): return _openframeworks.ofPlanePrimitive_getNumColumns(self) - def getNumRows(self): return _openframeworks.ofPlanePrimitive_getNumRows(self) - def getResolution(self): return _openframeworks.ofPlanePrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofPlanePrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofPlanePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofPlanePrimitive_set(self, *args) + + def resizeToTexture(self, inTexture, scale=1.): + return _openframeworks.ofPlanePrimitive_resizeToTexture(self, inTexture, scale) + + def setWidth(self, width): + return _openframeworks.ofPlanePrimitive_setWidth(self, width) + + def setHeight(self, height): + return _openframeworks.ofPlanePrimitive_setHeight(self, height) + + def setColumns(self, columns): + return _openframeworks.ofPlanePrimitive_setColumns(self, columns) + + def setRows(self, rows): + return _openframeworks.ofPlanePrimitive_setRows(self, rows) + + def setResolution(self, columns, rows): + return _openframeworks.ofPlanePrimitive_setResolution(self, columns, rows) + + def setMode(self, mode): + return _openframeworks.ofPlanePrimitive_setMode(self, mode) + + def getNumColumns(self): + return _openframeworks.ofPlanePrimitive_getNumColumns(self) + + def getNumRows(self): + return _openframeworks.ofPlanePrimitive_getNumRows(self) + + def getResolution(self): + return _openframeworks.ofPlanePrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofPlanePrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPlanePrimitive_getHeight(self) ofPlanePrimitive_swigregister = _openframeworks.ofPlanePrimitive_swigregister ofPlanePrimitive_swigregister(ofPlanePrimitive) @@ -2850,18 +5447,33 @@ class ofSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofSpherePrimitive_set(self, *args) + + def setResolution(self, res): + return _openframeworks.ofSpherePrimitive_setResolution(self, res) + + def setRadius(self, radius): + return _openframeworks.ofSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofSpherePrimitive_getResolution(self) ofSpherePrimitive_swigregister = _openframeworks.ofSpherePrimitive_swigregister ofSpherePrimitive_swigregister(ofSpherePrimitive) @@ -2871,18 +5483,33 @@ class ofIcoSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofIcoSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofIcoSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofIcoSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofIcoSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofIcoSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofIcoSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofIcoSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofIcoSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofIcoSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, radius, res): + return _openframeworks.ofIcoSpherePrimitive_set(self, radius, res) + + def setResolution(self, iterations): + return _openframeworks.ofIcoSpherePrimitive_setResolution(self, iterations) + + def setRadius(self, radius): + return _openframeworks.ofIcoSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofIcoSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofIcoSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofIcoSpherePrimitive_getResolution(self) ofIcoSpherePrimitive_swigregister = _openframeworks.ofIcoSpherePrimitive_swigregister ofIcoSpherePrimitive_swigregister(ofIcoSpherePrimitive) @@ -2892,37 +5519,90 @@ class ofCylinderPrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofCylinderPrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofCylinderPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCylinderPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofCylinderPrimitive_set(self, *args) - def setRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setHeight(self, *args) - def setCapped(self, *args): return _openframeworks.ofCylinderPrimitive_setCapped(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofCylinderPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofCylinderPrimitive_setMode(self, *args) - def setTopCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, *args) - def setCylinderColor(self, *args): return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, *args) - def setBottomCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, *args) - def getTopCapIndices(self): return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) - def getTopCapMesh(self): return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) - def getCylinderIndices(self): return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) - def getCylinderMesh(self): return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) - def getBottomCapIndices(self): return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) - def getBottomCapMesh(self): return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofCylinderPrimitive_getResolution(self) - def getHeight(self): return _openframeworks.ofCylinderPrimitive_getHeight(self) - def getRadius(self): return _openframeworks.ofCylinderPrimitive_getRadius(self) - def getCapped(self): return _openframeworks.ofCylinderPrimitive_getCapped(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofCylinderPrimitive_set(self, *args) + + def setRadius(self, radius): + return _openframeworks.ofCylinderPrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofCylinderPrimitive_setHeight(self, height) + + def setCapped(self, bCapped): + return _openframeworks.ofCylinderPrimitive_setCapped(self, bCapped) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofCylinderPrimitive_setResolution(self, radiusSegments, heightSegments, capSegments) + + def setMode(self, mode): + return _openframeworks.ofCylinderPrimitive_setMode(self, mode) + + def setTopCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, color) + + def setCylinderColor(self, color): + return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, color) + + def setBottomCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, color) + + def getTopCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) + + def getTopCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) + + def getCylinderIndices(self): + return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) + + def getCylinderMesh(self): + return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) + + def getBottomCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) + + def getBottomCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofCylinderPrimitive_getResolution(self) + + def getHeight(self): + return _openframeworks.ofCylinderPrimitive_getHeight(self) + + def getRadius(self): + return _openframeworks.ofCylinderPrimitive_getRadius(self) + + def getCapped(self): + return _openframeworks.ofCylinderPrimitive_getCapped(self) ofCylinderPrimitive_swigregister = _openframeworks.ofCylinderPrimitive_swigregister ofCylinderPrimitive_swigregister(ofCylinderPrimitive) @@ -2932,32 +5612,75 @@ class ofConePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofConePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofConePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofConePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofConePrimitive_set(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofConePrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofConePrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofConePrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofConePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofConePrimitive_setMode(self, *args) - def setRadius(self, *args): return _openframeworks.ofConePrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofConePrimitive_setHeight(self, *args) - def setTopColor(self, *args): return _openframeworks.ofConePrimitive_setTopColor(self, *args) - def setCapColor(self, *args): return _openframeworks.ofConePrimitive_setCapColor(self, *args) - def getConeIndices(self): return _openframeworks.ofConePrimitive_getConeIndices(self) - def getConeMesh(self): return _openframeworks.ofConePrimitive_getConeMesh(self) - def getCapIndices(self): return _openframeworks.ofConePrimitive_getCapIndices(self) - def getCapMesh(self): return _openframeworks.ofConePrimitive_getCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofConePrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofConePrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofConePrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofConePrimitive_getResolution(self) - def getRadius(self): return _openframeworks.ofConePrimitive_getRadius(self) - def getHeight(self): return _openframeworks.ofConePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofConePrimitive_set(self, *args) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofConePrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofConePrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofConePrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusRes, heightRes, capRes): + return _openframeworks.ofConePrimitive_setResolution(self, radiusRes, heightRes, capRes) + + def setMode(self, mode): + return _openframeworks.ofConePrimitive_setMode(self, mode) + + def setRadius(self, radius): + return _openframeworks.ofConePrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofConePrimitive_setHeight(self, height) + + def setTopColor(self, color): + return _openframeworks.ofConePrimitive_setTopColor(self, color) + + def setCapColor(self, color): + return _openframeworks.ofConePrimitive_setCapColor(self, color) + + def getConeIndices(self): + return _openframeworks.ofConePrimitive_getConeIndices(self) + + def getConeMesh(self): + return _openframeworks.ofConePrimitive_getConeMesh(self) + + def getCapIndices(self): + return _openframeworks.ofConePrimitive_getCapIndices(self) + + def getCapMesh(self): + return _openframeworks.ofConePrimitive_getCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofConePrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofConePrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofConePrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofConePrimitive_getResolution(self) + + def getRadius(self): + return _openframeworks.ofConePrimitive_getRadius(self) + + def getHeight(self): + return _openframeworks.ofConePrimitive_getHeight(self) ofConePrimitive_swigregister = _openframeworks.ofConePrimitive_swigregister ofConePrimitive_swigregister(ofConePrimitive) @@ -2974,226 +5697,421 @@ class ofBoxPrimitive(_object): SIDE_TOP = _openframeworks.ofBoxPrimitive_SIDE_TOP SIDE_BOTTOM = _openframeworks.ofBoxPrimitive_SIDE_BOTTOM SIDES_TOTAL = _openframeworks.ofBoxPrimitive_SIDES_TOTAL - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBoxPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofBoxPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBoxPrimitive_set(self, *args) - def setWidth(self, *args): return _openframeworks.ofBoxPrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofBoxPrimitive_setHeight(self, *args) - def setDepth(self, *args): return _openframeworks.ofBoxPrimitive_setDepth(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofBoxPrimitive_resizeToTexture(self, *args) - def getSideIndices(self, *args): return _openframeworks.ofBoxPrimitive_getSideIndices(self, *args) - def getSideMesh(self, *args): return _openframeworks.ofBoxPrimitive_getSideMesh(self, *args) - def setResolutionWidth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, *args) - def setResolutionDepth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, *args) - def setResolution(self, *args): return _openframeworks.ofBoxPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofBoxPrimitive_setMode(self, *args) - def setSideColor(self, *args): return _openframeworks.ofBoxPrimitive_setSideColor(self, *args) - def getResolutionWidth(self): return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) - def getResolutionHeight(self): return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) - def getResolutionDepth(self): return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) - def getResolution(self): return _openframeworks.ofBoxPrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofBoxPrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofBoxPrimitive_getHeight(self) - def getDepth(self): return _openframeworks.ofBoxPrimitive_getDepth(self) - def getSize(self): return _openframeworks.ofBoxPrimitive_getSize(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofBoxPrimitive_set(self, *args) + + def setWidth(self, a_width): + return _openframeworks.ofBoxPrimitive_setWidth(self, a_width) + + def setHeight(self, a_height): + return _openframeworks.ofBoxPrimitive_setHeight(self, a_height) + + def setDepth(self, a_depth): + return _openframeworks.ofBoxPrimitive_setDepth(self, a_depth) + + def resizeToTexture(self, inTexture): + return _openframeworks.ofBoxPrimitive_resizeToTexture(self, inTexture) + + def getSideIndices(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideIndices(self, sideIndex) + + def getSideMesh(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideMesh(self, sideIndex) + + def setResolutionWidth(self, widthRes): + return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, widthRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionDepth(self, depthRes): + return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, depthRes) + + def setResolution(self, *args): + return _openframeworks.ofBoxPrimitive_setResolution(self, *args) + + def setMode(self, mode): + return _openframeworks.ofBoxPrimitive_setMode(self, mode) + + def setSideColor(self, sideIndex, color): + return _openframeworks.ofBoxPrimitive_setSideColor(self, sideIndex, color) + + def getResolutionWidth(self): + return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) + + def getResolutionHeight(self): + return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) + + def getResolutionDepth(self): + return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) + + def getResolution(self): + return _openframeworks.ofBoxPrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofBoxPrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofBoxPrimitive_getHeight(self) + + def getDepth(self): + return _openframeworks.ofBoxPrimitive_getDepth(self) + + def getSize(self): + return _openframeworks.ofBoxPrimitive_getSize(self) ofBoxPrimitive_swigregister = _openframeworks.ofBoxPrimitive_swigregister ofBoxPrimitive_swigregister(ofBoxPrimitive) +def ofInit(): + return _openframeworks.ofInit() +ofInit = _openframeworks.ofInit + +def ofCreateWindow(settings): + return _openframeworks.ofCreateWindow(settings) +ofCreateWindow = _openframeworks.ofCreateWindow + +def ofGetMainLoop(): + return _openframeworks.ofGetMainLoop() +ofGetMainLoop = _openframeworks.ofGetMainLoop + +def ofSetMainLoop(mainLoop): + return _openframeworks.ofSetMainLoop(mainLoop) +ofSetMainLoop = _openframeworks.ofSetMainLoop + def ofSetupOpenGL(*args): - return _openframeworks.ofSetupOpenGL(*args) + return _openframeworks.ofSetupOpenGL(*args) ofSetupOpenGL = _openframeworks.ofSetupOpenGL -def ofRunApp(OFSA=None): - return _openframeworks.ofRunApp(OFSA) +def ofRunApp(*args): + return _openframeworks.ofRunApp(*args) ofRunApp = _openframeworks.ofRunApp +def ofRunMainLoop(): + return _openframeworks.ofRunMainLoop() +ofRunMainLoop = _openframeworks.ofRunMainLoop + def ofGetAppPtr(): - return _openframeworks.ofGetAppPtr() + return _openframeworks.ofGetAppPtr() ofGetAppPtr = _openframeworks.ofGetAppPtr def ofExit(status=0): - return _openframeworks.ofExit(status) + return _openframeworks.ofExit(status) ofExit = _openframeworks.ofExit def ofGetFrameRate(): - return _openframeworks.ofGetFrameRate() + return _openframeworks.ofGetFrameRate() ofGetFrameRate = _openframeworks.ofGetFrameRate def ofGetTargetFrameRate(): - return _openframeworks.ofGetTargetFrameRate() + return _openframeworks.ofGetTargetFrameRate() ofGetTargetFrameRate = _openframeworks.ofGetTargetFrameRate -def ofSetFrameRate(*args): - return _openframeworks.ofSetFrameRate(*args) +def ofSetFrameRate(targetRate): + return _openframeworks.ofSetFrameRate(targetRate) ofSetFrameRate = _openframeworks.ofSetFrameRate -def ofSleepMillis(*args): - return _openframeworks.ofSleepMillis(*args) -ofSleepMillis = _openframeworks.ofSleepMillis - def ofGetLastFrameTime(): - return _openframeworks.ofGetLastFrameTime() + return _openframeworks.ofGetLastFrameTime() ofGetLastFrameTime = _openframeworks.ofGetLastFrameTime -def ofSetOrientation(*args): - return _openframeworks.ofSetOrientation(*args) +def ofSetOrientation(orientation, vFlip=True): + return _openframeworks.ofSetOrientation(orientation, vFlip) ofSetOrientation = _openframeworks.ofSetOrientation def ofGetOrientation(): - return _openframeworks.ofGetOrientation() + return _openframeworks.ofGetOrientation() ofGetOrientation = _openframeworks.ofGetOrientation def ofHideCursor(): - return _openframeworks.ofHideCursor() + return _openframeworks.ofHideCursor() ofHideCursor = _openframeworks.ofHideCursor def ofShowCursor(): - return _openframeworks.ofShowCursor() + return _openframeworks.ofShowCursor() ofShowCursor = _openframeworks.ofShowCursor def ofGetWindowPositionX(): - return _openframeworks.ofGetWindowPositionX() + return _openframeworks.ofGetWindowPositionX() ofGetWindowPositionX = _openframeworks.ofGetWindowPositionX def ofGetWindowPositionY(): - return _openframeworks.ofGetWindowPositionY() + return _openframeworks.ofGetWindowPositionY() ofGetWindowPositionY = _openframeworks.ofGetWindowPositionY def ofGetScreenWidth(): - return _openframeworks.ofGetScreenWidth() + return _openframeworks.ofGetScreenWidth() ofGetScreenWidth = _openframeworks.ofGetScreenWidth def ofGetScreenHeight(): - return _openframeworks.ofGetScreenHeight() + return _openframeworks.ofGetScreenHeight() ofGetScreenHeight = _openframeworks.ofGetScreenHeight def ofGetWindowMode(): - return _openframeworks.ofGetWindowMode() + return _openframeworks.ofGetWindowMode() ofGetWindowMode = _openframeworks.ofGetWindowMode def ofGetWidth(): - return _openframeworks.ofGetWidth() + return _openframeworks.ofGetWidth() ofGetWidth = _openframeworks.ofGetWidth def ofGetHeight(): - return _openframeworks.ofGetHeight() + return _openframeworks.ofGetHeight() ofGetHeight = _openframeworks.ofGetHeight def ofGetWindowWidth(): - return _openframeworks.ofGetWindowWidth() + return _openframeworks.ofGetWindowWidth() ofGetWindowWidth = _openframeworks.ofGetWindowWidth def ofGetWindowHeight(): - return _openframeworks.ofGetWindowHeight() + return _openframeworks.ofGetWindowHeight() ofGetWindowHeight = _openframeworks.ofGetWindowHeight +def ofRandomWidth(): + return _openframeworks.ofRandomWidth() +ofRandomWidth = _openframeworks.ofRandomWidth + +def ofRandomHeight(): + return _openframeworks.ofRandomHeight() +ofRandomHeight = _openframeworks.ofRandomHeight + def ofDoesHWOrientation(): - return _openframeworks.ofDoesHWOrientation() + return _openframeworks.ofDoesHWOrientation() ofDoesHWOrientation = _openframeworks.ofDoesHWOrientation def ofGetWindowSize(): - return _openframeworks.ofGetWindowSize() + return _openframeworks.ofGetWindowSize() ofGetWindowSize = _openframeworks.ofGetWindowSize def ofGetWindowRect(): - return _openframeworks.ofGetWindowRect() + return _openframeworks.ofGetWindowRect() ofGetWindowRect = _openframeworks.ofGetWindowRect def ofGetWindowPtr(): - return _openframeworks.ofGetWindowPtr() + return _openframeworks.ofGetWindowPtr() ofGetWindowPtr = _openframeworks.ofGetWindowPtr -def ofSetWindowPosition(*args): - return _openframeworks.ofSetWindowPosition(*args) +def ofSetWindowPosition(x, y): + return _openframeworks.ofSetWindowPosition(x, y) ofSetWindowPosition = _openframeworks.ofSetWindowPosition -def ofSetWindowShape(*args): - return _openframeworks.ofSetWindowShape(*args) +def ofSetWindowShape(width, height): + return _openframeworks.ofSetWindowShape(width, height) ofSetWindowShape = _openframeworks.ofSetWindowShape -def ofSetWindowTitle(*args): - return _openframeworks.ofSetWindowTitle(*args) +def ofSetWindowTitle(title): + return _openframeworks.ofSetWindowTitle(title) ofSetWindowTitle = _openframeworks.ofSetWindowTitle def ofEnableSetupScreen(): - return _openframeworks.ofEnableSetupScreen() + return _openframeworks.ofEnableSetupScreen() ofEnableSetupScreen = _openframeworks.ofEnableSetupScreen def ofDisableSetupScreen(): - return _openframeworks.ofDisableSetupScreen() + return _openframeworks.ofDisableSetupScreen() ofDisableSetupScreen = _openframeworks.ofDisableSetupScreen -def ofSetFullscreen(*args): - return _openframeworks.ofSetFullscreen(*args) +def ofSetFullscreen(fullscreen): + return _openframeworks.ofSetFullscreen(fullscreen) ofSetFullscreen = _openframeworks.ofSetFullscreen def ofToggleFullscreen(): - return _openframeworks.ofToggleFullscreen() + return _openframeworks.ofToggleFullscreen() ofToggleFullscreen = _openframeworks.ofToggleFullscreen -def ofSetVerticalSync(*args): - return _openframeworks.ofSetVerticalSync(*args) +def ofSetVerticalSync(bSync): + return _openframeworks.ofSetVerticalSync(bSync) ofSetVerticalSync = _openframeworks.ofSetVerticalSync + +def ofEvents(): + return _openframeworks.ofEvents() +ofEvents = _openframeworks.ofEvents + +def ofSetCurrentRenderer(renderer, setDefaults=False): + return _openframeworks.ofSetCurrentRenderer(renderer, setDefaults) +ofSetCurrentRenderer = _openframeworks.ofSetCurrentRenderer + +def ofGetCurrentRenderer(): + return _openframeworks.ofGetCurrentRenderer() +ofGetCurrentRenderer = _openframeworks.ofGetCurrentRenderer + +def ofSetEscapeQuitsApp(bQuitOnEsc): + return _openframeworks.ofSetEscapeQuitsApp(bQuitOnEsc) +ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp + +_openframeworks.FIRMATA_MAJOR_VERSION_swigconstant(_openframeworks) FIRMATA_MAJOR_VERSION = _openframeworks.FIRMATA_MAJOR_VERSION + +_openframeworks.FIRMATA_MINOR_VERSION_swigconstant(_openframeworks) FIRMATA_MINOR_VERSION = _openframeworks.FIRMATA_MINOR_VERSION + +_openframeworks.FIRMATA_MAX_DATA_BYTES_swigconstant(_openframeworks) FIRMATA_MAX_DATA_BYTES = _openframeworks.FIRMATA_MAX_DATA_BYTES + +_openframeworks.FIRMATA_DIGITAL_MESSAGE_swigconstant(_openframeworks) FIRMATA_DIGITAL_MESSAGE = _openframeworks.FIRMATA_DIGITAL_MESSAGE + +_openframeworks.FIRMATA_ANALOG_MESSAGE_swigconstant(_openframeworks) FIRMATA_ANALOG_MESSAGE = _openframeworks.FIRMATA_ANALOG_MESSAGE + +_openframeworks.FIRMATA_REPORT_ANALOG_swigconstant(_openframeworks) FIRMATA_REPORT_ANALOG = _openframeworks.FIRMATA_REPORT_ANALOG + +_openframeworks.FIRMATA_REPORT_DIGITAL_swigconstant(_openframeworks) FIRMATA_REPORT_DIGITAL = _openframeworks.FIRMATA_REPORT_DIGITAL + +_openframeworks.FIRMATA_SET_PIN_MODE_swigconstant(_openframeworks) FIRMATA_SET_PIN_MODE = _openframeworks.FIRMATA_SET_PIN_MODE + +_openframeworks.FIRMATA_REPORT_VERSION_swigconstant(_openframeworks) FIRMATA_REPORT_VERSION = _openframeworks.FIRMATA_REPORT_VERSION + +_openframeworks.FIRMATA_SYSTEM_RESET_swigconstant(_openframeworks) FIRMATA_SYSTEM_RESET = _openframeworks.FIRMATA_SYSTEM_RESET + +_openframeworks.FIRMATA_START_SYSEX_swigconstant(_openframeworks) FIRMATA_START_SYSEX = _openframeworks.FIRMATA_START_SYSEX + +_openframeworks.FIRMATA_END_SYSEX_swigconstant(_openframeworks) FIRMATA_END_SYSEX = _openframeworks.FIRMATA_END_SYSEX + +_openframeworks.FIRMATA_INPUT_swigconstant(_openframeworks) FIRMATA_INPUT = _openframeworks.FIRMATA_INPUT + +_openframeworks.FIRMATA_OUTPUT_swigconstant(_openframeworks) FIRMATA_OUTPUT = _openframeworks.FIRMATA_OUTPUT + +_openframeworks.FIRMATA_ANALOG_swigconstant(_openframeworks) FIRMATA_ANALOG = _openframeworks.FIRMATA_ANALOG + +_openframeworks.FIRMATA_PWM_swigconstant(_openframeworks) FIRMATA_PWM = _openframeworks.FIRMATA_PWM + +_openframeworks.FIRMATA_SERVO_swigconstant(_openframeworks) FIRMATA_SERVO = _openframeworks.FIRMATA_SERVO + +_openframeworks.SHIFT_swigconstant(_openframeworks) SHIFT = _openframeworks.SHIFT + +_openframeworks.I2C_swigconstant(_openframeworks) I2C = _openframeworks.I2C + +_openframeworks.TOTAL_PIN_MODES_swigconstant(_openframeworks) TOTAL_PIN_MODES = _openframeworks.TOTAL_PIN_MODES + +_openframeworks.FIRMATA_SYSEX_SERVO_CONFIG_swigconstant(_openframeworks) FIRMATA_SYSEX_SERVO_CONFIG = _openframeworks.FIRMATA_SYSEX_SERVO_CONFIG + +_openframeworks.FIRMATA_SYSEX_FIRMATA_STRING_swigconstant(_openframeworks) FIRMATA_SYSEX_FIRMATA_STRING = _openframeworks.FIRMATA_SYSEX_FIRMATA_STRING + +_openframeworks.SHIFT_DATA_swigconstant(_openframeworks) SHIFT_DATA = _openframeworks.SHIFT_DATA + +_openframeworks.I2C_REQUEST_swigconstant(_openframeworks) I2C_REQUEST = _openframeworks.I2C_REQUEST + +_openframeworks.I2C_REPLY_swigconstant(_openframeworks) I2C_REPLY = _openframeworks.I2C_REPLY + +_openframeworks.I2C_CONFIG_swigconstant(_openframeworks) I2C_CONFIG = _openframeworks.I2C_CONFIG + +_openframeworks.EXTENDED_ANALOG_swigconstant(_openframeworks) EXTENDED_ANALOG = _openframeworks.EXTENDED_ANALOG + +_openframeworks.PIN_STATE_QUERY_swigconstant(_openframeworks) PIN_STATE_QUERY = _openframeworks.PIN_STATE_QUERY + +_openframeworks.PIN_STATE_RESPONSE_swigconstant(_openframeworks) PIN_STATE_RESPONSE = _openframeworks.PIN_STATE_RESPONSE + +_openframeworks.CAPABILITY_QUERY_swigconstant(_openframeworks) CAPABILITY_QUERY = _openframeworks.CAPABILITY_QUERY + +_openframeworks.CAPABILITY_RESPONSE_swigconstant(_openframeworks) CAPABILITY_RESPONSE = _openframeworks.CAPABILITY_RESPONSE + +_openframeworks.ANALOG_MAPPING_QUERY_swigconstant(_openframeworks) ANALOG_MAPPING_QUERY = _openframeworks.ANALOG_MAPPING_QUERY + +_openframeworks.ANALOG_MAPPING_RESPONSE_swigconstant(_openframeworks) ANALOG_MAPPING_RESPONSE = _openframeworks.ANALOG_MAPPING_RESPONSE + +_openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant(_openframeworks) FIRMATA_SYSEX_REPORT_FIRMWARE = _openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE + +_openframeworks.SAMPLING_INTERVAL_swigconstant(_openframeworks) SAMPLING_INTERVAL = _openframeworks.SAMPLING_INTERVAL + +_openframeworks.FIRMATA_SYSEX_NON_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_NON_REALTIME = _openframeworks.FIRMATA_SYSEX_NON_REALTIME + +_openframeworks.FIRMATA_SYSEX_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_REALTIME = _openframeworks.FIRMATA_SYSEX_REALTIME + +_openframeworks.ARD_TOTAL_DIGITAL_PINS_swigconstant(_openframeworks) ARD_TOTAL_DIGITAL_PINS = _openframeworks.ARD_TOTAL_DIGITAL_PINS + +_openframeworks.ARD_TOTAL_ANALOG_PINS_swigconstant(_openframeworks) ARD_TOTAL_ANALOG_PINS = _openframeworks.ARD_TOTAL_ANALOG_PINS + +_openframeworks.ARD_TOTAL_PORTS_swigconstant(_openframeworks) ARD_TOTAL_PORTS = _openframeworks.ARD_TOTAL_PORTS + +_openframeworks.ARD_INPUT_swigconstant(_openframeworks) ARD_INPUT = _openframeworks.ARD_INPUT + +_openframeworks.ARD_OUTPUT_swigconstant(_openframeworks) ARD_OUTPUT = _openframeworks.ARD_OUTPUT + +_openframeworks.ARD_ANALOG_swigconstant(_openframeworks) ARD_ANALOG = _openframeworks.ARD_ANALOG + +_openframeworks.ARD_PWM_swigconstant(_openframeworks) ARD_PWM = _openframeworks.ARD_PWM + +_openframeworks.ARD_SERVO_swigconstant(_openframeworks) ARD_SERVO = _openframeworks.ARD_SERVO + +_openframeworks.ARD_HIGH_swigconstant(_openframeworks) ARD_HIGH = _openframeworks.ARD_HIGH + +_openframeworks.ARD_LOW_swigconstant(_openframeworks) ARD_LOW = _openframeworks.ARD_LOW + +_openframeworks.ARD_ON_swigconstant(_openframeworks) ARD_ON = _openframeworks.ARD_ON + +_openframeworks.ARD_OFF_swigconstant(_openframeworks) ARD_OFF = _openframeworks.ARD_OFF + +_openframeworks.SYSEX_SERVO_ATTACH_swigconstant(_openframeworks) SYSEX_SERVO_ATTACH = _openframeworks.SYSEX_SERVO_ATTACH + +_openframeworks.SYSEX_SERVO_DETACH_swigconstant(_openframeworks) SYSEX_SERVO_DETACH = _openframeworks.SYSEX_SERVO_DETACH + +_openframeworks.SYSEX_SERVO_WRITE_swigconstant(_openframeworks) SYSEX_SERVO_WRITE = _openframeworks.SYSEX_SERVO_WRITE + +_openframeworks.OF_ARDUINO_DELAY_LENGTH_swigconstant(_openframeworks) OF_ARDUINO_DELAY_LENGTH = _openframeworks.OF_ARDUINO_DELAY_LENGTH + +_openframeworks.FIRMWARE2_2_swigconstant(_openframeworks) FIRMWARE2_2 = _openframeworks.FIRMWARE2_2 + +_openframeworks.FIRMWARE2_3_swigconstant(_openframeworks) FIRMWARE2_3 = _openframeworks.FIRMWARE2_3 class ofArduino(_object): __swig_setmethods__ = {} @@ -3201,77 +6119,175 @@ class ofArduino(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofArduino, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofArduino() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofArduino - __del__ = lambda self : None; - def connect(self, *args): return _openframeworks.ofArduino_connect(self, *args) - def disconnect(self): return _openframeworks.ofArduino_disconnect(self) - def isArduinoReady(self): return _openframeworks.ofArduino_isArduinoReady(self) - def setUseDelay(self, *args): return _openframeworks.ofArduino_setUseDelay(self, *args) - def update(self): return _openframeworks.ofArduino_update(self) - def isInitialized(self): return _openframeworks.ofArduino_isInitialized(self) - def setDigitalHistoryLength(self, *args): return _openframeworks.ofArduino_setDigitalHistoryLength(self, *args) - def setAnalogHistoryLength(self, *args): return _openframeworks.ofArduino_setAnalogHistoryLength(self, *args) - def setStringHistoryLength(self, *args): return _openframeworks.ofArduino_setStringHistoryLength(self, *args) - def setSysExHistoryLength(self, *args): return _openframeworks.ofArduino_setSysExHistoryLength(self, *args) - def sendDigitalPinMode(self, *args): return _openframeworks.ofArduino_sendDigitalPinMode(self, *args) - def sendAnalogPinReporting(self, *args): return _openframeworks.ofArduino_sendAnalogPinReporting(self, *args) - def sendDigital(self, *args): return _openframeworks.ofArduino_sendDigital(self, *args) - def sendPwm(self, *args): return _openframeworks.ofArduino_sendPwm(self, *args) - def sendSysEx(self, *args): return _openframeworks.ofArduino_sendSysEx(self, *args) - def sendString(self, *args): return _openframeworks.ofArduino_sendString(self, *args) - def sendProtocolVersionRequest(self): return _openframeworks.ofArduino_sendProtocolVersionRequest(self) - def sendFirmwareVersionRequest(self): return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) - def sendReset(self): return _openframeworks.ofArduino_sendReset(self) - def sendSysExBegin(self): return _openframeworks.ofArduino_sendSysExBegin(self) - def sendSysExEnd(self): return _openframeworks.ofArduino_sendSysExEnd(self) - def sendByte(self, *args): return _openframeworks.ofArduino_sendByte(self, *args) - def sendValueAsTwo7bitBytes(self, *args): return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, *args) - def getPwm(self, *args): return _openframeworks.ofArduino_getPwm(self, *args) - def getDigital(self, *args): return _openframeworks.ofArduino_getDigital(self, *args) - def getAnalog(self, *args): return _openframeworks.ofArduino_getAnalog(self, *args) - def getSysEx(self): return _openframeworks.ofArduino_getSysEx(self) - def getString(self): return _openframeworks.ofArduino_getString(self) - def getMajorProtocolVersion(self): return _openframeworks.ofArduino_getMajorProtocolVersion(self) - def getMinorProtocolVersion(self): return _openframeworks.ofArduino_getMinorProtocolVersion(self) - def getMajorFirmwareVersion(self): return _openframeworks.ofArduino_getMajorFirmwareVersion(self) - def getMinorFirmwareVersion(self): return _openframeworks.ofArduino_getMinorFirmwareVersion(self) - def getFirmwareName(self): return _openframeworks.ofArduino_getFirmwareName(self) - def getDigitalHistory(self, *args): return _openframeworks.ofArduino_getDigitalHistory(self, *args) - def getAnalogHistory(self, *args): return _openframeworks.ofArduino_getAnalogHistory(self, *args) - def getSysExHistory(self): return _openframeworks.ofArduino_getSysExHistory(self) - def getStringHistory(self): return _openframeworks.ofArduino_getStringHistory(self) - def getDigitalPinMode(self, *args): return _openframeworks.ofArduino_getDigitalPinMode(self, *args) - def getAnalogPinReporting(self, *args): return _openframeworks.ofArduino_getAnalogPinReporting(self, *args) - def getValueFromTwo7bitBytes(self, *args): return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, *args) + __del__ = lambda self: None + + def connect(self, device, baud=57600): + return _openframeworks.ofArduino_connect(self, device, baud) + + def isInitialized(self): + return _openframeworks.ofArduino_isInitialized(self) + + def isArduinoReady(self): + return _openframeworks.ofArduino_isArduinoReady(self) + + def disconnect(self): + return _openframeworks.ofArduino_disconnect(self) + + def update(self): + return _openframeworks.ofArduino_update(self) + + def sendDigitalPinMode(self, pin, mode): + return _openframeworks.ofArduino_sendDigitalPinMode(self, pin, mode) + + def sendAnalogPinReporting(self, pin, mode): + return _openframeworks.ofArduino_sendAnalogPinReporting(self, pin, mode) + + def setUseDelay(self, bDelay): + return _openframeworks.ofArduino_setUseDelay(self, bDelay) + + def setDigitalHistoryLength(self, length): + return _openframeworks.ofArduino_setDigitalHistoryLength(self, length) + + def setAnalogHistoryLength(self, length): + return _openframeworks.ofArduino_setAnalogHistoryLength(self, length) + + def setStringHistoryLength(self, length): + return _openframeworks.ofArduino_setStringHistoryLength(self, length) + + def setSysExHistoryLength(self, nSysEx): + return _openframeworks.ofArduino_setSysExHistoryLength(self, nSysEx) + + def sendDigital(self, pin, value, force=False): + return _openframeworks.ofArduino_sendDigital(self, pin, value, force) + + def sendPwm(self, pin, value, force=False): + return _openframeworks.ofArduino_sendPwm(self, pin, value, force) + + def sendSysEx(self, command, data): + return _openframeworks.ofArduino_sendSysEx(self, command, data) + + def sendString(self, str): + return _openframeworks.ofArduino_sendString(self, str) + + def sendProtocolVersionRequest(self): + return _openframeworks.ofArduino_sendProtocolVersionRequest(self) + + def sendFirmwareVersionRequest(self): + return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) + + def sendReset(self): + return _openframeworks.ofArduino_sendReset(self) + + def sendSysExBegin(self): + return _openframeworks.ofArduino_sendSysExBegin(self) + + def sendSysExEnd(self): + return _openframeworks.ofArduino_sendSysExEnd(self) + + def sendByte(self, byte): + return _openframeworks.ofArduino_sendByte(self, byte) + + def sendValueAsTwo7bitBytes(self, value): + return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, value) + + def getPwm(self, pin): + return _openframeworks.ofArduino_getPwm(self, pin) + + def getDigital(self, pin): + return _openframeworks.ofArduino_getDigital(self, pin) + + def getAnalog(self, pin): + return _openframeworks.ofArduino_getAnalog(self, pin) + + def getSysEx(self): + return _openframeworks.ofArduino_getSysEx(self) + + def getString(self): + return _openframeworks.ofArduino_getString(self) + + def getMajorProtocolVersion(self): + return _openframeworks.ofArduino_getMajorProtocolVersion(self) + + def getMinorProtocolVersion(self): + return _openframeworks.ofArduino_getMinorProtocolVersion(self) + + def getMajorFirmwareVersion(self): + return _openframeworks.ofArduino_getMajorFirmwareVersion(self) + + def getMinorFirmwareVersion(self): + return _openframeworks.ofArduino_getMinorFirmwareVersion(self) + + def getFirmwareName(self): + return _openframeworks.ofArduino_getFirmwareName(self) + + def getDigitalHistory(self, pin): + return _openframeworks.ofArduino_getDigitalHistory(self, pin) + + def getAnalogHistory(self, pin): + return _openframeworks.ofArduino_getAnalogHistory(self, pin) + + def getSysExHistory(self): + return _openframeworks.ofArduino_getSysExHistory(self) + + def getStringHistory(self): + return _openframeworks.ofArduino_getStringHistory(self) + + def getDigitalPinMode(self, pin): + return _openframeworks.ofArduino_getDigitalPinMode(self, pin) + + def getAnalogPinReporting(self, pin): + return _openframeworks.ofArduino_getAnalogPinReporting(self, pin) + + def getValueFromTwo7bitBytes(self, lsb, msb): + return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, lsb, msb) __swig_setmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_set __swig_getmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_get - if _newclass:EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) + if _newclass: + EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) __swig_setmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_set __swig_getmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_get - if _newclass:EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) + if _newclass: + EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) __swig_setmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_set __swig_getmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_get - if _newclass:ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) + if _newclass: + ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) __swig_setmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_set __swig_getmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_get - if _newclass:EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) + if _newclass: + EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) __swig_setmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_set __swig_getmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_get - if _newclass:EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) + if _newclass: + EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) __swig_setmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_set __swig_getmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_get - if _newclass:EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) + if _newclass: + EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) __swig_setmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_set __swig_getmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_get - if _newclass:EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) - def sendServo(self, *args): return _openframeworks.ofArduino_sendServo(self, *args) - def sendServoAttach(self, *args): return _openframeworks.ofArduino_sendServoAttach(self, *args) - def sendServoDetach(self, *args): return _openframeworks.ofArduino_sendServoDetach(self, *args) - def getServo(self, *args): return _openframeworks.ofArduino_getServo(self, *args) + if _newclass: + EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) + + def sendServo(self, pin, value, force=False): + return _openframeworks.ofArduino_sendServo(self, pin, value, force) + + def sendServoAttach(self, pin, minPulse=544, maxPulse=2400, angle=180): + return _openframeworks.ofArduino_sendServoAttach(self, pin, minPulse, maxPulse, angle) + + def sendServoDetach(self, pin): + return _openframeworks.ofArduino_sendServoDetach(self, pin) + + def getServo(self, pin): + return _openframeworks.ofArduino_getServo(self, pin) ofArduino_swigregister = _openframeworks.ofArduino_swigregister ofArduino_swigregister(ofArduino) @@ -3281,129 +6297,254 @@ class ofSerial(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSerial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSerial - __del__ = lambda self : None; - def listDevices(self): return _openframeworks.ofSerial_listDevices(self) - def enumerateDevices(self): return _openframeworks.ofSerial_enumerateDevices(self) - def getDeviceList(self): return _openframeworks.ofSerial_getDeviceList(self) - def close(self): return _openframeworks.ofSerial_close(self) - def setup(self, *args): return _openframeworks.ofSerial_setup(self, *args) - def readBytes(self, *args): return _openframeworks.ofSerial_readBytes(self, *args) - def writeBytes(self, *args): return _openframeworks.ofSerial_writeBytes(self, *args) - def writeByte(self, *args): return _openframeworks.ofSerial_writeByte(self, *args) - def readByte(self): return _openframeworks.ofSerial_readByte(self) - def flush(self, flushIn=True, flushOut=True): return _openframeworks.ofSerial_flush(self, flushIn, flushOut) - def available(self): return _openframeworks.ofSerial_available(self) - def drain(self): return _openframeworks.ofSerial_drain(self) - def isInitialized(self): return _openframeworks.ofSerial_isInitialized(self) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofSerial_listDevices(self) + + def enumerateDevices(self): + return _openframeworks.ofSerial_enumerateDevices(self) + + def getDeviceList(self): + return _openframeworks.ofSerial_getDeviceList(self) + + def setup(self, *args): + return _openframeworks.ofSerial_setup(self, *args) + + def isInitialized(self): + return _openframeworks.ofSerial_isInitialized(self) + + def close(self): + return _openframeworks.ofSerial_close(self) + + def available(self): + return _openframeworks.ofSerial_available(self) + + def readBytes(self, buffer, length): + return _openframeworks.ofSerial_readBytes(self, buffer, length) + + def readByte(self): + return _openframeworks.ofSerial_readByte(self) + + def writeBytes(self, buffer, length): + return _openframeworks.ofSerial_writeBytes(self, buffer, length) + + def writeByte(self, singleByte): + return _openframeworks.ofSerial_writeByte(self, singleByte) + + def flush(self, flushIn=True, flushOut=True): + return _openframeworks.ofSerial_flush(self, flushIn, flushOut) + + def drain(self): + return _openframeworks.ofSerial_drain(self) ofSerial_swigregister = _openframeworks.ofSerial_swigregister ofSerial_swigregister(ofSerial) -OF_MAX_LIGHTS = _openframeworks.OF_MAX_LIGHTS + +_openframeworks.OF_LIGHT_POINT_swigconstant(_openframeworks) OF_LIGHT_POINT = _openframeworks.OF_LIGHT_POINT -OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_DIRECTIONAL_swigconstant(_openframeworks) OF_LIGHT_DIRECTIONAL = _openframeworks.OF_LIGHT_DIRECTIONAL +_openframeworks.OF_LIGHT_SPOT_swigconstant(_openframeworks) +OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_AREA_swigconstant(_openframeworks) +OF_LIGHT_AREA = _openframeworks.OF_LIGHT_AREA + def ofEnableLighting(): - return _openframeworks.ofEnableLighting() + return _openframeworks.ofEnableLighting() ofEnableLighting = _openframeworks.ofEnableLighting def ofDisableLighting(): - return _openframeworks.ofDisableLighting() + return _openframeworks.ofDisableLighting() ofDisableLighting = _openframeworks.ofDisableLighting def ofEnableSeparateSpecularLight(): - return _openframeworks.ofEnableSeparateSpecularLight() + return _openframeworks.ofEnableSeparateSpecularLight() ofEnableSeparateSpecularLight = _openframeworks.ofEnableSeparateSpecularLight def ofDisableSeparateSpecularLight(): - return _openframeworks.ofDisableSeparateSpecularLight() + return _openframeworks.ofDisableSeparateSpecularLight() ofDisableSeparateSpecularLight = _openframeworks.ofDisableSeparateSpecularLight def ofGetLightingEnabled(): - return _openframeworks.ofGetLightingEnabled() + return _openframeworks.ofGetLightingEnabled() ofGetLightingEnabled = _openframeworks.ofGetLightingEnabled -def ofSetSmoothLighting(*args): - return _openframeworks.ofSetSmoothLighting(*args) +def ofSetSmoothLighting(b): + return _openframeworks.ofSetSmoothLighting(b) ofSetSmoothLighting = _openframeworks.ofSetSmoothLighting -def ofSetGlobalAmbientColor(*args): - return _openframeworks.ofSetGlobalAmbientColor(*args) +def ofSetGlobalAmbientColor(c): + return _openframeworks.ofSetGlobalAmbientColor(c) ofSetGlobalAmbientColor = _openframeworks.ofSetGlobalAmbientColor + +def ofGetGlobalAmbientColor(): + return _openframeworks.ofGetGlobalAmbientColor() +ofGetGlobalAmbientColor = _openframeworks.ofGetGlobalAmbientColor class ofLight(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofLight, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofLight, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofLight(*args) - try: self.this.append(this) - except: self.this = this + + def __init__(self): + this = _openframeworks.new_ofLight() + try: + self.this.append(this) + except Exception: + self.this = this + + def setup(self): + return _openframeworks.ofLight_setup(self) + + def enable(self): + return _openframeworks.ofLight_enable(self) + + def disable(self): + return _openframeworks.ofLight_disable(self) + + def getIsEnabled(self): + return _openframeworks.ofLight_getIsEnabled(self) + + def setDirectional(self): + return _openframeworks.ofLight_setDirectional(self) + + def getIsDirectional(self): + return _openframeworks.ofLight_getIsDirectional(self) + + def setSpotlight(self, spotCutOff=45., exponent=0.): + return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) + + def getIsSpotlight(self): + return _openframeworks.ofLight_getIsSpotlight(self) + + def setSpotlightCutOff(self, spotCutOff): + return _openframeworks.ofLight_setSpotlightCutOff(self, spotCutOff) + + def getSpotlightCutOff(self): + return _openframeworks.ofLight_getSpotlightCutOff(self) + + def setSpotConcentration(self, exponent): + return _openframeworks.ofLight_setSpotConcentration(self, exponent) + + def getSpotConcentration(self): + return _openframeworks.ofLight_getSpotConcentration(self) + + def setPointLight(self): + return _openframeworks.ofLight_setPointLight(self) + + def getIsPointLight(self): + return _openframeworks.ofLight_getIsPointLight(self) + + def setAttenuation(self, constant=1., linear=0., quadratic=0.): + return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) + + def getAttenuationConstant(self): + return _openframeworks.ofLight_getAttenuationConstant(self) + + def getAttenuationLinear(self): + return _openframeworks.ofLight_getAttenuationLinear(self) + + def getAttenuationQuadratic(self): + return _openframeworks.ofLight_getAttenuationQuadratic(self) + + def setAreaLight(self, width, height): + return _openframeworks.ofLight_setAreaLight(self, width, height) + + def getIsAreaLight(self): + return _openframeworks.ofLight_getIsAreaLight(self) + + def getType(self): + return _openframeworks.ofLight_getType(self) + + def setAmbientColor(self, c): + return _openframeworks.ofLight_setAmbientColor(self, c) + + def setDiffuseColor(self, c): + return _openframeworks.ofLight_setDiffuseColor(self, c) + + def setSpecularColor(self, c): + return _openframeworks.ofLight_setSpecularColor(self, c) + + def getAmbientColor(self): + return _openframeworks.ofLight_getAmbientColor(self) + + def getDiffuseColor(self): + return _openframeworks.ofLight_getDiffuseColor(self) + + def getSpecularColor(self): + return _openframeworks.ofLight_getSpecularColor(self) + + def getLightID(self): + return _openframeworks.ofLight_getLightID(self) __swig_destroy__ = _openframeworks.delete_ofLight - __del__ = lambda self : None; - def destroy(self): return _openframeworks.ofLight_destroy(self) - def setup(self): return _openframeworks.ofLight_setup(self) - def enable(self): return _openframeworks.ofLight_enable(self) - def disable(self): return _openframeworks.ofLight_disable(self) - def getIsEnabled(self): return _openframeworks.ofLight_getIsEnabled(self) - def setDirectional(self): return _openframeworks.ofLight_setDirectional(self) - def getIsDirectional(self): return _openframeworks.ofLight_getIsDirectional(self) - def setSpotlight(self, spotCutOff=45., exponent=0.): return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) - def getIsSpotlight(self): return _openframeworks.ofLight_getIsSpotlight(self) - def setSpotlightCutOff(self, *args): return _openframeworks.ofLight_setSpotlightCutOff(self, *args) - def getSpotlightCutOff(self): return _openframeworks.ofLight_getSpotlightCutOff(self) - def setSpotConcentration(self, *args): return _openframeworks.ofLight_setSpotConcentration(self, *args) - def getSpotConcentration(self): return _openframeworks.ofLight_getSpotConcentration(self) - def setPointLight(self): return _openframeworks.ofLight_setPointLight(self) - def getIsPointLight(self): return _openframeworks.ofLight_getIsPointLight(self) - def setAttenuation(self, constant=1., linear=0., quadratic=0.): return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) - def getAttenuationConstant(self): return _openframeworks.ofLight_getAttenuationConstant(self) - def getAttenuationLinear(self): return _openframeworks.ofLight_getAttenuationLinear(self) - def getAttenuationQuadratic(self): return _openframeworks.ofLight_getAttenuationQuadratic(self) - def getType(self): return _openframeworks.ofLight_getType(self) - def setAmbientColor(self, *args): return _openframeworks.ofLight_setAmbientColor(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofLight_setDiffuseColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofLight_setSpecularColor(self, *args) - def getAmbientColor(self): return _openframeworks.ofLight_getAmbientColor(self) - def getDiffuseColor(self): return _openframeworks.ofLight_getDiffuseColor(self) - def getSpecularColor(self): return _openframeworks.ofLight_getSpecularColor(self) - def getLightID(self): return _openframeworks.ofLight_getLightID(self) + __del__ = lambda self: None ofLight_swigregister = _openframeworks.ofLight_swigregister ofLight_swigregister(ofLight) -class ofMaterial(_object): + +def ofLightsData(): + return _openframeworks.ofLightsData() +ofLightsData = _openframeworks.ofLightsData +class ofMaterial(ofBaseMaterial): __swig_setmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofMaterial, name, value) __swig_getmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofMaterial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMaterial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMaterial - __del__ = lambda self : None; - def setColors(self, *args): return _openframeworks.ofMaterial_setColors(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofMaterial_setDiffuseColor(self, *args) - def setAmbientColor(self, *args): return _openframeworks.ofMaterial_setAmbientColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofMaterial_setSpecularColor(self, *args) - def setEmissiveColor(self, *args): return _openframeworks.ofMaterial_setEmissiveColor(self, *args) - def setShininess(self, *args): return _openframeworks.ofMaterial_setShininess(self, *args) - def getDiffuseColor(self): return _openframeworks.ofMaterial_getDiffuseColor(self) - def getAmbientColor(self): return _openframeworks.ofMaterial_getAmbientColor(self) - def getSpecularColor(self): return _openframeworks.ofMaterial_getSpecularColor(self) - def getEmissiveColor(self): return _openframeworks.ofMaterial_getEmissiveColor(self) - def getShininess(self): return _openframeworks.ofMaterial_getShininess(self) - def begin(self): return _openframeworks.ofMaterial_begin(self) - def end(self): return _openframeworks.ofMaterial_end(self) + __del__ = lambda self: None + + def setColors(self, oDiffuse, oAmbient, oSpecular, emissive): + return _openframeworks.ofMaterial_setColors(self, oDiffuse, oAmbient, oSpecular, emissive) + + def setDiffuseColor(self, oDiffuse): + return _openframeworks.ofMaterial_setDiffuseColor(self, oDiffuse) + + def setAmbientColor(self, oAmbient): + return _openframeworks.ofMaterial_setAmbientColor(self, oAmbient) + + def setSpecularColor(self, oSpecular): + return _openframeworks.ofMaterial_setSpecularColor(self, oSpecular) + + def setEmissiveColor(self, oEmmisive): + return _openframeworks.ofMaterial_setEmissiveColor(self, oEmmisive) + + def setShininess(self, nShininess): + return _openframeworks.ofMaterial_setShininess(self, nShininess) + + def getData(self): + return _openframeworks.ofMaterial_getData(self) + + def setData(self, data): + return _openframeworks.ofMaterial_setData(self, data) ofMaterial_swigregister = _openframeworks.ofMaterial_swigregister ofMaterial_swigregister(ofMaterial) @@ -3414,71 +6555,196 @@ class ofShader(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShader, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShader - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShader(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofShader_load(self, *args) - def setGeometryInputType(self, *args): return _openframeworks.ofShader_setGeometryInputType(self, *args) - def setGeometryOutputType(self, *args): return _openframeworks.ofShader_setGeometryOutputType(self, *args) - def setGeometryOutputCount(self, *args): return _openframeworks.ofShader_setGeometryOutputCount(self, *args) - def getGeometryMaxOutputCount(self): return _openframeworks.ofShader_getGeometryMaxOutputCount(self) - def unload(self): return _openframeworks.ofShader_unload(self) - def isLoaded(self): return _openframeworks.ofShader_isLoaded(self) - def begin(self): return _openframeworks.ofShader_begin(self) - def end(self): return _openframeworks.ofShader_end(self) - def setUniformTexture(self, *args): return _openframeworks.ofShader_setUniformTexture(self, *args) - def setUniform1i(self, *args): return _openframeworks.ofShader_setUniform1i(self, *args) - def setUniform2i(self, *args): return _openframeworks.ofShader_setUniform2i(self, *args) - def setUniform3i(self, *args): return _openframeworks.ofShader_setUniform3i(self, *args) - def setUniform4i(self, *args): return _openframeworks.ofShader_setUniform4i(self, *args) - def setUniform1f(self, *args): return _openframeworks.ofShader_setUniform1f(self, *args) - def setUniform2f(self, *args): return _openframeworks.ofShader_setUniform2f(self, *args) - def setUniform3f(self, *args): return _openframeworks.ofShader_setUniform3f(self, *args) - def setUniform4f(self, *args): return _openframeworks.ofShader_setUniform4f(self, *args) - def setUniform1iv(self, *args): return _openframeworks.ofShader_setUniform1iv(self, *args) - def setUniform2iv(self, *args): return _openframeworks.ofShader_setUniform2iv(self, *args) - def setUniform3iv(self, *args): return _openframeworks.ofShader_setUniform3iv(self, *args) - def setUniform4iv(self, *args): return _openframeworks.ofShader_setUniform4iv(self, *args) - def setUniform1fv(self, *args): return _openframeworks.ofShader_setUniform1fv(self, *args) - def setUniform2fv(self, *args): return _openframeworks.ofShader_setUniform2fv(self, *args) - def setUniform3fv(self, *args): return _openframeworks.ofShader_setUniform3fv(self, *args) - def setUniform4fv(self, *args): return _openframeworks.ofShader_setUniform4fv(self, *args) - def setUniformMatrix4f(self, *args): return _openframeworks.ofShader_setUniformMatrix4f(self, *args) - def getAttributeLocation(self, *args): return _openframeworks.ofShader_getAttributeLocation(self, *args) - def setAttribute1s(self, *args): return _openframeworks.ofShader_setAttribute1s(self, *args) - def setAttribute2s(self, *args): return _openframeworks.ofShader_setAttribute2s(self, *args) - def setAttribute3s(self, *args): return _openframeworks.ofShader_setAttribute3s(self, *args) - def setAttribute4s(self, *args): return _openframeworks.ofShader_setAttribute4s(self, *args) - def setAttribute1f(self, *args): return _openframeworks.ofShader_setAttribute1f(self, *args) - def setAttribute2f(self, *args): return _openframeworks.ofShader_setAttribute2f(self, *args) - def setAttribute3f(self, *args): return _openframeworks.ofShader_setAttribute3f(self, *args) - def setAttribute4f(self, *args): return _openframeworks.ofShader_setAttribute4f(self, *args) - def setAttribute1d(self, *args): return _openframeworks.ofShader_setAttribute1d(self, *args) - def setAttribute2d(self, *args): return _openframeworks.ofShader_setAttribute2d(self, *args) - def setAttribute3d(self, *args): return _openframeworks.ofShader_setAttribute3d(self, *args) - def setAttribute4d(self, *args): return _openframeworks.ofShader_setAttribute4d(self, *args) - def setAttribute1fv(self, *args): return _openframeworks.ofShader_setAttribute1fv(self, *args) - def setAttribute2fv(self, *args): return _openframeworks.ofShader_setAttribute2fv(self, *args) - def setAttribute3fv(self, *args): return _openframeworks.ofShader_setAttribute3fv(self, *args) - def setAttribute4fv(self, *args): return _openframeworks.ofShader_setAttribute4fv(self, *args) - def bindAttribute(self, *args): return _openframeworks.ofShader_bindAttribute(self, *args) - def printActiveUniforms(self): return _openframeworks.ofShader_printActiveUniforms(self) - def printActiveAttributes(self): return _openframeworks.ofShader_printActiveAttributes(self) - def setupShaderFromSource(self, *args): return _openframeworks.ofShader_setupShaderFromSource(self, *args) - def setupShaderFromFile(self, *args): return _openframeworks.ofShader_setupShaderFromFile(self, *args) - def linkProgram(self): return _openframeworks.ofShader_linkProgram(self) - def bindDefaults(self): return _openframeworks.ofShader_bindDefaults(self) - def getProgram(self): return _openframeworks.ofShader_getProgram(self) - def getShader(self, *args): return _openframeworks.ofShader_getShader(self, *args) - def __eq__(self, *args): return _openframeworks.ofShader___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShader___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, *args): + return _openframeworks.ofShader_load(self, *args) + + def setGeometryInputType(self, type): + return _openframeworks.ofShader_setGeometryInputType(self, type) + + def setGeometryOutputType(self, type): + return _openframeworks.ofShader_setGeometryOutputType(self, type) + + def setGeometryOutputCount(self, count): + return _openframeworks.ofShader_setGeometryOutputCount(self, count) + + def getGeometryMaxOutputCount(self): + return _openframeworks.ofShader_getGeometryMaxOutputCount(self) + + def unload(self): + return _openframeworks.ofShader_unload(self) + + def isLoaded(self): + return _openframeworks.ofShader_isLoaded(self) + + def begin(self): + return _openframeworks.ofShader_begin(self) + + def end(self): + return _openframeworks.ofShader_end(self) + + def setUniformTexture(self, *args): + return _openframeworks.ofShader_setUniformTexture(self, *args) + + def setUniform1i(self, name, v1): + return _openframeworks.ofShader_setUniform1i(self, name, v1) + + def setUniform2i(self, name, v1, v2): + return _openframeworks.ofShader_setUniform2i(self, name, v1, v2) + + def setUniform3i(self, name, v1, v2, v3): + return _openframeworks.ofShader_setUniform3i(self, name, v1, v2, v3) + + def setUniform4i(self, name, v1, v2, v3, v4): + return _openframeworks.ofShader_setUniform4i(self, name, v1, v2, v3, v4) + + def setUniform1f(self, name, v1): + return _openframeworks.ofShader_setUniform1f(self, name, v1) + + def setUniform2f(self, *args): + return _openframeworks.ofShader_setUniform2f(self, *args) + + def setUniform3f(self, *args): + return _openframeworks.ofShader_setUniform3f(self, *args) + + def setUniform4f(self, *args): + return _openframeworks.ofShader_setUniform4f(self, *args) + + def setUniform1iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1iv(self, name, v, count) + + def setUniform2iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2iv(self, name, v, count) + + def setUniform3iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3iv(self, name, v, count) + + def setUniform4iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4iv(self, name, v, count) + + def setUniform1fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1fv(self, name, v, count) + + def setUniform2fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2fv(self, name, v, count) + + def setUniform3fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3fv(self, name, v, count) + + def setUniform4fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4fv(self, name, v, count) + + def setUniforms(self, parameters): + return _openframeworks.ofShader_setUniforms(self, parameters) + + def setUniformMatrix3f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix3f(self, name, m, count) + + def setUniformMatrix4f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix4f(self, name, m, count) + + def getUniformLocation(self, name): + return _openframeworks.ofShader_getUniformLocation(self, name) + + def getAttributeLocation(self, name): + return _openframeworks.ofShader_getAttributeLocation(self, name) + + def setAttribute1s(self, location, v1): + return _openframeworks.ofShader_setAttribute1s(self, location, v1) + + def setAttribute2s(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2s(self, location, v1, v2) + + def setAttribute3s(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3s(self, location, v1, v2, v3) + + def setAttribute4s(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4s(self, location, v1, v2, v3, v4) + + def setAttribute1f(self, location, v1): + return _openframeworks.ofShader_setAttribute1f(self, location, v1) + + def setAttribute2f(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2f(self, location, v1, v2) + + def setAttribute3f(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3f(self, location, v1, v2, v3) + + def setAttribute4f(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4f(self, location, v1, v2, v3, v4) + + def setAttribute1d(self, location, v1): + return _openframeworks.ofShader_setAttribute1d(self, location, v1) + + def setAttribute2d(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2d(self, location, v1, v2) + + def setAttribute3d(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3d(self, location, v1, v2, v3) + + def setAttribute4d(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4d(self, location, v1, v2, v3, v4) + + def setAttribute1fv(self, *args): + return _openframeworks.ofShader_setAttribute1fv(self, *args) + + def setAttribute2fv(self, *args): + return _openframeworks.ofShader_setAttribute2fv(self, *args) + + def setAttribute3fv(self, *args): + return _openframeworks.ofShader_setAttribute3fv(self, *args) + + def setAttribute4fv(self, *args): + return _openframeworks.ofShader_setAttribute4fv(self, *args) + + def bindAttribute(self, location, name): + return _openframeworks.ofShader_bindAttribute(self, location, name) + + def printActiveUniforms(self): + return _openframeworks.ofShader_printActiveUniforms(self) + + def printActiveAttributes(self): + return _openframeworks.ofShader_printActiveAttributes(self) + + def setupShaderFromSource(self, *args): + return _openframeworks.ofShader_setupShaderFromSource(self, *args) + + def setupShaderFromFile(self, type, filename): + return _openframeworks.ofShader_setupShaderFromFile(self, type, filename) + + def linkProgram(self): + return _openframeworks.ofShader_linkProgram(self) + + def bindDefaults(self): + return _openframeworks.ofShader_bindDefaults(self) + + def getProgram(self): + return _openframeworks.ofShader_getProgram(self) + + def getShader(self, type): + return _openframeworks.ofShader_getShader(self, type) + + def __eq__(self, other): + return _openframeworks.ofShader___eq__(self, other) + + def __ne__(self, other): + return _openframeworks.ofShader___ne__(self, other) POSITION_ATTRIBUTE = _openframeworks.ofShader_POSITION_ATTRIBUTE COLOR_ATTRIBUTE = _openframeworks.ofShader_COLOR_ATTRIBUTE NORMAL_ATTRIBUTE = _openframeworks.ofShader_NORMAL_ATTRIBUTE TEXCOORD_ATTRIBUTE = _openframeworks.ofShader_TEXCOORD_ATTRIBUTE - def getShaderSource(self, *args): return _openframeworks.ofShader_getShaderSource(self, *args) + INDEX_ATTRIBUTE = _openframeworks.ofShader_INDEX_ATTRIBUTE + + def getShaderSource(self, type): + return _openframeworks.ofShader_getShaderSource(self, type) ofShader_swigregister = _openframeworks.ofShader_swigregister ofShader_swigregister(ofShader) @@ -3488,206 +6754,635 @@ class ofVbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofVbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVbo - __del__ = lambda self : None; - def setMesh(self, *args): return _openframeworks.ofVbo_setMesh(self, *args) - def setIndexData(self, *args): return _openframeworks.ofVbo_setIndexData(self, *args) - def setVertexData(self, *args): return _openframeworks.ofVbo_setVertexData(self, *args) - def setColorData(self, *args): return _openframeworks.ofVbo_setColorData(self, *args) - def setNormalData(self, *args): return _openframeworks.ofVbo_setNormalData(self, *args) - def setTexCoordData(self, *args): return _openframeworks.ofVbo_setTexCoordData(self, *args) - def setAttributeData(self, *args): return _openframeworks.ofVbo_setAttributeData(self, *args) - def updateMesh(self, *args): return _openframeworks.ofVbo_updateMesh(self, *args) - def updateIndexData(self, *args): return _openframeworks.ofVbo_updateIndexData(self, *args) - def updateVertexData(self, *args): return _openframeworks.ofVbo_updateVertexData(self, *args) - def updateColorData(self, *args): return _openframeworks.ofVbo_updateColorData(self, *args) - def updateNormalData(self, *args): return _openframeworks.ofVbo_updateNormalData(self, *args) - def updateTexCoordData(self, *args): return _openframeworks.ofVbo_updateTexCoordData(self, *args) - def updateAttributeData(self, *args): return _openframeworks.ofVbo_updateAttributeData(self, *args) - def enableColors(self): return _openframeworks.ofVbo_enableColors(self) - def enableNormals(self): return _openframeworks.ofVbo_enableNormals(self) - def enableTexCoords(self): return _openframeworks.ofVbo_enableTexCoords(self) - def enableIndices(self): return _openframeworks.ofVbo_enableIndices(self) - def disableColors(self): return _openframeworks.ofVbo_disableColors(self) - def disableNormals(self): return _openframeworks.ofVbo_disableNormals(self) - def disableTexCoords(self): return _openframeworks.ofVbo_disableTexCoords(self) - def disableIndices(self): return _openframeworks.ofVbo_disableIndices(self) - def getVertId(self): return _openframeworks.ofVbo_getVertId(self) - def getColorId(self): return _openframeworks.ofVbo_getColorId(self) - def getNormalId(self): return _openframeworks.ofVbo_getNormalId(self) - def getTexCoordId(self): return _openframeworks.ofVbo_getTexCoordId(self) - def getIndexId(self): return _openframeworks.ofVbo_getIndexId(self) - def getIsAllocated(self): return _openframeworks.ofVbo_getIsAllocated(self) - def getUsingVerts(self): return _openframeworks.ofVbo_getUsingVerts(self) - def getUsingColors(self): return _openframeworks.ofVbo_getUsingColors(self) - def getUsingNormals(self): return _openframeworks.ofVbo_getUsingNormals(self) - def getUsingTexCoords(self): return _openframeworks.ofVbo_getUsingTexCoords(self) - def getUsingIndices(self): return _openframeworks.ofVbo_getUsingIndices(self) - def draw(self, *args): return _openframeworks.ofVbo_draw(self, *args) - def drawElements(self, *args): return _openframeworks.ofVbo_drawElements(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVbo_drawInstanced(self, *args) - def drawElementsInstanced(self, *args): return _openframeworks.ofVbo_drawElementsInstanced(self, *args) - def bind(self): return _openframeworks.ofVbo_bind(self) - def unbind(self): return _openframeworks.ofVbo_unbind(self) - def clear(self): return _openframeworks.ofVbo_clear(self) - def clearVertices(self): return _openframeworks.ofVbo_clearVertices(self) - def clearNormals(self): return _openframeworks.ofVbo_clearNormals(self) - def clearColors(self): return _openframeworks.ofVbo_clearColors(self) - def clearTexCoords(self): return _openframeworks.ofVbo_clearTexCoords(self) - def clearIndices(self): return _openframeworks.ofVbo_clearIndices(self) - def getNumVertices(self): return _openframeworks.ofVbo_getNumVertices(self) - def getNumIndices(self): return _openframeworks.ofVbo_getNumIndices(self) - __swig_getmethods__["disableVAOs"] = lambda x: _openframeworks.ofVbo_disableVAOs - if _newclass:disableVAOs = staticmethod(_openframeworks.ofVbo_disableVAOs) - __swig_getmethods__["enableVAOs"] = lambda x: _openframeworks.ofVbo_enableVAOs - if _newclass:enableVAOs = staticmethod(_openframeworks.ofVbo_enableVAOs) -ofVbo_swigregister = _openframeworks.ofVbo_swigregister -ofVbo_swigregister(ofVbo) + __del__ = lambda self: None -def ofVbo_disableVAOs(): - return _openframeworks.ofVbo_disableVAOs() -ofVbo_disableVAOs = _openframeworks.ofVbo_disableVAOs + def setMesh(self, *args): + return _openframeworks.ofVbo_setMesh(self, *args) -def ofVbo_enableVAOs(): - return _openframeworks.ofVbo_enableVAOs() -ofVbo_enableVAOs = _openframeworks.ofVbo_enableVAOs + def setIndexData(self, indices, total, usage): + return _openframeworks.ofVbo_setIndexData(self, indices, total, usage) -class ofVboMesh(ofMesh): - __swig_setmethods__ = {} - for _s in [ofMesh]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) - __swig_getmethods__ = {} - for _s in [ofMesh]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofVboMesh(*args) - try: self.this.append(this) - except: self.this = this - def setUsage(self, *args): return _openframeworks.ofVboMesh_setUsage(self, *args) - def draw(self, *args): return _openframeworks.ofVboMesh_draw(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVboMesh_drawInstanced(self, *args) - def getVbo(self): return _openframeworks.ofVboMesh_getVbo(self) - __swig_destroy__ = _openframeworks.delete_ofVboMesh - __del__ = lambda self : None; -ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister -ofVboMesh_swigregister(ofVboMesh) + def setVertexData(self, *args): + return _openframeworks.ofVbo_setVertexData(self, *args) -OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR -OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR -OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC -class ofPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofPixels - __del__ = lambda self : None; - def __init__(self, *args): - this = _openframeworks.new_ofPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofPixels_swapRgb(self) - def clear(self): return _openframeworks.ofPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofPixels_size(self) -ofPixels_swigregister = _openframeworks.ofPixels_swigregister -ofPixels_swigregister(ofPixels) + def setColorData(self, *args): + return _openframeworks.ofVbo_setColorData(self, *args) -class ofFloatPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) - __repr__ = _swig_repr + def setNormalData(self, *args): + return _openframeworks.ofVbo_setNormalData(self, *args) + + def setTexCoordData(self, *args): + return _openframeworks.ofVbo_setTexCoordData(self, *args) + + def setAttributeData(self, location, vert0x, numCoords, total, usage, stride=0): + return _openframeworks.ofVbo_setAttributeData(self, location, vert0x, numCoords, total, usage, stride) + + def setAttributeDivisor(self, location, divisor): + return _openframeworks.ofVbo_setAttributeDivisor(self, location, divisor) + + def setVertexBuffer(self, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setVertexBuffer(self, buffer, numCoords, stride, offset) + + def setColorBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setColorBuffer(self, buffer, stride, offset) + + def setNormalBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setNormalBuffer(self, buffer, stride, offset) + + def setTexCoordBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setTexCoordBuffer(self, buffer, stride, offset) + + def setIndexBuffer(self, buffer): + return _openframeworks.ofVbo_setIndexBuffer(self, buffer) + + def setAttributeBuffer(self, location, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setAttributeBuffer(self, location, buffer, numCoords, stride, offset) + + def getVertexBuffer(self, *args): + return _openframeworks.ofVbo_getVertexBuffer(self, *args) + + def getColorBuffer(self, *args): + return _openframeworks.ofVbo_getColorBuffer(self, *args) + + def getNormalBuffer(self, *args): + return _openframeworks.ofVbo_getNormalBuffer(self, *args) + + def getTexCoordBuffer(self, *args): + return _openframeworks.ofVbo_getTexCoordBuffer(self, *args) + + def getIndexBuffer(self, *args): + return _openframeworks.ofVbo_getIndexBuffer(self, *args) + + def getAttributeBuffer(self, *args): + return _openframeworks.ofVbo_getAttributeBuffer(self, *args) + + def updateMesh(self, mesh): + return _openframeworks.ofVbo_updateMesh(self, mesh) + + def updateIndexData(self, indices, total): + return _openframeworks.ofVbo_updateIndexData(self, indices, total) + + def updateVertexData(self, *args): + return _openframeworks.ofVbo_updateVertexData(self, *args) + + def updateColorData(self, *args): + return _openframeworks.ofVbo_updateColorData(self, *args) + + def updateNormalData(self, *args): + return _openframeworks.ofVbo_updateNormalData(self, *args) + + def updateTexCoordData(self, *args): + return _openframeworks.ofVbo_updateTexCoordData(self, *args) + + def updateAttributeData(self, location, vert0x, total): + return _openframeworks.ofVbo_updateAttributeData(self, location, vert0x, total) + + def enableColors(self): + return _openframeworks.ofVbo_enableColors(self) + + def enableNormals(self): + return _openframeworks.ofVbo_enableNormals(self) + + def enableTexCoords(self): + return _openframeworks.ofVbo_enableTexCoords(self) + + def enableIndices(self): + return _openframeworks.ofVbo_enableIndices(self) + + def disableColors(self): + return _openframeworks.ofVbo_disableColors(self) + + def disableNormals(self): + return _openframeworks.ofVbo_disableNormals(self) + + def disableTexCoords(self): + return _openframeworks.ofVbo_disableTexCoords(self) + + def disableIndices(self): + return _openframeworks.ofVbo_disableIndices(self) + + def getVaoId(self): + return _openframeworks.ofVbo_getVaoId(self) + + def getVertId(self): + return _openframeworks.ofVbo_getVertId(self) + + def getColorId(self): + return _openframeworks.ofVbo_getColorId(self) + + def getNormalId(self): + return _openframeworks.ofVbo_getNormalId(self) + + def getTexCoordId(self): + return _openframeworks.ofVbo_getTexCoordId(self) + + def getIndexId(self): + return _openframeworks.ofVbo_getIndexId(self) + + def getAttributeId(self, AttrPos_): + return _openframeworks.ofVbo_getAttributeId(self, AttrPos_) + + def getIsAllocated(self): + return _openframeworks.ofVbo_getIsAllocated(self) + + def getUsingVerts(self): + return _openframeworks.ofVbo_getUsingVerts(self) + + def getUsingColors(self): + return _openframeworks.ofVbo_getUsingColors(self) + + def getUsingNormals(self): + return _openframeworks.ofVbo_getUsingNormals(self) + + def getUsingTexCoords(self): + return _openframeworks.ofVbo_getUsingTexCoords(self) + + def getUsingIndices(self): + return _openframeworks.ofVbo_getUsingIndices(self) + + def draw(self, drawMode, first, total): + return _openframeworks.ofVbo_draw(self, drawMode, first, total) + + def drawElements(self, drawMode, amt, offsetelements=0): + return _openframeworks.ofVbo_drawElements(self, drawMode, amt, offsetelements) + + def drawInstanced(self, drawMode, first, total, primCount): + return _openframeworks.ofVbo_drawInstanced(self, drawMode, first, total, primCount) + + def drawElementsInstanced(self, drawMode, amt, primCount): + return _openframeworks.ofVbo_drawElementsInstanced(self, drawMode, amt, primCount) + + def bind(self): + return _openframeworks.ofVbo_bind(self) + + def unbind(self): + return _openframeworks.ofVbo_unbind(self) + + def clear(self): + return _openframeworks.ofVbo_clear(self) + + def clearVertices(self): + return _openframeworks.ofVbo_clearVertices(self) + + def clearNormals(self): + return _openframeworks.ofVbo_clearNormals(self) + + def clearColors(self): + return _openframeworks.ofVbo_clearColors(self) + + def clearTexCoords(self): + return _openframeworks.ofVbo_clearTexCoords(self) + + def clearIndices(self): + return _openframeworks.ofVbo_clearIndices(self) + + def clearAttribute(self, attributePos_): + return _openframeworks.ofVbo_clearAttribute(self, attributePos_) + + def getNumVertices(self): + return _openframeworks.ofVbo_getNumVertices(self) + + def getNumIndices(self): + return _openframeworks.ofVbo_getNumIndices(self) + + def hasAttribute(self, attributePos_): + return _openframeworks.ofVbo_hasAttribute(self, attributePos_) +ofVbo_swigregister = _openframeworks.ofVbo_swigregister +ofVbo_swigregister(ofVbo) + +class ofVboMesh(ofMesh): + __swig_setmethods__ = {} + for _s in [ofMesh]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) + __swig_getmethods__ = {} + for _s in [ofMesh]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) + __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofVboMesh(*args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofVboMesh + __del__ = lambda self: None + + def setUsage(self, usage): + return _openframeworks.ofVboMesh_setUsage(self, usage) + + def draw(self, *args): + return _openframeworks.ofVboMesh_draw(self, *args) + + def drawInstanced(self, drawMode, primCount): + return _openframeworks.ofVboMesh_drawInstanced(self, drawMode, primCount) + + def getVbo(self, *args): + return _openframeworks.ofVboMesh_getVbo(self, *args) +ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister +ofVboMesh_swigregister(ofVboMesh) + + +_openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant(_openframeworks) +OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR + +_openframeworks.OF_INTERPOLATE_BILINEAR_swigconstant(_openframeworks) +OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR + +_openframeworks.OF_INTERPOLATE_BICUBIC_swigconstant(_openframeworks) +OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC +class ofPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofPixels + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofPixels(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofPixels_size(self) + + def getImageType(self): + return _openframeworks.ofPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofPixels_getConstPixelsIter(self) +ofPixels_swigregister = _openframeworks.ofPixels_swigregister +ofPixels_swigregister(ofPixels) + +def ofPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofPixels_pixelBitsFromPixelFormat(format) +ofPixels_pixelBitsFromPixelFormat = _openframeworks.ofPixels_pixelBitsFromPixelFormat + +def ofPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofPixels_bytesFromPixelFormat(w, h, format) +ofPixels_bytesFromPixelFormat = _openframeworks.ofPixels_bytesFromPixelFormat + +class ofFloatPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) + __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofFloatPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofFloatPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofFloatPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofFloatPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofFloatPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofFloatPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofFloatPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofFloatPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofFloatPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofFloatPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofFloatPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofFloatPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofFloatPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofFloatPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofFloatPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofFloatPixels_swapRgb(self) - def clear(self): return _openframeworks.ofFloatPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofFloatPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofFloatPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofFloatPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofFloatPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofFloatPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofFloatPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofFloatPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofFloatPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofFloatPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofFloatPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofFloatPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofFloatPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofFloatPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofFloatPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofFloatPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofFloatPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofFloatPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofFloatPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFloatPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofFloatPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofFloatPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofFloatPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofFloatPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofFloatPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofFloatPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofFloatPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofFloatPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofFloatPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofFloatPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofFloatPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofFloatPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFloatPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofFloatPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofFloatPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofFloatPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofFloatPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofFloatPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofFloatPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofFloatPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofFloatPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofFloatPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofFloatPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofFloatPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofFloatPixels_size(self) + + def getImageType(self): + return _openframeworks.ofFloatPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofFloatPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofFloatPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofFloatPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofFloatPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofFloatPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofFloatPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofFloatPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofFloatPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofFloatPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofFloatPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofFloatPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofFloatPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofFloatPixels_getConstPixelsIter(self) ofFloatPixels_swigregister = _openframeworks.ofFloatPixels_swigregister ofFloatPixels_swigregister(ofFloatPixels) +def ofFloatPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat(format) +ofFloatPixels_pixelBitsFromPixelFormat = _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + +def ofFloatPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofFloatPixels_bytesFromPixelFormat(w, h, format) +ofFloatPixels_bytesFromPixelFormat = _openframeworks.ofFloatPixels_bytesFromPixelFormat + class ofShortPixels(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortPixels, name, value) @@ -3695,115 +7390,348 @@ class ofShortPixels(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShortPixels, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShortPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShortPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofShortPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofShortPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofShortPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofShortPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofShortPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofShortPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofShortPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofShortPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofShortPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofShortPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofShortPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofShortPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofShortPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofShortPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofShortPixels_swapRgb(self) - def clear(self): return _openframeworks.ofShortPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofShortPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofShortPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofShortPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofShortPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofShortPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofShortPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofShortPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofShortPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofShortPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofShortPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofShortPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofShortPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofShortPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofShortPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofShortPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofShortPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofShortPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofShortPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofShortPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofShortPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofShortPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofShortPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofShortPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofShortPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofShortPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofShortPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofShortPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofShortPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofShortPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofShortPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofShortPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofShortPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofShortPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofShortPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofShortPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofShortPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofShortPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofShortPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofShortPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofShortPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofShortPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofShortPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofShortPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofShortPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofShortPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofShortPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofShortPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofShortPixels_size(self) + + def getImageType(self): + return _openframeworks.ofShortPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofShortPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofShortPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofShortPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofShortPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofShortPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofShortPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofShortPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofShortPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofShortPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofShortPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofShortPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofShortPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofShortPixels_getConstPixelsIter(self) ofShortPixels_swigregister = _openframeworks.ofShortPixels_swigregister ofShortPixels_swigregister(ofShortPixels) +def ofShortPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofShortPixels_pixelBitsFromPixelFormat(format) +ofShortPixels_pixelBitsFromPixelFormat = _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + +def ofShortPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofShortPixels_bytesFromPixelFormat(w, h, format) +ofShortPixels_bytesFromPixelFormat = _openframeworks.ofShortPixels_bytesFromPixelFormat + class ofPath(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofPath, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPath, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofPath() - try: self.this.append(this) - except: self.this = this - def clear(self): return _openframeworks.ofPath_clear(self) - def newSubPath(self): return _openframeworks.ofPath_newSubPath(self) - def close(self): return _openframeworks.ofPath_close(self) - def lineTo(self, *args): return _openframeworks.ofPath_lineTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofPath_moveTo(self, *args) - def curveTo(self, *args): return _openframeworks.ofPath_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPath_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPath_quadBezierTo(self, *args) - def arc(self, *args): return _openframeworks.ofPath_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPath_arcNegative(self, *args) - def triangle(self, *args): return _openframeworks.ofPath_triangle(self, *args) - def circle(self, *args): return _openframeworks.ofPath_circle(self, *args) - def ellipse(self, *args): return _openframeworks.ofPath_ellipse(self, *args) - def rectangle(self, *args): return _openframeworks.ofPath_rectangle(self, *args) - def rectRounded(self, *args): return _openframeworks.ofPath_rectRounded(self, *args) - def setPolyWindingMode(self, *args): return _openframeworks.ofPath_setPolyWindingMode(self, *args) - def setFilled(self, *args): return _openframeworks.ofPath_setFilled(self, *args) - def setStrokeWidth(self, *args): return _openframeworks.ofPath_setStrokeWidth(self, *args) - def setColor(self, *args): return _openframeworks.ofPath_setColor(self, *args) - def setHexColor(self, *args): return _openframeworks.ofPath_setHexColor(self, *args) - def setFillColor(self, *args): return _openframeworks.ofPath_setFillColor(self, *args) - def setFillHexColor(self, *args): return _openframeworks.ofPath_setFillHexColor(self, *args) - def setStrokeColor(self, *args): return _openframeworks.ofPath_setStrokeColor(self, *args) - def setStrokeHexColor(self, *args): return _openframeworks.ofPath_setStrokeHexColor(self, *args) - def getWindingMode(self): return _openframeworks.ofPath_getWindingMode(self) - def isFilled(self): return _openframeworks.ofPath_isFilled(self) - def getFillColor(self): return _openframeworks.ofPath_getFillColor(self) - def getStrokeColor(self): return _openframeworks.ofPath_getStrokeColor(self) - def getStrokeWidth(self): return _openframeworks.ofPath_getStrokeWidth(self) - def hasOutline(self): return _openframeworks.ofPath_hasOutline(self) - def draw(self, *args): return _openframeworks.ofPath_draw(self, *args) - def getOutline(self): return _openframeworks.ofPath_getOutline(self) - def getTessellation(self): return _openframeworks.ofPath_getTessellation(self) - def simplify(self, tolerance=0.3): return _openframeworks.ofPath_simplify(self, tolerance) - def flagShapeChanged(self): return _openframeworks.ofPath_flagShapeChanged(self) - def hasChanged(self): return _openframeworks.ofPath_hasChanged(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def clear(self): + return _openframeworks.ofPath_clear(self) + + def newSubPath(self): + return _openframeworks.ofPath_newSubPath(self) + + def close(self): + return _openframeworks.ofPath_close(self) + + def lineTo(self, *args): + return _openframeworks.ofPath_lineTo(self, *args) + + def moveTo(self, *args): + return _openframeworks.ofPath_moveTo(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPath_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPath_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPath_quadBezierTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPath_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPath_arcNegative(self, *args) + + def triangle(self, *args): + return _openframeworks.ofPath_triangle(self, *args) + + def circle(self, *args): + return _openframeworks.ofPath_circle(self, *args) + + def ellipse(self, *args): + return _openframeworks.ofPath_ellipse(self, *args) + + def rectangle(self, *args): + return _openframeworks.ofPath_rectangle(self, *args) + + def rectRounded(self, *args): + return _openframeworks.ofPath_rectRounded(self, *args) + + def setPolyWindingMode(self, mode): + return _openframeworks.ofPath_setPolyWindingMode(self, mode) + + def getWindingMode(self): + return _openframeworks.ofPath_getWindingMode(self) + + def setFilled(self, hasFill): + return _openframeworks.ofPath_setFilled(self, hasFill) + + def setStrokeWidth(self, width): + return _openframeworks.ofPath_setStrokeWidth(self, width) + + def setColor(self, color): + return _openframeworks.ofPath_setColor(self, color) + + def setHexColor(self, hex): + return _openframeworks.ofPath_setHexColor(self, hex) + + def setFillColor(self, color): + return _openframeworks.ofPath_setFillColor(self, color) + + def setFillHexColor(self, hex): + return _openframeworks.ofPath_setFillHexColor(self, hex) + + def setStrokeColor(self, color): + return _openframeworks.ofPath_setStrokeColor(self, color) + + def setStrokeHexColor(self, hex): + return _openframeworks.ofPath_setStrokeHexColor(self, hex) + + def isFilled(self): + return _openframeworks.ofPath_isFilled(self) + + def getFillColor(self): + return _openframeworks.ofPath_getFillColor(self) + + def getStrokeColor(self): + return _openframeworks.ofPath_getStrokeColor(self) + + def getStrokeWidth(self): + return _openframeworks.ofPath_getStrokeWidth(self) + + def hasOutline(self): + return _openframeworks.ofPath_hasOutline(self) + + def setCurveResolution(self, curveResolution): + return _openframeworks.ofPath_setCurveResolution(self, curveResolution) + + def setCircleResolution(self, circleResolution): + return _openframeworks.ofPath_setCircleResolution(self, circleResolution) + + def getCircleResolution(self): + return _openframeworks.ofPath_getCircleResolution(self) + + def setUseShapeColor(self, useColor): + return _openframeworks.ofPath_setUseShapeColor(self, useColor) + + def getUseShapeColor(self): + return _openframeworks.ofPath_getUseShapeColor(self) + + def draw(self, *args): + return _openframeworks.ofPath_draw(self, *args) + + def getOutline(self): + return _openframeworks.ofPath_getOutline(self) + + def tessellate(self): + return _openframeworks.ofPath_tessellate(self) + + def getTessellation(self): + return _openframeworks.ofPath_getTessellation(self) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPath_simplify(self, tolerance) + + def translate(self, p): + return _openframeworks.ofPath_translate(self, p) + + def rotate(self, az, axis): + return _openframeworks.ofPath_rotate(self, az, axis) + + def scale(self, x, y): + return _openframeworks.ofPath_scale(self, x, y) + + def append(self, path): + return _openframeworks.ofPath_append(self, path) COMMANDS = _openframeworks.ofPath_COMMANDS POLYLINES = _openframeworks.ofPath_POLYLINES - def setMode(self, *args): return _openframeworks.ofPath_setMode(self, *args) - def getMode(self): return _openframeworks.ofPath_getMode(self) - def setCurveResolution(self, *args): return _openframeworks.ofPath_setCurveResolution(self, *args) - def setCircleResolution(self, *args): return _openframeworks.ofPath_setCircleResolution(self, *args) - def getCircleResolution(self): return _openframeworks.ofPath_getCircleResolution(self) - def setUseShapeColor(self, *args): return _openframeworks.ofPath_setUseShapeColor(self, *args) - def getUseShapeColor(self): return _openframeworks.ofPath_getUseShapeColor(self) - def tessellate(self): return _openframeworks.ofPath_tessellate(self) - def translate(self, *args): return _openframeworks.ofPath_translate(self, *args) - def rotate(self, *args): return _openframeworks.ofPath_rotate(self, *args) - def scale(self, *args): return _openframeworks.ofPath_scale(self, *args) - def getCommands(self, *args): return _openframeworks.ofPath_getCommands(self, *args) + + def setMode(self, mode): + return _openframeworks.ofPath_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofPath_getMode(self) + + def getCommands(self, *args): + return _openframeworks.ofPath_getCommands(self, *args) __swig_destroy__ = _openframeworks.delete_ofPath - __del__ = lambda self : None; + __del__ = lambda self: None ofPath_swigregister = _openframeworks.ofPath_swigregister ofPath_swigregister(ofPath) @@ -3813,539 +7741,857 @@ class ofPolyline(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPolyline, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPolyline(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromRectangle"] = lambda x: _openframeworks.ofPolyline_fromRectangle - if _newclass:fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) - def clear(self): return _openframeworks.ofPolyline_clear(self) - def addVertex(self, *args): return _openframeworks.ofPolyline_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofPolyline_addVertices(self, *args) - def lineTo(self, *args): return _openframeworks.ofPolyline_lineTo(self, *args) - def insertVertex(self, *args): return _openframeworks.ofPolyline_insertVertex(self, *args) - def arc(self, *args): return _openframeworks.ofPolyline_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPolyline_arcNegative(self, *args) - def curveTo(self, *args): return _openframeworks.ofPolyline_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPolyline_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPolyline_quadBezierTo(self, *args) - def getSmoothed(self, *args): return _openframeworks.ofPolyline_getSmoothed(self, *args) - def getResampledBySpacing(self, *args): return _openframeworks.ofPolyline_getResampledBySpacing(self, *args) - def getResampledByCount(self, *args): return _openframeworks.ofPolyline_getResampledByCount(self, *args) - def getBoundingBox(self): return _openframeworks.ofPolyline_getBoundingBox(self) - def getClosestPoint(self, *args): return _openframeworks.ofPolyline_getClosestPoint(self, *args) - def inside(self, *args): return _openframeworks.ofPolyline_inside(self, *args) - def simplify(self, tolerance=0.3): return _openframeworks.ofPolyline_simplify(self, tolerance) - def size(self): return _openframeworks.ofPolyline_size(self) - def __getitem__(self, *args): return _openframeworks.ofPolyline___getitem__(self, *args) - def resize(self, *args): return _openframeworks.ofPolyline_resize(self, *args) - def setClosed(self, *args): return _openframeworks.ofPolyline_setClosed(self, *args) - def isClosed(self): return _openframeworks.ofPolyline_isClosed(self) - def close(self): return _openframeworks.ofPolyline_close(self) - def hasChanged(self): return _openframeworks.ofPolyline_hasChanged(self) - def flagHasChanged(self): return _openframeworks.ofPolyline_flagHasChanged(self) - def getVertices(self, *args): return _openframeworks.ofPolyline_getVertices(self, *args) - def getPerimeter(self): return _openframeworks.ofPolyline_getPerimeter(self) - def getArea(self): return _openframeworks.ofPolyline_getArea(self) - def getCentroid2D(self): return _openframeworks.ofPolyline_getCentroid2D(self) - def draw(self): return _openframeworks.ofPolyline_draw(self) - def setRightVector(self, *args): return _openframeworks.ofPolyline_setRightVector(self, *args) - def getRightVector(self): return _openframeworks.ofPolyline_getRightVector(self) - def getIndexAtLength(self, *args): return _openframeworks.ofPolyline_getIndexAtLength(self, *args) - def getIndexAtPercent(self, *args): return _openframeworks.ofPolyline_getIndexAtPercent(self, *args) - def getLengthAtIndex(self, *args): return _openframeworks.ofPolyline_getLengthAtIndex(self, *args) - def getLengthAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, *args) - def getPointAtLength(self, *args): return _openframeworks.ofPolyline_getPointAtLength(self, *args) - def getPointAtPercent(self, *args): return _openframeworks.ofPolyline_getPointAtPercent(self, *args) - def getPointAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, *args) - def getAngleAtIndex(self, *args): return _openframeworks.ofPolyline_getAngleAtIndex(self, *args) - def getAngleAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, *args) - def getRotationAtIndex(self, *args): return _openframeworks.ofPolyline_getRotationAtIndex(self, *args) - def getRotationAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, *args) - def getTangentAtIndex(self, *args): return _openframeworks.ofPolyline_getTangentAtIndex(self, *args) - def getTangentAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, *args) - def getNormalAtIndex(self, *args): return _openframeworks.ofPolyline_getNormalAtIndex(self, *args) - def getNormalAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, *args) - def getWrappedIndex(self, *args): return _openframeworks.ofPolyline_getWrappedIndex(self, *args) + if _newclass: + fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) + + def clear(self): + return _openframeworks.ofPolyline_clear(self) + + def addVertex(self, *args): + return _openframeworks.ofPolyline_addVertex(self, *args) + + def addVertices(self, *args): + return _openframeworks.ofPolyline_addVertices(self, *args) + + def insertVertex(self, *args): + return _openframeworks.ofPolyline_insertVertex(self, *args) + + def resize(self, size): + return _openframeworks.ofPolyline_resize(self, size) + + def size(self): + return _openframeworks.ofPolyline_size(self) + + def __getitem__(self, *args): + return _openframeworks.ofPolyline___getitem__(self, *args) + + def getVertices(self, *args): + return _openframeworks.ofPolyline_getVertices(self, *args) + + def begin(self, *args): + return _openframeworks.ofPolyline_begin(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPolyline_rbegin(self, *args) + + def end(self, *args): + return _openframeworks.ofPolyline_end(self, *args) + + def rend(self, *args): + return _openframeworks.ofPolyline_rend(self, *args) + + def lineTo(self, *args): + return _openframeworks.ofPolyline_lineTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPolyline_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPolyline_arcNegative(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPolyline_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPolyline_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPolyline_quadBezierTo(self, *args) + + def getSmoothed(self, smoothingSize, smoothingShape=0): + return _openframeworks.ofPolyline_getSmoothed(self, smoothingSize, smoothingShape) + + def getResampledBySpacing(self, spacing): + return _openframeworks.ofPolyline_getResampledBySpacing(self, spacing) + + def getResampledByCount(self, count): + return _openframeworks.ofPolyline_getResampledByCount(self, count) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPolyline_simplify(self, tolerance) + + def close(self): + return _openframeworks.ofPolyline_close(self) + + def setClosed(self, tf): + return _openframeworks.ofPolyline_setClosed(self, tf) + + def isClosed(self): + return _openframeworks.ofPolyline_isClosed(self) + + def hasChanged(self): + return _openframeworks.ofPolyline_hasChanged(self) + + def flagHasChanged(self): + return _openframeworks.ofPolyline_flagHasChanged(self) + + def inside(self, *args): + return _openframeworks.ofPolyline_inside(self, *args) + + def getBoundingBox(self): + return _openframeworks.ofPolyline_getBoundingBox(self) + + def getPerimeter(self): + return _openframeworks.ofPolyline_getPerimeter(self) + + def getArea(self): + return _openframeworks.ofPolyline_getArea(self) + + def getCentroid2D(self): + return _openframeworks.ofPolyline_getCentroid2D(self) + + def getClosestPoint(self, target, nearestIndex=None): + return _openframeworks.ofPolyline_getClosestPoint(self, target, nearestIndex) + + def getIndexAtLength(self, f): + return _openframeworks.ofPolyline_getIndexAtLength(self, f) + + def getIndexAtPercent(self, f): + return _openframeworks.ofPolyline_getIndexAtPercent(self, f) + + def getLengthAtIndex(self, index): + return _openframeworks.ofPolyline_getLengthAtIndex(self, index) + + def getLengthAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, findex) + + def getPointAtLength(self, f): + return _openframeworks.ofPolyline_getPointAtLength(self, f) + + def getPointAtPercent(self, f): + return _openframeworks.ofPolyline_getPointAtPercent(self, f) + + def getPointAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, findex) + + def getAngleAtIndex(self, index): + return _openframeworks.ofPolyline_getAngleAtIndex(self, index) + + def getAngleAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, findex) + + def getRotationAtIndex(self, index): + return _openframeworks.ofPolyline_getRotationAtIndex(self, index) + + def getRotationAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, findex) + + def getTangentAtIndex(self, index): + return _openframeworks.ofPolyline_getTangentAtIndex(self, index) + + def getTangentAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, findex) + + def getNormalAtIndex(self, index): + return _openframeworks.ofPolyline_getNormalAtIndex(self, index) + + def getNormalAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, findex) + + def getWrappedIndex(self, index): + return _openframeworks.ofPolyline_getWrappedIndex(self, index) + + def setRightVector(self, *args): + return _openframeworks.ofPolyline_setRightVector(self, *args) + + def getRightVector(self): + return _openframeworks.ofPolyline_getRightVector(self) + + def draw(self): + return _openframeworks.ofPolyline_draw(self) __swig_destroy__ = _openframeworks.delete_ofPolyline - __del__ = lambda self : None; + __del__ = lambda self: None ofPolyline_swigregister = _openframeworks.ofPolyline_swigregister ofPolyline_swigregister(ofPolyline) -def ofPolyline_fromRectangle(*args): - return _openframeworks.ofPolyline_fromRectangle(*args) -ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle +def ofPolyline_fromRectangle(rect): + return _openframeworks.ofPolyline_fromRectangle(rect) +ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle + + +_openframeworks.CIRC_RESOLUTION_swigconstant(_openframeworks) +CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION + +def ofSetColor(*args): + return _openframeworks.ofSetColor(*args) +ofSetColor = _openframeworks.ofSetColor + +def ofSetHexColor(hexColor): + return _openframeworks.ofSetHexColor(hexColor) +ofSetHexColor = _openframeworks.ofSetHexColor + +def ofNoFill(): + return _openframeworks.ofNoFill() +ofNoFill = _openframeworks.ofNoFill + +def ofFill(): + return _openframeworks.ofFill() +ofFill = _openframeworks.ofFill + +def ofGetFill(): + return _openframeworks.ofGetFill() +ofGetFill = _openframeworks.ofGetFill + +def ofGetBackgroundColor(): + return _openframeworks.ofGetBackgroundColor() +ofGetBackgroundColor = _openframeworks.ofGetBackgroundColor + +def ofGetBackground(): + return _openframeworks.ofGetBackground() +ofGetBackground = _openframeworks.ofGetBackground + +def ofBackground(*args): + return _openframeworks.ofBackground(*args) +ofBackground = _openframeworks.ofBackground + +def ofBackgroundHex(hexColor, alpha=255): + return _openframeworks.ofBackgroundHex(hexColor, alpha) +ofBackgroundHex = _openframeworks.ofBackgroundHex + +def ofBackgroundGradient(start, end, mode=OF_GRADIENT_CIRCULAR): + return _openframeworks.ofBackgroundGradient(start, end, mode) +ofBackgroundGradient = _openframeworks.ofBackgroundGradient + +def ofSetBackgroundColor(*args): + return _openframeworks.ofSetBackgroundColor(*args) +ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor + +def ofSetBackgroundColorHex(hexColor, alpha=255): + return _openframeworks.ofSetBackgroundColorHex(hexColor, alpha) +ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex + +def ofSetBackgroundAuto(bManual): + return _openframeworks.ofSetBackgroundAuto(bManual) +ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto -CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION +def ofGetBackgroundAuto(): + return _openframeworks.ofGetBackgroundAuto() +ofGetBackgroundAuto = _openframeworks.ofGetBackgroundAuto -def ofBeginSaveScreenAsPDF(*args): - return _openframeworks.ofBeginSaveScreenAsPDF(*args) -ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF +def ofClear(*args): + return _openframeworks.ofClear(*args) +ofClear = _openframeworks.ofClear -def ofEndSaveScreenAsPDF(): - return _openframeworks.ofEndSaveScreenAsPDF() -ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF +def ofClearAlpha(): + return _openframeworks.ofClearAlpha() +ofClearAlpha = _openframeworks.ofClearAlpha -def ofPushView(): - return _openframeworks.ofPushView() -ofPushView = _openframeworks.ofPushView +def ofDrawTriangle(*args): + return _openframeworks.ofDrawTriangle(*args) +ofDrawTriangle = _openframeworks.ofDrawTriangle -def ofPopView(): - return _openframeworks.ofPopView() -ofPopView = _openframeworks.ofPopView +def ofDrawCircle(*args): + return _openframeworks.ofDrawCircle(*args) +ofDrawCircle = _openframeworks.ofDrawCircle -def ofViewport(*args): - return _openframeworks.ofViewport(*args) -ofViewport = _openframeworks.ofViewport +def ofDrawEllipse(*args): + return _openframeworks.ofDrawEllipse(*args) +ofDrawEllipse = _openframeworks.ofDrawEllipse -def ofSetupScreenPerspective(*args): - return _openframeworks.ofSetupScreenPerspective(*args) -ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective +def ofDrawLine(*args): + return _openframeworks.ofDrawLine(*args) +ofDrawLine = _openframeworks.ofDrawLine -def ofSetupScreenOrtho(*args): - return _openframeworks.ofSetupScreenOrtho(*args) -ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho +def ofDrawRectangle(*args): + return _openframeworks.ofDrawRectangle(*args) +ofDrawRectangle = _openframeworks.ofDrawRectangle -def ofGetCurrentViewport(): - return _openframeworks.ofGetCurrentViewport() -ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport +def ofDrawRectRounded(*args): + return _openframeworks.ofDrawRectRounded(*args) +ofDrawRectRounded = _openframeworks.ofDrawRectRounded -def ofGetNativeViewport(): - return _openframeworks.ofGetNativeViewport() -ofGetNativeViewport = _openframeworks.ofGetNativeViewport +def ofDrawCurve(*args): + return _openframeworks.ofDrawCurve(*args) +ofDrawCurve = _openframeworks.ofDrawCurve -def ofGetViewportWidth(): - return _openframeworks.ofGetViewportWidth() -ofGetViewportWidth = _openframeworks.ofGetViewportWidth +def ofDrawBezier(*args): + return _openframeworks.ofDrawBezier(*args) +ofDrawBezier = _openframeworks.ofDrawBezier -def ofGetViewportHeight(): - return _openframeworks.ofGetViewportHeight() -ofGetViewportHeight = _openframeworks.ofGetViewportHeight +def ofTriangle(*args): + return _openframeworks.ofTriangle(*args) +ofTriangle = _openframeworks.ofTriangle -def ofOrientationToDegrees(*args): - return _openframeworks.ofOrientationToDegrees(*args) -ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees +def ofCircle(*args): + return _openframeworks.ofCircle(*args) +ofCircle = _openframeworks.ofCircle -def ofSetCoordHandedness(*args): - return _openframeworks.ofSetCoordHandedness(*args) -ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness +def ofEllipse(*args): + return _openframeworks.ofEllipse(*args) +ofEllipse = _openframeworks.ofEllipse -def ofGetCoordHandedness(): - return _openframeworks.ofGetCoordHandedness() -ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness +def ofLine(*args): + return _openframeworks.ofLine(*args) +ofLine = _openframeworks.ofLine -def ofPushMatrix(): - return _openframeworks.ofPushMatrix() -ofPushMatrix = _openframeworks.ofPushMatrix +def ofRect(*args): + return _openframeworks.ofRect(*args) +ofRect = _openframeworks.ofRect -def ofPopMatrix(): - return _openframeworks.ofPopMatrix() -ofPopMatrix = _openframeworks.ofPopMatrix +def ofRectRounded(*args): + return _openframeworks.ofRectRounded(*args) +ofRectRounded = _openframeworks.ofRectRounded -def ofGetCurrentMatrix(*args): - return _openframeworks.ofGetCurrentMatrix(*args) -ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix +def ofCurve(*args): + return _openframeworks.ofCurve(*args) +ofCurve = _openframeworks.ofCurve -def ofGetCurrentOrientationMatrix(): - return _openframeworks.ofGetCurrentOrientationMatrix() -ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix +def ofBezier(*args): + return _openframeworks.ofBezier(*args) +ofBezier = _openframeworks.ofBezier -def ofTranslate(*args): - return _openframeworks.ofTranslate(*args) -ofTranslate = _openframeworks.ofTranslate +def ofBeginShape(): + return _openframeworks.ofBeginShape() +ofBeginShape = _openframeworks.ofBeginShape -def ofScale(*args): - return _openframeworks.ofScale(*args) -ofScale = _openframeworks.ofScale +def ofVertex(*args): + return _openframeworks.ofVertex(*args) +ofVertex = _openframeworks.ofVertex -def ofRotateX(*args): - return _openframeworks.ofRotateX(*args) -ofRotateX = _openframeworks.ofRotateX +def ofVertices(polyPoints): + return _openframeworks.ofVertices(polyPoints) +ofVertices = _openframeworks.ofVertices -def ofRotateY(*args): - return _openframeworks.ofRotateY(*args) -ofRotateY = _openframeworks.ofRotateY +def ofCurveVertex(*args): + return _openframeworks.ofCurveVertex(*args) +ofCurveVertex = _openframeworks.ofCurveVertex -def ofRotateZ(*args): - return _openframeworks.ofRotateZ(*args) -ofRotateZ = _openframeworks.ofRotateZ +def ofCurveVertices(curvePoints): + return _openframeworks.ofCurveVertices(curvePoints) +ofCurveVertices = _openframeworks.ofCurveVertices -def ofRotate(*args): - return _openframeworks.ofRotate(*args) -ofRotate = _openframeworks.ofRotate +def ofBezierVertex(*args): + return _openframeworks.ofBezierVertex(*args) +ofBezierVertex = _openframeworks.ofBezierVertex -def ofLoadIdentityMatrix(): - return _openframeworks.ofLoadIdentityMatrix() -ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix +def ofEndShape(bClose=False): + return _openframeworks.ofEndShape(bClose) +ofEndShape = _openframeworks.ofEndShape -def ofLoadMatrix(*args): - return _openframeworks.ofLoadMatrix(*args) -ofLoadMatrix = _openframeworks.ofLoadMatrix +def ofNextContour(bClose=False): + return _openframeworks.ofNextContour(bClose) +ofNextContour = _openframeworks.ofNextContour -def ofMultMatrix(*args): - return _openframeworks.ofMultMatrix(*args) -ofMultMatrix = _openframeworks.ofMultMatrix +def ofSetDrawBitmapMode(mode): + return _openframeworks.ofSetDrawBitmapMode(mode) +ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode -def ofSetMatrixMode(*args): - return _openframeworks.ofSetMatrixMode(*args) -ofSetMatrixMode = _openframeworks.ofSetMatrixMode +def ofDrawBitmapStringHighlight(*args): + return _openframeworks.ofDrawBitmapStringHighlight(*args) +ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight def ofSetupGraphicDefaults(): - return _openframeworks.ofSetupGraphicDefaults() + return _openframeworks.ofSetupGraphicDefaults() ofSetupGraphicDefaults = _openframeworks.ofSetupGraphicDefaults def ofSetupScreen(): - return _openframeworks.ofSetupScreen() + return _openframeworks.ofSetupScreen() ofSetupScreen = _openframeworks.ofSetupScreen def ofGetRectMode(): - return _openframeworks.ofGetRectMode() + return _openframeworks.ofGetRectMode() ofGetRectMode = _openframeworks.ofGetRectMode -def ofSetCircleResolution(*args): - return _openframeworks.ofSetCircleResolution(*args) +def ofSetCircleResolution(res): + return _openframeworks.ofSetCircleResolution(res) ofSetCircleResolution = _openframeworks.ofSetCircleResolution -def ofSetCurveResolution(*args): - return _openframeworks.ofSetCurveResolution(*args) +def ofSetCurveResolution(res): + return _openframeworks.ofSetCurveResolution(res) ofSetCurveResolution = _openframeworks.ofSetCurveResolution -def ofNoFill(): - return _openframeworks.ofNoFill() -ofNoFill = _openframeworks.ofNoFill - -def ofFill(): - return _openframeworks.ofFill() -ofFill = _openframeworks.ofFill - -def ofGetFill(): - return _openframeworks.ofGetFill() -ofGetFill = _openframeworks.ofGetFill - -def ofSetLineWidth(*args): - return _openframeworks.ofSetLineWidth(*args) +def ofSetLineWidth(lineWidth): + return _openframeworks.ofSetLineWidth(lineWidth) ofSetLineWidth = _openframeworks.ofSetLineWidth -def ofSetDepthTest(*args): - return _openframeworks.ofSetDepthTest(*args) +def ofSetDepthTest(depthTest): + return _openframeworks.ofSetDepthTest(depthTest) ofSetDepthTest = _openframeworks.ofSetDepthTest def ofEnableDepthTest(): - return _openframeworks.ofEnableDepthTest() + return _openframeworks.ofEnableDepthTest() ofEnableDepthTest = _openframeworks.ofEnableDepthTest def ofDisableDepthTest(): - return _openframeworks.ofDisableDepthTest() + return _openframeworks.ofDisableDepthTest() ofDisableDepthTest = _openframeworks.ofDisableDepthTest -def ofSetColor(*args): - return _openframeworks.ofSetColor(*args) -ofSetColor = _openframeworks.ofSetColor - -def ofSetHexColor(*args): - return _openframeworks.ofSetHexColor(*args) -ofSetHexColor = _openframeworks.ofSetHexColor - -def ofEnableBlendMode(*args): - return _openframeworks.ofEnableBlendMode(*args) +def ofEnableBlendMode(blendMode): + return _openframeworks.ofEnableBlendMode(blendMode) ofEnableBlendMode = _openframeworks.ofEnableBlendMode def ofDisableBlendMode(): - return _openframeworks.ofDisableBlendMode() + return _openframeworks.ofDisableBlendMode() ofDisableBlendMode = _openframeworks.ofDisableBlendMode def ofEnablePointSprites(): - return _openframeworks.ofEnablePointSprites() + return _openframeworks.ofEnablePointSprites() ofEnablePointSprites = _openframeworks.ofEnablePointSprites def ofDisablePointSprites(): - return _openframeworks.ofDisablePointSprites() + return _openframeworks.ofDisablePointSprites() ofDisablePointSprites = _openframeworks.ofDisablePointSprites def ofEnableAlphaBlending(): - return _openframeworks.ofEnableAlphaBlending() + return _openframeworks.ofEnableAlphaBlending() ofEnableAlphaBlending = _openframeworks.ofEnableAlphaBlending def ofDisableAlphaBlending(): - return _openframeworks.ofDisableAlphaBlending() + return _openframeworks.ofDisableAlphaBlending() ofDisableAlphaBlending = _openframeworks.ofDisableAlphaBlending def ofEnableSmoothing(): - return _openframeworks.ofEnableSmoothing() + return _openframeworks.ofEnableSmoothing() ofEnableSmoothing = _openframeworks.ofEnableSmoothing def ofDisableSmoothing(): - return _openframeworks.ofDisableSmoothing() + return _openframeworks.ofDisableSmoothing() ofDisableSmoothing = _openframeworks.ofDisableSmoothing def ofEnableAntiAliasing(): - return _openframeworks.ofEnableAntiAliasing() + return _openframeworks.ofEnableAntiAliasing() ofEnableAntiAliasing = _openframeworks.ofEnableAntiAliasing def ofDisableAntiAliasing(): - return _openframeworks.ofDisableAntiAliasing() + return _openframeworks.ofDisableAntiAliasing() ofDisableAntiAliasing = _openframeworks.ofDisableAntiAliasing def ofGetStyle(): - return _openframeworks.ofGetStyle() + return _openframeworks.ofGetStyle() ofGetStyle = _openframeworks.ofGetStyle -def ofSetStyle(*args): - return _openframeworks.ofSetStyle(*args) +def ofSetStyle(style): + return _openframeworks.ofSetStyle(style) ofSetStyle = _openframeworks.ofSetStyle def ofPushStyle(): - return _openframeworks.ofPushStyle() + return _openframeworks.ofPushStyle() ofPushStyle = _openframeworks.ofPushStyle def ofPopStyle(): - return _openframeworks.ofPopStyle() + return _openframeworks.ofPopStyle() ofPopStyle = _openframeworks.ofPopStyle -def ofSetPolyMode(*args): - return _openframeworks.ofSetPolyMode(*args) +def ofSetPolyMode(mode): + return _openframeworks.ofSetPolyMode(mode) ofSetPolyMode = _openframeworks.ofSetPolyMode -def ofSetRectMode(*args): - return _openframeworks.ofSetRectMode(*args) +def ofSetRectMode(mode): + return _openframeworks.ofSetRectMode(mode) ofSetRectMode = _openframeworks.ofSetRectMode -def ofGetBackground(): - return _openframeworks.ofGetBackground() -ofGetBackground = _openframeworks.ofGetBackground +def ofPushMatrix(): + return _openframeworks.ofPushMatrix() +ofPushMatrix = _openframeworks.ofPushMatrix -def ofBackground(*args): - return _openframeworks.ofBackground(*args) -ofBackground = _openframeworks.ofBackground +def ofPopMatrix(): + return _openframeworks.ofPopMatrix() +ofPopMatrix = _openframeworks.ofPopMatrix -def ofBackgroundHex(*args): - return _openframeworks.ofBackgroundHex(*args) -ofBackgroundHex = _openframeworks.ofBackgroundHex +def ofGetCurrentMatrix(matrixMode): + return _openframeworks.ofGetCurrentMatrix(matrixMode) +ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix -def ofBackgroundGradient(*args): - return _openframeworks.ofBackgroundGradient(*args) -ofBackgroundGradient = _openframeworks.ofBackgroundGradient +def ofGetCurrentOrientationMatrix(): + return _openframeworks.ofGetCurrentOrientationMatrix() +ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix -def ofSetBackgroundColor(*args): - return _openframeworks.ofSetBackgroundColor(*args) -ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor +def ofGetCurrentNormalMatrix(): + return _openframeworks.ofGetCurrentNormalMatrix() +ofGetCurrentNormalMatrix = _openframeworks.ofGetCurrentNormalMatrix -def ofSetBackgroundColorHex(*args): - return _openframeworks.ofSetBackgroundColorHex(*args) -ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex +def ofTranslate(*args): + return _openframeworks.ofTranslate(*args) +ofTranslate = _openframeworks.ofTranslate -def ofSetBackgroundAuto(*args): - return _openframeworks.ofSetBackgroundAuto(*args) -ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto +def ofScale(*args): + return _openframeworks.ofScale(*args) +ofScale = _openframeworks.ofScale -def ofClear(*args): - return _openframeworks.ofClear(*args) -ofClear = _openframeworks.ofClear +def ofRotate(*args): + return _openframeworks.ofRotate(*args) +ofRotate = _openframeworks.ofRotate -def ofClearAlpha(): - return _openframeworks.ofClearAlpha() -ofClearAlpha = _openframeworks.ofClearAlpha +def ofRotateX(degrees): + return _openframeworks.ofRotateX(degrees) +ofRotateX = _openframeworks.ofRotateX -def ofTriangle(*args): - return _openframeworks.ofTriangle(*args) -ofTriangle = _openframeworks.ofTriangle +def ofRotateY(degrees): + return _openframeworks.ofRotateY(degrees) +ofRotateY = _openframeworks.ofRotateY -def ofCircle(*args): - return _openframeworks.ofCircle(*args) -ofCircle = _openframeworks.ofCircle +def ofRotateZ(degrees): + return _openframeworks.ofRotateZ(degrees) +ofRotateZ = _openframeworks.ofRotateZ -def ofEllipse(*args): - return _openframeworks.ofEllipse(*args) -ofEllipse = _openframeworks.ofEllipse +def ofLoadIdentityMatrix(): + return _openframeworks.ofLoadIdentityMatrix() +ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix -def ofLine(*args): - return _openframeworks.ofLine(*args) -ofLine = _openframeworks.ofLine +def ofLoadMatrix(*args): + return _openframeworks.ofLoadMatrix(*args) +ofLoadMatrix = _openframeworks.ofLoadMatrix -def ofRect(*args): - return _openframeworks.ofRect(*args) -ofRect = _openframeworks.ofRect +def ofMultMatrix(*args): + return _openframeworks.ofMultMatrix(*args) +ofMultMatrix = _openframeworks.ofMultMatrix -def ofRectRounded(*args): - return _openframeworks.ofRectRounded(*args) -ofRectRounded = _openframeworks.ofRectRounded +def ofSetMatrixMode(matrixMode): + return _openframeworks.ofSetMatrixMode(matrixMode) +ofSetMatrixMode = _openframeworks.ofSetMatrixMode -def ofCurve(*args): - return _openframeworks.ofCurve(*args) -ofCurve = _openframeworks.ofCurve +def ofLoadViewMatrix(m): + return _openframeworks.ofLoadViewMatrix(m) +ofLoadViewMatrix = _openframeworks.ofLoadViewMatrix -def ofBezier(*args): - return _openframeworks.ofBezier(*args) -ofBezier = _openframeworks.ofBezier +def ofMultViewMatrix(m): + return _openframeworks.ofMultViewMatrix(m) +ofMultViewMatrix = _openframeworks.ofMultViewMatrix -def ofBeginShape(): - return _openframeworks.ofBeginShape() -ofBeginShape = _openframeworks.ofBeginShape +def ofGetCurrentViewMatrix(): + return _openframeworks.ofGetCurrentViewMatrix() +ofGetCurrentViewMatrix = _openframeworks.ofGetCurrentViewMatrix -def ofVertex(*args): - return _openframeworks.ofVertex(*args) -ofVertex = _openframeworks.ofVertex +def ofPushView(): + return _openframeworks.ofPushView() +ofPushView = _openframeworks.ofPushView -def ofVertices(*args): - return _openframeworks.ofVertices(*args) -ofVertices = _openframeworks.ofVertices +def ofPopView(): + return _openframeworks.ofPopView() +ofPopView = _openframeworks.ofPopView -def ofCurveVertex(*args): - return _openframeworks.ofCurveVertex(*args) -ofCurveVertex = _openframeworks.ofCurveVertex +def ofViewport(*args): + return _openframeworks.ofViewport(*args) +ofViewport = _openframeworks.ofViewport -def ofCurveVertices(*args): - return _openframeworks.ofCurveVertices(*args) -ofCurveVertices = _openframeworks.ofCurveVertices +def ofGetCurrentViewport(): + return _openframeworks.ofGetCurrentViewport() +ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport -def ofBezierVertex(*args): - return _openframeworks.ofBezierVertex(*args) -ofBezierVertex = _openframeworks.ofBezierVertex +def ofGetNativeViewport(): + return _openframeworks.ofGetNativeViewport() +ofGetNativeViewport = _openframeworks.ofGetNativeViewport -def ofEndShape(bClose=False): - return _openframeworks.ofEndShape(bClose) -ofEndShape = _openframeworks.ofEndShape +def ofGetViewportWidth(): + return _openframeworks.ofGetViewportWidth() +ofGetViewportWidth = _openframeworks.ofGetViewportWidth -def ofNextContour(bClose=False): - return _openframeworks.ofNextContour(bClose) -ofNextContour = _openframeworks.ofNextContour +def ofGetViewportHeight(): + return _openframeworks.ofGetViewportHeight() +ofGetViewportHeight = _openframeworks.ofGetViewportHeight -def ofSetDrawBitmapMode(*args): - return _openframeworks.ofSetDrawBitmapMode(*args) -ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode +def ofSetupScreenPerspective(width=-1, height=-1, fov=60, nearDist=0, farDist=0): + return _openframeworks.ofSetupScreenPerspective(width, height, fov, nearDist, farDist) +ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective -def ofDrawBitmapString(*args): - return _openframeworks.ofDrawBitmapString(*args) -ofDrawBitmapString = _openframeworks.ofDrawBitmapString +def ofSetupScreenOrtho(width=-1, height=-1, nearDist=-1, farDist=1): + return _openframeworks.ofSetupScreenOrtho(width, height, nearDist, farDist) +ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho -def ofDrawBitmapStringHighlight(*args): - return _openframeworks.ofDrawBitmapStringHighlight(*args) -ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight +def ofOrientationToDegrees(orientation): + return _openframeworks.ofOrientationToDegrees(orientation) +ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees + +def ofSetCoordHandedness(handedness): + return _openframeworks.ofSetCoordHandedness(handedness) +ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness + +def ofGetCoordHandedness(): + return _openframeworks.ofGetCoordHandedness() +ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness + +def ofBeginSaveScreenAsPDF(*args): + return _openframeworks.ofBeginSaveScreenAsPDF(*args) +ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF + +def ofEndSaveScreenAsPDF(): + return _openframeworks.ofEndSaveScreenAsPDF() +ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF + +def ofBeginSaveScreenAsSVG(*args): + return _openframeworks.ofBeginSaveScreenAsSVG(*args) +ofBeginSaveScreenAsSVG = _openframeworks.ofBeginSaveScreenAsSVG -def ofSetPlaneResolution(*args): - return _openframeworks.ofSetPlaneResolution(*args) +def ofEndSaveScreenAsSVG(): + return _openframeworks.ofEndSaveScreenAsSVG() +ofEndSaveScreenAsSVG = _openframeworks.ofEndSaveScreenAsSVG + +def ofSetPlaneResolution(columns, rows): + return _openframeworks.ofSetPlaneResolution(columns, rows) ofSetPlaneResolution = _openframeworks.ofSetPlaneResolution def ofGetPlaneResolution(): - return _openframeworks.ofGetPlaneResolution() + return _openframeworks.ofGetPlaneResolution() ofGetPlaneResolution = _openframeworks.ofGetPlaneResolution def ofDrawPlane(*args): - return _openframeworks.ofDrawPlane(*args) + return _openframeworks.ofDrawPlane(*args) ofDrawPlane = _openframeworks.ofDrawPlane -def ofSetSphereResolution(*args): - return _openframeworks.ofSetSphereResolution(*args) +def ofSetSphereResolution(res): + return _openframeworks.ofSetSphereResolution(res) ofSetSphereResolution = _openframeworks.ofSetSphereResolution def ofGetSphereResolution(): - return _openframeworks.ofGetSphereResolution() + return _openframeworks.ofGetSphereResolution() ofGetSphereResolution = _openframeworks.ofGetSphereResolution def ofDrawSphere(*args): - return _openframeworks.ofDrawSphere(*args) + return _openframeworks.ofDrawSphere(*args) ofDrawSphere = _openframeworks.ofDrawSphere -def ofSetIcoSphereResolution(*args): - return _openframeworks.ofSetIcoSphereResolution(*args) +def ofSetIcoSphereResolution(res): + return _openframeworks.ofSetIcoSphereResolution(res) ofSetIcoSphereResolution = _openframeworks.ofSetIcoSphereResolution def ofGetIcoSphereResolution(): - return _openframeworks.ofGetIcoSphereResolution() + return _openframeworks.ofGetIcoSphereResolution() ofGetIcoSphereResolution = _openframeworks.ofGetIcoSphereResolution def ofDrawIcoSphere(*args): - return _openframeworks.ofDrawIcoSphere(*args) + return _openframeworks.ofDrawIcoSphere(*args) ofDrawIcoSphere = _openframeworks.ofDrawIcoSphere -def ofSetCylinderResolution(*args): - return _openframeworks.ofSetCylinderResolution(*args) +def ofSetCylinderResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetCylinderResolution(radiusSegments, heightSegments, capSegments) ofSetCylinderResolution = _openframeworks.ofSetCylinderResolution def ofGetCylinderResolution(): - return _openframeworks.ofGetCylinderResolution() + return _openframeworks.ofGetCylinderResolution() ofGetCylinderResolution = _openframeworks.ofGetCylinderResolution def ofDrawCylinder(*args): - return _openframeworks.ofDrawCylinder(*args) + return _openframeworks.ofDrawCylinder(*args) ofDrawCylinder = _openframeworks.ofDrawCylinder -def ofSetConeResolution(*args): - return _openframeworks.ofSetConeResolution(*args) +def ofSetConeResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetConeResolution(radiusSegments, heightSegments, capSegments) ofSetConeResolution = _openframeworks.ofSetConeResolution def ofGetConeResolution(): - return _openframeworks.ofGetConeResolution() + return _openframeworks.ofGetConeResolution() ofGetConeResolution = _openframeworks.ofGetConeResolution def ofDrawCone(*args): - return _openframeworks.ofDrawCone(*args) + return _openframeworks.ofDrawCone(*args) ofDrawCone = _openframeworks.ofDrawCone def ofSetBoxResolution(*args): - return _openframeworks.ofSetBoxResolution(*args) + return _openframeworks.ofSetBoxResolution(*args) ofSetBoxResolution = _openframeworks.ofSetBoxResolution def ofGetBoxResolution(): - return _openframeworks.ofGetBoxResolution() + return _openframeworks.ofGetBoxResolution() ofGetBoxResolution = _openframeworks.ofGetBoxResolution def ofDrawBox(*args): - return _openframeworks.ofDrawBox(*args) + return _openframeworks.ofDrawBox(*args) ofDrawBox = _openframeworks.ofDrawBox +class of3dGraphics(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, of3dGraphics, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, of3dGraphics, name) + __repr__ = _swig_repr + + def __init__(self, renderer): + this = _openframeworks.new_of3dGraphics(renderer) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlaneResolution(self, columns, rows): + return _openframeworks.of3dGraphics_setPlaneResolution(self, columns, rows) + + def getPlaneResolution(self): + return _openframeworks.of3dGraphics_getPlaneResolution(self) + + def drawPlane(self, *args): + return _openframeworks.of3dGraphics_drawPlane(self, *args) + + def setSphereResolution(self, res): + return _openframeworks.of3dGraphics_setSphereResolution(self, res) + + def getSphereResolution(self): + return _openframeworks.of3dGraphics_getSphereResolution(self) + + def drawSphere(self, *args): + return _openframeworks.of3dGraphics_drawSphere(self, *args) + + def setIcoSphereResolution(self, res): + return _openframeworks.of3dGraphics_setIcoSphereResolution(self, res) + + def getIcoSphereResolution(self): + return _openframeworks.of3dGraphics_getIcoSphereResolution(self) + + def drawIcoSphere(self, *args): + return _openframeworks.of3dGraphics_drawIcoSphere(self, *args) + + def setCylinderResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setCylinderResolution(self, radiusSegments, heightSegments, capSegments) + + def getCylinderResolution(self): + return _openframeworks.of3dGraphics_getCylinderResolution(self) + + def drawCylinder(self, *args): + return _openframeworks.of3dGraphics_drawCylinder(self, *args) + + def setConeResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setConeResolution(self, radiusSegments, heightSegments, capSegments) + + def getConeResolution(self): + return _openframeworks.of3dGraphics_getConeResolution(self) + + def drawCone(self, *args): + return _openframeworks.of3dGraphics_drawCone(self, *args) + + def setBoxResolution(self, *args): + return _openframeworks.of3dGraphics_setBoxResolution(self, *args) + + def getBoxResolution(self): + return _openframeworks.of3dGraphics_getBoxResolution(self) + + def drawBox(self, *args): + return _openframeworks.of3dGraphics_drawBox(self, *args) + + def drawAxis(self, size): + return _openframeworks.of3dGraphics_drawAxis(self, size) + + def drawGrid(self, stepSize, numberOfSteps, labels, x, y, z): + return _openframeworks.of3dGraphics_drawGrid(self, stepSize, numberOfSteps, labels, x, y, z) + + def drawGridPlane(self, stepSize, numberOfSteps, labels): + return _openframeworks.of3dGraphics_drawGridPlane(self, stepSize, numberOfSteps, labels) + + def drawArrow(self, start, end, headSize): + return _openframeworks.of3dGraphics_drawArrow(self, start, end, headSize) + + def drawRotationAxes(self, radius, stripWidth, circleRes): + return _openframeworks.of3dGraphics_drawRotationAxes(self, radius, stripWidth, circleRes) + __swig_destroy__ = _openframeworks.delete_of3dGraphics + __del__ = lambda self: None +of3dGraphics_swigregister = _openframeworks.of3dGraphics_swigregister +of3dGraphics_swigregister(of3dGraphics) + class ofTrueTypeFont(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofTrueTypeFont, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTrueTypeFont, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTrueTypeFont() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofTrueTypeFont - __del__ = lambda self : None; + __del__ = lambda self: None __swig_getmethods__["setGlobalDpi"] = lambda x: _openframeworks.ofTrueTypeFont_setGlobalDpi - if _newclass:setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) - def loadFont(self, *args): return _openframeworks.ofTrueTypeFont_loadFont(self, *args) - def isLoaded(self): return _openframeworks.ofTrueTypeFont_isLoaded(self) - def isAntiAliased(self): return _openframeworks.ofTrueTypeFont_isAntiAliased(self) - def hasFullCharacterSet(self): return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) - def getSize(self): return _openframeworks.ofTrueTypeFont_getSize(self) - def getLineHeight(self): return _openframeworks.ofTrueTypeFont_getLineHeight(self) - def setLineHeight(self, *args): return _openframeworks.ofTrueTypeFont_setLineHeight(self, *args) - def getLetterSpacing(self): return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) - def setLetterSpacing(self, *args): return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, *args) - def getSpaceSize(self): return _openframeworks.ofTrueTypeFont_getSpaceSize(self) - def setSpaceSize(self, *args): return _openframeworks.ofTrueTypeFont_setSpaceSize(self, *args) - def stringWidth(self, *args): return _openframeworks.ofTrueTypeFont_stringWidth(self, *args) - def stringHeight(self, *args): return _openframeworks.ofTrueTypeFont_stringHeight(self, *args) - def getStringBoundingBox(self, *args): return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, *args) - def drawString(self, *args): return _openframeworks.ofTrueTypeFont_drawString(self, *args) - def drawStringAsShapes(self, *args): return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, *args) - def getNumCharacters(self): return _openframeworks.ofTrueTypeFont_getNumCharacters(self) - def getCharacterAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) - def getStringAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) - def getStringMesh(self, *args): return _openframeworks.ofTrueTypeFont_getStringMesh(self, *args) - def getFontTexture(self): return _openframeworks.ofTrueTypeFont_getFontTexture(self) - def bind(self): return _openframeworks.ofTrueTypeFont_bind(self) - def unbind(self): return _openframeworks.ofTrueTypeFont_unbind(self) - def getEncoding(self): return _openframeworks.ofTrueTypeFont_getEncoding(self) - def setEncoding(self, *args): return _openframeworks.ofTrueTypeFont_setEncoding(self, *args) + if _newclass: + setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) + + def loadFont(self, filename, fontsize, _bAntiAliased=True, _bFullCharacterSet=False, makeContours=False, simplifyAmt=0.3, dpi=0): + return _openframeworks.ofTrueTypeFont_loadFont(self, filename, fontsize, _bAntiAliased, _bFullCharacterSet, makeContours, simplifyAmt, dpi) + + def isLoaded(self): + return _openframeworks.ofTrueTypeFont_isLoaded(self) + + def isAntiAliased(self): + return _openframeworks.ofTrueTypeFont_isAntiAliased(self) + + def hasFullCharacterSet(self): + return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) + + def getSize(self): + return _openframeworks.ofTrueTypeFont_getSize(self) + + def getLineHeight(self): + return _openframeworks.ofTrueTypeFont_getLineHeight(self) + + def setLineHeight(self, height): + return _openframeworks.ofTrueTypeFont_setLineHeight(self, height) + + def getLetterSpacing(self): + return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) + + def setLetterSpacing(self, spacing): + return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, spacing) + + def getSpaceSize(self): + return _openframeworks.ofTrueTypeFont_getSpaceSize(self) + + def setSpaceSize(self, size): + return _openframeworks.ofTrueTypeFont_setSpaceSize(self, size) + + def stringWidth(self, s): + return _openframeworks.ofTrueTypeFont_stringWidth(self, s) + + def stringHeight(self, s): + return _openframeworks.ofTrueTypeFont_stringHeight(self, s) + + def getStringBoundingBox(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, s, x, y) + + def drawString(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawString(self, s, x, y) + + def drawStringAsShapes(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, s, x, y) + + def getNumCharacters(self): + return _openframeworks.ofTrueTypeFont_getNumCharacters(self) + + def getCharacterAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) + + def getStringAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) + + def getStringMesh(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringMesh(self, s, x, y) + + def getFontTexture(self): + return _openframeworks.ofTrueTypeFont_getFontTexture(self) + + def bind(self): + return _openframeworks.ofTrueTypeFont_bind(self) + + def unbind(self): + return _openframeworks.ofTrueTypeFont_unbind(self) + + def getEncoding(self): + return _openframeworks.ofTrueTypeFont_getEncoding(self) + + def setEncoding(self, encoding): + return _openframeworks.ofTrueTypeFont_setEncoding(self, encoding) __swig_setmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_set __swig_getmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_get - if _newclass:lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) + if _newclass: + lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) __swig_setmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_set __swig_getmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_get - if _newclass:letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) + if _newclass: + letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) __swig_setmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_set __swig_getmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_get - if _newclass:spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) + if _newclass: + spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) ofTrueTypeFont_swigregister = _openframeworks.ofTrueTypeFont_swigregister ofTrueTypeFont_swigregister(ofTrueTypeFont) -def ofTrueTypeFont_setGlobalDpi(*args): - return _openframeworks.ofTrueTypeFont_setGlobalDpi(*args) +def ofTrueTypeFont_setGlobalDpi(newDpi): + return _openframeworks.ofTrueTypeFont_setGlobalDpi(newDpi) ofTrueTypeFont_setGlobalDpi = _openframeworks.ofTrueTypeFont_setGlobalDpi class ofMatrix3x3(_object): @@ -4356,53 +8602,97 @@ class ofMatrix3x3(_object): __repr__ = _swig_repr __swig_setmethods__["a"] = _openframeworks.ofMatrix3x3_a_set __swig_getmethods__["a"] = _openframeworks.ofMatrix3x3_a_get - if _newclass:a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) __swig_setmethods__["b"] = _openframeworks.ofMatrix3x3_b_set __swig_getmethods__["b"] = _openframeworks.ofMatrix3x3_b_get - if _newclass:b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) __swig_setmethods__["c"] = _openframeworks.ofMatrix3x3_c_set __swig_getmethods__["c"] = _openframeworks.ofMatrix3x3_c_get - if _newclass:c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) + if _newclass: + c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) __swig_setmethods__["d"] = _openframeworks.ofMatrix3x3_d_set __swig_getmethods__["d"] = _openframeworks.ofMatrix3x3_d_get - if _newclass:d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) + if _newclass: + d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) __swig_setmethods__["e"] = _openframeworks.ofMatrix3x3_e_set __swig_getmethods__["e"] = _openframeworks.ofMatrix3x3_e_get - if _newclass:e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) + if _newclass: + e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) __swig_setmethods__["f"] = _openframeworks.ofMatrix3x3_f_set __swig_getmethods__["f"] = _openframeworks.ofMatrix3x3_f_get - if _newclass:f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) + if _newclass: + f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) __swig_setmethods__["g"] = _openframeworks.ofMatrix3x3_g_set __swig_getmethods__["g"] = _openframeworks.ofMatrix3x3_g_get - if _newclass:g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) __swig_setmethods__["h"] = _openframeworks.ofMatrix3x3_h_set __swig_getmethods__["h"] = _openframeworks.ofMatrix3x3_h_get - if _newclass:h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) + if _newclass: + h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) __swig_setmethods__["i"] = _openframeworks.ofMatrix3x3_i_set __swig_getmethods__["i"] = _openframeworks.ofMatrix3x3_i_get - if _newclass:i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) - def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): + if _newclass: + i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) + + def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): this = _openframeworks.new_ofMatrix3x3(_a, _b, _c, _d, _e, _f, _g, _h, _i) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofMatrix3x3_set(self, *args) - def __getitem__(self, *args): return _openframeworks.ofMatrix3x3___getitem__(self, *args) - def transpose(self, *args): return _openframeworks.ofMatrix3x3_transpose(self, *args) - def determinant(self, *args): return _openframeworks.ofMatrix3x3_determinant(self, *args) - def invert(self): return _openframeworks.ofMatrix3x3_invert(self) - def inverse(self, *args): return _openframeworks.ofMatrix3x3_inverse(self, *args) - def __add__(self, *args): return _openframeworks.ofMatrix3x3___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofMatrix3x3___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofMatrix3x3___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofMatrix3x3___isub__(self, *args) - def entrywiseTimes(self, *args): return _openframeworks.ofMatrix3x3_entrywiseTimes(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix3x3___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix3x3___mul__(self, *args) - def __div__(self, *args): return _openframeworks.ofMatrix3x3___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofMatrix3x3___idiv__(self, *args) - def __str__(self): return _openframeworks.ofMatrix3x3___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i): + return _openframeworks.ofMatrix3x3_set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i) + + def __getitem__(self, index): + return _openframeworks.ofMatrix3x3___getitem__(self, index) + + def transpose(self, *args): + return _openframeworks.ofMatrix3x3_transpose(self, *args) + + def determinant(self, *args): + return _openframeworks.ofMatrix3x3_determinant(self, *args) + + def inverse(self, A): + return _openframeworks.ofMatrix3x3_inverse(self, A) + + def invert(self): + return _openframeworks.ofMatrix3x3_invert(self) + + def entrywiseTimes(self, A): + return _openframeworks.ofMatrix3x3_entrywiseTimes(self, A) + + def __add__(self, B): + return _openframeworks.ofMatrix3x3___add__(self, B) + + def __iadd__(self, B): + return _openframeworks.ofMatrix3x3___iadd__(self, B) + + def __sub__(self, B): + return _openframeworks.ofMatrix3x3___sub__(self, B) + + def __isub__(self, B): + return _openframeworks.ofMatrix3x3___isub__(self, B) + + def __imul__(self, *args): + return _openframeworks.ofMatrix3x3___imul__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofMatrix3x3___mul__(self, *args) + + def __div__(self, scalar): + return _openframeworks.ofMatrix3x3___div__(self, scalar) + + def __idiv__(self, *args): + return _openframeworks.ofMatrix3x3___idiv__(self, *args) + + def __str__(self): + return _openframeworks.ofMatrix3x3___str__(self) __swig_destroy__ = _openframeworks.delete_ofMatrix3x3 - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrix3x3_swigregister = _openframeworks.ofMatrix3x3_swigregister ofMatrix3x3_swigregister(ofMatrix3x3) @@ -4414,143 +8704,262 @@ class ofMatrix4x4(_object): __repr__ = _swig_repr __swig_setmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_set __swig_getmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_get - if _newclass:_mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) - def __init__(self, *args): + if _newclass: + _mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) + + def __init__(self, *args): this = _openframeworks.new_ofMatrix4x4(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMatrix4x4 - __del__ = lambda self : None; - def __call__(self, *args): return _openframeworks.ofMatrix4x4___call__(self, *args) - def getRowAsVec3f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, *args) - def getRowAsVec4f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, *args) - def isValid(self): return _openframeworks.ofMatrix4x4_isValid(self) - def isNaN(self): return _openframeworks.ofMatrix4x4_isNaN(self) - def set(self, *args): return _openframeworks.ofMatrix4x4_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofMatrix4x4_getPtr(self, *args) - def isIdentity(self): return _openframeworks.ofMatrix4x4_isIdentity(self) - def makeIdentityMatrix(self): return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) - def makeScaleMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) - def makeTranslationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) - def makeRotationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) - def makeInvertOf(self, *args): return _openframeworks.ofMatrix4x4_makeInvertOf(self, *args) - def makeOrthoNormalOf(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, *args) - def makeFromMultiplicationOf(self, *args): return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, *args) - def getInverse(self): return _openframeworks.ofMatrix4x4_getInverse(self) - def makeOrthoMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, *args) - def makeOrtho2DMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, *args) - def makeFrustumMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, *args) - def makePerspectiveMatrix(self, *args): return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, *args) - def makeLookAtMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, *args) - def makeLookAtViewMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, *args) - def getOrtho(self, *args): return _openframeworks.ofMatrix4x4_getOrtho(self, *args) - def getFrustum(self, *args): return _openframeworks.ofMatrix4x4_getFrustum(self, *args) - def getPerspective(self, *args): return _openframeworks.ofMatrix4x4_getPerspective(self, *args) - def getLookAt(self, *args): return _openframeworks.ofMatrix4x4_getLookAt(self, *args) - def decompose(self, *args): return _openframeworks.ofMatrix4x4_decompose(self, *args) + __del__ = lambda self: None + + def makeIdentityMatrix(self): + return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) + + def makeScaleMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) + + def makeTranslationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) + + def makeRotationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) + + def makeInvertOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeInvertOf(self, rhs) + + def makeOrthoNormalOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, rhs) + + def makeFromMultiplicationOf(self, arg2, arg3): + return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, arg2, arg3) + + def makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar) + + def makeOrtho2DMatrix(self, left, right, bottom, top): + return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, left, right, bottom, top) + + def makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar) + + def makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar) + + def makeLookAtMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, eye, center, up) + + def makeLookAtViewMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, eye, center, up) __swig_getmethods__["newIdentityMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newIdentityMatrix - if _newclass:newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) + if _newclass: + newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) __swig_getmethods__["newScaleMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newScaleMatrix - if _newclass:newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) + if _newclass: + newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) __swig_getmethods__["newTranslationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newTranslationMatrix - if _newclass:newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) + if _newclass: + newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) __swig_getmethods__["newRotationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newRotationMatrix - if _newclass:newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) - __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf - if _newclass:getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) - __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf - if _newclass:getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) - __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf - if _newclass:getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + if _newclass: + newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) __swig_getmethods__["newOrthoMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrthoMatrix - if _newclass:newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) + if _newclass: + newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) __swig_getmethods__["newOrtho2DMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrtho2DMatrix - if _newclass:newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) + if _newclass: + newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) __swig_getmethods__["newFrustumMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newFrustumMatrix - if _newclass:newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) + if _newclass: + newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) __swig_getmethods__["newPerspectiveMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newPerspectiveMatrix - if _newclass:newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) + if _newclass: + newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) __swig_getmethods__["newLookAtMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newLookAtMatrix - if _newclass:newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) - def setRotate(self, *args): return _openframeworks.ofMatrix4x4_setRotate(self, *args) - def setTranslation(self, *args): return _openframeworks.ofMatrix4x4_setTranslation(self, *args) - def rotateRad(self, *args): return _openframeworks.ofMatrix4x4_rotateRad(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrix4x4_rotate(self, *args) - def translate(self, *args): return _openframeworks.ofMatrix4x4_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrix4x4_scale(self, *args) - def glRotateRad(self, *args): return _openframeworks.ofMatrix4x4_glRotateRad(self, *args) - def glRotate(self, *args): return _openframeworks.ofMatrix4x4_glRotate(self, *args) - def glTranslate(self, *args): return _openframeworks.ofMatrix4x4_glTranslate(self, *args) - def glScale(self, *args): return _openframeworks.ofMatrix4x4_glScale(self, *args) - def getRotate(self): return _openframeworks.ofMatrix4x4_getRotate(self) - def getTranslation(self): return _openframeworks.ofMatrix4x4_getTranslation(self) - def getScale(self): return _openframeworks.ofMatrix4x4_getScale(self) + if _newclass: + newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) + + def __call__(self, *args): + return _openframeworks.ofMatrix4x4___call__(self, *args) + + def getRowAsVec3f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, i) + + def getRowAsVec4f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, i) + + def getPtr(self, *args): + return _openframeworks.ofMatrix4x4_getPtr(self, *args) + + def isValid(self): + return _openframeworks.ofMatrix4x4_isValid(self) + + def isNaN(self): + return _openframeworks.ofMatrix4x4_isNaN(self) + + def isIdentity(self): + return _openframeworks.ofMatrix4x4_isIdentity(self) + + def set(self, *args): + return _openframeworks.ofMatrix4x4_set(self, *args) + + def getInverse(self): + return _openframeworks.ofMatrix4x4_getInverse(self) + + def getOrtho(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getOrtho(self, left, right, bottom, top, zNear, zFar) + + def getFrustum(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getFrustum(self, left, right, bottom, top, zNear, zFar) + + def getPerspective(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_getPerspective(self, fovy, aspectRatio, zNear, zFar) + + def getLookAt(self, eye, center, up, lookDistance=1.0): + return _openframeworks.ofMatrix4x4_getLookAt(self, eye, center, up, lookDistance) + + def decompose(self, translation, rotation, scale, so): + return _openframeworks.ofMatrix4x4_decompose(self, translation, rotation, scale, so) + __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf + if _newclass: + getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) + __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf + if _newclass: + getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) + __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf + if _newclass: + getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + + def postMult(self, *args): + return _openframeworks.ofMatrix4x4_postMult(self, *args) + + def preMult(self, *args): + return _openframeworks.ofMatrix4x4_preMult(self, *args) + + def __imul__(self, other): + return _openframeworks.ofMatrix4x4___imul__(self, other) + + def __mul__(self, *args): + return _openframeworks.ofMatrix4x4___mul__(self, *args) + + def postMultTranslate(self, *args): + return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) + + def postMultRotate(self, *args): + return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) + + def postMultScale(self, *args): + return _openframeworks.ofMatrix4x4_postMultScale(self, *args) + + def preMultScale(self, v): + return _openframeworks.ofMatrix4x4_preMultScale(self, v) + + def preMultTranslate(self, v): + return _openframeworks.ofMatrix4x4_preMultTranslate(self, v) + + def preMultRotate(self, q): + return _openframeworks.ofMatrix4x4_preMultRotate(self, q) + + def setRotate(self, q): + return _openframeworks.ofMatrix4x4_setRotate(self, q) + + def setTranslation(self, *args): + return _openframeworks.ofMatrix4x4_setTranslation(self, *args) + + def rotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_rotateRad(self, angle, x, y, z) + + def rotate(self, *args): + return _openframeworks.ofMatrix4x4_rotate(self, *args) + + def translate(self, *args): + return _openframeworks.ofMatrix4x4_translate(self, *args) + + def scale(self, *args): + return _openframeworks.ofMatrix4x4_scale(self, *args) + + def glRotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_glRotateRad(self, angle, x, y, z) + + def glRotate(self, *args): + return _openframeworks.ofMatrix4x4_glRotate(self, *args) + + def glTranslate(self, *args): + return _openframeworks.ofMatrix4x4_glTranslate(self, *args) + + def glScale(self, *args): + return _openframeworks.ofMatrix4x4_glScale(self, *args) + + def getRotate(self): + return _openframeworks.ofMatrix4x4_getRotate(self) + + def getTranslation(self): + return _openframeworks.ofMatrix4x4_getTranslation(self) + + def getScale(self): + return _openframeworks.ofMatrix4x4_getScale(self) __swig_getmethods__["transform3x3"] = lambda x: _openframeworks.ofMatrix4x4_transform3x3 - if _newclass:transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) - def postMult(self, *args): return _openframeworks.ofMatrix4x4_postMult(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix4x4___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix4x4___mul__(self, *args) - def preMult(self, *args): return _openframeworks.ofMatrix4x4_preMult(self, *args) - def postMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) - def postMultRotate(self, *args): return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) - def postMultScale(self, *args): return _openframeworks.ofMatrix4x4_postMultScale(self, *args) - def preMultScale(self, *args): return _openframeworks.ofMatrix4x4_preMultScale(self, *args) - def preMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_preMultTranslate(self, *args) - def preMultRotate(self, *args): return _openframeworks.ofMatrix4x4_preMultRotate(self, *args) - def __str__(self): return _openframeworks.ofMatrix4x4___str__(self) + if _newclass: + transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) + + def __str__(self): + return _openframeworks.ofMatrix4x4___str__(self) ofMatrix4x4_swigregister = _openframeworks.ofMatrix4x4_swigregister ofMatrix4x4_swigregister(ofMatrix4x4) def ofMatrix4x4_newIdentityMatrix(): - return _openframeworks.ofMatrix4x4_newIdentityMatrix() + return _openframeworks.ofMatrix4x4_newIdentityMatrix() ofMatrix4x4_newIdentityMatrix = _openframeworks.ofMatrix4x4_newIdentityMatrix def ofMatrix4x4_newScaleMatrix(*args): - return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) + return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) ofMatrix4x4_newScaleMatrix = _openframeworks.ofMatrix4x4_newScaleMatrix def ofMatrix4x4_newTranslationMatrix(*args): - return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) + return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) ofMatrix4x4_newTranslationMatrix = _openframeworks.ofMatrix4x4_newTranslationMatrix def ofMatrix4x4_newRotationMatrix(*args): - return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) + return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) ofMatrix4x4_newRotationMatrix = _openframeworks.ofMatrix4x4_newRotationMatrix -def ofMatrix4x4_getInverseOf(*args): - return _openframeworks.ofMatrix4x4_getInverseOf(*args) -ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf - -def ofMatrix4x4_getTransposedOf(*args): - return _openframeworks.ofMatrix4x4_getTransposedOf(*args) -ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf - -def ofMatrix4x4_getOrthoNormalOf(*args): - return _openframeworks.ofMatrix4x4_getOrthoNormalOf(*args) -ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf - -def ofMatrix4x4_newOrthoMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrthoMatrix(*args) +def ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newOrthoMatrix = _openframeworks.ofMatrix4x4_newOrthoMatrix -def ofMatrix4x4_newOrtho2DMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(*args) +def ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top): + return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top) ofMatrix4x4_newOrtho2DMatrix = _openframeworks.ofMatrix4x4_newOrtho2DMatrix -def ofMatrix4x4_newFrustumMatrix(*args): - return _openframeworks.ofMatrix4x4_newFrustumMatrix(*args) +def ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newFrustumMatrix = _openframeworks.ofMatrix4x4_newFrustumMatrix -def ofMatrix4x4_newPerspectiveMatrix(*args): - return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(*args) +def ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar) ofMatrix4x4_newPerspectiveMatrix = _openframeworks.ofMatrix4x4_newPerspectiveMatrix -def ofMatrix4x4_newLookAtMatrix(*args): - return _openframeworks.ofMatrix4x4_newLookAtMatrix(*args) +def ofMatrix4x4_newLookAtMatrix(eye, center, up): + return _openframeworks.ofMatrix4x4_newLookAtMatrix(eye, center, up) ofMatrix4x4_newLookAtMatrix = _openframeworks.ofMatrix4x4_newLookAtMatrix +def ofMatrix4x4_getInverseOf(matrix): + return _openframeworks.ofMatrix4x4_getInverseOf(matrix) +ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf + +def ofMatrix4x4_getTransposedOf(matrix): + return _openframeworks.ofMatrix4x4_getTransposedOf(matrix) +ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf + +def ofMatrix4x4_getOrthoNormalOf(matrix): + return _openframeworks.ofMatrix4x4_getOrthoNormalOf(matrix) +ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf + def ofMatrix4x4_transform3x3(*args): - return _openframeworks.ofMatrix4x4_transform3x3(*args) + return _openframeworks.ofMatrix4x4_transform3x3(*args) ofMatrix4x4_transform3x3 = _openframeworks.ofMatrix4x4_transform3x3 class ofQuaternion(_object): @@ -4561,47 +8970,113 @@ class ofQuaternion(_object): __repr__ = _swig_repr __swig_setmethods__["_v"] = _openframeworks.ofQuaternion__v_set __swig_getmethods__["_v"] = _openframeworks.ofQuaternion__v_get - if _newclass:_v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) - def __init__(self, *args): + if _newclass: + _v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) + + def __init__(self, *args): this = _openframeworks.new_ofQuaternion(*args) - try: self.this.append(this) - except: self.this = this - def __eq__(self, *args): return _openframeworks.ofQuaternion___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofQuaternion___ne__(self, *args) - def __lshift__(self, *args): return _openframeworks.ofQuaternion___lshift__(self, *args) - def __rshift__(self, *args): return _openframeworks.ofQuaternion___rshift__(self, *args) - def asVec4(self): return _openframeworks.ofQuaternion_asVec4(self) - def asVec3(self): return _openframeworks.ofQuaternion_asVec3(self) - def set(self, *args): return _openframeworks.ofQuaternion_set(self, *args) - def get(self, *args): return _openframeworks.ofQuaternion_get(self, *args) - def __getitem__(self, *args): return _openframeworks.ofQuaternion___getitem__(self, *args) - def x(self): return _openframeworks.ofQuaternion_x(self) - def y(self): return _openframeworks.ofQuaternion_y(self) - def z(self): return _openframeworks.ofQuaternion_z(self) - def w(self): return _openframeworks.ofQuaternion_w(self) - def zeroRotation(self): return _openframeworks.ofQuaternion_zeroRotation(self) - def __imul__(self, *args): return _openframeworks.ofQuaternion___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofQuaternion___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofQuaternion___idiv__(self, *args) - def __add__(self, *args): return _openframeworks.ofQuaternion___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofQuaternion___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofQuaternion___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofQuaternion___isub__(self, *args) - def __neg__(self): return _openframeworks.ofQuaternion___neg__(self) - def __mul__(self, *args): return _openframeworks.ofQuaternion___mul__(self, *args) - def length(self): return _openframeworks.ofQuaternion_length(self) - def length2(self): return _openframeworks.ofQuaternion_length2(self) - def conj(self): return _openframeworks.ofQuaternion_conj(self) - def inverse(self): return _openframeworks.ofQuaternion_inverse(self) - def makeRotate(self, *args): return _openframeworks.ofQuaternion_makeRotate(self, *args) - def makeRotate_original(self, *args): return _openframeworks.ofQuaternion_makeRotate_original(self, *args) - def getRotate(self, *args): return _openframeworks.ofQuaternion_getRotate(self, *args) - def getEuler(self): return _openframeworks.ofQuaternion_getEuler(self) - def slerp(self, *args): return _openframeworks.ofQuaternion_slerp(self, *args) - def normalize(self): return _openframeworks.ofQuaternion_normalize(self) - def __str__(self): return _openframeworks.ofQuaternion___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofQuaternion_set(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofQuaternion___getitem__(self, *args) + + def get(self, matrix): + return _openframeworks.ofQuaternion_get(self, matrix) + + def x(self): + return _openframeworks.ofQuaternion_x(self) + + def y(self): + return _openframeworks.ofQuaternion_y(self) + + def z(self): + return _openframeworks.ofQuaternion_z(self) + + def w(self): + return _openframeworks.ofQuaternion_w(self) + + def asVec4(self): + return _openframeworks.ofQuaternion_asVec4(self) + + def asVec3(self): + return _openframeworks.ofQuaternion_asVec3(self) + + def zeroRotation(self): + return _openframeworks.ofQuaternion_zeroRotation(self) + + def length(self): + return _openframeworks.ofQuaternion_length(self) + + def length2(self): + return _openframeworks.ofQuaternion_length2(self) + + def conj(self): + return _openframeworks.ofQuaternion_conj(self) + + def inverse(self): + return _openframeworks.ofQuaternion_inverse(self) + + def makeRotate(self, *args): + return _openframeworks.ofQuaternion_makeRotate(self, *args) + + def makeRotate_original(self, vec1, vec2): + return _openframeworks.ofQuaternion_makeRotate_original(self, vec1, vec2) + + def getRotate(self, *args): + return _openframeworks.ofQuaternion_getRotate(self, *args) + + def getEuler(self): + return _openframeworks.ofQuaternion_getEuler(self) + + def slerp(self, t, arg3, to): + return _openframeworks.ofQuaternion_slerp(self, t, arg3, to) + + def normalize(self): + return _openframeworks.ofQuaternion_normalize(self) + + def __eq__(self, q): + return _openframeworks.ofQuaternion___eq__(self, q) + + def __ne__(self, q): + return _openframeworks.ofQuaternion___ne__(self, q) + + def __mul__(self, *args): + return _openframeworks.ofQuaternion___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofQuaternion___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofQuaternion___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofQuaternion___idiv__(self, *args) + + def __add__(self, rhs): + return _openframeworks.ofQuaternion___add__(self, rhs) + + def __iadd__(self, rhs): + return _openframeworks.ofQuaternion___iadd__(self, rhs) + + def __isub__(self, rhs): + return _openframeworks.ofQuaternion___isub__(self, rhs) + + def __sub__(self, rhs): + return _openframeworks.ofQuaternion___sub__(self, rhs) + + def __neg__(self): + return _openframeworks.ofQuaternion___neg__(self) + + def __str__(self): + return _openframeworks.ofQuaternion___str__(self) __swig_destroy__ = _openframeworks.delete_ofQuaternion - __del__ = lambda self : None; + __del__ = lambda self: None ofQuaternion_swigregister = _openframeworks.ofQuaternion_swigregister ofQuaternion_swigregister(ofQuaternion) @@ -4611,184 +9086,429 @@ class ofVec2f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec2f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec2f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec2f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec2f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec2f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec2f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) - DIM = _openframeworks.ofVec2f_DIM - def __init__(self, *args): + if _newclass: + y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec2f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec2f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec2f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec2f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec2f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec2f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec2f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec2f_isAligned(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec2f_isAlignedRad(self, *args) - def align(self, *args): return _openframeworks.ofVec2f_align(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec2f_alignRad(self, *args) - def __add__(self, *args): return _openframeworks.ofVec2f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec2f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec2f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec2f___isub__(self, *args) - def __neg__(self): return _openframeworks.ofVec2f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec2f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec2f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec2f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec2f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec2f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec2f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec2f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec2f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec2f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec2f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec2f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec2f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec2f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec2f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec2f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec2f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec2f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec2f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec2f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec2f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec2f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec2f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec2f_limit(self, *args) - def getPerpendicular(self): return _openframeworks.ofVec2f_getPerpendicular(self) - def perpendicular(self): return _openframeworks.ofVec2f_perpendicular(self) - def length(self): return _openframeworks.ofVec2f_length(self) - def lengthSquared(self): return _openframeworks.ofVec2f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec2f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec2f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec2f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec2f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec2f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec2f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec2f_limited(self, *args) - def perpendiculared(self): return _openframeworks.ofVec2f_perpendiculared(self) - def interpolated(self, *args): return _openframeworks.ofVec2f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec2f_middled(self, *args) - def mapped(self, *args): return _openframeworks.ofVec2f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec2f_distanceSquared(self, *args) - def rotated(self, *args): return _openframeworks.ofVec2f_rotated(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec2f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec2f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec2f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec2f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec2f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec2f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec2f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec2f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec2f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec2f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec2f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec2f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec2f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec2f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec2f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec2f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec2f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec2f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec2f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec2f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_getMapped(self, origin, vx, vy) + + def map(self, origin, vx, vy): + return _openframeworks.ofVec2f_map(self, origin, vx, vy) + + def distance(self, pnt): + return _openframeworks.ofVec2f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec2f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec2f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec2f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec2f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec2f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec2f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec2f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec2f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec2f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec2f_limit(self, max) + + def length(self): + return _openframeworks.ofVec2f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec2f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec2f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec2f_angleRad(self, vec) + + def getPerpendicular(self): + return _openframeworks.ofVec2f_getPerpendicular(self) + + def perpendicular(self): + return _openframeworks.ofVec2f_perpendicular(self) + + def dot(self, vec): + return _openframeworks.ofVec2f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec2f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec2f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec2f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec2f_limited(self, max) + + def perpendiculared(self): + return _openframeworks.ofVec2f_perpendiculared(self) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec2f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec2f_middled(self, pnt) + + def mapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_mapped(self, origin, vx, vy) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec2f_distanceSquared(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec2f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec2f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec2f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec2f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec2f_one - if _newclass:one = staticmethod(_openframeworks.ofVec2f_one) - def __str__(self): return _openframeworks.ofVec2f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec2f_one) + + def __str__(self): + return _openframeworks.ofVec2f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec2f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec2f_swigregister = _openframeworks.ofVec2f_swigregister ofVec2f_swigregister(ofVec2f) -def ofVec2f_zero(): - return _openframeworks.ofVec2f_zero() -ofVec2f_zero = _openframeworks.ofVec2f_zero +def ofVec2f_zero(): + return _openframeworks.ofVec2f_zero() +ofVec2f_zero = _openframeworks.ofVec2f_zero + +def ofVec2f_one(): + return _openframeworks.ofVec2f_one() +ofVec2f_one = _openframeworks.ofVec2f_one + +class ofVec3f(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) + __repr__ = _swig_repr + DIM = _openframeworks.ofVec3f_DIM + __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set + __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get + if _newclass: + x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) + __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set + __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get + if _newclass: + y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) + __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set + __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get + if _newclass: + z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) + + def __init__(self, *args): + this = _openframeworks.new_ofVec3f(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec3f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec3f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec3f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec3f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec3f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec3f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec3f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec3f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec3f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec3f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec3f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec3f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec3f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec3f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec3f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec3f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec3f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec3f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec3f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec3f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_getMapped(self, origin, vx, vy, vz) + + def map(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_map(self, origin, vx, vy, vz) + + def distance(self, pnt): + return _openframeworks.ofVec3f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec3f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec3f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec3f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec3f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec3f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec3f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec3f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec3f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec3f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec3f_limit(self, max) + + def length(self): + return _openframeworks.ofVec3f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec3f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec3f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec3f_angleRad(self, vec) + + def getPerpendicular(self, vec): + return _openframeworks.ofVec3f_getPerpendicular(self, vec) + + def perpendicular(self, vec): + return _openframeworks.ofVec3f_perpendicular(self, vec) + + def getCrossed(self, vec): + return _openframeworks.ofVec3f_getCrossed(self, vec) + + def cross(self, vec): + return _openframeworks.ofVec3f_cross(self, vec) + + def dot(self, vec): + return _openframeworks.ofVec3f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec3f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec3f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec3f_normalized(self) -def ofVec2f_one(): - return _openframeworks.ofVec2f_one() -ofVec2f_one = _openframeworks.ofVec2f_one + def limited(self, max): + return _openframeworks.ofVec3f_limited(self, max) -class ofVec3f(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) - __repr__ = _swig_repr - __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set - __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) - __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set - __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) - __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set - __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) - DIM = _openframeworks.ofVec3f_DIM - def __init__(self, *args): - this = _openframeworks.new_ofVec3f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec3f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec3f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec3f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec3f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec3f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec3f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec3f_isAligned(self, *args) - def align(self, *args): return _openframeworks.ofVec3f_align(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec3f_isAlignedRad(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec3f_alignRad(self, *args) - def __neg__(self): return _openframeworks.ofVec3f___neg__(self) - def __add__(self, *args): return _openframeworks.ofVec3f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec3f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec3f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec3f___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofVec3f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec3f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec3f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec3f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec3f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec3f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec3f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec3f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec3f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec3f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec3f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec3f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec3f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec3f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec3f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec3f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec3f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec3f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec3f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec3f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec3f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec3f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec3f_limit(self, *args) - def getCrossed(self, *args): return _openframeworks.ofVec3f_getCrossed(self, *args) - def cross(self, *args): return _openframeworks.ofVec3f_cross(self, *args) - def getPerpendicular(self, *args): return _openframeworks.ofVec3f_getPerpendicular(self, *args) - def perpendicular(self, *args): return _openframeworks.ofVec3f_perpendicular(self, *args) - def length(self): return _openframeworks.ofVec3f_length(self) - def lengthSquared(self): return _openframeworks.ofVec3f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec3f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec3f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec3f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec3f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec3f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec3f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec3f_limited(self, *args) - def crossed(self, *args): return _openframeworks.ofVec3f_crossed(self, *args) - def perpendiculared(self, *args): return _openframeworks.ofVec3f_perpendiculared(self, *args) - def mapped(self, *args): return _openframeworks.ofVec3f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec3f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec3f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec3f_middled(self, *args) - def rotated(self, *args): return _openframeworks.ofVec3f_rotated(self, *args) + def crossed(self, vec): + return _openframeworks.ofVec3f_crossed(self, vec) + + def perpendiculared(self, vec): + return _openframeworks.ofVec3f_perpendiculared(self, vec) + + def mapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_mapped(self, origin, vx, vy, vz) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec3f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec3f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec3f_middled(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec3f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec3f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec3f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec3f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec3f_one - if _newclass:one = staticmethod(_openframeworks.ofVec3f_one) - def __str__(self): return _openframeworks.ofVec3f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec3f_one) + + def __str__(self): + return _openframeworks.ofVec3f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec3f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec3f_swigregister = _openframeworks.ofVec3f_swigregister ofVec3f_swigregister(ofVec3f) def ofVec3f_zero(): - return _openframeworks.ofVec3f_zero() + return _openframeworks.ofVec3f_zero() ofVec3f_zero = _openframeworks.ofVec3f_zero def ofVec3f_one(): - return _openframeworks.ofVec3f_one() + return _openframeworks.ofVec3f_one() ofVec3f_one = _openframeworks.ofVec3f_one class ofVec4f(_object): @@ -4797,207 +9517,286 @@ class ofVec4f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec4f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec4f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec4f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec4f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec4f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec4f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) + if _newclass: + y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) __swig_setmethods__["z"] = _openframeworks.ofVec4f_z_set __swig_getmethods__["z"] = _openframeworks.ofVec4f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) + if _newclass: + z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) __swig_setmethods__["w"] = _openframeworks.ofVec4f_w_set __swig_getmethods__["w"] = _openframeworks.ofVec4f_w_get - if _newclass:w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) - DIM = _openframeworks.ofVec4f_DIM - def __init__(self, *args): + if _newclass: + w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec4f(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofVec4f_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofVec4f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec4f___getitem__(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec4f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec4f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec4f_match(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec4f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec4f___isub__(self, *args) - def __add__(self, *args): return _openframeworks.ofVec4f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec4f___iadd__(self, *args) - def __neg__(self): return _openframeworks.ofVec4f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec4f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec4f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec4f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec4f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec4f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec4f_scale(self, *args) - def distance(self, *args): return _openframeworks.ofVec4f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec4f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec4f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec4f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec4f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec4f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec4f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec4f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec4f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec4f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec4f_limit(self, *args) - def length(self): return _openframeworks.ofVec4f_length(self) - def lengthSquared(self): return _openframeworks.ofVec4f_lengthSquared(self) - def dot(self, *args): return _openframeworks.ofVec4f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec4f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec4f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec4f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec4f_limited(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec4f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec4f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec4f_middled(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec4f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec4f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec4f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec4f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec4f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec4f_match(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec4f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec4f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec4f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec4f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec4f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec4f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec4f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec4f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec4f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec4f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec4f_scale(self, length) + + def distance(self, pnt): + return _openframeworks.ofVec4f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec4f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec4f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec4f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec4f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec4f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec4f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec4f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec4f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec4f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec4f_limit(self, max) + + def length(self): + return _openframeworks.ofVec4f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec4f_lengthSquared(self) + + def dot(self, vec): + return _openframeworks.ofVec4f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec4f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec4f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec4f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec4f_limited(self, max) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec4f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec4f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec4f_middled(self, pnt) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec4f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec4f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec4f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec4f_one - if _newclass:one = staticmethod(_openframeworks.ofVec4f_one) - def __str__(self): return _openframeworks.ofVec4f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec4f_one) + + def __str__(self): + return _openframeworks.ofVec4f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec4f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec4f_swigregister = _openframeworks.ofVec4f_swigregister ofVec4f_swigregister(ofVec4f) def ofVec4f_zero(): - return _openframeworks.ofVec4f_zero() + return _openframeworks.ofVec4f_zero() ofVec4f_zero = _openframeworks.ofVec4f_zero def ofVec4f_one(): - return _openframeworks.ofVec4f_one() + return _openframeworks.ofVec4f_one() ofVec4f_one = _openframeworks.ofVec4f_one -def ofNextPow2(*args): - return _openframeworks.ofNextPow2(*args) -ofNextPow2 = _openframeworks.ofNextPow2 - -def ofSeedRandom(*args): - return _openframeworks.ofSeedRandom(*args) -ofSeedRandom = _openframeworks.ofSeedRandom - def ofRandom(*args): - return _openframeworks.ofRandom(*args) + return _openframeworks.ofRandom(*args) ofRandom = _openframeworks.ofRandom def ofRandomf(): - return _openframeworks.ofRandomf() + return _openframeworks.ofRandomf() ofRandomf = _openframeworks.ofRandomf def ofRandomuf(): - return _openframeworks.ofRandomuf() + return _openframeworks.ofRandomuf() ofRandomuf = _openframeworks.ofRandomuf -def ofNormalize(*args): - return _openframeworks.ofNormalize(*args) +def ofSeedRandom(*args): + return _openframeworks.ofSeedRandom(*args) +ofSeedRandom = _openframeworks.ofSeedRandom + +def ofNormalize(value, min, max): + return _openframeworks.ofNormalize(value, min, max) ofNormalize = _openframeworks.ofNormalize -def ofMap(*args): - return _openframeworks.ofMap(*args) +def ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp=False): + return _openframeworks.ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp) ofMap = _openframeworks.ofMap -def ofClamp(*args): - return _openframeworks.ofClamp(*args) +def ofClamp(value, min, max): + return _openframeworks.ofClamp(value, min, max) ofClamp = _openframeworks.ofClamp -def ofLerp(*args): - return _openframeworks.ofLerp(*args) +def ofInRange(t, min, max): + return _openframeworks.ofInRange(t, min, max) +ofInRange = _openframeworks.ofInRange + +def ofLerp(start, stop, amt): + return _openframeworks.ofLerp(start, stop, amt) ofLerp = _openframeworks.ofLerp def ofDist(*args): - return _openframeworks.ofDist(*args) + return _openframeworks.ofDist(*args) ofDist = _openframeworks.ofDist def ofDistSquared(*args): - return _openframeworks.ofDistSquared(*args) + return _openframeworks.ofDistSquared(*args) ofDistSquared = _openframeworks.ofDistSquared -def ofSign(*args): - return _openframeworks.ofSign(*args) -ofSign = _openframeworks.ofSign - -def ofInRange(*args): - return _openframeworks.ofInRange(*args) -ofInRange = _openframeworks.ofInRange - -def ofRadToDeg(*args): - return _openframeworks.ofRadToDeg(*args) +def ofRadToDeg(radians): + return _openframeworks.ofRadToDeg(radians) ofRadToDeg = _openframeworks.ofRadToDeg -def ofDegToRad(*args): - return _openframeworks.ofDegToRad(*args) +def ofDegToRad(degrees): + return _openframeworks.ofDegToRad(degrees) ofDegToRad = _openframeworks.ofDegToRad -def ofLerpDegrees(*args): - return _openframeworks.ofLerpDegrees(*args) +def ofLerpDegrees(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpDegrees(currentAngle, targetAngle, pct) ofLerpDegrees = _openframeworks.ofLerpDegrees -def ofLerpRadians(*args): - return _openframeworks.ofLerpRadians(*args) +def ofLerpRadians(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpRadians(currentAngle, targetAngle, pct) ofLerpRadians = _openframeworks.ofLerpRadians -def ofAngleDifferenceDegrees(*args): - return _openframeworks.ofAngleDifferenceDegrees(*args) +def ofAngleDifferenceDegrees(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceDegrees(currentAngle, targetAngle) ofAngleDifferenceDegrees = _openframeworks.ofAngleDifferenceDegrees -def ofAngleDifferenceRadians(*args): - return _openframeworks.ofAngleDifferenceRadians(*args) +def ofAngleDifferenceRadians(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceRadians(currentAngle, targetAngle) ofAngleDifferenceRadians = _openframeworks.ofAngleDifferenceRadians -def ofWrap(*args): - return _openframeworks.ofWrap(*args) +def ofWrap(value, arg2, to): + return _openframeworks.ofWrap(value, arg2, to) ofWrap = _openframeworks.ofWrap def ofWrapRadians(*args): - return _openframeworks.ofWrapRadians(*args) + return _openframeworks.ofWrapRadians(*args) ofWrapRadians = _openframeworks.ofWrapRadians -def ofWrapDegrees(*args): - return _openframeworks.ofWrapDegrees(*args) +def ofWrapDegrees(angle, arg2=-180, to=+180): + return _openframeworks.ofWrapDegrees(angle, arg2, to) ofWrapDegrees = _openframeworks.ofWrapDegrees -def ofRandomWidth(): - return _openframeworks.ofRandomWidth() -ofRandomWidth = _openframeworks.ofRandomWidth - -def ofRandomHeight(): - return _openframeworks.ofRandomHeight() -ofRandomHeight = _openframeworks.ofRandomHeight - def ofNoise(*args): - return _openframeworks.ofNoise(*args) + return _openframeworks.ofNoise(*args) ofNoise = _openframeworks.ofNoise def ofSignedNoise(*args): - return _openframeworks.ofSignedNoise(*args) + return _openframeworks.ofSignedNoise(*args) ofSignedNoise = _openframeworks.ofSignedNoise def ofInsidePoly(*args): - return _openframeworks.ofInsidePoly(*args) + return _openframeworks.ofInsidePoly(*args) ofInsidePoly = _openframeworks.ofInsidePoly -def ofLineSegmentIntersection(*args): - return _openframeworks.ofLineSegmentIntersection(*args) +def ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection): + return _openframeworks.ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection) ofLineSegmentIntersection = _openframeworks.ofLineSegmentIntersection -def ofBezierPoint(*args): - return _openframeworks.ofBezierPoint(*args) +def ofBezierPoint(a, b, c, d, t): + return _openframeworks.ofBezierPoint(a, b, c, d, t) ofBezierPoint = _openframeworks.ofBezierPoint -def ofCurvePoint(*args): - return _openframeworks.ofCurvePoint(*args) +def ofCurvePoint(a, b, c, d, t): + return _openframeworks.ofCurvePoint(a, b, c, d, t) ofCurvePoint = _openframeworks.ofCurvePoint -def ofBezierTangent(*args): - return _openframeworks.ofBezierTangent(*args) +def ofBezierTangent(a, b, c, d, t): + return _openframeworks.ofBezierTangent(a, b, c, d, t) ofBezierTangent = _openframeworks.ofBezierTangent -def ofCurveTangent(*args): - return _openframeworks.ofCurveTangent(*args) +def ofCurveTangent(a, b, c, d, t): + return _openframeworks.ofCurveTangent(a, b, c, d, t) ofCurveTangent = _openframeworks.ofCurveTangent + +def ofNextPow2(a): + return _openframeworks.ofNextPow2(a) +ofNextPow2 = _openframeworks.ofNextPow2 + +def ofSign(n): + return _openframeworks.ofSign(n) +ofSign = _openframeworks.ofSign class ofXml(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofXml, name, value) @@ -5005,50 +9804,121 @@ class ofXml(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofXml, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofXml - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofXml(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofXml_load(self, *args) - def save(self, *args): return _openframeworks.ofXml_save(self, *args) - def addChild(self, *args): return _openframeworks.ofXml_addChild(self, *args) - def addXml(self, *args): return _openframeworks.ofXml_addXml(self, *args) - def getValue(self, *args): return _openframeworks.ofXml_getValue(self, *args) - def getIntValue(self, *args): return _openframeworks.ofXml_getIntValue(self, *args) - def getFloatValue(self, *args): return _openframeworks.ofXml_getFloatValue(self, *args) - def getBoolValue(self, *args): return _openframeworks.ofXml_getBoolValue(self, *args) - def setValue(self, *args): return _openframeworks.ofXml_setValue(self, *args) - def getAttribute(self, *args): return _openframeworks.ofXml_getAttribute(self, *args) - def setAttribute(self, *args): return _openframeworks.ofXml_setAttribute(self, *args) - def getAttributes(self): return _openframeworks.ofXml_getAttributes(self) - def getNumChildren(self, *args): return _openframeworks.ofXml_getNumChildren(self, *args) - def removeAttribute(self, *args): return _openframeworks.ofXml_removeAttribute(self, *args) - def removeAttributes(self, *args): return _openframeworks.ofXml_removeAttributes(self, *args) - def removeContents(self, *args): return _openframeworks.ofXml_removeContents(self, *args) - def remove(self, *args): return _openframeworks.ofXml_remove(self, *args) - def exists(self, *args): return _openframeworks.ofXml_exists(self, *args) - def clear(self): return _openframeworks.ofXml_clear(self) - def getName(self): return _openframeworks.ofXml_getName(self) - def reset(self): return _openframeworks.ofXml_reset(self) - def setToChild(self, *args): return _openframeworks.ofXml_setToChild(self, *args) - def setTo(self, *args): return _openframeworks.ofXml_setTo(self, *args) - def setToParent(self, *args): return _openframeworks.ofXml_setToParent(self, *args) - def setToSibling(self): return _openframeworks.ofXml_setToSibling(self) - def setToPrevSibling(self): return _openframeworks.ofXml_setToPrevSibling(self) - def loadFromBuffer(self, *args): return _openframeworks.ofXml_loadFromBuffer(self, *args) - def toString(self): return _openframeworks.ofXml_toString(self) - def serialize(self, *args): return _openframeworks.ofXml_serialize(self, *args) - def deserialize(self, *args): return _openframeworks.ofXml_deserialize(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, path): + return _openframeworks.ofXml_load(self, path) + + def save(self, path): + return _openframeworks.ofXml_save(self, path) + + def addChild(self, path): + return _openframeworks.ofXml_addChild(self, path) + + def addXml(self, xml, copyAll=False): + return _openframeworks.ofXml_addXml(self, xml, copyAll) + + def getValue(self, *args): + return _openframeworks.ofXml_getValue(self, *args) + + def getIntValue(self, *args): + return _openframeworks.ofXml_getIntValue(self, *args) + + def getInt64Value(self, *args): + return _openframeworks.ofXml_getInt64Value(self, *args) + + def getFloatValue(self, *args): + return _openframeworks.ofXml_getFloatValue(self, *args) + + def getBoolValue(self, *args): + return _openframeworks.ofXml_getBoolValue(self, *args) + + def setValue(self, path, value): + return _openframeworks.ofXml_setValue(self, path, value) + + def getAttribute(self, path): + return _openframeworks.ofXml_getAttribute(self, path) + + def setAttribute(self, path, value): + return _openframeworks.ofXml_setAttribute(self, path, value) + + def getAttributes(self): + return _openframeworks.ofXml_getAttributes(self) + + def getNumChildren(self, *args): + return _openframeworks.ofXml_getNumChildren(self, *args) + + def removeAttribute(self, path): + return _openframeworks.ofXml_removeAttribute(self, path) + + def removeAttributes(self, *args): + return _openframeworks.ofXml_removeAttributes(self, *args) + + def removeContents(self, *args): + return _openframeworks.ofXml_removeContents(self, *args) + + def remove(self, *args): + return _openframeworks.ofXml_remove(self, *args) + + def exists(self, path): + return _openframeworks.ofXml_exists(self, path) + + def clear(self): + return _openframeworks.ofXml_clear(self) + + def getName(self): + return _openframeworks.ofXml_getName(self) + + def reset(self): + return _openframeworks.ofXml_reset(self) + + def setToChild(self, index): + return _openframeworks.ofXml_setToChild(self, index) + + def setTo(self, path): + return _openframeworks.ofXml_setTo(self, path) + + def setToParent(self, *args): + return _openframeworks.ofXml_setToParent(self, *args) + + def setToSibling(self): + return _openframeworks.ofXml_setToSibling(self) + + def setToPrevSibling(self): + return _openframeworks.ofXml_setToPrevSibling(self) + + def loadFromBuffer(self, buffer): + return _openframeworks.ofXml_loadFromBuffer(self, buffer) + + def toString(self): + return _openframeworks.ofXml_toString(self) + + def serialize(self, parameter): + return _openframeworks.ofXml_serialize(self, parameter) + + def deserialize(self, parameter): + return _openframeworks.ofXml_deserialize(self, parameter) __swig_getmethods__["tokenize"] = lambda x: _openframeworks.ofXml_tokenize - if _newclass:tokenize = staticmethod(_openframeworks.ofXml_tokenize) - def getPocoElement(self, *args): return _openframeworks.ofXml_getPocoElement(self, *args) - def getPocoDocument(self, *args): return _openframeworks.ofXml_getPocoDocument(self, *args) + if _newclass: + tokenize = staticmethod(_openframeworks.ofXml_tokenize) + + def getPocoElement(self, *args): + return _openframeworks.ofXml_getPocoElement(self, *args) + + def getPocoDocument(self, *args): + return _openframeworks.ofXml_getPocoDocument(self, *args) ofXml_swigregister = _openframeworks.ofXml_swigregister ofXml_swigregister(ofXml) -def ofXml_tokenize(*args): - return _openframeworks.ofXml_tokenize(*args) +def ofXml_tokenize(str, delim): + return _openframeworks.ofXml_tokenize(str, delim) ofXml_tokenize = _openframeworks.ofXml_tokenize class ofMatrixStack(_object): @@ -5057,43 +9927,123 @@ class ofMatrixStack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMatrixStack, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofMatrixStack(*args) - try: self.this.append(this) - except: self.this = this - def setRenderSurface(self, *args): return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) - def setOrientation(self, *args): return _openframeworks.ofMatrixStack_setOrientation(self, *args) - def getOrientation(self): return _openframeworks.ofMatrixStack_getOrientation(self) - def viewport(self, *args): return _openframeworks.ofMatrixStack_viewport(self, *args) - def nativeViewport(self, *args): return _openframeworks.ofMatrixStack_nativeViewport(self, *args) - def getCurrentViewport(self): return _openframeworks.ofMatrixStack_getCurrentViewport(self) - def getNativeViewport(self): return _openframeworks.ofMatrixStack_getNativeViewport(self) - def getProjectionMatrix(self): return _openframeworks.ofMatrixStack_getProjectionMatrix(self) - def getModelViewMatrix(self): return _openframeworks.ofMatrixStack_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self): return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) - def getTextureMatrix(self): return _openframeworks.ofMatrixStack_getTextureMatrix(self) - def getCurrentMatrix(self): return _openframeworks.ofMatrixStack_getCurrentMatrix(self) - def getProjectionMatrixNoOrientation(self): return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) - def getOrientationMatrix(self): return _openframeworks.ofMatrixStack_getOrientationMatrix(self) - def getOrientationMatrixInverse(self): return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) - def getCurrentMatrixMode(self): return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) - def getHandedness(self): return _openframeworks.ofMatrixStack_getHandedness(self) - def isVFlipped(self): return _openframeworks.ofMatrixStack_isVFlipped(self) - def customMatrixNeedsFlip(self): return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) - def pushView(self): return _openframeworks.ofMatrixStack_pushView(self) - def popView(self): return _openframeworks.ofMatrixStack_popView(self) - def pushMatrix(self): return _openframeworks.ofMatrixStack_pushMatrix(self) - def popMatrix(self): return _openframeworks.ofMatrixStack_popMatrix(self) - def translate(self, *args): return _openframeworks.ofMatrixStack_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrixStack_scale(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrixStack_rotate(self, *args) - def matrixMode(self, *args): return _openframeworks.ofMatrixStack_matrixMode(self, *args) - def loadIdentityMatrix(self): return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) - def loadMatrix(self, *args): return _openframeworks.ofMatrixStack_loadMatrix(self, *args) - def multMatrix(self, *args): return _openframeworks.ofMatrixStack_multMatrix(self, *args) - def clearStacks(self): return _openframeworks.ofMatrixStack_clearStacks(self) + + def __init__(self, window): + this = _openframeworks.new_ofMatrixStack(window) + try: + self.this.append(this) + except Exception: + self.this = this + + def setRenderSurface(self, *args): + return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) + + def setOrientation(self, orientation, vFlip): + return _openframeworks.ofMatrixStack_setOrientation(self, orientation, vFlip) + + def getOrientation(self): + return _openframeworks.ofMatrixStack_getOrientation(self) + + def viewport(self, x, y, width, height, vflip): + return _openframeworks.ofMatrixStack_viewport(self, x, y, width, height, vflip) + + def nativeViewport(self, viewport): + return _openframeworks.ofMatrixStack_nativeViewport(self, viewport) + + def getCurrentViewport(self): + return _openframeworks.ofMatrixStack_getCurrentViewport(self) + + def getNativeViewport(self): + return _openframeworks.ofMatrixStack_getNativeViewport(self) + + def getFullSurfaceViewport(self): + return _openframeworks.ofMatrixStack_getFullSurfaceViewport(self) + + def getProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getProjectionMatrix(self) + + def getViewMatrix(self): + return _openframeworks.ofMatrixStack_getViewMatrix(self) + + def getModelViewMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) + + def getTextureMatrix(self): + return _openframeworks.ofMatrixStack_getTextureMatrix(self) + + def getCurrentMatrix(self): + return _openframeworks.ofMatrixStack_getCurrentMatrix(self) + + def getProjectionMatrixNoOrientation(self): + return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) + + def getOrientationMatrix(self): + return _openframeworks.ofMatrixStack_getOrientationMatrix(self) + + def getOrientationMatrixInverse(self): + return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) + + def getCurrentMatrixMode(self): + return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) + + def getHandedness(self): + return _openframeworks.ofMatrixStack_getHandedness(self) + + def isVFlipped(self): + return _openframeworks.ofMatrixStack_isVFlipped(self) + + def customMatrixNeedsFlip(self): + return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) + + def pushView(self): + return _openframeworks.ofMatrixStack_pushView(self) + + def popView(self): + return _openframeworks.ofMatrixStack_popView(self) + + def pushMatrix(self): + return _openframeworks.ofMatrixStack_pushMatrix(self) + + def popMatrix(self): + return _openframeworks.ofMatrixStack_popMatrix(self) + + def translate(self, x, y, z=0): + return _openframeworks.ofMatrixStack_translate(self, x, y, z) + + def scale(self, xAmnt, yAmnt, zAmnt=1): + return _openframeworks.ofMatrixStack_scale(self, xAmnt, yAmnt, zAmnt) + + def rotate(self, degrees, vecX, vecY, vecZ): + return _openframeworks.ofMatrixStack_rotate(self, degrees, vecX, vecY, vecZ) + + def matrixMode(self, mode): + return _openframeworks.ofMatrixStack_matrixMode(self, mode) + + def loadIdentityMatrix(self): + return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) + + def loadMatrix(self, m): + return _openframeworks.ofMatrixStack_loadMatrix(self, m) + + def multMatrix(self, m): + return _openframeworks.ofMatrixStack_multMatrix(self, m) + + def loadViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_loadViewMatrix(self, matrix) + + def multViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_multViewMatrix(self, matrix) + + def clearStacks(self): + return _openframeworks.ofMatrixStack_clearStacks(self) + + def doesHardwareOrientation(self): + return _openframeworks.ofMatrixStack_doesHardwareOrientation(self) __swig_destroy__ = _openframeworks.delete_ofMatrixStack - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrixStack_swigregister = _openframeworks.ofMatrixStack_swigregister ofMatrixStack_swigregister(ofMatrixStack) @@ -5103,42 +10053,105 @@ class ofVideoGrabber(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoGrabber, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoGrabber() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVideoGrabber - __del__ = lambda self : None; - def setGrabber(self, *args): return _openframeworks.ofVideoGrabber_setGrabber(self, *args) - def getGrabber(self): return _openframeworks.ofVideoGrabber_getGrabber(self) - def listDevices(self): return _openframeworks.ofVideoGrabber_listDevices(self) - def isFrameNew(self): return _openframeworks.ofVideoGrabber_isFrameNew(self) - def update(self): return _openframeworks.ofVideoGrabber_update(self) - def close(self): return _openframeworks.ofVideoGrabber_close(self) - def initGrabber(self, *args): return _openframeworks.ofVideoGrabber_initGrabber(self, *args) - def setPixelFormat(self, *args): return _openframeworks.ofVideoGrabber_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoGrabber_getPixelFormat(self) - def videoSettings(self): return _openframeworks.ofVideoGrabber_videoSettings(self) - def getPixels(self): return _openframeworks.ofVideoGrabber_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoGrabber_getPixelsRef(self) - def getTextureReference(self): return _openframeworks.ofVideoGrabber_getTextureReference(self) - def setVerbose(self, *args): return _openframeworks.ofVideoGrabber_setVerbose(self, *args) - def setDeviceID(self, *args): return _openframeworks.ofVideoGrabber_setDeviceID(self, *args) - def setDesiredFrameRate(self, *args): return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoGrabber_setUseTexture(self, *args) - def draw(self, *args): return _openframeworks.ofVideoGrabber_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoGrabber_resetAnchor(self) - def getHeight(self): return _openframeworks.ofVideoGrabber_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoGrabber_getWidth(self) - def isInitialized(self): return _openframeworks.ofVideoGrabber_isInitialized(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoGrabber_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoGrabber_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoGrabber_height_get, _openframeworks.ofVideoGrabber_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoGrabber_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoGrabber_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoGrabber_width_get, _openframeworks.ofVideoGrabber_width_set) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofVideoGrabber_listDevices(self) + + def isFrameNew(self): + return _openframeworks.ofVideoGrabber_isFrameNew(self) + + def update(self): + return _openframeworks.ofVideoGrabber_update(self) + + def close(self): + return _openframeworks.ofVideoGrabber_close(self) + + def setup(self, *args): + return _openframeworks.ofVideoGrabber_setup(self, *args) + + def initGrabber(self, *args): + return _openframeworks.ofVideoGrabber_initGrabber(self, *args) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoGrabber_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoGrabber_getPixelFormat(self) + + def videoSettings(self): + return _openframeworks.ofVideoGrabber_videoSettings(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoGrabber_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoGrabber_getPixelsRef(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofVideoGrabber_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoGrabber_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoGrabber_getTexturePlanes(self, *args) + + def setVerbose(self, bTalkToMe): + return _openframeworks.ofVideoGrabber_setVerbose(self, bTalkToMe) + + def setDeviceID(self, _deviceID): + return _openframeworks.ofVideoGrabber_setDeviceID(self, _deviceID) + + def setDesiredFrameRate(self, framerate): + return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, framerate) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoGrabber_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoGrabber_isUsingTexture(self) + + def draw(self, *args): + return _openframeworks.ofVideoGrabber_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoGrabber_bind(self) + + def unbind(self): + return _openframeworks.ofVideoGrabber_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoGrabber_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoGrabber_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoGrabber_resetAnchor(self) + + def getHeight(self): + return _openframeworks.ofVideoGrabber_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoGrabber_getWidth(self) + + def isInitialized(self): + return _openframeworks.ofVideoGrabber_isInitialized(self) + + def setGrabber(self, newGrabber): + return _openframeworks.ofVideoGrabber_setGrabber(self, newGrabber) + + def getGrabber(self, *args): + return _openframeworks.ofVideoGrabber_getGrabber(self, *args) ofVideoGrabber_swigregister = _openframeworks.ofVideoGrabber_swigregister ofVideoGrabber_swigregister(ofVideoGrabber) @@ -5148,90 +10161,189 @@ class ofVideoPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofVideoPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofVideoPlayer_getPlayer(self) - def loadMovie(self, *args): return _openframeworks.ofVideoPlayer_loadMovie(self, *args) - def getMoviePath(self): return _openframeworks.ofVideoPlayer_getMoviePath(self) - def setPixelFormat(self, *args): return _openframeworks.ofVideoPlayer_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoPlayer_getPixelFormat(self) - def closeMovie(self): return _openframeworks.ofVideoPlayer_closeMovie(self) - def close(self): return _openframeworks.ofVideoPlayer_close(self) - def update(self): return _openframeworks.ofVideoPlayer_update(self) - def play(self): return _openframeworks.ofVideoPlayer_play(self) - def stop(self): return _openframeworks.ofVideoPlayer_stop(self) - def isFrameNew(self): return _openframeworks.ofVideoPlayer_isFrameNew(self) - def getPixels(self): return _openframeworks.ofVideoPlayer_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoPlayer_getPixelsRef(self) - def getPosition(self): return _openframeworks.ofVideoPlayer_getPosition(self) - def getSpeed(self): return _openframeworks.ofVideoPlayer_getSpeed(self) - def getDuration(self): return _openframeworks.ofVideoPlayer_getDuration(self) - def getIsMovieDone(self): return _openframeworks.ofVideoPlayer_getIsMovieDone(self) - def setPosition(self, *args): return _openframeworks.ofVideoPlayer_setPosition(self, *args) - def setVolume(self, *args): return _openframeworks.ofVideoPlayer_setVolume(self, *args) - def setLoopState(self, *args): return _openframeworks.ofVideoPlayer_setLoopState(self, *args) - def getLoopState(self): return _openframeworks.ofVideoPlayer_getLoopState(self) - def setSpeed(self, *args): return _openframeworks.ofVideoPlayer_setSpeed(self, *args) - def setFrame(self, *args): return _openframeworks.ofVideoPlayer_setFrame(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoPlayer_setUseTexture(self, *args) - def getTextureReference(self): return _openframeworks.ofVideoPlayer_getTextureReference(self) - def draw(self, *args): return _openframeworks.ofVideoPlayer_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoPlayer_resetAnchor(self) - def setPaused(self, *args): return _openframeworks.ofVideoPlayer_setPaused(self, *args) - def getCurrentFrame(self): return _openframeworks.ofVideoPlayer_getCurrentFrame(self) - def getTotalNumFrames(self): return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) - def firstFrame(self): return _openframeworks.ofVideoPlayer_firstFrame(self) - def nextFrame(self): return _openframeworks.ofVideoPlayer_nextFrame(self) - def previousFrame(self): return _openframeworks.ofVideoPlayer_previousFrame(self) - def getHeight(self): return _openframeworks.ofVideoPlayer_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoPlayer_getWidth(self) - def isPaused(self): return _openframeworks.ofVideoPlayer_isPaused(self) - def isLoaded(self): return _openframeworks.ofVideoPlayer_isLoaded(self) - def isPlaying(self): return _openframeworks.ofVideoPlayer_isPlaying(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoPlayer_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoPlayer_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoPlayer_height_get, _openframeworks.ofVideoPlayer_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoPlayer_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoPlayer_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoPlayer_width_get, _openframeworks.ofVideoPlayer_width_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, name): + return _openframeworks.ofVideoPlayer_load(self, name) + + def loadAsync(self, name): + return _openframeworks.ofVideoPlayer_loadAsync(self, name) + + def loadMovie(self, name): + return _openframeworks.ofVideoPlayer_loadMovie(self, name) + + def getMoviePath(self): + return _openframeworks.ofVideoPlayer_getMoviePath(self) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoPlayer_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoPlayer_getPixelFormat(self) + + def closeMovie(self): + return _openframeworks.ofVideoPlayer_closeMovie(self) + + def close(self): + return _openframeworks.ofVideoPlayer_close(self) + + def update(self): + return _openframeworks.ofVideoPlayer_update(self) + + def play(self): + return _openframeworks.ofVideoPlayer_play(self) + + def stop(self): + return _openframeworks.ofVideoPlayer_stop(self) + + def isFrameNew(self): + return _openframeworks.ofVideoPlayer_isFrameNew(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoPlayer_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoPlayer_getPixelsRef(self, *args) + + def getPosition(self): + return _openframeworks.ofVideoPlayer_getPosition(self) + + def getSpeed(self): + return _openframeworks.ofVideoPlayer_getSpeed(self) + + def getDuration(self): + return _openframeworks.ofVideoPlayer_getDuration(self) + + def getIsMovieDone(self): + return _openframeworks.ofVideoPlayer_getIsMovieDone(self) + + def setPosition(self, pct): + return _openframeworks.ofVideoPlayer_setPosition(self, pct) + + def setVolume(self, volume): + return _openframeworks.ofVideoPlayer_setVolume(self, volume) + + def setLoopState(self, state): + return _openframeworks.ofVideoPlayer_setLoopState(self, state) + + def getLoopState(self): + return _openframeworks.ofVideoPlayer_getLoopState(self) + + def setSpeed(self, speed): + return _openframeworks.ofVideoPlayer_setSpeed(self, speed) + + def setFrame(self, frame): + return _openframeworks.ofVideoPlayer_setFrame(self, frame) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoPlayer_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoPlayer_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofVideoPlayer_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoPlayer_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoPlayer_getTexturePlanes(self, *args) + + def draw(self, *args): + return _openframeworks.ofVideoPlayer_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoPlayer_bind(self) + + def unbind(self): + return _openframeworks.ofVideoPlayer_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoPlayer_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoPlayer_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoPlayer_resetAnchor(self) + + def setPaused(self, bPause): + return _openframeworks.ofVideoPlayer_setPaused(self, bPause) + + def getCurrentFrame(self): + return _openframeworks.ofVideoPlayer_getCurrentFrame(self) + + def getTotalNumFrames(self): + return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) + + def firstFrame(self): + return _openframeworks.ofVideoPlayer_firstFrame(self) + + def nextFrame(self): + return _openframeworks.ofVideoPlayer_nextFrame(self) + + def previousFrame(self): + return _openframeworks.ofVideoPlayer_previousFrame(self) + + def getHeight(self): + return _openframeworks.ofVideoPlayer_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoPlayer_getWidth(self) + + def isPaused(self): + return _openframeworks.ofVideoPlayer_isPaused(self) + + def isLoaded(self): + return _openframeworks.ofVideoPlayer_isLoaded(self) + + def isPlaying(self): + return _openframeworks.ofVideoPlayer_isPlaying(self) + + def isInitialized(self): + return _openframeworks.ofVideoPlayer_isInitialized(self) + + def setPlayer(self, newPlayer): + return _openframeworks.ofVideoPlayer_setPlayer(self, newPlayer) + + def getPlayer(self, *args): + return _openframeworks.ofVideoPlayer_getPlayer(self, *args) __swig_destroy__ = _openframeworks.delete_ofVideoPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofVideoPlayer_swigregister = _openframeworks.ofVideoPlayer_swigregister ofVideoPlayer_swigregister(ofVideoPlayer) -def ofGetMousePressed(*args): - return _openframeworks.ofGetMousePressed(*args) +def ofGetMousePressed(button=-1): + return _openframeworks.ofGetMousePressed(button) ofGetMousePressed = _openframeworks.ofGetMousePressed -def ofGetKeyPressed(*args): - return _openframeworks.ofGetKeyPressed(*args) +def ofGetKeyPressed(key=-1): + return _openframeworks.ofGetKeyPressed(key) ofGetKeyPressed = _openframeworks.ofGetKeyPressed def ofGetMouseX(): - return _openframeworks.ofGetMouseX() + return _openframeworks.ofGetMouseX() ofGetMouseX = _openframeworks.ofGetMouseX def ofGetMouseY(): - return _openframeworks.ofGetMouseY() + return _openframeworks.ofGetMouseY() ofGetMouseY = _openframeworks.ofGetMouseY def ofGetPreviousMouseX(): - return _openframeworks.ofGetPreviousMouseX() + return _openframeworks.ofGetPreviousMouseX() ofGetPreviousMouseX = _openframeworks.ofGetPreviousMouseX def ofGetPreviousMouseY(): - return _openframeworks.ofGetPreviousMouseY() + return _openframeworks.ofGetPreviousMouseY() ofGetPreviousMouseY = _openframeworks.ofGetPreviousMouseY - -def ofSetEscapeQuitsApp(*args): - return _openframeworks.ofSetEscapeQuitsApp(*args) -ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp class ofDragInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofDragInfo, name, value) @@ -5240,25 +10352,32 @@ class ofDragInfo(_object): __repr__ = _swig_repr __swig_setmethods__["files"] = _openframeworks.ofDragInfo_files_set __swig_getmethods__["files"] = _openframeworks.ofDragInfo_files_get - if _newclass:files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) + if _newclass: + files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) __swig_setmethods__["position"] = _openframeworks.ofDragInfo_position_set __swig_getmethods__["position"] = _openframeworks.ofDragInfo_position_get - if _newclass:position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) - def __init__(self): + if _newclass: + position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) + + def __init__(self): this = _openframeworks.new_ofDragInfo() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofDragInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofDragInfo_swigregister = _openframeworks.ofDragInfo_swigregister ofDragInfo_swigregister(ofDragInfo) class ofTouchEventArgs(ofVec2f): __swig_setmethods__ = {} - for _s in [ofVec2f]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofVec2f]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofTouchEventArgs, name, value) __swig_getmethods__ = {} - for _s in [ofVec2f]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofVec2f]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofTouchEventArgs, name) __repr__ = _swig_repr down = _openframeworks.ofTouchEventArgs_down @@ -5266,61 +10385,80 @@ class ofTouchEventArgs(ofVec2f): move = _openframeworks.ofTouchEventArgs_move doubleTap = _openframeworks.ofTouchEventArgs_doubleTap cancel = _openframeworks.ofTouchEventArgs_cancel + + def __init__(self, *args): + this = _openframeworks.new_ofTouchEventArgs(*args) + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["type"] = _openframeworks.ofTouchEventArgs_type_set __swig_getmethods__["type"] = _openframeworks.ofTouchEventArgs_type_get - if _newclass:type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) + if _newclass: + type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) __swig_setmethods__["id"] = _openframeworks.ofTouchEventArgs_id_set __swig_getmethods__["id"] = _openframeworks.ofTouchEventArgs_id_get - if _newclass:id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) + if _newclass: + id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) __swig_setmethods__["time"] = _openframeworks.ofTouchEventArgs_time_set __swig_getmethods__["time"] = _openframeworks.ofTouchEventArgs_time_get - if _newclass:time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) + if _newclass: + time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) __swig_setmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_set __swig_getmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_get - if _newclass:numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) + if _newclass: + numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) __swig_setmethods__["width"] = _openframeworks.ofTouchEventArgs_width_set __swig_getmethods__["width"] = _openframeworks.ofTouchEventArgs_width_get - if _newclass:width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) __swig_setmethods__["height"] = _openframeworks.ofTouchEventArgs_height_set __swig_getmethods__["height"] = _openframeworks.ofTouchEventArgs_height_get - if _newclass:height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) __swig_setmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_set __swig_getmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_get - if _newclass:angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) + if _newclass: + angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) __swig_setmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_set __swig_getmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_get - if _newclass:minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) + if _newclass: + minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) __swig_setmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_set __swig_getmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_get - if _newclass:majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) + if _newclass: + majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) __swig_setmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_set __swig_getmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_get - if _newclass:pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) + if _newclass: + pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) __swig_setmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_set __swig_getmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_get - if _newclass:xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) + if _newclass: + xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) __swig_setmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_set __swig_getmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_get - if _newclass:yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) + if _newclass: + yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) __swig_setmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_set __swig_getmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_get - if _newclass:xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) + if _newclass: + xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) __swig_setmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_set __swig_getmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_get - if _newclass:yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) - def __init__(self): - this = _openframeworks.new_ofTouchEventArgs() - try: self.this.append(this) - except: self.this = this + if _newclass: + yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) __swig_destroy__ = _openframeworks.delete_ofTouchEventArgs - __del__ = lambda self : None; + __del__ = lambda self: None ofTouchEventArgs_swigregister = _openframeworks.ofTouchEventArgs_swigregister ofTouchEventArgs_swigregister(ofTouchEventArgs) def ofSendMessage(*args): - return _openframeworks.ofSendMessage(*args) + return _openframeworks.ofSendMessage(*args) ofSendMessage = _openframeworks.ofSendMessage + + # handle typedefs which swig doesnt wrap ofPoint = ofVec3f diff --git a/example_simpleScript/bin/data/openframeworks_extra.py b/example_simpleScript/bin/data/openframeworks_extra.py old mode 100644 new mode 100755 index d5dd3b7..fce8e18 --- a/example_simpleScript/bin/data/openframeworks_extra.py +++ b/example_simpleScript/bin/data/openframeworks_extra.py @@ -1,13 +1,15 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 2.0.7 +# Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. + + from sys import version_info -if version_info >= (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -73,9 +96,12 @@ class CallBack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CallBack, name) __repr__ = _swig_repr - def _call(self): return _openframeworks_extra.CallBack__call(self) + + def _call(self): + return _openframeworks_extra.CallBack__call(self) __swig_destroy__ = _openframeworks_extra.delete_CallBack - __del__ = lambda self : None; + __del__ = lambda self: None + def call(self,*args,**kwargs): CallBack._args = args CallBack._kwargs = kwargs @@ -83,16 +109,19 @@ def call(self,*args,**kwargs): CallBack._args = None CallBack._kwargs = None - def __init__(self): + + def __init__(self): this = _openframeworks_extra.new_CallBack() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this CallBack_swigregister = _openframeworks_extra.CallBack_swigregister CallBack_swigregister(CallBack) def _getCallBackPointer(): - return _openframeworks_extra._getCallBackPointer() + return _openframeworks_extra._getCallBackPointer() _getCallBackPointer = _openframeworks_extra._getCallBackPointer # This file is compatible with both classic and new-style classes. diff --git a/example_simpleScript/config.make b/example_simpleScript/config.make old mode 100644 new mode 100755 diff --git a/example_simpleScript/example_simpleScript.cbp b/example_simpleScript/example_simpleScript.cbp old mode 100644 new mode 100755 diff --git a/example_simpleScript/example_simpleScript.sln b/example_simpleScript/example_simpleScript.sln old mode 100644 new mode 100755 diff --git a/example_simpleScript/example_simpleScript.vcxproj b/example_simpleScript/example_simpleScript.vcxproj old mode 100644 new mode 100755 diff --git a/example_simpleScript/example_simpleScript.vcxproj.filters b/example_simpleScript/example_simpleScript.vcxproj.filters old mode 100644 new mode 100755 diff --git a/example_simpleScript/example_simpleScript.vcxproj.user b/example_simpleScript/example_simpleScript.vcxproj.user old mode 100644 new mode 100755 diff --git a/example_simpleScript/example_simpleScript.workspace b/example_simpleScript/example_simpleScript.workspace old mode 100644 new mode 100755 diff --git a/example_simpleScript/example_simpleScript.xcodeproj/project.pbxproj b/example_simpleScript/example_simpleScript.xcodeproj/project.pbxproj old mode 100755 new mode 100644 index 7fcfea3..ac8774b --- a/example_simpleScript/example_simpleScript.xcodeproj/project.pbxproj +++ b/example_simpleScript/example_simpleScript.xcodeproj/project.pbxproj @@ -9,26 +9,10 @@ /* Begin PBXBuildFile section */ 3F89109986058DB93D8ABF82 /* ofxPython.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */; }; 7B182901E12EF9C89017E436 /* ofxPythonCallBack.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */; }; - BBAB23CB13894F3D00AA2426 /* GLUT.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = BBAB23BE13894E4700AA2426 /* GLUT.framework */; }; D7E6C194BDBE6C0950FED198 /* openFrameworks_extra_wrap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */; }; E4328149138ABC9F0047C5CB /* openFrameworksDebug.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4328148138ABC890047C5CB /* openFrameworksDebug.a */; }; - E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9710E8CC7DD009D7055 /* AGL.framework */; }; - E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */; }; - E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */; }; - E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */; }; - E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */; }; - E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9770E8CC7DD009D7055 /* CoreServices.framework */; }; - E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9790E8CC7DD009D7055 /* OpenGL.framework */; }; - E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */; }; E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1D0A3A1BDC003C02F2 /* main.cpp */; }; E4B69E210A3A1BDC003C02F2 /* ofApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */; }; - E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424410CC5A17004149E2 /* AppKit.framework */; }; - E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424510CC5A17004149E2 /* Cocoa.framework */; }; - E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424610CC5A17004149E2 /* IOKit.framework */; }; - E4EB6799138ADC1D00A09F29 /* GLUT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBAB23BE13894E4700AA2426 /* GLUT.framework */; }; - E7E077E515D3B63C0020DFD4 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */; }; - E7E077E815D3B6510020DFD4 /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7E077E715D3B6510020DFD4 /* QTKit.framework */; }; - E7F985F815E0DEA3003869B5 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7F985F515E0DE99003869B5 /* Accelerate.framework */; }; E8DB35E07D68B21B39114B9E /* openFrameworks_wrap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */; }; /* End PBXBuildFile section */ @@ -56,45 +40,29 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - BBAB23CB13894F3D00AA2426 /* GLUT.framework in CopyFiles */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPython.cpp; path = ../src/ofxPython.cpp; sourceTree = SOURCE_ROOT; }; - 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_wrap.cpp; path = ../src/bindings/desktop/openFrameworks_wrap.cpp; sourceTree = SOURCE_ROOT; }; - 3CFF297A35409903661F3E82 /* openFrameworks_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_wrap.h; path = ../src/bindings/openFrameworks_wrap.h; sourceTree = SOURCE_ROOT; }; - 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_extra_wrap.cpp; path = ../src/bindings/openFrameworks_extra_wrap.cpp; sourceTree = SOURCE_ROOT; }; - 529DBC40B08D8781B5122672 /* openFrameworks_extra_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_extra_wrap.h; path = ../src/bindings/openFrameworks_extra_wrap.h; sourceTree = SOURCE_ROOT; }; - 652966E41B44E717210D73A9 /* ofxPython.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPython.h; path = ../src/ofxPython.h; sourceTree = SOURCE_ROOT; }; - 97D7D1AA2E988365FDA134F4 /* ofxPythonCallBackBase.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBackBase.h; path = ../src/ofxPythonCallBackBase.h; sourceTree = SOURCE_ROOT; }; - 99EDC8255C1E929CED636861 /* ofxPythonCallBack.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBack.h; path = ../src/ofxPythonCallBack.h; sourceTree = SOURCE_ROOT; }; - BBAB23BE13894E4700AA2426 /* GLUT.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLUT.framework; path = ../../../libs/glut/lib/osx/GLUT.framework; sourceTree = ""; }; - CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPythonCallBack.cpp; path = ../src/ofxPythonCallBack.cpp; sourceTree = SOURCE_ROOT; }; + 142D2592CF197A9B6FBA8720 /* ofxPython.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPython.cpp; path = ../../../addons/ofxPython/src/ofxPython.cpp; sourceTree = SOURCE_ROOT; }; + 1CDA3F00A44F5253DAE1870D /* openFrameworks_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_wrap.cpp; path = ../../../addons/ofxPython/src/bindings/desktop/openFrameworks_wrap.cpp; sourceTree = SOURCE_ROOT; }; + 3CFF297A35409903661F3E82 /* openFrameworks_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_wrap.h; path = ../../../addons/ofxPython/src/bindings/openFrameworks_wrap.h; sourceTree = SOURCE_ROOT; }; + 497FE87A08D2136837EB4A44 /* openFrameworks_extra_wrap.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = openFrameworks_extra_wrap.cpp; path = ../../../addons/ofxPython/src/bindings/openFrameworks_extra_wrap.cpp; sourceTree = SOURCE_ROOT; }; + 529DBC40B08D8781B5122672 /* openFrameworks_extra_wrap.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = openFrameworks_extra_wrap.h; path = ../../../addons/ofxPython/src/bindings/openFrameworks_extra_wrap.h; sourceTree = SOURCE_ROOT; }; + 652966E41B44E717210D73A9 /* ofxPython.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPython.h; path = ../../../addons/ofxPython/src/ofxPython.h; sourceTree = SOURCE_ROOT; }; + 97D7D1AA2E988365FDA134F4 /* ofxPythonCallBackBase.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBackBase.h; path = ../../../addons/ofxPython/src/ofxPythonCallBackBase.h; sourceTree = SOURCE_ROOT; }; + 99EDC8255C1E929CED636861 /* ofxPythonCallBack.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 30; name = ofxPythonCallBack.h; path = ../../../addons/ofxPython/src/ofxPythonCallBack.h; sourceTree = SOURCE_ROOT; }; + CD8E6B152563C1EFB697162D /* ofxPythonCallBack.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofxPythonCallBack.cpp; path = ../../../addons/ofxPython/src/ofxPythonCallBack.cpp; sourceTree = SOURCE_ROOT; }; E4328143138ABC890047C5CB /* openFrameworksLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = openFrameworksLib.xcodeproj; path = ../../../libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj; sourceTree = SOURCE_ROOT; }; - E45BE9710E8CC7DD009D7055 /* AGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AGL.framework; path = /System/Library/Frameworks/AGL.framework; sourceTree = ""; }; - E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = ""; }; - E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = ""; }; - E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = ""; }; - E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; - E45BE9770E8CC7DD009D7055 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; - E45BE9790E8CC7DD009D7055 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = ""; }; - E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = ""; }; E4B69B5B0A3A1756003C02F2 /* example_simpleScriptDebug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example_simpleScriptDebug.app; sourceTree = BUILT_PRODUCTS_DIR; }; E4B69E1D0A3A1BDC003C02F2 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = main.cpp; path = src/main.cpp; sourceTree = SOURCE_ROOT; }; E4B69E1E0A3A1BDC003C02F2 /* ofApp.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = ofApp.cpp; path = src/ofApp.cpp; sourceTree = SOURCE_ROOT; }; E4B69E1F0A3A1BDC003C02F2 /* ofApp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ofApp.h; path = src/ofApp.h; sourceTree = SOURCE_ROOT; }; E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.plist.xml; path = "openFrameworks-Info.plist"; sourceTree = ""; }; - E4C2424410CC5A17004149E2 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; - E4C2424510CC5A17004149E2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; - E4C2424610CC5A17004149E2 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; E4EB691F138AFCF100A09F29 /* CoreOF.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = CoreOF.xcconfig; path = ../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig; sourceTree = SOURCE_ROOT; }; E4EB6923138AFD0F00A09F29 /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = ""; }; - E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = /System/Library/Frameworks/CoreVideo.framework; sourceTree = ""; }; - E7E077E715D3B6510020DFD4 /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = ""; }; - E7F985F515E0DE99003869B5 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = /System/Library/Frameworks/Accelerate.framework; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -102,22 +70,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - E7F985F815E0DEA3003869B5 /* Accelerate.framework in Frameworks */, - E7E077E815D3B6510020DFD4 /* QTKit.framework in Frameworks */, - E4EB6799138ADC1D00A09F29 /* GLUT.framework in Frameworks */, E4328149138ABC9F0047C5CB /* openFrameworksDebug.a in Frameworks */, - E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */, - E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */, - E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */, - E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */, - E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */, - E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */, - E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */, - E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */, - E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */, - E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */, - E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */, - E7E077E515D3B63C0020DFD4 /* CoreVideo.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -151,41 +104,19 @@ name = bindings; sourceTree = ""; }; - BB4B014C10F69532006C3DED /* addons */ = { + 6948EE371B920CB800B5AC1A /* local_addons */ = { isa = PBXGroup; children = ( - 31AA9B36154605316B795F10 /* ofxPython */, ); - name = addons; + name = local_addons; sourceTree = ""; }; - BBAB23C913894ECA00AA2426 /* system frameworks */ = { - isa = PBXGroup; - children = ( - E7F985F515E0DE99003869B5 /* Accelerate.framework */, - E4C2424410CC5A17004149E2 /* AppKit.framework */, - E4C2424510CC5A17004149E2 /* Cocoa.framework */, - E4C2424610CC5A17004149E2 /* IOKit.framework */, - E45BE9710E8CC7DD009D7055 /* AGL.framework */, - E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */, - E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */, - E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */, - E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */, - E45BE9770E8CC7DD009D7055 /* CoreServices.framework */, - E45BE9790E8CC7DD009D7055 /* OpenGL.framework */, - E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */, - E7E077E415D3B63C0020DFD4 /* CoreVideo.framework */, - E7E077E715D3B6510020DFD4 /* QTKit.framework */, - ); - name = "system frameworks"; - sourceTree = ""; - }; - BBAB23CA13894EDB00AA2426 /* 3rd party frameworks */ = { + BB4B014C10F69532006C3DED /* addons */ = { isa = PBXGroup; children = ( - BBAB23BE13894E4700AA2426 /* GLUT.framework */, + 31AA9B36154605316B795F10 /* ofxPython */, ); - name = "3rd party frameworks"; + name = addons; sourceTree = ""; }; E4328144138ABC890047C5CB /* Products */ = { @@ -196,15 +127,6 @@ name = Products; sourceTree = ""; }; - E45BE5980E8CC70C009D7055 /* frameworks */ = { - isa = PBXGroup; - children = ( - BBAB23CA13894EDB00AA2426 /* 3rd party frameworks */, - BBAB23C913894ECA00AA2426 /* system frameworks */, - ); - name = frameworks; - sourceTree = ""; - }; E4B69B4A0A3A1720003C02F2 = { isa = PBXGroup; children = ( @@ -213,7 +135,7 @@ E4B69E1C0A3A1BDC003C02F2 /* src */, E4EEC9E9138DF44700A80321 /* openFrameworks */, BB4B014C10F69532006C3DED /* addons */, - E45BE5980E8CC70C009D7055 /* frameworks */, + 6948EE371B920CB800B5AC1A /* local_addons */, E4B69B5B0A3A1756003C02F2 /* example_simpleScriptDebug.app */, ); sourceTree = ""; @@ -278,7 +200,7 @@ E4B69B4C0A3A1720003C02F2 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0460; + LastUpgradeCheck = 0600; }; buildConfigurationList = E4B69B4D0A3A1720003C02F2 /* Build configuration list for PBXProject "example_simpleScript" */; compatibilityVersion = "Xcode 3.2"; @@ -328,7 +250,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "cp -f ../../../libs/fmodex/lib/osx/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libfmodex.dylib\"; install_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME\";\nmkdir -p \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\ncp -f \"$ICON_FILE\" \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\n"; + shellScript = "mkdir -p \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\n# Copy default icon file into App/Resources\nrsync -aved \"$ICON_FILE\" \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/\"\n# Copy libfmod and change install directory for fmod to run\nrsync -aved ../../../libs/fmodex/lib/osx/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/\";\ninstall_name_tool -change @executable_path/libfmodex.dylib @executable_path/../Frameworks/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME\";\n# Copy GLUT framework (must remove for AppStore submissions)\nrsync -aved ../../../libs/glut/lib/osx/GLUT.framework \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/\"\n"; }; /* End PBXShellScriptBuildPhase section */ @@ -361,7 +283,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; buildSettings = { - ARCHS = "$(NATIVE_ARCH)"; CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; COPY_PHASE_STRIP = NO; DEAD_CODE_STRIPPING = YES; @@ -379,20 +300,25 @@ GCC_WARN_UNUSED_VARIABLE = NO; HEADER_SEARCH_PATHS = ( "$(OF_CORE_HEADERS)", - ../../../addons/ofxGestureAgents/libs, - ../../../addons/ofxGestureAgents/src, - ../../../addons/ofxPython/libs, + src, ../../../addons/ofxPython/src, ../../../addons/ofxPython/src/bindings, ../../../addons/ofxPython/src/bindings/desktop, ../../../addons/ofxPython/src, ); - MACOSX_DEPLOYMENT_TARGET = 10.6; + MACOSX_DEPLOYMENT_TARGET = 10.8; + ONLY_ACTIVE_ARCH = YES; + OTHER_CFLAGS = "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7"; OTHER_CPLUSPLUSFLAGS = ( "-D__MACOSX_CORE__", - "-lpthread", "-mtune=native", ); + OTHER_LDFLAGS = ( + "$(OF_CORE_FRAMEWORKS)", + "$(OF_CORE_LIBS)", + "-lpython2.7", + "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", + ); SDKROOT = macosx; }; name = Debug; @@ -401,7 +327,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; buildSettings = { - ARCHS = "$(NATIVE_ARCH)"; CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; COPY_PHASE_STRIP = YES; DEAD_CODE_STRIPPING = YES; @@ -420,26 +345,31 @@ GCC_WARN_UNUSED_VARIABLE = NO; HEADER_SEARCH_PATHS = ( "$(OF_CORE_HEADERS)", - ../../../addons/ofxGestureAgents/libs, - ../../../addons/ofxGestureAgents/src, - ../../../addons/ofxPython/libs, + src, ../../../addons/ofxPython/src, ../../../addons/ofxPython/src/bindings, ../../../addons/ofxPython/src/bindings/desktop, ../../../addons/ofxPython/src, ); - MACOSX_DEPLOYMENT_TARGET = 10.6; + MACOSX_DEPLOYMENT_TARGET = 10.8; + OTHER_CFLAGS = "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7"; OTHER_CPLUSPLUSFLAGS = ( "-D__MACOSX_CORE__", - "-lpthread", "-mtune=native", ); + OTHER_LDFLAGS = ( + "$(OF_CORE_FRAMEWORKS)", + "$(OF_CORE_LIBS)", + "-lpython2.7", + "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", + ); SDKROOT = macosx; }; name = Release; }; E4B69B600A3A1757003C02F2 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; buildSettings = { COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; @@ -451,93 +381,39 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_MODEL_TUNING = NONE; + HEADER_SEARCH_PATHS = ( + "$(OF_CORE_HEADERS)", + src, + ../../../addons/ofxPython/src, + ../../../addons/ofxPython/src/bindings, + ../../../addons/ofxPython/src/bindings/desktop, + ../../../addons/ofxPython/src, + ); ICON = "$(ICON_NAME_DEBUG)"; ICON_FILE = "$(ICON_FILE_PATH)$(ICON)"; INFOPLIST_FILE = "openFrameworks-Info.plist"; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_52)", - ); + INSTALL_PATH = /Applications; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_CFLAGS = ""; OTHER_CPLUSPLUSFLAGS = ( "-D__MACOSX_CORE__", - "-lpthread", "-mtune=native", "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", ); OTHER_LDFLAGS = ( + "$(OF_CORE_FRAMEWORKS)", + "$(OF_CORE_LIBS)", "-lpython2.7", "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", - "$(OF_CORE_LIBS)", ); - PRODUCT_NAME = example_simpleScriptDebug; + PRODUCT_NAME = "$(TARGET_NAME)Debug"; WRAPPER_EXTENSION = app; }; name = Debug; }; E4B69B610A3A1757003C02F2 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = E4EB6923138AFD0F00A09F29 /* Project.xcconfig */; buildSettings = { COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = YES; @@ -548,88 +424,34 @@ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_MODEL_TUNING = NONE; + HEADER_SEARCH_PATHS = ( + "$(OF_CORE_HEADERS)", + src, + ../../../addons/ofxPython/src, + ../../../addons/ofxPython/src/bindings, + ../../../addons/ofxPython/src/bindings/desktop, + ../../../addons/ofxPython/src, + ); ICON = "$(ICON_NAME_RELEASE)"; ICON_FILE = "$(ICON_FILE_PATH)$(ICON)"; INFOPLIST_FILE = "openFrameworks-Info.plist"; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_1)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)", - "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)", - ); + INSTALL_PATH = /Applications; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_CFLAGS = ""; OTHER_CPLUSPLUSFLAGS = ( "-D__MACOSX_CORE__", - "-lpthread", "-mtune=native", "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", - "-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7", ); OTHER_LDFLAGS = ( + "$(OF_CORE_FRAMEWORKS)", + "$(OF_CORE_LIBS)", "-lpython2.7", "-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config", - "$(OF_CORE_LIBS)", ); - PRODUCT_NAME = example_simpleScript; + PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; + baseConfigurationReference = E4EB6923138AFD0F00A09F29; }; name = Release; }; diff --git a/example_simpleScript/example_simpleScript.xcodeproj/xcshareddata/xcschemes/example_simpleScript Debug.xcscheme b/example_simpleScript/example_simpleScript.xcodeproj/xcshareddata/xcschemes/example_simpleScript Debug.xcscheme index 3b1bcda..da3a083 100644 --- a/example_simpleScript/example_simpleScript.xcodeproj/xcshareddata/xcschemes/example_simpleScript Debug.xcscheme +++ b/example_simpleScript/example_simpleScript.xcodeproj/xcshareddata/xcschemes/example_simpleScript Debug.xcscheme @@ -1,6 +1,6 @@ - + - + - + - + = (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -72,27 +95,62 @@ class SwigPyIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_SwigPyIterator - __del__ = lambda self : None; - def value(self): return _openframeworks.SwigPyIterator_value(self) - def incr(self, n=1): return _openframeworks.SwigPyIterator_incr(self, n) - def decr(self, n=1): return _openframeworks.SwigPyIterator_decr(self, n) - def distance(self, *args): return _openframeworks.SwigPyIterator_distance(self, *args) - def equal(self, *args): return _openframeworks.SwigPyIterator_equal(self, *args) - def copy(self): return _openframeworks.SwigPyIterator_copy(self) - def next(self): return _openframeworks.SwigPyIterator_next(self) - def __next__(self): return _openframeworks.SwigPyIterator___next__(self) - def previous(self): return _openframeworks.SwigPyIterator_previous(self) - def advance(self, *args): return _openframeworks.SwigPyIterator_advance(self, *args) - def __eq__(self, *args): return _openframeworks.SwigPyIterator___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.SwigPyIterator___ne__(self, *args) - def __iadd__(self, *args): return _openframeworks.SwigPyIterator___iadd__(self, *args) - def __isub__(self, *args): return _openframeworks.SwigPyIterator___isub__(self, *args) - def __add__(self, *args): return _openframeworks.SwigPyIterator___add__(self, *args) - def __sub__(self, *args): return _openframeworks.SwigPyIterator___sub__(self, *args) - def __iter__(self): return self + __del__ = lambda self: None + + def value(self): + return _openframeworks.SwigPyIterator_value(self) + + def incr(self, n=1): + return _openframeworks.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _openframeworks.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _openframeworks.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _openframeworks.SwigPyIterator_equal(self, x) + + def copy(self): + return _openframeworks.SwigPyIterator_copy(self) + + def next(self): + return _openframeworks.SwigPyIterator_next(self) + + def __next__(self): + return _openframeworks.SwigPyIterator___next__(self) + + def previous(self): + return _openframeworks.SwigPyIterator_previous(self) + + def advance(self, n): + return _openframeworks.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _openframeworks.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _openframeworks.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _openframeworks.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _openframeworks.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _openframeworks.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _openframeworks.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self SwigPyIterator_swigregister = _openframeworks.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) @@ -102,44 +160,110 @@ class IntVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.IntVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.IntVector___nonzero__(self) - def __bool__(self): return _openframeworks.IntVector___bool__(self) - def __len__(self): return _openframeworks.IntVector___len__(self) - def pop(self): return _openframeworks.IntVector_pop(self) - def __getslice__(self, *args): return _openframeworks.IntVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.IntVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.IntVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.IntVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.IntVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.IntVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.IntVector_append(self, *args) - def empty(self): return _openframeworks.IntVector_empty(self) - def size(self): return _openframeworks.IntVector_size(self) - def clear(self): return _openframeworks.IntVector_clear(self) - def swap(self, *args): return _openframeworks.IntVector_swap(self, *args) - def get_allocator(self): return _openframeworks.IntVector_get_allocator(self) - def begin(self): return _openframeworks.IntVector_begin(self) - def end(self): return _openframeworks.IntVector_end(self) - def rbegin(self): return _openframeworks.IntVector_rbegin(self) - def rend(self): return _openframeworks.IntVector_rend(self) - def pop_back(self): return _openframeworks.IntVector_pop_back(self) - def erase(self, *args): return _openframeworks.IntVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.IntVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.IntVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.IntVector___bool__(self) + + def __len__(self): + return _openframeworks.IntVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.IntVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.IntVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.IntVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.IntVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.IntVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.IntVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.IntVector_pop(self) + + def append(self, x): + return _openframeworks.IntVector_append(self, x) + + def empty(self): + return _openframeworks.IntVector_empty(self) + + def size(self): + return _openframeworks.IntVector_size(self) + + def swap(self, v): + return _openframeworks.IntVector_swap(self, v) + + def begin(self): + return _openframeworks.IntVector_begin(self) + + def end(self): + return _openframeworks.IntVector_end(self) + + def rbegin(self): + return _openframeworks.IntVector_rbegin(self) + + def rend(self): + return _openframeworks.IntVector_rend(self) + + def clear(self): + return _openframeworks.IntVector_clear(self) + + def get_allocator(self): + return _openframeworks.IntVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.IntVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.IntVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_IntVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.IntVector_push_back(self, *args) - def front(self): return _openframeworks.IntVector_front(self) - def back(self): return _openframeworks.IntVector_back(self) - def assign(self, *args): return _openframeworks.IntVector_assign(self, *args) - def resize(self, *args): return _openframeworks.IntVector_resize(self, *args) - def insert(self, *args): return _openframeworks.IntVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.IntVector_reserve(self, *args) - def capacity(self): return _openframeworks.IntVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.IntVector_push_back(self, x) + + def front(self): + return _openframeworks.IntVector_front(self) + + def back(self): + return _openframeworks.IntVector_back(self) + + def assign(self, n, x): + return _openframeworks.IntVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.IntVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.IntVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.IntVector_reserve(self, n) + + def capacity(self): + return _openframeworks.IntVector_capacity(self) __swig_destroy__ = _openframeworks.delete_IntVector - __del__ = lambda self : None; + __del__ = lambda self: None IntVector_swigregister = _openframeworks.IntVector_swigregister IntVector_swigregister(IntVector) @@ -149,44 +273,110 @@ class FloatVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, FloatVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.FloatVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.FloatVector___nonzero__(self) - def __bool__(self): return _openframeworks.FloatVector___bool__(self) - def __len__(self): return _openframeworks.FloatVector___len__(self) - def pop(self): return _openframeworks.FloatVector_pop(self) - def __getslice__(self, *args): return _openframeworks.FloatVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.FloatVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.FloatVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.FloatVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.FloatVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.FloatVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.FloatVector_append(self, *args) - def empty(self): return _openframeworks.FloatVector_empty(self) - def size(self): return _openframeworks.FloatVector_size(self) - def clear(self): return _openframeworks.FloatVector_clear(self) - def swap(self, *args): return _openframeworks.FloatVector_swap(self, *args) - def get_allocator(self): return _openframeworks.FloatVector_get_allocator(self) - def begin(self): return _openframeworks.FloatVector_begin(self) - def end(self): return _openframeworks.FloatVector_end(self) - def rbegin(self): return _openframeworks.FloatVector_rbegin(self) - def rend(self): return _openframeworks.FloatVector_rend(self) - def pop_back(self): return _openframeworks.FloatVector_pop_back(self) - def erase(self, *args): return _openframeworks.FloatVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.FloatVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.FloatVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.FloatVector___bool__(self) + + def __len__(self): + return _openframeworks.FloatVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.FloatVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.FloatVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.FloatVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.FloatVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.FloatVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.FloatVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.FloatVector_pop(self) + + def append(self, x): + return _openframeworks.FloatVector_append(self, x) + + def empty(self): + return _openframeworks.FloatVector_empty(self) + + def size(self): + return _openframeworks.FloatVector_size(self) + + def swap(self, v): + return _openframeworks.FloatVector_swap(self, v) + + def begin(self): + return _openframeworks.FloatVector_begin(self) + + def end(self): + return _openframeworks.FloatVector_end(self) + + def rbegin(self): + return _openframeworks.FloatVector_rbegin(self) + + def rend(self): + return _openframeworks.FloatVector_rend(self) + + def clear(self): + return _openframeworks.FloatVector_clear(self) + + def get_allocator(self): + return _openframeworks.FloatVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.FloatVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.FloatVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_FloatVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.FloatVector_push_back(self, *args) - def front(self): return _openframeworks.FloatVector_front(self) - def back(self): return _openframeworks.FloatVector_back(self) - def assign(self, *args): return _openframeworks.FloatVector_assign(self, *args) - def resize(self, *args): return _openframeworks.FloatVector_resize(self, *args) - def insert(self, *args): return _openframeworks.FloatVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.FloatVector_reserve(self, *args) - def capacity(self): return _openframeworks.FloatVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.FloatVector_push_back(self, x) + + def front(self): + return _openframeworks.FloatVector_front(self) + + def back(self): + return _openframeworks.FloatVector_back(self) + + def assign(self, n, x): + return _openframeworks.FloatVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.FloatVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.FloatVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.FloatVector_reserve(self, n) + + def capacity(self): + return _openframeworks.FloatVector_capacity(self) __swig_destroy__ = _openframeworks.delete_FloatVector - __del__ = lambda self : None; + __del__ = lambda self: None FloatVector_swigregister = _openframeworks.FloatVector_swigregister FloatVector_swigregister(FloatVector) @@ -196,201 +386,631 @@ class StringVector(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, StringVector, name) __repr__ = _swig_repr - def iterator(self): return _openframeworks.StringVector_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _openframeworks.StringVector___nonzero__(self) - def __bool__(self): return _openframeworks.StringVector___bool__(self) - def __len__(self): return _openframeworks.StringVector___len__(self) - def pop(self): return _openframeworks.StringVector_pop(self) - def __getslice__(self, *args): return _openframeworks.StringVector___getslice__(self, *args) - def __setslice__(self, *args): return _openframeworks.StringVector___setslice__(self, *args) - def __delslice__(self, *args): return _openframeworks.StringVector___delslice__(self, *args) - def __delitem__(self, *args): return _openframeworks.StringVector___delitem__(self, *args) - def __getitem__(self, *args): return _openframeworks.StringVector___getitem__(self, *args) - def __setitem__(self, *args): return _openframeworks.StringVector___setitem__(self, *args) - def append(self, *args): return _openframeworks.StringVector_append(self, *args) - def empty(self): return _openframeworks.StringVector_empty(self) - def size(self): return _openframeworks.StringVector_size(self) - def clear(self): return _openframeworks.StringVector_clear(self) - def swap(self, *args): return _openframeworks.StringVector_swap(self, *args) - def get_allocator(self): return _openframeworks.StringVector_get_allocator(self) - def begin(self): return _openframeworks.StringVector_begin(self) - def end(self): return _openframeworks.StringVector_end(self) - def rbegin(self): return _openframeworks.StringVector_rbegin(self) - def rend(self): return _openframeworks.StringVector_rend(self) - def pop_back(self): return _openframeworks.StringVector_pop_back(self) - def erase(self, *args): return _openframeworks.StringVector_erase(self, *args) - def __init__(self, *args): + + def iterator(self): + return _openframeworks.StringVector_iterator(self) + def __iter__(self): + return self.iterator() + + def __nonzero__(self): + return _openframeworks.StringVector___nonzero__(self) + + def __bool__(self): + return _openframeworks.StringVector___bool__(self) + + def __len__(self): + return _openframeworks.StringVector___len__(self) + + def __getslice__(self, i, j): + return _openframeworks.StringVector___getslice__(self, i, j) + + def __setslice__(self, *args): + return _openframeworks.StringVector___setslice__(self, *args) + + def __delslice__(self, i, j): + return _openframeworks.StringVector___delslice__(self, i, j) + + def __delitem__(self, *args): + return _openframeworks.StringVector___delitem__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.StringVector___getitem__(self, *args) + + def __setitem__(self, *args): + return _openframeworks.StringVector___setitem__(self, *args) + + def pop(self): + return _openframeworks.StringVector_pop(self) + + def append(self, x): + return _openframeworks.StringVector_append(self, x) + + def empty(self): + return _openframeworks.StringVector_empty(self) + + def size(self): + return _openframeworks.StringVector_size(self) + + def swap(self, v): + return _openframeworks.StringVector_swap(self, v) + + def begin(self): + return _openframeworks.StringVector_begin(self) + + def end(self): + return _openframeworks.StringVector_end(self) + + def rbegin(self): + return _openframeworks.StringVector_rbegin(self) + + def rend(self): + return _openframeworks.StringVector_rend(self) + + def clear(self): + return _openframeworks.StringVector_clear(self) + + def get_allocator(self): + return _openframeworks.StringVector_get_allocator(self) + + def pop_back(self): + return _openframeworks.StringVector_pop_back(self) + + def erase(self, *args): + return _openframeworks.StringVector_erase(self, *args) + + def __init__(self, *args): this = _openframeworks.new_StringVector(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _openframeworks.StringVector_push_back(self, *args) - def front(self): return _openframeworks.StringVector_front(self) - def back(self): return _openframeworks.StringVector_back(self) - def assign(self, *args): return _openframeworks.StringVector_assign(self, *args) - def resize(self, *args): return _openframeworks.StringVector_resize(self, *args) - def insert(self, *args): return _openframeworks.StringVector_insert(self, *args) - def reserve(self, *args): return _openframeworks.StringVector_reserve(self, *args) - def capacity(self): return _openframeworks.StringVector_capacity(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def push_back(self, x): + return _openframeworks.StringVector_push_back(self, x) + + def front(self): + return _openframeworks.StringVector_front(self) + + def back(self): + return _openframeworks.StringVector_back(self) + + def assign(self, n, x): + return _openframeworks.StringVector_assign(self, n, x) + + def resize(self, *args): + return _openframeworks.StringVector_resize(self, *args) + + def insert(self, *args): + return _openframeworks.StringVector_insert(self, *args) + + def reserve(self, n): + return _openframeworks.StringVector_reserve(self, n) + + def capacity(self): + return _openframeworks.StringVector_capacity(self) __swig_destroy__ = _openframeworks.delete_StringVector - __del__ = lambda self : None; + __del__ = lambda self: None StringVector_swigregister = _openframeworks.StringVector_swigregister StringVector_swigregister(StringVector) + +_openframeworks.OF_VERSION_MAJOR_swigconstant(_openframeworks) OF_VERSION_MAJOR = _openframeworks.OF_VERSION_MAJOR + +_openframeworks.OF_VERSION_MINOR_swigconstant(_openframeworks) OF_VERSION_MINOR = _openframeworks.OF_VERSION_MINOR + +_openframeworks.OF_VERSION_PATCH_swigconstant(_openframeworks) OF_VERSION_PATCH = _openframeworks.OF_VERSION_PATCH + +_openframeworks.OF_VERSION_PRE_RELEASE_swigconstant(_openframeworks) +OF_VERSION_PRE_RELEASE = _openframeworks.OF_VERSION_PRE_RELEASE + +_openframeworks.OF_LOOP_NONE_swigconstant(_openframeworks) OF_LOOP_NONE = _openframeworks.OF_LOOP_NONE + +_openframeworks.OF_LOOP_PALINDROME_swigconstant(_openframeworks) OF_LOOP_PALINDROME = _openframeworks.OF_LOOP_PALINDROME + +_openframeworks.OF_LOOP_NORMAL_swigconstant(_openframeworks) OF_LOOP_NORMAL = _openframeworks.OF_LOOP_NORMAL + +_openframeworks.OF_TARGET_OSX_swigconstant(_openframeworks) OF_TARGET_OSX = _openframeworks.OF_TARGET_OSX -OF_TARGET_WINGCC = _openframeworks.OF_TARGET_WINGCC + +_openframeworks.OF_TARGET_MINGW_swigconstant(_openframeworks) +OF_TARGET_MINGW = _openframeworks.OF_TARGET_MINGW + +_openframeworks.OF_TARGET_WINVS_swigconstant(_openframeworks) OF_TARGET_WINVS = _openframeworks.OF_TARGET_WINVS + +_openframeworks.OF_TARGET_IOS_swigconstant(_openframeworks) OF_TARGET_IOS = _openframeworks.OF_TARGET_IOS + +_openframeworks.OF_TARGET_ANDROID_swigconstant(_openframeworks) OF_TARGET_ANDROID = _openframeworks.OF_TARGET_ANDROID + +_openframeworks.OF_TARGET_LINUX_swigconstant(_openframeworks) OF_TARGET_LINUX = _openframeworks.OF_TARGET_LINUX + +_openframeworks.OF_TARGET_LINUX64_swigconstant(_openframeworks) OF_TARGET_LINUX64 = _openframeworks.OF_TARGET_LINUX64 + +_openframeworks.OF_TARGET_LINUXARMV6L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV6L = _openframeworks.OF_TARGET_LINUXARMV6L + +_openframeworks.OF_TARGET_LINUXARMV7L_swigconstant(_openframeworks) OF_TARGET_LINUXARMV7L = _openframeworks.OF_TARGET_LINUXARMV7L + +_openframeworks.OF_TARGET_EMSCRIPTEN_swigconstant(_openframeworks) +OF_TARGET_EMSCRIPTEN = _openframeworks.OF_TARGET_EMSCRIPTEN + +_openframeworks.B14400_swigconstant(_openframeworks) B14400 = _openframeworks.B14400 + +_openframeworks.B28800_swigconstant(_openframeworks) B28800 = _openframeworks.B28800 + +_openframeworks.HAS_TLS_swigconstant(_openframeworks) +HAS_TLS = _openframeworks.HAS_TLS + +_openframeworks.OF_SERIAL_NO_DATA_swigconstant(_openframeworks) OF_SERIAL_NO_DATA = _openframeworks.OF_SERIAL_NO_DATA + +_openframeworks.OF_SERIAL_ERROR_swigconstant(_openframeworks) OF_SERIAL_ERROR = _openframeworks.OF_SERIAL_ERROR + +_openframeworks.PI_swigconstant(_openframeworks) PI = _openframeworks.PI + +_openframeworks.TWO_PI_swigconstant(_openframeworks) TWO_PI = _openframeworks.TWO_PI + +_openframeworks.M_TWO_PI_swigconstant(_openframeworks) M_TWO_PI = _openframeworks.M_TWO_PI + +_openframeworks.FOUR_PI_swigconstant(_openframeworks) FOUR_PI = _openframeworks.FOUR_PI + +_openframeworks.HALF_PI_swigconstant(_openframeworks) HALF_PI = _openframeworks.HALF_PI + +_openframeworks.DEG_TO_RAD_swigconstant(_openframeworks) DEG_TO_RAD = _openframeworks.DEG_TO_RAD + +_openframeworks.RAD_TO_DEG_swigconstant(_openframeworks) RAD_TO_DEG = _openframeworks.RAD_TO_DEG + +_openframeworks.OF_OUTLINE_swigconstant(_openframeworks) OF_OUTLINE = _openframeworks.OF_OUTLINE + +_openframeworks.OF_FILLED_swigconstant(_openframeworks) OF_FILLED = _openframeworks.OF_FILLED + +_openframeworks.OF_WINDOW_swigconstant(_openframeworks) OF_WINDOW = _openframeworks.OF_WINDOW + +_openframeworks.OF_FULLSCREEN_swigconstant(_openframeworks) OF_FULLSCREEN = _openframeworks.OF_FULLSCREEN + +_openframeworks.OF_GAME_MODE_swigconstant(_openframeworks) OF_GAME_MODE = _openframeworks.OF_GAME_MODE + +_openframeworks.OF_ASPECT_RATIO_IGNORE_swigconstant(_openframeworks) OF_ASPECT_RATIO_IGNORE = _openframeworks.OF_ASPECT_RATIO_IGNORE + +_openframeworks.OF_ASPECT_RATIO_KEEP_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP = _openframeworks.OF_ASPECT_RATIO_KEEP + +_openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant(_openframeworks) OF_ASPECT_RATIO_KEEP_BY_EXPANDING = _openframeworks.OF_ASPECT_RATIO_KEEP_BY_EXPANDING + +_openframeworks.OF_ALIGN_VERT_IGNORE_swigconstant(_openframeworks) OF_ALIGN_VERT_IGNORE = _openframeworks.OF_ALIGN_VERT_IGNORE + +_openframeworks.OF_ALIGN_VERT_TOP_swigconstant(_openframeworks) OF_ALIGN_VERT_TOP = _openframeworks.OF_ALIGN_VERT_TOP + +_openframeworks.OF_ALIGN_VERT_BOTTOM_swigconstant(_openframeworks) OF_ALIGN_VERT_BOTTOM = _openframeworks.OF_ALIGN_VERT_BOTTOM + +_openframeworks.OF_ALIGN_VERT_CENTER_swigconstant(_openframeworks) OF_ALIGN_VERT_CENTER = _openframeworks.OF_ALIGN_VERT_CENTER + +_openframeworks.OF_ALIGN_HORZ_IGNORE_swigconstant(_openframeworks) OF_ALIGN_HORZ_IGNORE = _openframeworks.OF_ALIGN_HORZ_IGNORE + +_openframeworks.OF_ALIGN_HORZ_LEFT_swigconstant(_openframeworks) OF_ALIGN_HORZ_LEFT = _openframeworks.OF_ALIGN_HORZ_LEFT + +_openframeworks.OF_ALIGN_HORZ_RIGHT_swigconstant(_openframeworks) OF_ALIGN_HORZ_RIGHT = _openframeworks.OF_ALIGN_HORZ_RIGHT + +_openframeworks.OF_ALIGN_HORZ_CENTER_swigconstant(_openframeworks) OF_ALIGN_HORZ_CENTER = _openframeworks.OF_ALIGN_HORZ_CENTER + +_openframeworks.OF_RECTMODE_CORNER_swigconstant(_openframeworks) OF_RECTMODE_CORNER = _openframeworks.OF_RECTMODE_CORNER + +_openframeworks.OF_RECTMODE_CENTER_swigconstant(_openframeworks) OF_RECTMODE_CENTER = _openframeworks.OF_RECTMODE_CENTER + +_openframeworks.OF_SCALEMODE_FIT_swigconstant(_openframeworks) OF_SCALEMODE_FIT = _openframeworks.OF_SCALEMODE_FIT + +_openframeworks.OF_SCALEMODE_FILL_swigconstant(_openframeworks) OF_SCALEMODE_FILL = _openframeworks.OF_SCALEMODE_FILL + +_openframeworks.OF_SCALEMODE_CENTER_swigconstant(_openframeworks) OF_SCALEMODE_CENTER = _openframeworks.OF_SCALEMODE_CENTER + +_openframeworks.OF_SCALEMODE_STRETCH_TO_FILL_swigconstant(_openframeworks) OF_SCALEMODE_STRETCH_TO_FILL = _openframeworks.OF_SCALEMODE_STRETCH_TO_FILL + +_openframeworks.OF_IMAGE_GRAYSCALE_swigconstant(_openframeworks) OF_IMAGE_GRAYSCALE = _openframeworks.OF_IMAGE_GRAYSCALE + +_openframeworks.OF_IMAGE_COLOR_swigconstant(_openframeworks) OF_IMAGE_COLOR = _openframeworks.OF_IMAGE_COLOR + +_openframeworks.OF_IMAGE_COLOR_ALPHA_swigconstant(_openframeworks) OF_IMAGE_COLOR_ALPHA = _openframeworks.OF_IMAGE_COLOR_ALPHA + +_openframeworks.OF_IMAGE_UNDEFINED_swigconstant(_openframeworks) OF_IMAGE_UNDEFINED = _openframeworks.OF_IMAGE_UNDEFINED -OF_PIXELS_MONO = _openframeworks.OF_PIXELS_MONO -OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB -OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA -OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA -OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 -OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_MAX_STYLE_HISTORY_swigconstant(_openframeworks) OF_MAX_STYLE_HISTORY = _openframeworks.OF_MAX_STYLE_HISTORY + +_openframeworks.OF_MAX_VIEWPORT_HISTORY_swigconstant(_openframeworks) OF_MAX_VIEWPORT_HISTORY = _openframeworks.OF_MAX_VIEWPORT_HISTORY + +_openframeworks.OF_MAX_CIRCLE_PTS_swigconstant(_openframeworks) OF_MAX_CIRCLE_PTS = _openframeworks.OF_MAX_CIRCLE_PTS + +_openframeworks.OF_BLENDMODE_DISABLED_swigconstant(_openframeworks) OF_BLENDMODE_DISABLED = _openframeworks.OF_BLENDMODE_DISABLED + +_openframeworks.OF_BLENDMODE_ALPHA_swigconstant(_openframeworks) OF_BLENDMODE_ALPHA = _openframeworks.OF_BLENDMODE_ALPHA + +_openframeworks.OF_BLENDMODE_ADD_swigconstant(_openframeworks) OF_BLENDMODE_ADD = _openframeworks.OF_BLENDMODE_ADD + +_openframeworks.OF_BLENDMODE_SUBTRACT_swigconstant(_openframeworks) OF_BLENDMODE_SUBTRACT = _openframeworks.OF_BLENDMODE_SUBTRACT + +_openframeworks.OF_BLENDMODE_MULTIPLY_swigconstant(_openframeworks) OF_BLENDMODE_MULTIPLY = _openframeworks.OF_BLENDMODE_MULTIPLY + +_openframeworks.OF_BLENDMODE_SCREEN_swigconstant(_openframeworks) OF_BLENDMODE_SCREEN = _openframeworks.OF_BLENDMODE_SCREEN + +_openframeworks.OF_ORIENTATION_DEFAULT_swigconstant(_openframeworks) OF_ORIENTATION_DEFAULT = _openframeworks.OF_ORIENTATION_DEFAULT + +_openframeworks.OF_ORIENTATION_180_swigconstant(_openframeworks) OF_ORIENTATION_180 = _openframeworks.OF_ORIENTATION_180 + +_openframeworks.OF_ORIENTATION_90_LEFT_swigconstant(_openframeworks) OF_ORIENTATION_90_LEFT = _openframeworks.OF_ORIENTATION_90_LEFT + +_openframeworks.OF_ORIENTATION_90_RIGHT_swigconstant(_openframeworks) OF_ORIENTATION_90_RIGHT = _openframeworks.OF_ORIENTATION_90_RIGHT + +_openframeworks.OF_ORIENTATION_UNKNOWN_swigconstant(_openframeworks) OF_ORIENTATION_UNKNOWN = _openframeworks.OF_ORIENTATION_UNKNOWN + +_openframeworks.OF_GRADIENT_LINEAR_swigconstant(_openframeworks) OF_GRADIENT_LINEAR = _openframeworks.OF_GRADIENT_LINEAR + +_openframeworks.OF_GRADIENT_CIRCULAR_swigconstant(_openframeworks) OF_GRADIENT_CIRCULAR = _openframeworks.OF_GRADIENT_CIRCULAR + +_openframeworks.OF_GRADIENT_BAR_swigconstant(_openframeworks) OF_GRADIENT_BAR = _openframeworks.OF_GRADIENT_BAR + +_openframeworks.OF_POLY_WINDING_ODD_swigconstant(_openframeworks) OF_POLY_WINDING_ODD = _openframeworks.OF_POLY_WINDING_ODD + +_openframeworks.OF_POLY_WINDING_NONZERO_swigconstant(_openframeworks) OF_POLY_WINDING_NONZERO = _openframeworks.OF_POLY_WINDING_NONZERO + +_openframeworks.OF_POLY_WINDING_POSITIVE_swigconstant(_openframeworks) OF_POLY_WINDING_POSITIVE = _openframeworks.OF_POLY_WINDING_POSITIVE + +_openframeworks.OF_POLY_WINDING_NEGATIVE_swigconstant(_openframeworks) OF_POLY_WINDING_NEGATIVE = _openframeworks.OF_POLY_WINDING_NEGATIVE + +_openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant(_openframeworks) OF_POLY_WINDING_ABS_GEQ_TWO = _openframeworks.OF_POLY_WINDING_ABS_GEQ_TWO + +_openframeworks.OF_CLOSE_swigconstant(_openframeworks) OF_CLOSE = _openframeworks.OF_CLOSE + +_openframeworks.OF_LEFT_HANDED_swigconstant(_openframeworks) OF_LEFT_HANDED = _openframeworks.OF_LEFT_HANDED + +_openframeworks.OF_RIGHT_HANDED_swigconstant(_openframeworks) OF_RIGHT_HANDED = _openframeworks.OF_RIGHT_HANDED + +_openframeworks.OF_MATRIX_MODELVIEW_swigconstant(_openframeworks) OF_MATRIX_MODELVIEW = _openframeworks.OF_MATRIX_MODELVIEW + +_openframeworks.OF_MATRIX_PROJECTION_swigconstant(_openframeworks) OF_MATRIX_PROJECTION = _openframeworks.OF_MATRIX_PROJECTION + +_openframeworks.OF_MATRIX_TEXTURE_swigconstant(_openframeworks) OF_MATRIX_TEXTURE = _openframeworks.OF_MATRIX_TEXTURE + +_openframeworks.OF_KEY_MODIFIER_swigconstant(_openframeworks) OF_KEY_MODIFIER = _openframeworks.OF_KEY_MODIFIER + +_openframeworks.OF_KEY_RETURN_swigconstant(_openframeworks) OF_KEY_RETURN = _openframeworks.OF_KEY_RETURN + +_openframeworks.OF_KEY_ESC_swigconstant(_openframeworks) OF_KEY_ESC = _openframeworks.OF_KEY_ESC + +_openframeworks.OF_KEY_TAB_swigconstant(_openframeworks) OF_KEY_TAB = _openframeworks.OF_KEY_TAB + +_openframeworks.OF_KEY_BACKSPACE_swigconstant(_openframeworks) OF_KEY_BACKSPACE = _openframeworks.OF_KEY_BACKSPACE + +_openframeworks.OF_KEY_DEL_swigconstant(_openframeworks) OF_KEY_DEL = _openframeworks.OF_KEY_DEL + +_openframeworks.OF_KEY_F1_swigconstant(_openframeworks) OF_KEY_F1 = _openframeworks.OF_KEY_F1 + +_openframeworks.OF_KEY_F2_swigconstant(_openframeworks) OF_KEY_F2 = _openframeworks.OF_KEY_F2 + +_openframeworks.OF_KEY_F3_swigconstant(_openframeworks) OF_KEY_F3 = _openframeworks.OF_KEY_F3 + +_openframeworks.OF_KEY_F4_swigconstant(_openframeworks) OF_KEY_F4 = _openframeworks.OF_KEY_F4 + +_openframeworks.OF_KEY_F5_swigconstant(_openframeworks) OF_KEY_F5 = _openframeworks.OF_KEY_F5 + +_openframeworks.OF_KEY_F6_swigconstant(_openframeworks) OF_KEY_F6 = _openframeworks.OF_KEY_F6 + +_openframeworks.OF_KEY_F7_swigconstant(_openframeworks) OF_KEY_F7 = _openframeworks.OF_KEY_F7 + +_openframeworks.OF_KEY_F8_swigconstant(_openframeworks) OF_KEY_F8 = _openframeworks.OF_KEY_F8 + +_openframeworks.OF_KEY_F9_swigconstant(_openframeworks) OF_KEY_F9 = _openframeworks.OF_KEY_F9 + +_openframeworks.OF_KEY_F10_swigconstant(_openframeworks) OF_KEY_F10 = _openframeworks.OF_KEY_F10 + +_openframeworks.OF_KEY_F11_swigconstant(_openframeworks) OF_KEY_F11 = _openframeworks.OF_KEY_F11 + +_openframeworks.OF_KEY_F12_swigconstant(_openframeworks) OF_KEY_F12 = _openframeworks.OF_KEY_F12 + +_openframeworks.OF_KEY_LEFT_swigconstant(_openframeworks) OF_KEY_LEFT = _openframeworks.OF_KEY_LEFT + +_openframeworks.OF_KEY_UP_swigconstant(_openframeworks) OF_KEY_UP = _openframeworks.OF_KEY_UP + +_openframeworks.OF_KEY_RIGHT_swigconstant(_openframeworks) OF_KEY_RIGHT = _openframeworks.OF_KEY_RIGHT + +_openframeworks.OF_KEY_DOWN_swigconstant(_openframeworks) OF_KEY_DOWN = _openframeworks.OF_KEY_DOWN + +_openframeworks.OF_KEY_PAGE_UP_swigconstant(_openframeworks) OF_KEY_PAGE_UP = _openframeworks.OF_KEY_PAGE_UP + +_openframeworks.OF_KEY_PAGE_DOWN_swigconstant(_openframeworks) OF_KEY_PAGE_DOWN = _openframeworks.OF_KEY_PAGE_DOWN + +_openframeworks.OF_KEY_HOME_swigconstant(_openframeworks) OF_KEY_HOME = _openframeworks.OF_KEY_HOME + +_openframeworks.OF_KEY_END_swigconstant(_openframeworks) OF_KEY_END = _openframeworks.OF_KEY_END + +_openframeworks.OF_KEY_INSERT_swigconstant(_openframeworks) OF_KEY_INSERT = _openframeworks.OF_KEY_INSERT + +_openframeworks.OF_KEY_CONTROL_swigconstant(_openframeworks) OF_KEY_CONTROL = _openframeworks.OF_KEY_CONTROL + +_openframeworks.OF_KEY_ALT_swigconstant(_openframeworks) OF_KEY_ALT = _openframeworks.OF_KEY_ALT + +_openframeworks.OF_KEY_SHIFT_swigconstant(_openframeworks) OF_KEY_SHIFT = _openframeworks.OF_KEY_SHIFT + +_openframeworks.OF_KEY_SUPER_swigconstant(_openframeworks) OF_KEY_SUPER = _openframeworks.OF_KEY_SUPER + +_openframeworks.OF_KEY_LEFT_SHIFT_swigconstant(_openframeworks) OF_KEY_LEFT_SHIFT = _openframeworks.OF_KEY_LEFT_SHIFT + +_openframeworks.OF_KEY_RIGHT_SHIFT_swigconstant(_openframeworks) OF_KEY_RIGHT_SHIFT = _openframeworks.OF_KEY_RIGHT_SHIFT + +_openframeworks.OF_KEY_LEFT_CONTROL_swigconstant(_openframeworks) OF_KEY_LEFT_CONTROL = _openframeworks.OF_KEY_LEFT_CONTROL + +_openframeworks.OF_KEY_RIGHT_CONTROL_swigconstant(_openframeworks) OF_KEY_RIGHT_CONTROL = _openframeworks.OF_KEY_RIGHT_CONTROL + +_openframeworks.OF_KEY_LEFT_ALT_swigconstant(_openframeworks) OF_KEY_LEFT_ALT = _openframeworks.OF_KEY_LEFT_ALT + +_openframeworks.OF_KEY_RIGHT_ALT_swigconstant(_openframeworks) OF_KEY_RIGHT_ALT = _openframeworks.OF_KEY_RIGHT_ALT + +_openframeworks.OF_KEY_LEFT_SUPER_swigconstant(_openframeworks) OF_KEY_LEFT_SUPER = _openframeworks.OF_KEY_LEFT_SUPER + +_openframeworks.OF_KEY_RIGHT_SUPER_swigconstant(_openframeworks) OF_KEY_RIGHT_SUPER = _openframeworks.OF_KEY_RIGHT_SUPER + +_openframeworks.OF_KEY_LEFT_COMMAND_swigconstant(_openframeworks) OF_KEY_LEFT_COMMAND = _openframeworks.OF_KEY_LEFT_COMMAND + +_openframeworks.OF_KEY_RIGHT_COMMAND_swigconstant(_openframeworks) OF_KEY_RIGHT_COMMAND = _openframeworks.OF_KEY_RIGHT_COMMAND + +_openframeworks.OF_MOUSE_BUTTON_1_swigconstant(_openframeworks) OF_MOUSE_BUTTON_1 = _openframeworks.OF_MOUSE_BUTTON_1 + +_openframeworks.OF_MOUSE_BUTTON_2_swigconstant(_openframeworks) OF_MOUSE_BUTTON_2 = _openframeworks.OF_MOUSE_BUTTON_2 + +_openframeworks.OF_MOUSE_BUTTON_3_swigconstant(_openframeworks) OF_MOUSE_BUTTON_3 = _openframeworks.OF_MOUSE_BUTTON_3 + +_openframeworks.OF_MOUSE_BUTTON_4_swigconstant(_openframeworks) OF_MOUSE_BUTTON_4 = _openframeworks.OF_MOUSE_BUTTON_4 + +_openframeworks.OF_MOUSE_BUTTON_5_swigconstant(_openframeworks) OF_MOUSE_BUTTON_5 = _openframeworks.OF_MOUSE_BUTTON_5 + +_openframeworks.OF_MOUSE_BUTTON_6_swigconstant(_openframeworks) OF_MOUSE_BUTTON_6 = _openframeworks.OF_MOUSE_BUTTON_6 + +_openframeworks.OF_MOUSE_BUTTON_7_swigconstant(_openframeworks) OF_MOUSE_BUTTON_7 = _openframeworks.OF_MOUSE_BUTTON_7 + +_openframeworks.OF_MOUSE_BUTTON_8_swigconstant(_openframeworks) OF_MOUSE_BUTTON_8 = _openframeworks.OF_MOUSE_BUTTON_8 + +_openframeworks.OF_MOUSE_BUTTON_LAST_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LAST = _openframeworks.OF_MOUSE_BUTTON_LAST + +_openframeworks.OF_MOUSE_BUTTON_LEFT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_LEFT = _openframeworks.OF_MOUSE_BUTTON_LEFT + +_openframeworks.OF_MOUSE_BUTTON_MIDDLE_swigconstant(_openframeworks) OF_MOUSE_BUTTON_MIDDLE = _openframeworks.OF_MOUSE_BUTTON_MIDDLE + +_openframeworks.OF_MOUSE_BUTTON_RIGHT_swigconstant(_openframeworks) OF_MOUSE_BUTTON_RIGHT = _openframeworks.OF_MOUSE_BUTTON_RIGHT + +_openframeworks.OF_CONSOLE_COLOR_RESTORE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RESTORE = _openframeworks.OF_CONSOLE_COLOR_RESTORE + +_openframeworks.OF_CONSOLE_COLOR_BLACK_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLACK = _openframeworks.OF_CONSOLE_COLOR_BLACK + +_openframeworks.OF_CONSOLE_COLOR_RED_swigconstant(_openframeworks) OF_CONSOLE_COLOR_RED = _openframeworks.OF_CONSOLE_COLOR_RED + +_openframeworks.OF_CONSOLE_COLOR_GREEN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_GREEN = _openframeworks.OF_CONSOLE_COLOR_GREEN + +_openframeworks.OF_CONSOLE_COLOR_YELLOW_swigconstant(_openframeworks) OF_CONSOLE_COLOR_YELLOW = _openframeworks.OF_CONSOLE_COLOR_YELLOW + +_openframeworks.OF_CONSOLE_COLOR_BLUE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_BLUE = _openframeworks.OF_CONSOLE_COLOR_BLUE + +_openframeworks.OF_CONSOLE_COLOR_PURPLE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_PURPLE = _openframeworks.OF_CONSOLE_COLOR_PURPLE + +_openframeworks.OF_CONSOLE_COLOR_CYAN_swigconstant(_openframeworks) OF_CONSOLE_COLOR_CYAN = _openframeworks.OF_CONSOLE_COLOR_CYAN + +_openframeworks.OF_CONSOLE_COLOR_WHITE_swigconstant(_openframeworks) OF_CONSOLE_COLOR_WHITE = _openframeworks.OF_CONSOLE_COLOR_WHITE + +_openframeworks.OF_PIXELS_GRAY_swigconstant(_openframeworks) +OF_PIXELS_GRAY = _openframeworks.OF_PIXELS_GRAY + +_openframeworks.OF_PIXELS_GRAY_ALPHA_swigconstant(_openframeworks) +OF_PIXELS_GRAY_ALPHA = _openframeworks.OF_PIXELS_GRAY_ALPHA + +_openframeworks.OF_PIXELS_RGB_swigconstant(_openframeworks) +OF_PIXELS_RGB = _openframeworks.OF_PIXELS_RGB + +_openframeworks.OF_PIXELS_BGR_swigconstant(_openframeworks) +OF_PIXELS_BGR = _openframeworks.OF_PIXELS_BGR + +_openframeworks.OF_PIXELS_RGBA_swigconstant(_openframeworks) +OF_PIXELS_RGBA = _openframeworks.OF_PIXELS_RGBA + +_openframeworks.OF_PIXELS_BGRA_swigconstant(_openframeworks) +OF_PIXELS_BGRA = _openframeworks.OF_PIXELS_BGRA + +_openframeworks.OF_PIXELS_RGB565_swigconstant(_openframeworks) +OF_PIXELS_RGB565 = _openframeworks.OF_PIXELS_RGB565 + +_openframeworks.OF_PIXELS_NV12_swigconstant(_openframeworks) +OF_PIXELS_NV12 = _openframeworks.OF_PIXELS_NV12 + +_openframeworks.OF_PIXELS_NV21_swigconstant(_openframeworks) +OF_PIXELS_NV21 = _openframeworks.OF_PIXELS_NV21 + +_openframeworks.OF_PIXELS_YV12_swigconstant(_openframeworks) +OF_PIXELS_YV12 = _openframeworks.OF_PIXELS_YV12 + +_openframeworks.OF_PIXELS_I420_swigconstant(_openframeworks) +OF_PIXELS_I420 = _openframeworks.OF_PIXELS_I420 + +_openframeworks.OF_PIXELS_YUY2_swigconstant(_openframeworks) +OF_PIXELS_YUY2 = _openframeworks.OF_PIXELS_YUY2 + +_openframeworks.OF_PIXELS_UYVY_swigconstant(_openframeworks) +OF_PIXELS_UYVY = _openframeworks.OF_PIXELS_UYVY + +_openframeworks.OF_PIXELS_Y_swigconstant(_openframeworks) +OF_PIXELS_Y = _openframeworks.OF_PIXELS_Y + +_openframeworks.OF_PIXELS_U_swigconstant(_openframeworks) +OF_PIXELS_U = _openframeworks.OF_PIXELS_U + +_openframeworks.OF_PIXELS_V_swigconstant(_openframeworks) +OF_PIXELS_V = _openframeworks.OF_PIXELS_V + +_openframeworks.OF_PIXELS_UV_swigconstant(_openframeworks) +OF_PIXELS_UV = _openframeworks.OF_PIXELS_UV + +_openframeworks.OF_PIXELS_VU_swigconstant(_openframeworks) +OF_PIXELS_VU = _openframeworks.OF_PIXELS_VU + +_openframeworks.OF_PIXELS_NUM_FORMATS_swigconstant(_openframeworks) +OF_PIXELS_NUM_FORMATS = _openframeworks.OF_PIXELS_NUM_FORMATS + +_openframeworks.OF_PIXELS_UNKNOWN_swigconstant(_openframeworks) +OF_PIXELS_UNKNOWN = _openframeworks.OF_PIXELS_UNKNOWN + +_openframeworks.OF_PIXELS_NATIVE_swigconstant(_openframeworks) +OF_PIXELS_NATIVE = _openframeworks.OF_PIXELS_NATIVE + +_openframeworks.OF_BITMAPMODE_SIMPLE_swigconstant(_openframeworks) OF_BITMAPMODE_SIMPLE = _openframeworks.OF_BITMAPMODE_SIMPLE + +_openframeworks.OF_BITMAPMODE_SCREEN_swigconstant(_openframeworks) OF_BITMAPMODE_SCREEN = _openframeworks.OF_BITMAPMODE_SCREEN + +_openframeworks.OF_BITMAPMODE_VIEWPORT_swigconstant(_openframeworks) OF_BITMAPMODE_VIEWPORT = _openframeworks.OF_BITMAPMODE_VIEWPORT + +_openframeworks.OF_BITMAPMODE_MODEL_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL = _openframeworks.OF_BITMAPMODE_MODEL + +_openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant(_openframeworks) OF_BITMAPMODE_MODEL_BILLBOARD = _openframeworks.OF_BITMAPMODE_MODEL_BILLBOARD + +_openframeworks.OF_ENCODING_UTF8_swigconstant(_openframeworks) OF_ENCODING_UTF8 = _openframeworks.OF_ENCODING_UTF8 + +_openframeworks.OF_ENCODING_ISO_8859_15_swigconstant(_openframeworks) OF_ENCODING_ISO_8859_15 = _openframeworks.OF_ENCODING_ISO_8859_15 class ofFbo(_object): __swig_setmethods__ = {} @@ -398,95 +1018,192 @@ class ofFbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFbo - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFbo_allocate(self, *args) - def isAllocated(self): return _openframeworks.ofFbo_isAllocated(self) - def draw(self, *args): return _openframeworks.ofFbo_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofFbo_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFbo_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFbo_resetAnchor(self) - def setDefaultTextureIndex(self, *args): return _openframeworks.ofFbo_setDefaultTextureIndex(self, *args) - def getDefaultTextureIndex(self): return _openframeworks.ofFbo_getDefaultTextureIndex(self) - def getTextureReference(self, *args): return _openframeworks.ofFbo_getTextureReference(self, *args) - def getDepthTexture(self): return _openframeworks.ofFbo_getDepthTexture(self) - def setUseTexture(self, *args): return _openframeworks.ofFbo_setUseTexture(self, *args) - def begin(self, setupScreen=True): return _openframeworks.ofFbo_begin(self, setupScreen) - def end(self): return _openframeworks.ofFbo_end(self) - def readToPixels(self, *args): return _openframeworks.ofFbo_readToPixels(self, *args) - def getWidth(self): return _openframeworks.ofFbo_getWidth(self) - def getHeight(self): return _openframeworks.ofFbo_getHeight(self) - def bind(self): return _openframeworks.ofFbo_bind(self) - def unbind(self): return _openframeworks.ofFbo_unbind(self) - def checkStatus(self): return _openframeworks.ofFbo_checkStatus(self) - def createAndAttachTexture(self, *args): return _openframeworks.ofFbo_createAndAttachTexture(self, *args) - def attachTexture(self, *args): return _openframeworks.ofFbo_attachTexture(self, *args) - def createAndAttachRenderbuffer(self, *args): return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, *args) - def createAndAttachDepthStencilTexture(self, *args): return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) - def getNumTextures(self): return _openframeworks.ofFbo_getNumTextures(self) - def setActiveDrawBuffer(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffer(self, *args) - def setActiveDrawBuffers(self, *args): return _openframeworks.ofFbo_setActiveDrawBuffers(self, *args) - def activateAllDrawBuffers(self): return _openframeworks.ofFbo_activateAllDrawBuffers(self) - def getFbo(self): return _openframeworks.ofFbo_getFbo(self) + __del__ = lambda self: None + + def allocate(self, *args): + return _openframeworks.ofFbo_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFbo_isAllocated(self) + + def destroy(self): + return _openframeworks.ofFbo_destroy(self) + + def clear(self): + return _openframeworks.ofFbo_clear(self) + + def draw(self, *args): + return _openframeworks.ofFbo_draw(self, *args) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFbo_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFbo_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFbo_resetAnchor(self) + + def setDefaultTextureIndex(self, defaultTexture): + return _openframeworks.ofFbo_setDefaultTextureIndex(self, defaultTexture) + + def getDefaultTextureIndex(self): + return _openframeworks.ofFbo_getDefaultTextureIndex(self) + + def getTextureReference(self, *args): + return _openframeworks.ofFbo_getTextureReference(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofFbo_getTexture(self, *args) + + def getDepthTexture(self, *args): + return _openframeworks.ofFbo_getDepthTexture(self, *args) + + def setUseTexture(self, arg2): + return _openframeworks.ofFbo_setUseTexture(self, arg2) + + def isUsingTexture(self): + return _openframeworks.ofFbo_isUsingTexture(self) + + def begin(self, setupScreen=True): + return _openframeworks.ofFbo_begin(self, setupScreen) + + def end(self): + return _openframeworks.ofFbo_end(self) + + def readToPixels(self, *args): + return _openframeworks.ofFbo_readToPixels(self, *args) + + def getWidth(self): + return _openframeworks.ofFbo_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFbo_getHeight(self) + + def bind(self): + return _openframeworks.ofFbo_bind(self) + + def unbind(self): + return _openframeworks.ofFbo_unbind(self) + + def flagDirty(self): + return _openframeworks.ofFbo_flagDirty(self) + + def updateTexture(self, attachmentPoint): + return _openframeworks.ofFbo_updateTexture(self, attachmentPoint) + + def checkStatus(self): + return _openframeworks.ofFbo_checkStatus(self) + + def createAndAttachTexture(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachTexture(self, internalFormat, attachmentPoint) + + def attachTexture(self, texture, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_attachTexture(self, texture, internalFormat, attachmentPoint) + + def createAndAttachRenderbuffer(self, internalFormat, attachmentPoint): + return _openframeworks.ofFbo_createAndAttachRenderbuffer(self, internalFormat, attachmentPoint) + + def createAndAttachDepthStencilTexture(self, *args): + return _openframeworks.ofFbo_createAndAttachDepthStencilTexture(self, *args) + + def getNumTextures(self): + return _openframeworks.ofFbo_getNumTextures(self) + + def setActiveDrawBuffer(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffer(self, i) + + def setActiveDrawBuffers(self, i): + return _openframeworks.ofFbo_setActiveDrawBuffers(self, i) + + def activateAllDrawBuffers(self): + return _openframeworks.ofFbo_activateAllDrawBuffers(self) + + def getFbo(self): + return _openframeworks.ofFbo_getFbo(self) + + def getId(self): + return _openframeworks.ofFbo_getId(self) + + def getIdDrawBuffer(self): + return _openframeworks.ofFbo_getIdDrawBuffer(self) __swig_getmethods__["checkGLSupport"] = lambda x: _openframeworks.ofFbo_checkGLSupport - if _newclass:checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) + if _newclass: + checkGLSupport = staticmethod(_openframeworks.ofFbo_checkGLSupport) __swig_getmethods__["maxColorAttachments"] = lambda x: _openframeworks.ofFbo_maxColorAttachments - if _newclass:maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) + if _newclass: + maxColorAttachments = staticmethod(_openframeworks.ofFbo_maxColorAttachments) __swig_getmethods__["maxDrawBuffers"] = lambda x: _openframeworks.ofFbo_maxDrawBuffers - if _newclass:maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) + if _newclass: + maxDrawBuffers = staticmethod(_openframeworks.ofFbo_maxDrawBuffers) __swig_getmethods__["maxSamples"] = lambda x: _openframeworks.ofFbo_maxSamples - if _newclass:maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) - def getDepthBuffer(self): return _openframeworks.ofFbo_getDepthBuffer(self) - def getStencilBuffer(self): return _openframeworks.ofFbo_getStencilBuffer(self) + if _newclass: + maxSamples = staticmethod(_openframeworks.ofFbo_maxSamples) + + def getDepthBuffer(self): + return _openframeworks.ofFbo_getDepthBuffer(self) + + def getStencilBuffer(self): + return _openframeworks.ofFbo_getStencilBuffer(self) ofFbo_swigregister = _openframeworks.ofFbo_swigregister ofFbo_swigregister(ofFbo) def ofFbo_checkGLSupport(): - return _openframeworks.ofFbo_checkGLSupport() + return _openframeworks.ofFbo_checkGLSupport() ofFbo_checkGLSupport = _openframeworks.ofFbo_checkGLSupport def ofFbo_maxColorAttachments(): - return _openframeworks.ofFbo_maxColorAttachments() + return _openframeworks.ofFbo_maxColorAttachments() ofFbo_maxColorAttachments = _openframeworks.ofFbo_maxColorAttachments def ofFbo_maxDrawBuffers(): - return _openframeworks.ofFbo_maxDrawBuffers() + return _openframeworks.ofFbo_maxDrawBuffers() ofFbo_maxDrawBuffers = _openframeworks.ofFbo_maxDrawBuffers def ofFbo_maxSamples(): - return _openframeworks.ofFbo_maxSamples() + return _openframeworks.ofFbo_maxSamples() ofFbo_maxSamples = _openframeworks.ofFbo_maxSamples def ofGetUsingArbTex(): - return _openframeworks.ofGetUsingArbTex() + return _openframeworks.ofGetUsingArbTex() ofGetUsingArbTex = _openframeworks.ofGetUsingArbTex def ofEnableArbTex(): - return _openframeworks.ofEnableArbTex() + return _openframeworks.ofEnableArbTex() ofEnableArbTex = _openframeworks.ofEnableArbTex def ofDisableArbTex(): - return _openframeworks.ofDisableArbTex() + return _openframeworks.ofDisableArbTex() ofDisableArbTex = _openframeworks.ofDisableArbTex def ofGetUsingNormalizedTexCoords(): - return _openframeworks.ofGetUsingNormalizedTexCoords() + return _openframeworks.ofGetUsingNormalizedTexCoords() ofGetUsingNormalizedTexCoords = _openframeworks.ofGetUsingNormalizedTexCoords def ofEnableNormalizedTexCoords(): - return _openframeworks.ofEnableNormalizedTexCoords() + return _openframeworks.ofEnableNormalizedTexCoords() ofEnableNormalizedTexCoords = _openframeworks.ofEnableNormalizedTexCoords def ofDisableNormalizedTexCoords(): - return _openframeworks.ofDisableNormalizedTexCoords() + return _openframeworks.ofDisableNormalizedTexCoords() ofDisableNormalizedTexCoords = _openframeworks.ofDisableNormalizedTexCoords + +_openframeworks.OF_COMPRESS_NONE_swigconstant(_openframeworks) OF_COMPRESS_NONE = _openframeworks.OF_COMPRESS_NONE + +_openframeworks.OF_COMPRESS_SRGB_swigconstant(_openframeworks) OF_COMPRESS_SRGB = _openframeworks.OF_COMPRESS_SRGB + +_openframeworks.OF_COMPRESS_ARB_swigconstant(_openframeworks) OF_COMPRESS_ARB = _openframeworks.OF_COMPRESS_ARB class ofTextureData(_object): __swig_setmethods__ = {} @@ -494,71 +1211,97 @@ class ofTextureData(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTextureData, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTextureData() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["textureID"] = _openframeworks.ofTextureData_textureID_set __swig_getmethods__["textureID"] = _openframeworks.ofTextureData_textureID_get - if _newclass:textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) + if _newclass: + textureID = _swig_property(_openframeworks.ofTextureData_textureID_get, _openframeworks.ofTextureData_textureID_set) __swig_setmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_set __swig_getmethods__["textureTarget"] = _openframeworks.ofTextureData_textureTarget_get - if _newclass:textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) - __swig_setmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_set - __swig_getmethods__["glTypeInternal"] = _openframeworks.ofTextureData_glTypeInternal_get - if _newclass:glTypeInternal = _swig_property(_openframeworks.ofTextureData_glTypeInternal_get, _openframeworks.ofTextureData_glTypeInternal_set) + if _newclass: + textureTarget = _swig_property(_openframeworks.ofTextureData_textureTarget_get, _openframeworks.ofTextureData_textureTarget_set) + __swig_setmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_set + __swig_getmethods__["glInternalFormat"] = _openframeworks.ofTextureData_glInternalFormat_get + if _newclass: + glInternalFormat = _swig_property(_openframeworks.ofTextureData_glInternalFormat_get, _openframeworks.ofTextureData_glInternalFormat_set) __swig_setmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_set __swig_getmethods__["tex_t"] = _openframeworks.ofTextureData_tex_t_get - if _newclass:tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) + if _newclass: + tex_t = _swig_property(_openframeworks.ofTextureData_tex_t_get, _openframeworks.ofTextureData_tex_t_set) __swig_setmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_set __swig_getmethods__["tex_u"] = _openframeworks.ofTextureData_tex_u_get - if _newclass:tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) + if _newclass: + tex_u = _swig_property(_openframeworks.ofTextureData_tex_u_get, _openframeworks.ofTextureData_tex_u_set) __swig_setmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_set __swig_getmethods__["tex_w"] = _openframeworks.ofTextureData_tex_w_get - if _newclass:tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) + if _newclass: + tex_w = _swig_property(_openframeworks.ofTextureData_tex_w_get, _openframeworks.ofTextureData_tex_w_set) __swig_setmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_set __swig_getmethods__["tex_h"] = _openframeworks.ofTextureData_tex_h_get - if _newclass:tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) + if _newclass: + tex_h = _swig_property(_openframeworks.ofTextureData_tex_h_get, _openframeworks.ofTextureData_tex_h_set) __swig_setmethods__["width"] = _openframeworks.ofTextureData_width_set __swig_getmethods__["width"] = _openframeworks.ofTextureData_width_get - if _newclass:width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTextureData_width_get, _openframeworks.ofTextureData_width_set) __swig_setmethods__["height"] = _openframeworks.ofTextureData_height_set __swig_getmethods__["height"] = _openframeworks.ofTextureData_height_get - if _newclass:height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTextureData_height_get, _openframeworks.ofTextureData_height_set) __swig_setmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_set __swig_getmethods__["bFlipTexture"] = _openframeworks.ofTextureData_bFlipTexture_get - if _newclass:bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) + if _newclass: + bFlipTexture = _swig_property(_openframeworks.ofTextureData_bFlipTexture_get, _openframeworks.ofTextureData_bFlipTexture_set) __swig_setmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_set __swig_getmethods__["compressionType"] = _openframeworks.ofTextureData_compressionType_get - if _newclass:compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) + if _newclass: + compressionType = _swig_property(_openframeworks.ofTextureData_compressionType_get, _openframeworks.ofTextureData_compressionType_set) __swig_setmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_set __swig_getmethods__["bAllocated"] = _openframeworks.ofTextureData_bAllocated_get - if _newclass:bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) - __swig_setmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_set - __swig_getmethods__["bUseExternalTextureID"] = _openframeworks.ofTextureData_bUseExternalTextureID_get - if _newclass:bUseExternalTextureID = _swig_property(_openframeworks.ofTextureData_bUseExternalTextureID_get, _openframeworks.ofTextureData_bUseExternalTextureID_set) - __swig_setmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_set - __swig_getmethods__["textureMatrix"] = _openframeworks.ofTextureData_textureMatrix_get - if _newclass:textureMatrix = _swig_property(_openframeworks.ofTextureData_textureMatrix_get, _openframeworks.ofTextureData_textureMatrix_set) - __swig_setmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_set - __swig_getmethods__["useTextureMatrix"] = _openframeworks.ofTextureData_useTextureMatrix_get - if _newclass:useTextureMatrix = _swig_property(_openframeworks.ofTextureData_useTextureMatrix_get, _openframeworks.ofTextureData_useTextureMatrix_set) + if _newclass: + bAllocated = _swig_property(_openframeworks.ofTextureData_bAllocated_get, _openframeworks.ofTextureData_bAllocated_set) + __swig_setmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_set + __swig_getmethods__["minFilter"] = _openframeworks.ofTextureData_minFilter_get + if _newclass: + minFilter = _swig_property(_openframeworks.ofTextureData_minFilter_get, _openframeworks.ofTextureData_minFilter_set) + __swig_setmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_set + __swig_getmethods__["magFilter"] = _openframeworks.ofTextureData_magFilter_get + if _newclass: + magFilter = _swig_property(_openframeworks.ofTextureData_magFilter_get, _openframeworks.ofTextureData_magFilter_set) + __swig_setmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_set + __swig_getmethods__["wrapModeHorizontal"] = _openframeworks.ofTextureData_wrapModeHorizontal_get + if _newclass: + wrapModeHorizontal = _swig_property(_openframeworks.ofTextureData_wrapModeHorizontal_get, _openframeworks.ofTextureData_wrapModeHorizontal_set) + __swig_setmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_set + __swig_getmethods__["wrapModeVertical"] = _openframeworks.ofTextureData_wrapModeVertical_get + if _newclass: + wrapModeVertical = _swig_property(_openframeworks.ofTextureData_wrapModeVertical_get, _openframeworks.ofTextureData_wrapModeVertical_set) + __swig_setmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_set + __swig_getmethods__["bufferId"] = _openframeworks.ofTextureData_bufferId_get + if _newclass: + bufferId = _swig_property(_openframeworks.ofTextureData_bufferId_get, _openframeworks.ofTextureData_bufferId_set) __swig_destroy__ = _openframeworks.delete_ofTextureData - __del__ = lambda self : None; + __del__ = lambda self: None ofTextureData_swigregister = _openframeworks.ofTextureData_swigregister ofTextureData_swigregister(ofTextureData) def ofEnableTextureEdgeHack(): - return _openframeworks.ofEnableTextureEdgeHack() + return _openframeworks.ofEnableTextureEdgeHack() ofEnableTextureEdgeHack = _openframeworks.ofEnableTextureEdgeHack def ofDisableTextureEdgeHack(): - return _openframeworks.ofDisableTextureEdgeHack() + return _openframeworks.ofDisableTextureEdgeHack() ofDisableTextureEdgeHack = _openframeworks.ofDisableTextureEdgeHack def ofIsTextureEdgeHackEnabled(): - return _openframeworks.ofIsTextureEdgeHackEnabled() + return _openframeworks.ofIsTextureEdgeHackEnabled() ofIsTextureEdgeHackEnabled = _openframeworks.ofIsTextureEdgeHackEnabled class ofTexture(_object): __swig_setmethods__ = {} @@ -566,82 +1309,264 @@ class ofTexture(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTexture, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofTexture(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofTexture_allocate(self, *args) + + def allocateAsBufferTexture(self, buffer, glInternalFormat): + return _openframeworks.ofTexture_allocateAsBufferTexture(self, buffer, glInternalFormat) + + def isAllocated(self): + return _openframeworks.ofTexture_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofTexture_bAllocated(self) __swig_destroy__ = _openframeworks.delete_ofTexture - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofTexture_allocate(self, *args) - def clear(self): return _openframeworks.ofTexture_clear(self) - def setUseExternalTextureID(self, *args): return _openframeworks.ofTexture_setUseExternalTextureID(self, *args) - def loadData(self, *args): return _openframeworks.ofTexture_loadData(self, *args) - def setRGToRGBASwizzles(self, *args): return _openframeworks.ofTexture_setRGToRGBASwizzles(self, *args) - def loadScreenData(self, *args): return _openframeworks.ofTexture_loadScreenData(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofTexture_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofTexture_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofTexture_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofTexture_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofTexture_drawSubsection(self, *args) - def readToPixels(self, *args): return _openframeworks.ofTexture_readToPixels(self, *args) - def bind(self): return _openframeworks.ofTexture_bind(self) - def unbind(self): return _openframeworks.ofTexture_unbind(self) - def getCoordFromPoint(self, *args): return _openframeworks.ofTexture_getCoordFromPoint(self, *args) - def getCoordFromPercent(self, *args): return _openframeworks.ofTexture_getCoordFromPercent(self, *args) - def setTextureWrap(self, *args): return _openframeworks.ofTexture_setTextureWrap(self, *args) - def setTextureMinMagFilter(self, *args): return _openframeworks.ofTexture_setTextureMinMagFilter(self, *args) - def setCompression(self, *args): return _openframeworks.ofTexture_setCompression(self, *args) - def bAllocated(self): return _openframeworks.ofTexture_bAllocated(self) - def isAllocated(self): return _openframeworks.ofTexture_isAllocated(self) - def getTextureData(self, *args): return _openframeworks.ofTexture_getTextureData(self, *args) + __del__ = lambda self: None + + def clear(self): + return _openframeworks.ofTexture_clear(self) + + def setUseExternalTextureID(self, externTexID): + return _openframeworks.ofTexture_setUseExternalTextureID(self, externTexID) + + def loadData(self, *args): + return _openframeworks.ofTexture_loadData(self, *args) + + def loadScreenData(self, x, y, w, h): + return _openframeworks.ofTexture_loadScreenData(self, x, y, w, h) + + def draw(self, *args): + return _openframeworks.ofTexture_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofTexture_drawSubsection(self, *args) + + def getQuad(self, p1, p2, p3, p4): + return _openframeworks.ofTexture_getQuad(self, p1, p2, p3, p4) + + def getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode): + return _openframeworks.ofTexture_getMeshForSubsection(self, x, y, z, w, h, sx, sy, sw, sh, vflipped, rectMode) + + def bind(self, textureLocation=0): + return _openframeworks.ofTexture_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofTexture_unbind(self, textureLocation) + + def getAlphaMask(self): + return _openframeworks.ofTexture_getAlphaMask(self) + + def getHeight(self): + return _openframeworks.ofTexture_getHeight(self) + + def getWidth(self): + return _openframeworks.ofTexture_getWidth(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofTexture_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofTexture_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofTexture_resetAnchor(self) + + def getCoordFromPoint(self, xPos, yPos): + return _openframeworks.ofTexture_getCoordFromPoint(self, xPos, yPos) + + def getCoordFromPercent(self, xPts, yPts): + return _openframeworks.ofTexture_getCoordFromPercent(self, xPts, yPts) + + def setAlphaMask(self, mask): + return _openframeworks.ofTexture_setAlphaMask(self, mask) + + def disableAlphaMask(self): + return _openframeworks.ofTexture_disableAlphaMask(self) + + def setTextureWrap(self, wrapModeHorizontal, wrapModeVertical): + return _openframeworks.ofTexture_setTextureWrap(self, wrapModeHorizontal, wrapModeVertical) + + def setTextureMinMagFilter(self, minFilter, magFilter): + return _openframeworks.ofTexture_setTextureMinMagFilter(self, minFilter, magFilter) + + def setTextureMatrix(self, m): + return _openframeworks.ofTexture_setTextureMatrix(self, m) + + def getTextureMatrix(self): + return _openframeworks.ofTexture_getTextureMatrix(self) + + def isUsingTextureMatrix(self): + return _openframeworks.ofTexture_isUsingTextureMatrix(self) + + def disableTextureMatrix(self): + return _openframeworks.ofTexture_disableTextureMatrix(self) + + def setCompression(self, compression): + return _openframeworks.ofTexture_setCompression(self, compression) + + def setRGToRGBASwizzles(self, rToRGBSwizzles): + return _openframeworks.ofTexture_setRGToRGBASwizzles(self, rToRGBSwizzles) + + def setSwizzle(self, srcSwizzle, dstChannel): + return _openframeworks.ofTexture_setSwizzle(self, srcSwizzle, dstChannel) + + def readToPixels(self, *args): + return _openframeworks.ofTexture_readToPixels(self, *args) + + def copyTo(self, buffer): + return _openframeworks.ofTexture_copyTo(self, buffer) + + def getTextureData(self, *args): + return _openframeworks.ofTexture_getTextureData(self, *args) + + def enableMipmap(self): + return _openframeworks.ofTexture_enableMipmap(self) + + def disableMipmap(self): + return _openframeworks.ofTexture_disableMipmap(self) + + def generateMipmap(self): + return _openframeworks.ofTexture_generateMipmap(self) + + def hasMipmap(self): + return _openframeworks.ofTexture_hasMipmap(self) __swig_setmethods__["texData"] = _openframeworks.ofTexture_texData_set __swig_getmethods__["texData"] = _openframeworks.ofTexture_texData_get - if _newclass:texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) - def getHeight(self): return _openframeworks.ofTexture_getHeight(self) - def getWidth(self): return _openframeworks.ofTexture_getWidth(self) + if _newclass: + texData = _swig_property(_openframeworks.ofTexture_texData_get, _openframeworks.ofTexture_texData_set) ofTexture_swigregister = _openframeworks.ofTexture_swigregister ofTexture_swigregister(ofTexture) + +_openframeworks.OF_IMAGE_QUALITY_BEST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_BEST = _openframeworks.OF_IMAGE_QUALITY_BEST + +_openframeworks.OF_IMAGE_QUALITY_HIGH_swigconstant(_openframeworks) OF_IMAGE_QUALITY_HIGH = _openframeworks.OF_IMAGE_QUALITY_HIGH + +_openframeworks.OF_IMAGE_QUALITY_MEDIUM_swigconstant(_openframeworks) OF_IMAGE_QUALITY_MEDIUM = _openframeworks.OF_IMAGE_QUALITY_MEDIUM + +_openframeworks.OF_IMAGE_QUALITY_LOW_swigconstant(_openframeworks) OF_IMAGE_QUALITY_LOW = _openframeworks.OF_IMAGE_QUALITY_LOW + +_openframeworks.OF_IMAGE_QUALITY_WORST_swigconstant(_openframeworks) OF_IMAGE_QUALITY_WORST = _openframeworks.OF_IMAGE_QUALITY_WORST + +_openframeworks.OF_IMAGE_FORMAT_BMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_BMP = _openframeworks.OF_IMAGE_FORMAT_BMP + +_openframeworks.OF_IMAGE_FORMAT_ICO_swigconstant(_openframeworks) OF_IMAGE_FORMAT_ICO = _openframeworks.OF_IMAGE_FORMAT_ICO + +_openframeworks.OF_IMAGE_FORMAT_JPEG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JPEG = _openframeworks.OF_IMAGE_FORMAT_JPEG + +_openframeworks.OF_IMAGE_FORMAT_JNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JNG = _openframeworks.OF_IMAGE_FORMAT_JNG + +_openframeworks.OF_IMAGE_FORMAT_KOALA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_KOALA = _openframeworks.OF_IMAGE_FORMAT_KOALA + +_openframeworks.OF_IMAGE_FORMAT_LBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_LBM = _openframeworks.OF_IMAGE_FORMAT_LBM + +_openframeworks.OF_IMAGE_FORMAT_IFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_IFF = _openframeworks.OF_IMAGE_FORMAT_IFF + +_openframeworks.OF_IMAGE_FORMAT_MNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_MNG = _openframeworks.OF_IMAGE_FORMAT_MNG + +_openframeworks.OF_IMAGE_FORMAT_PBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBM = _openframeworks.OF_IMAGE_FORMAT_PBM + +_openframeworks.OF_IMAGE_FORMAT_PBMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PBMRAW = _openframeworks.OF_IMAGE_FORMAT_PBMRAW + +_openframeworks.OF_IMAGE_FORMAT_PCD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCD = _openframeworks.OF_IMAGE_FORMAT_PCD + +_openframeworks.OF_IMAGE_FORMAT_PCX_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PCX = _openframeworks.OF_IMAGE_FORMAT_PCX + +_openframeworks.OF_IMAGE_FORMAT_PGM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGM = _openframeworks.OF_IMAGE_FORMAT_PGM + +_openframeworks.OF_IMAGE_FORMAT_PGMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PGMRAW = _openframeworks.OF_IMAGE_FORMAT_PGMRAW + +_openframeworks.OF_IMAGE_FORMAT_PNG_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PNG = _openframeworks.OF_IMAGE_FORMAT_PNG + +_openframeworks.OF_IMAGE_FORMAT_PPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPM = _openframeworks.OF_IMAGE_FORMAT_PPM + +_openframeworks.OF_IMAGE_FORMAT_PPMRAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PPMRAW = _openframeworks.OF_IMAGE_FORMAT_PPMRAW + +_openframeworks.OF_IMAGE_FORMAT_RAS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAS = _openframeworks.OF_IMAGE_FORMAT_RAS + +_openframeworks.OF_IMAGE_FORMAT_TARGA_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TARGA = _openframeworks.OF_IMAGE_FORMAT_TARGA + +_openframeworks.OF_IMAGE_FORMAT_TIFF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_TIFF = _openframeworks.OF_IMAGE_FORMAT_TIFF + +_openframeworks.OF_IMAGE_FORMAT_WBMP_swigconstant(_openframeworks) OF_IMAGE_FORMAT_WBMP = _openframeworks.OF_IMAGE_FORMAT_WBMP + +_openframeworks.OF_IMAGE_FORMAT_PSD_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PSD = _openframeworks.OF_IMAGE_FORMAT_PSD + +_openframeworks.OF_IMAGE_FORMAT_CUT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_CUT = _openframeworks.OF_IMAGE_FORMAT_CUT + +_openframeworks.OF_IMAGE_FORMAT_XBM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XBM = _openframeworks.OF_IMAGE_FORMAT_XBM + +_openframeworks.OF_IMAGE_FORMAT_XPM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_XPM = _openframeworks.OF_IMAGE_FORMAT_XPM + +_openframeworks.OF_IMAGE_FORMAT_DDS_swigconstant(_openframeworks) OF_IMAGE_FORMAT_DDS = _openframeworks.OF_IMAGE_FORMAT_DDS + +_openframeworks.OF_IMAGE_FORMAT_GIF_swigconstant(_openframeworks) OF_IMAGE_FORMAT_GIF = _openframeworks.OF_IMAGE_FORMAT_GIF + +_openframeworks.OF_IMAGE_FORMAT_HDR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_HDR = _openframeworks.OF_IMAGE_FORMAT_HDR + +_openframeworks.OF_IMAGE_FORMAT_FAXG3_swigconstant(_openframeworks) OF_IMAGE_FORMAT_FAXG3 = _openframeworks.OF_IMAGE_FORMAT_FAXG3 + +_openframeworks.OF_IMAGE_FORMAT_SGI_swigconstant(_openframeworks) OF_IMAGE_FORMAT_SGI = _openframeworks.OF_IMAGE_FORMAT_SGI + +_openframeworks.OF_IMAGE_FORMAT_EXR_swigconstant(_openframeworks) OF_IMAGE_FORMAT_EXR = _openframeworks.OF_IMAGE_FORMAT_EXR + +_openframeworks.OF_IMAGE_FORMAT_J2K_swigconstant(_openframeworks) OF_IMAGE_FORMAT_J2K = _openframeworks.OF_IMAGE_FORMAT_J2K + +_openframeworks.OF_IMAGE_FORMAT_JP2_swigconstant(_openframeworks) OF_IMAGE_FORMAT_JP2 = _openframeworks.OF_IMAGE_FORMAT_JP2 + +_openframeworks.OF_IMAGE_FORMAT_PFM_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PFM = _openframeworks.OF_IMAGE_FORMAT_PFM + +_openframeworks.OF_IMAGE_FORMAT_PICT_swigconstant(_openframeworks) OF_IMAGE_FORMAT_PICT = _openframeworks.OF_IMAGE_FORMAT_PICT + +_openframeworks.OF_IMAGE_FORMAT_RAW_swigconstant(_openframeworks) OF_IMAGE_FORMAT_RAW = _openframeworks.OF_IMAGE_FORMAT_RAW class ofImage(_object): __swig_setmethods__ = {} @@ -649,57 +1574,123 @@ class ofImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofImage_allocate(self, *args) - def clear(self): return _openframeworks.ofImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofImage_getTextureReference(self) - def bind(self): return _openframeworks.ofImage_bind(self) - def unbind(self): return _openframeworks.ofImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofImage_mirror(self, *args) - def update(self): return _openframeworks.ofImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofImage_getHeight(self) - def getWidth(self): return _openframeworks.ofImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofImage_width_get, _openframeworks.ofImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofImage_height_get, _openframeworks.ofImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofImage_bpp_get, _openframeworks.ofImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofImage_type_get, _openframeworks.ofImage_type_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofImage_clear(self) + + def load(self, *args): + return _openframeworks.ofImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofImage_saveImage(self, *args) ofImage_swigregister = _openframeworks.ofImage_swigregister ofImage_swigregister(ofImage) @@ -709,167 +1700,344 @@ class ofFloatImage(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatImage, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofFloatImage_allocate(self, *args) - def clear(self): return _openframeworks.ofFloatImage_clear(self) - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofFloatImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofFloatImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofFloatImage_getTextureReference(self) - def bind(self): return _openframeworks.ofFloatImage_bind(self) - def unbind(self): return _openframeworks.ofFloatImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofFloatImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofFloatImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofFloatImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofFloatImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofFloatImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofFloatImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofFloatImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofFloatImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofFloatImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofFloatImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofFloatImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatImage_mirror(self, *args) - def update(self): return _openframeworks.ofFloatImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofFloatImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofFloatImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofFloatImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofFloatImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofFloatImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofFloatImage_getHeight(self) - def getWidth(self): return _openframeworks.ofFloatImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofFloatImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofFloatImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofFloatImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofFloatImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofFloatImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofFloatImage_width_get, _openframeworks.ofFloatImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofFloatImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofFloatImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofFloatImage_height_get, _openframeworks.ofFloatImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofFloatImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofFloatImage_bpp_get, _openframeworks.ofFloatImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofFloatImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofFloatImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofFloatImage_type_get, _openframeworks.ofFloatImage_type_set) -ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister -ofFloatImage_swigregister(ofFloatImage) + try: + self.this.append(this) + except Exception: + self.this = this -class ofShortImage(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortImage - __del__ = lambda self : None; - def allocate(self, *args): return _openframeworks.ofShortImage_allocate(self, *args) - def clear(self): return _openframeworks.ofShortImage_clear(self) - def __init__(self, *args): - this = _openframeworks.new_ofShortImage(*args) - try: self.this.append(this) - except: self.this = this - def setUseTexture(self, *args): return _openframeworks.ofShortImage_setUseTexture(self, *args) - def isUsingTexture(self): return _openframeworks.ofShortImage_isUsingTexture(self) - def getTextureReference(self): return _openframeworks.ofShortImage_getTextureReference(self) - def bind(self): return _openframeworks.ofShortImage_bind(self) - def unbind(self): return _openframeworks.ofShortImage_unbind(self) - def loadImage(self, *args): return _openframeworks.ofShortImage_loadImage(self, *args) - def saveImage(self, *args): return _openframeworks.ofShortImage_saveImage(self, *args) - def setCompression(self, *args): return _openframeworks.ofShortImage_setCompression(self, *args) - def getPixels(self): return _openframeworks.ofShortImage_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofShortImage_getPixelsRef(self) - def getColor(self, *args): return _openframeworks.ofShortImage_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortImage_setColor(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortImage_setFromPixels(self, *args) - def setImageType(self, *args): return _openframeworks.ofShortImage_setImageType(self, *args) - def resize(self, *args): return _openframeworks.ofShortImage_resize(self, *args) - def grabScreen(self, *args): return _openframeworks.ofShortImage_grabScreen(self, *args) - def crop(self, *args): return _openframeworks.ofShortImage_crop(self, *args) - def cropFrom(self, *args): return _openframeworks.ofShortImage_cropFrom(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortImage_rotate90(self, *args) - def mirror(self, *args): return _openframeworks.ofShortImage_mirror(self, *args) - def update(self): return _openframeworks.ofShortImage_update(self) - def setAnchorPercent(self, *args): return _openframeworks.ofShortImage_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofShortImage_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofShortImage_resetAnchor(self) - def draw(self, *args): return _openframeworks.ofShortImage_draw(self, *args) - def drawSubsection(self, *args): return _openframeworks.ofShortImage_drawSubsection(self, *args) - def getHeight(self): return _openframeworks.ofShortImage_getHeight(self) - def getWidth(self): return _openframeworks.ofShortImage_getWidth(self) - def bAllocated(self): return _openframeworks.ofShortImage_bAllocated(self) - def isAllocated(self): return _openframeworks.ofShortImage_isAllocated(self) - def reloadTexture(self): return _openframeworks.ofShortImage_reloadTexture(self) - __swig_setmethods__["width"] = _openframeworks.ofShortImage_width_set - __swig_getmethods__["width"] = _openframeworks.ofShortImage_width_get - if _newclass:width = _swig_property(_openframeworks.ofShortImage_width_get, _openframeworks.ofShortImage_width_set) - __swig_setmethods__["height"] = _openframeworks.ofShortImage_height_set - __swig_getmethods__["height"] = _openframeworks.ofShortImage_height_get - if _newclass:height = _swig_property(_openframeworks.ofShortImage_height_get, _openframeworks.ofShortImage_height_set) - __swig_setmethods__["bpp"] = _openframeworks.ofShortImage_bpp_set - __swig_getmethods__["bpp"] = _openframeworks.ofShortImage_bpp_get - if _newclass:bpp = _swig_property(_openframeworks.ofShortImage_bpp_get, _openframeworks.ofShortImage_bpp_set) - __swig_setmethods__["type"] = _openframeworks.ofShortImage_type_set - __swig_getmethods__["type"] = _openframeworks.ofShortImage_type_get - if _newclass:type = _swig_property(_openframeworks.ofShortImage_type_get, _openframeworks.ofShortImage_type_set) -ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister -ofShortImage_swigregister(ofShortImage) + def allocate(self, w, h, type): + return _openframeworks.ofFloatImage_allocate(self, w, h, type) + def isAllocated(self): + return _openframeworks.ofFloatImage_isAllocated(self) -def ofSoundStreamSetup(*args): - return _openframeworks.ofSoundStreamSetup(*args) -ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + def bAllocated(self): + return _openframeworks.ofFloatImage_bAllocated(self) -def ofSoundStreamStop(): - return _openframeworks.ofSoundStreamStop() -ofSoundStreamStop = _openframeworks.ofSoundStreamStop + def clear(self): + return _openframeworks.ofFloatImage_clear(self) -def ofSoundStreamStart(): - return _openframeworks.ofSoundStreamStart() -ofSoundStreamStart = _openframeworks.ofSoundStreamStart + def load(self, *args): + return _openframeworks.ofFloatImage_load(self, *args) -def ofSoundStreamClose(): - return _openframeworks.ofSoundStreamClose() -ofSoundStreamClose = _openframeworks.ofSoundStreamClose + def loadImage(self, *args): + return _openframeworks.ofFloatImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofFloatImage + __del__ = lambda self: None -def ofSoundStreamListDevices(): - return _openframeworks.ofSoundStreamListDevices() -ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices -class ofSoundStream(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofSoundStream() - try: self.this.append(this) - except: self.this = this - def setSoundStream(self, *args): return _openframeworks.ofSoundStream_setSoundStream(self, *args) - def getSoundStream(self): return _openframeworks.ofSoundStream_getSoundStream(self) - def listDevices(self): return _openframeworks.ofSoundStream_listDevices(self) - def setDeviceID(self, *args): return _openframeworks.ofSoundStream_setDeviceID(self, *args) - def setup(self, *args): return _openframeworks.ofSoundStream_setup(self, *args) - def setInput(self, *args): return _openframeworks.ofSoundStream_setInput(self, *args) - def setOutput(self, *args): return _openframeworks.ofSoundStream_setOutput(self, *args) - def start(self): return _openframeworks.ofSoundStream_start(self) - def stop(self): return _openframeworks.ofSoundStream_stop(self) - def close(self): return _openframeworks.ofSoundStream_close(self) - def getTickCount(self): return _openframeworks.ofSoundStream_getTickCount(self) - def getNumInputChannels(self): return _openframeworks.ofSoundStream_getNumInputChannels(self) - def getNumOutputChannels(self): return _openframeworks.ofSoundStream_getNumOutputChannels(self) - def getSampleRate(self): return _openframeworks.ofSoundStream_getSampleRate(self) - def getBufferSize(self): return _openframeworks.ofSoundStream_getBufferSize(self) - __swig_destroy__ = _openframeworks.delete_ofSoundStream - __del__ = lambda self : None; + def draw(self, *args): + return _openframeworks.ofFloatImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofFloatImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofFloatImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofFloatImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofFloatImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofFloatImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofFloatImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofFloatImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofFloatImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofFloatImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofFloatImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofFloatImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofFloatImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofFloatImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofFloatImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofFloatImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofFloatImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofFloatImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofFloatImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofFloatImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofFloatImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofFloatImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofFloatImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofFloatImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofFloatImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofFloatImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofFloatImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofFloatImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofFloatImage_saveImage(self, *args) +ofFloatImage_swigregister = _openframeworks.ofFloatImage_swigregister +ofFloatImage_swigregister(ofFloatImage) + +class ofShortImage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortImage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofShortImage, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofShortImage(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, w, h, type): + return _openframeworks.ofShortImage_allocate(self, w, h, type) + + def isAllocated(self): + return _openframeworks.ofShortImage_isAllocated(self) + + def bAllocated(self): + return _openframeworks.ofShortImage_bAllocated(self) + + def clear(self): + return _openframeworks.ofShortImage_clear(self) + + def load(self, *args): + return _openframeworks.ofShortImage_load(self, *args) + + def loadImage(self, *args): + return _openframeworks.ofShortImage_loadImage(self, *args) + __swig_destroy__ = _openframeworks.delete_ofShortImage + __del__ = lambda self: None + + def draw(self, *args): + return _openframeworks.ofShortImage_draw(self, *args) + + def drawSubsection(self, *args): + return _openframeworks.ofShortImage_drawSubsection(self, *args) + + def update(self): + return _openframeworks.ofShortImage_update(self) + + def setUseTexture(self, bUse): + return _openframeworks.ofShortImage_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofShortImage_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofShortImage_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofShortImage_getTextureReference(self, *args) + + def bind(self, textureLocation=0): + return _openframeworks.ofShortImage_bind(self, textureLocation) + + def unbind(self, textureLocation=0): + return _openframeworks.ofShortImage_unbind(self, textureLocation) + + def setCompression(self, compression): + return _openframeworks.ofShortImage_setCompression(self, compression) + + def getPixels(self, *args): + return _openframeworks.ofShortImage_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofShortImage_getPixelsRef(self, *args) + + def getColor(self, *args): + return _openframeworks.ofShortImage_getColor(self, *args) + + def getHeight(self): + return _openframeworks.ofShortImage_getHeight(self) + + def getWidth(self): + return _openframeworks.ofShortImage_getWidth(self) + + def setColor(self, *args): + return _openframeworks.ofShortImage_setColor(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortImage_setFromPixels(self, *args) + + def grabScreen(self, x, y, w, h): + return _openframeworks.ofShortImage_grabScreen(self, x, y, w, h) + + def setImageType(self, type): + return _openframeworks.ofShortImage_setImageType(self, type) + + def getImageType(self): + return _openframeworks.ofShortImage_getImageType(self) + + def resize(self, newWidth, newHeight): + return _openframeworks.ofShortImage_resize(self, newWidth, newHeight) + + def crop(self, x, y, w, h): + return _openframeworks.ofShortImage_crop(self, x, y, w, h) + + def cropFrom(self, otherImage, x, y, w, h): + return _openframeworks.ofShortImage_cropFrom(self, otherImage, x, y, w, h) + + def rotate90(self, rotation): + return _openframeworks.ofShortImage_rotate90(self, rotation) + + def mirror(self, vertical, horizontal): + return _openframeworks.ofShortImage_mirror(self, vertical, horizontal) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofShortImage_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofShortImage_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofShortImage_resetAnchor(self) + + def save(self, *args): + return _openframeworks.ofShortImage_save(self, *args) + + def saveImage(self, *args): + return _openframeworks.ofShortImage_saveImage(self, *args) +ofShortImage_swigregister = _openframeworks.ofShortImage_swigregister +ofShortImage_swigregister(ofShortImage) + + +def ofSoundStreamSetup(*args): + return _openframeworks.ofSoundStreamSetup(*args) +ofSoundStreamSetup = _openframeworks.ofSoundStreamSetup + +def ofSoundStreamStop(): + return _openframeworks.ofSoundStreamStop() +ofSoundStreamStop = _openframeworks.ofSoundStreamStop + +def ofSoundStreamStart(): + return _openframeworks.ofSoundStreamStart() +ofSoundStreamStart = _openframeworks.ofSoundStreamStart + +def ofSoundStreamClose(): + return _openframeworks.ofSoundStreamClose() +ofSoundStreamClose = _openframeworks.ofSoundStreamClose + +def ofSoundStreamListDevices(): + return _openframeworks.ofSoundStreamListDevices() +ofSoundStreamListDevices = _openframeworks.ofSoundStreamListDevices +class ofSoundStream(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofSoundStream, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofSoundStream, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofSoundStream() + try: + self.this.append(this) + except Exception: + self.this = this + + def setSoundStream(self, soundStreamPtr): + return _openframeworks.ofSoundStream_setSoundStream(self, soundStreamPtr) + + def getSoundStream(self): + return _openframeworks.ofSoundStream_getSoundStream(self) + + def printDeviceList(self): + return _openframeworks.ofSoundStream_printDeviceList(self) + + def getDeviceList(self): + return _openframeworks.ofSoundStream_getDeviceList(self) + + def getMatchingDevices(self, *args): + return _openframeworks.ofSoundStream_getMatchingDevices(self, *args) + + def setDeviceID(self, deviceID): + return _openframeworks.ofSoundStream_setDeviceID(self, deviceID) + + def setDevice(self, device): + return _openframeworks.ofSoundStream_setDevice(self, device) + + def setup(self, *args): + return _openframeworks.ofSoundStream_setup(self, *args) + + def setInput(self, *args): + return _openframeworks.ofSoundStream_setInput(self, *args) + + def setOutput(self, *args): + return _openframeworks.ofSoundStream_setOutput(self, *args) + + def start(self): + return _openframeworks.ofSoundStream_start(self) + + def stop(self): + return _openframeworks.ofSoundStream_stop(self) + + def close(self): + return _openframeworks.ofSoundStream_close(self) + + def getTickCount(self): + return _openframeworks.ofSoundStream_getTickCount(self) + + def getNumInputChannels(self): + return _openframeworks.ofSoundStream_getNumInputChannels(self) + + def getNumOutputChannels(self): + return _openframeworks.ofSoundStream_getNumOutputChannels(self) + + def getSampleRate(self): + return _openframeworks.ofSoundStream_getSampleRate(self) + + def getBufferSize(self): + return _openframeworks.ofSoundStream_getBufferSize(self) + + def listDevices(self): + return _openframeworks.ofSoundStream_listDevices(self) + __swig_destroy__ = _openframeworks.delete_ofSoundStream + __del__ = lambda self: None ofSoundStream_swigregister = _openframeworks.ofSoundStream_swigregister ofSoundStream_swigregister(ofSoundStream) @@ -879,33 +2047,87 @@ class ofSoundPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSoundPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSoundPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofSoundPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofSoundPlayer_getPlayer(self) - def loadSound(self, *args): return _openframeworks.ofSoundPlayer_loadSound(self, *args) - def unloadSound(self): return _openframeworks.ofSoundPlayer_unloadSound(self) - def play(self): return _openframeworks.ofSoundPlayer_play(self) - def stop(self): return _openframeworks.ofSoundPlayer_stop(self) - def setVolume(self, *args): return _openframeworks.ofSoundPlayer_setVolume(self, *args) - def setPan(self, *args): return _openframeworks.ofSoundPlayer_setPan(self, *args) - def setSpeed(self, *args): return _openframeworks.ofSoundPlayer_setSpeed(self, *args) - def setPaused(self, *args): return _openframeworks.ofSoundPlayer_setPaused(self, *args) - def setLoop(self, *args): return _openframeworks.ofSoundPlayer_setLoop(self, *args) - def setMultiPlay(self, *args): return _openframeworks.ofSoundPlayer_setMultiPlay(self, *args) - def setPosition(self, *args): return _openframeworks.ofSoundPlayer_setPosition(self, *args) - def setPositionMS(self, *args): return _openframeworks.ofSoundPlayer_setPositionMS(self, *args) - def getPositionMS(self): return _openframeworks.ofSoundPlayer_getPositionMS(self) - def getPosition(self): return _openframeworks.ofSoundPlayer_getPosition(self) - def getIsPlaying(self): return _openframeworks.ofSoundPlayer_getIsPlaying(self) - def getSpeed(self): return _openframeworks.ofSoundPlayer_getSpeed(self) - def getPan(self): return _openframeworks.ofSoundPlayer_getPan(self) - def getVolume(self): return _openframeworks.ofSoundPlayer_getVolume(self) - def isLoaded(self): return _openframeworks.ofSoundPlayer_isLoaded(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlayer(self, newPlayer): + return _openframeworks.ofSoundPlayer_setPlayer(self, newPlayer) + + def getPlayer(self): + return _openframeworks.ofSoundPlayer_getPlayer(self) + + def load(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_load(self, fileName, stream) + + def loadSound(self, fileName, stream=False): + return _openframeworks.ofSoundPlayer_loadSound(self, fileName, stream) + + def unload(self): + return _openframeworks.ofSoundPlayer_unload(self) + + def unloadSound(self): + return _openframeworks.ofSoundPlayer_unloadSound(self) + + def play(self): + return _openframeworks.ofSoundPlayer_play(self) + + def stop(self): + return _openframeworks.ofSoundPlayer_stop(self) + + def setVolume(self, vol): + return _openframeworks.ofSoundPlayer_setVolume(self, vol) + + def setPan(self, pan): + return _openframeworks.ofSoundPlayer_setPan(self, pan) + + def setSpeed(self, speed): + return _openframeworks.ofSoundPlayer_setSpeed(self, speed) + + def setPaused(self, paused): + return _openframeworks.ofSoundPlayer_setPaused(self, paused) + + def setLoop(self, loop): + return _openframeworks.ofSoundPlayer_setLoop(self, loop) + + def setMultiPlay(self, multiplay): + return _openframeworks.ofSoundPlayer_setMultiPlay(self, multiplay) + + def setPosition(self, percent): + return _openframeworks.ofSoundPlayer_setPosition(self, percent) + + def setPositionMS(self, ms): + return _openframeworks.ofSoundPlayer_setPositionMS(self, ms) + + def getPositionMS(self): + return _openframeworks.ofSoundPlayer_getPositionMS(self) + + def getPosition(self): + return _openframeworks.ofSoundPlayer_getPosition(self) + + def isPlaying(self): + return _openframeworks.ofSoundPlayer_isPlaying(self) + + def getIsPlaying(self): + return _openframeworks.ofSoundPlayer_getIsPlaying(self) + + def getSpeed(self): + return _openframeworks.ofSoundPlayer_getSpeed(self) + + def getPan(self): + return _openframeworks.ofSoundPlayer_getPan(self) + + def getVolume(self): + return _openframeworks.ofSoundPlayer_getVolume(self) + + def isLoaded(self): + return _openframeworks.ofSoundPlayer_isLoaded(self) __swig_destroy__ = _openframeworks.delete_ofSoundPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofSoundPlayer_swigregister = _openframeworks.ofSoundPlayer_swigregister ofSoundPlayer_swigregister(ofSoundPlayer) @@ -915,82 +2137,180 @@ class ofColor(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofColor_fromHex) - def set(self, *args): return _openframeworks.ofColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofColor_getHex(self) - def clamp(self): return _openframeworks.ofColor_clamp(self) - def invert(self): return _openframeworks.ofColor_invert(self) - def normalize(self): return _openframeworks.ofColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofColor_getClamped(self) - def getInverted(self): return _openframeworks.ofColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofColor_fromHex) + + def set(self, *args): + return _openframeworks.ofColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofColor_clamp(self) + + def invert(self): + return _openframeworks.ofColor_invert(self) + + def normalize(self): + return _openframeworks.ofColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofColor_getHex(self) + + def getHue(self): + return _openframeworks.ofColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofColor_limit) - def getR(self): return _openframeworks.ofColor_getR(self) - def getG(self): return _openframeworks.ofColor_getG(self) - def getB(self): return _openframeworks.ofColor_getB(self) - def getA(self): return _openframeworks.ofColor_getA(self) - def setR(self, *args): return _openframeworks.ofColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofColor_setA(self, *args) - def __str__(self): return _openframeworks.ofColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofColor_limit) + + def __eq__(self, color): + return _openframeworks.ofColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofColor_getR(self) + + def getG(self): + return _openframeworks.ofColor_getG(self) + + def getB(self): + return _openframeworks.ofColor_getB(self) + + def getA(self): + return _openframeworks.ofColor_getA(self) + + def setR(self, r): + return _openframeworks.ofColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofColor_r_set __swig_getmethods__["r"] = _openframeworks.ofColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofColor_r_get, _openframeworks.ofColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofColor_g_set __swig_getmethods__["g"] = _openframeworks.ofColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofColor_g_get, _openframeworks.ofColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofColor_b_set __swig_getmethods__["b"] = _openframeworks.ofColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofColor_b_get, _openframeworks.ofColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofColor_a_set __swig_getmethods__["a"] = _openframeworks.ofColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofColor_a_get, _openframeworks.ofColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofColor + __del__ = lambda self: None ofColor_swigregister = _openframeworks.ofColor_swigregister ofColor_swigregister(ofColor) def ofColor_fromHsb(*args): - return _openframeworks.ofColor_fromHsb(*args) + return _openframeworks.ofColor_fromHsb(*args) ofColor_fromHsb = _openframeworks.ofColor_fromHsb def ofColor_fromHex(*args): - return _openframeworks.ofColor_fromHex(*args) + return _openframeworks.ofColor_fromHex(*args) ofColor_fromHex = _openframeworks.ofColor_fromHex + +def ofColor_limit(): + return _openframeworks.ofColor_limit() +ofColor_limit = _openframeworks.ofColor_limit cvar = _openframeworks.cvar ofColor.white = _openframeworks.cvar.ofColor_white ofColor.gray = _openframeworks.cvar.ofColor_gray @@ -1141,92 +2461,186 @@ def ofColor_fromHex(*args): ofColor.whiteSmoke = _openframeworks.cvar.ofColor_whiteSmoke ofColor.yellowGreen = _openframeworks.cvar.ofColor_yellowGreen -def ofColor_limit(): - return _openframeworks.ofColor_limit() -ofColor_limit = _openframeworks.ofColor_limit - class ofFloatColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofFloatColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofFloatColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFloatColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofFloatColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofFloatColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofFloatColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) - def set(self, *args): return _openframeworks.ofFloatColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofFloatColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofFloatColor_getHex(self) - def clamp(self): return _openframeworks.ofFloatColor_clamp(self) - def invert(self): return _openframeworks.ofFloatColor_invert(self) - def normalize(self): return _openframeworks.ofFloatColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofFloatColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofFloatColor_getClamped(self) - def getInverted(self): return _openframeworks.ofFloatColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofFloatColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofFloatColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofFloatColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofFloatColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofFloatColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofFloatColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofFloatColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofFloatColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofFloatColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofFloatColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofFloatColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofFloatColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofFloatColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofFloatColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFloatColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofFloatColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofFloatColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofFloatColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofFloatColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofFloatColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofFloatColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofFloatColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofFloatColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofFloatColor_fromHex) + + def set(self, *args): + return _openframeworks.ofFloatColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofFloatColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofFloatColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofFloatColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofFloatColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofFloatColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofFloatColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofFloatColor_clamp(self) + + def invert(self): + return _openframeworks.ofFloatColor_invert(self) + + def normalize(self): + return _openframeworks.ofFloatColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofFloatColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofFloatColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofFloatColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofFloatColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofFloatColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofFloatColor_getHex(self) + + def getHue(self): + return _openframeworks.ofFloatColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofFloatColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofFloatColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofFloatColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofFloatColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofFloatColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofFloatColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofFloatColor_limit) - def getR(self): return _openframeworks.ofFloatColor_getR(self) - def getG(self): return _openframeworks.ofFloatColor_getG(self) - def getB(self): return _openframeworks.ofFloatColor_getB(self) - def getA(self): return _openframeworks.ofFloatColor_getA(self) - def setR(self, *args): return _openframeworks.ofFloatColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofFloatColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofFloatColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofFloatColor_setA(self, *args) - def __str__(self): return _openframeworks.ofFloatColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofFloatColor_limit) + + def __eq__(self, color): + return _openframeworks.ofFloatColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofFloatColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofFloatColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofFloatColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofFloatColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofFloatColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofFloatColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofFloatColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofFloatColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofFloatColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofFloatColor_getR(self) + + def getG(self): + return _openframeworks.ofFloatColor_getG(self) + + def getB(self): + return _openframeworks.ofFloatColor_getB(self) + + def getA(self): + return _openframeworks.ofFloatColor_getA(self) + + def setR(self, r): + return _openframeworks.ofFloatColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofFloatColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofFloatColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofFloatColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofFloatColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofFloatColor_r_set __swig_getmethods__["r"] = _openframeworks.ofFloatColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofFloatColor_r_get, _openframeworks.ofFloatColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofFloatColor_g_set __swig_getmethods__["g"] = _openframeworks.ofFloatColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofFloatColor_g_get, _openframeworks.ofFloatColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofFloatColor_b_set __swig_getmethods__["b"] = _openframeworks.ofFloatColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofFloatColor_b_get, _openframeworks.ofFloatColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofFloatColor_a_set __swig_getmethods__["a"] = _openframeworks.ofFloatColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofFloatColor_a_get, _openframeworks.ofFloatColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofFloatColor + __del__ = lambda self: None ofFloatColor_swigregister = _openframeworks.ofFloatColor_swigregister ofFloatColor_swigregister(ofFloatColor) def ofFloatColor_fromHsb(*args): - return _openframeworks.ofFloatColor_fromHsb(*args) + return _openframeworks.ofFloatColor_fromHsb(*args) ofFloatColor_fromHsb = _openframeworks.ofFloatColor_fromHsb def ofFloatColor_fromHex(*args): - return _openframeworks.ofFloatColor_fromHex(*args) + return _openframeworks.ofFloatColor_fromHex(*args) ofFloatColor_fromHex = _openframeworks.ofFloatColor_fromHex + +def ofFloatColor_limit(): + return _openframeworks.ofFloatColor_limit() +ofFloatColor_limit = _openframeworks.ofFloatColor_limit ofFloatColor.white = _openframeworks.cvar.ofFloatColor_white ofFloatColor.gray = _openframeworks.cvar.ofFloatColor_gray ofFloatColor.black = _openframeworks.cvar.ofFloatColor_black @@ -1376,92 +2790,186 @@ def ofFloatColor_fromHex(*args): ofFloatColor.whiteSmoke = _openframeworks.cvar.ofFloatColor_whiteSmoke ofFloatColor.yellowGreen = _openframeworks.cvar.ofFloatColor_yellowGreen -def ofFloatColor_limit(): - return _openframeworks.ofFloatColor_limit() -ofFloatColor_limit = _openframeworks.ofFloatColor_limit - class ofShortColor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortColor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofShortColor, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofShortColor - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofShortColor(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromHsb"] = lambda x: _openframeworks.ofShortColor_fromHsb - if _newclass:fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) + if _newclass: + fromHsb = staticmethod(_openframeworks.ofShortColor_fromHsb) __swig_getmethods__["fromHex"] = lambda x: _openframeworks.ofShortColor_fromHex - if _newclass:fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) - def set(self, *args): return _openframeworks.ofShortColor_set(self, *args) - def setHex(self, *args): return _openframeworks.ofShortColor_setHex(self, *args) - def getHex(self): return _openframeworks.ofShortColor_getHex(self) - def clamp(self): return _openframeworks.ofShortColor_clamp(self) - def invert(self): return _openframeworks.ofShortColor_invert(self) - def normalize(self): return _openframeworks.ofShortColor_normalize(self) - def lerp(self, *args): return _openframeworks.ofShortColor_lerp(self, *args) - def getClamped(self): return _openframeworks.ofShortColor_getClamped(self) - def getInverted(self): return _openframeworks.ofShortColor_getInverted(self) - def getNormalized(self): return _openframeworks.ofShortColor_getNormalized(self) - def getLerped(self, *args): return _openframeworks.ofShortColor_getLerped(self, *args) - def getHue(self): return _openframeworks.ofShortColor_getHue(self) - def getHueAngle(self): return _openframeworks.ofShortColor_getHueAngle(self) - def getSaturation(self): return _openframeworks.ofShortColor_getSaturation(self) - def getBrightness(self): return _openframeworks.ofShortColor_getBrightness(self) - def getLightness(self): return _openframeworks.ofShortColor_getLightness(self) - def getHsb(self, *args): return _openframeworks.ofShortColor_getHsb(self, *args) - def setHue(self, *args): return _openframeworks.ofShortColor_setHue(self, *args) - def setHueAngle(self, *args): return _openframeworks.ofShortColor_setHueAngle(self, *args) - def setSaturation(self, *args): return _openframeworks.ofShortColor_setSaturation(self, *args) - def setBrightness(self, *args): return _openframeworks.ofShortColor_setBrightness(self, *args) - def setHsb(self, *args): return _openframeworks.ofShortColor_setHsb(self, *args) - def __eq__(self, *args): return _openframeworks.ofShortColor___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShortColor___ne__(self, *args) - def __add__(self, *args): return _openframeworks.ofShortColor___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofShortColor___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofShortColor___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofShortColor___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofShortColor___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofShortColor___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofShortColor___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofShortColor___idiv__(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortColor___getitem__(self, *args) + if _newclass: + fromHex = staticmethod(_openframeworks.ofShortColor_fromHex) + + def set(self, *args): + return _openframeworks.ofShortColor_set(self, *args) + + def setHex(self, *args): + return _openframeworks.ofShortColor_setHex(self, *args) + + def setHue(self, hue): + return _openframeworks.ofShortColor_setHue(self, hue) + + def setHueAngle(self, angle): + return _openframeworks.ofShortColor_setHueAngle(self, angle) + + def setSaturation(self, saturation): + return _openframeworks.ofShortColor_setSaturation(self, saturation) + + def setBrightness(self, brightness): + return _openframeworks.ofShortColor_setBrightness(self, brightness) + + def setHsb(self, *args): + return _openframeworks.ofShortColor_setHsb(self, *args) + + def clamp(self): + return _openframeworks.ofShortColor_clamp(self) + + def invert(self): + return _openframeworks.ofShortColor_invert(self) + + def normalize(self): + return _openframeworks.ofShortColor_normalize(self) + + def lerp(self, target, amount): + return _openframeworks.ofShortColor_lerp(self, target, amount) + + def getClamped(self): + return _openframeworks.ofShortColor_getClamped(self) + + def getInverted(self): + return _openframeworks.ofShortColor_getInverted(self) + + def getNormalized(self): + return _openframeworks.ofShortColor_getNormalized(self) + + def getLerped(self, target, amount): + return _openframeworks.ofShortColor_getLerped(self, target, amount) + + def getHex(self): + return _openframeworks.ofShortColor_getHex(self) + + def getHue(self): + return _openframeworks.ofShortColor_getHue(self) + + def getHueAngle(self): + return _openframeworks.ofShortColor_getHueAngle(self) + + def getSaturation(self): + return _openframeworks.ofShortColor_getSaturation(self) + + def getBrightness(self): + return _openframeworks.ofShortColor_getBrightness(self) + + def getLightness(self): + return _openframeworks.ofShortColor_getLightness(self) + + def getHsb(self, hue, saturation, brightness): + return _openframeworks.ofShortColor_getHsb(self, hue, saturation, brightness) __swig_getmethods__["limit"] = lambda x: _openframeworks.ofShortColor_limit - if _newclass:limit = staticmethod(_openframeworks.ofShortColor_limit) - def getR(self): return _openframeworks.ofShortColor_getR(self) - def getG(self): return _openframeworks.ofShortColor_getG(self) - def getB(self): return _openframeworks.ofShortColor_getB(self) - def getA(self): return _openframeworks.ofShortColor_getA(self) - def setR(self, *args): return _openframeworks.ofShortColor_setR(self, *args) - def setG(self, *args): return _openframeworks.ofShortColor_setG(self, *args) - def setB(self, *args): return _openframeworks.ofShortColor_setB(self, *args) - def setA(self, *args): return _openframeworks.ofShortColor_setA(self, *args) - def __str__(self): return _openframeworks.ofShortColor___str__(self) + if _newclass: + limit = staticmethod(_openframeworks.ofShortColor_limit) + + def __eq__(self, color): + return _openframeworks.ofShortColor___eq__(self, color) + + def __ne__(self, color): + return _openframeworks.ofShortColor___ne__(self, color) + + def __add__(self, *args): + return _openframeworks.ofShortColor___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofShortColor___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofShortColor___sub__(self, *args) + + def __isub__(self, *args): + return _openframeworks.ofShortColor___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofShortColor___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofShortColor___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofShortColor___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofShortColor___idiv__(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortColor___getitem__(self, *args) + + def getR(self): + return _openframeworks.ofShortColor_getR(self) + + def getG(self): + return _openframeworks.ofShortColor_getG(self) + + def getB(self): + return _openframeworks.ofShortColor_getB(self) + + def getA(self): + return _openframeworks.ofShortColor_getA(self) + + def setR(self, r): + return _openframeworks.ofShortColor_setR(self, r) + + def setG(self, g): + return _openframeworks.ofShortColor_setG(self, g) + + def setB(self, b): + return _openframeworks.ofShortColor_setB(self, b) + + def setA(self, a): + return _openframeworks.ofShortColor_setA(self, a) + + def __str__(self): + return _openframeworks.ofShortColor___str__(self) __swig_setmethods__["r"] = _openframeworks.ofShortColor_r_set __swig_getmethods__["r"] = _openframeworks.ofShortColor_r_get - if _newclass:r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) + if _newclass: + r = _swig_property(_openframeworks.ofShortColor_r_get, _openframeworks.ofShortColor_r_set) __swig_setmethods__["g"] = _openframeworks.ofShortColor_g_set __swig_getmethods__["g"] = _openframeworks.ofShortColor_g_get - if _newclass:g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofShortColor_g_get, _openframeworks.ofShortColor_g_set) __swig_setmethods__["b"] = _openframeworks.ofShortColor_b_set __swig_getmethods__["b"] = _openframeworks.ofShortColor_b_get - if _newclass:b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofShortColor_b_get, _openframeworks.ofShortColor_b_set) __swig_setmethods__["a"] = _openframeworks.ofShortColor_a_set __swig_getmethods__["a"] = _openframeworks.ofShortColor_a_get - if _newclass:a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofShortColor_a_get, _openframeworks.ofShortColor_a_set) + __swig_destroy__ = _openframeworks.delete_ofShortColor + __del__ = lambda self: None ofShortColor_swigregister = _openframeworks.ofShortColor_swigregister ofShortColor_swigregister(ofShortColor) def ofShortColor_fromHsb(*args): - return _openframeworks.ofShortColor_fromHsb(*args) + return _openframeworks.ofShortColor_fromHsb(*args) ofShortColor_fromHsb = _openframeworks.ofShortColor_fromHsb def ofShortColor_fromHex(*args): - return _openframeworks.ofShortColor_fromHex(*args) + return _openframeworks.ofShortColor_fromHex(*args) ofShortColor_fromHex = _openframeworks.ofShortColor_fromHex + +def ofShortColor_limit(): + return _openframeworks.ofShortColor_limit() +ofShortColor_limit = _openframeworks.ofShortColor_limit ofShortColor.white = _openframeworks.cvar.ofShortColor_white ofShortColor.gray = _openframeworks.cvar.ofShortColor_gray ofShortColor.black = _openframeworks.cvar.ofShortColor_black @@ -1611,29 +3119,136 @@ def ofShortColor_fromHex(*args): ofShortColor.whiteSmoke = _openframeworks.cvar.ofShortColor_whiteSmoke ofShortColor.yellowGreen = _openframeworks.cvar.ofShortColor_yellowGreen -def ofShortColor_limit(): - return _openframeworks.ofShortColor_limit() -ofShortColor_limit = _openframeworks.ofShortColor_limit - def ofIsVFlipped(): - return _openframeworks.ofIsVFlipped() + return _openframeworks.ofIsVFlipped() ofIsVFlipped = _openframeworks.ofIsVFlipped +class ofBaseHasTexturePlanes(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseHasTexturePlanes, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseHasTexturePlanes, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseHasTexturePlanes + __del__ = lambda self: None + + def getTexturePlanes(self, *args): + return _openframeworks.ofBaseHasTexturePlanes_getTexturePlanes(self, *args) +ofBaseHasTexturePlanes_swigregister = _openframeworks.ofBaseHasTexturePlanes_swigregister +ofBaseHasTexturePlanes_swigregister(ofBaseHasTexturePlanes) + +class ofBaseURLFileLoader(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseURLFileLoader, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseURLFileLoader, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseURLFileLoader + __del__ = lambda self: None + + def get(self, url): + return _openframeworks.ofBaseURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofBaseURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofBaseURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofBaseURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofBaseURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofBaseURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofBaseURLFileLoader_handleRequest(self, request) +ofBaseURLFileLoader_swigregister = _openframeworks.ofBaseURLFileLoader_swigregister +ofBaseURLFileLoader_swigregister(ofBaseURLFileLoader) + +class ofBaseMaterial(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofBaseMaterial, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofBaseMaterial, name) + + def __init__(self, *args, **kwargs): + raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofBaseMaterial + __del__ = lambda self: None + + def getDiffuseColor(self): + return _openframeworks.ofBaseMaterial_getDiffuseColor(self) + + def getAmbientColor(self): + return _openframeworks.ofBaseMaterial_getAmbientColor(self) + + def getSpecularColor(self): + return _openframeworks.ofBaseMaterial_getSpecularColor(self) + + def getEmissiveColor(self): + return _openframeworks.ofBaseMaterial_getEmissiveColor(self) + + def getShininess(self): + return _openframeworks.ofBaseMaterial_getShininess(self) + + def begin(self): + return _openframeworks.ofBaseMaterial_begin(self) + + def end(self): + return _openframeworks.ofBaseMaterial_end(self) + + def getShader(self, textureTarget, renderer): + return _openframeworks.ofBaseMaterial_getShader(self, textureTarget, renderer) + + def uploadMatrices(self, shader, renderer): + return _openframeworks.ofBaseMaterial_uploadMatrices(self, shader, renderer) + + def updateMaterial(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateMaterial(self, shader, renderer) + + def updateLights(self, shader, renderer): + return _openframeworks.ofBaseMaterial_updateLights(self, shader, renderer) +ofBaseMaterial_swigregister = _openframeworks.ofBaseMaterial_swigregister +ofBaseMaterial_swigregister(ofBaseMaterial) + class ofSerialDeviceInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofSerialDeviceInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerialDeviceInfo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSerialDeviceInfo(*args) - try: self.this.append(this) - except: self.this = this - def getDevicePath(self): return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) - def getDeviceName(self): return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) - def getDeviceID(self): return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getDevicePath(self): + return _openframeworks.ofSerialDeviceInfo_getDevicePath(self) + + def getDeviceName(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceName(self) + + def getDeviceID(self): + return _openframeworks.ofSerialDeviceInfo_getDeviceID(self) __swig_destroy__ = _openframeworks.delete_ofSerialDeviceInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofSerialDeviceInfo_swigregister = _openframeworks.ofSerialDeviceInfo_swigregister ofSerialDeviceInfo_swigregister(ofSerialDeviceInfo) @@ -1643,297 +3258,431 @@ class ofStyle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofStyle, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofStyle() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofStyle - __del__ = lambda self : None; + __del__ = lambda self: None __swig_setmethods__["color"] = _openframeworks.ofStyle_color_set __swig_getmethods__["color"] = _openframeworks.ofStyle_color_get - if _newclass:color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) + if _newclass: + color = _swig_property(_openframeworks.ofStyle_color_get, _openframeworks.ofStyle_color_set) __swig_setmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_set __swig_getmethods__["bgColor"] = _openframeworks.ofStyle_bgColor_get - if _newclass:bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) + if _newclass: + bgColor = _swig_property(_openframeworks.ofStyle_bgColor_get, _openframeworks.ofStyle_bgColor_set) __swig_setmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_set __swig_getmethods__["polyMode"] = _openframeworks.ofStyle_polyMode_get - if _newclass:polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) + if _newclass: + polyMode = _swig_property(_openframeworks.ofStyle_polyMode_get, _openframeworks.ofStyle_polyMode_set) __swig_setmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_set __swig_getmethods__["rectMode"] = _openframeworks.ofStyle_rectMode_get - if _newclass:rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) + if _newclass: + rectMode = _swig_property(_openframeworks.ofStyle_rectMode_get, _openframeworks.ofStyle_rectMode_set) __swig_setmethods__["bFill"] = _openframeworks.ofStyle_bFill_set __swig_getmethods__["bFill"] = _openframeworks.ofStyle_bFill_get - if _newclass:bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) + if _newclass: + bFill = _swig_property(_openframeworks.ofStyle_bFill_get, _openframeworks.ofStyle_bFill_set) __swig_setmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_set __swig_getmethods__["drawBitmapMode"] = _openframeworks.ofStyle_drawBitmapMode_get - if _newclass:drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) + if _newclass: + drawBitmapMode = _swig_property(_openframeworks.ofStyle_drawBitmapMode_get, _openframeworks.ofStyle_drawBitmapMode_set) __swig_setmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_set __swig_getmethods__["blendingMode"] = _openframeworks.ofStyle_blendingMode_get - if _newclass:blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) + if _newclass: + blendingMode = _swig_property(_openframeworks.ofStyle_blendingMode_get, _openframeworks.ofStyle_blendingMode_set) __swig_setmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_set __swig_getmethods__["smoothing"] = _openframeworks.ofStyle_smoothing_get - if _newclass:smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) + if _newclass: + smoothing = _swig_property(_openframeworks.ofStyle_smoothing_get, _openframeworks.ofStyle_smoothing_set) __swig_setmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_set __swig_getmethods__["circleResolution"] = _openframeworks.ofStyle_circleResolution_get - if _newclass:circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) + if _newclass: + circleResolution = _swig_property(_openframeworks.ofStyle_circleResolution_get, _openframeworks.ofStyle_circleResolution_set) __swig_setmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_set __swig_getmethods__["sphereResolution"] = _openframeworks.ofStyle_sphereResolution_get - if _newclass:sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) + if _newclass: + sphereResolution = _swig_property(_openframeworks.ofStyle_sphereResolution_get, _openframeworks.ofStyle_sphereResolution_set) __swig_setmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_set __swig_getmethods__["curveResolution"] = _openframeworks.ofStyle_curveResolution_get - if _newclass:curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) + if _newclass: + curveResolution = _swig_property(_openframeworks.ofStyle_curveResolution_get, _openframeworks.ofStyle_curveResolution_set) __swig_setmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_set __swig_getmethods__["lineWidth"] = _openframeworks.ofStyle_lineWidth_get - if _newclass:lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) + if _newclass: + lineWidth = _swig_property(_openframeworks.ofStyle_lineWidth_get, _openframeworks.ofStyle_lineWidth_set) ofStyle_swigregister = _openframeworks.ofStyle_swigregister ofStyle_swigregister(ofStyle) def ofResetElapsedTimeCounter(): - return _openframeworks.ofResetElapsedTimeCounter() + return _openframeworks.ofResetElapsedTimeCounter() ofResetElapsedTimeCounter = _openframeworks.ofResetElapsedTimeCounter def ofGetElapsedTimef(): - return _openframeworks.ofGetElapsedTimef() + return _openframeworks.ofGetElapsedTimef() ofGetElapsedTimef = _openframeworks.ofGetElapsedTimef def ofGetElapsedTimeMillis(): - return _openframeworks.ofGetElapsedTimeMillis() + return _openframeworks.ofGetElapsedTimeMillis() ofGetElapsedTimeMillis = _openframeworks.ofGetElapsedTimeMillis def ofGetElapsedTimeMicros(): - return _openframeworks.ofGetElapsedTimeMicros() + return _openframeworks.ofGetElapsedTimeMicros() ofGetElapsedTimeMicros = _openframeworks.ofGetElapsedTimeMicros def ofGetFrameNum(): - return _openframeworks.ofGetFrameNum() + return _openframeworks.ofGetFrameNum() ofGetFrameNum = _openframeworks.ofGetFrameNum def ofGetSeconds(): - return _openframeworks.ofGetSeconds() + return _openframeworks.ofGetSeconds() ofGetSeconds = _openframeworks.ofGetSeconds def ofGetMinutes(): - return _openframeworks.ofGetMinutes() + return _openframeworks.ofGetMinutes() ofGetMinutes = _openframeworks.ofGetMinutes def ofGetHours(): - return _openframeworks.ofGetHours() + return _openframeworks.ofGetHours() ofGetHours = _openframeworks.ofGetHours def ofGetUnixTime(): - return _openframeworks.ofGetUnixTime() + return _openframeworks.ofGetUnixTime() ofGetUnixTime = _openframeworks.ofGetUnixTime def ofGetSystemTime(): - return _openframeworks.ofGetSystemTime() + return _openframeworks.ofGetSystemTime() ofGetSystemTime = _openframeworks.ofGetSystemTime def ofGetSystemTimeMicros(): - return _openframeworks.ofGetSystemTimeMicros() + return _openframeworks.ofGetSystemTimeMicros() ofGetSystemTimeMicros = _openframeworks.ofGetSystemTimeMicros +def ofSleepMillis(millis): + return _openframeworks.ofSleepMillis(millis) +ofSleepMillis = _openframeworks.ofSleepMillis + def ofGetTimestampString(*args): - return _openframeworks.ofGetTimestampString(*args) + return _openframeworks.ofGetTimestampString(*args) ofGetTimestampString = _openframeworks.ofGetTimestampString def ofGetYear(): - return _openframeworks.ofGetYear() + return _openframeworks.ofGetYear() ofGetYear = _openframeworks.ofGetYear def ofGetMonth(): - return _openframeworks.ofGetMonth() + return _openframeworks.ofGetMonth() ofGetMonth = _openframeworks.ofGetMonth def ofGetDay(): - return _openframeworks.ofGetDay() + return _openframeworks.ofGetDay() ofGetDay = _openframeworks.ofGetDay def ofGetWeekday(): - return _openframeworks.ofGetWeekday() + return _openframeworks.ofGetWeekday() ofGetWeekday = _openframeworks.ofGetWeekday -def ofLaunchBrowser(*args): - return _openframeworks.ofLaunchBrowser(*args) -ofLaunchBrowser = _openframeworks.ofLaunchBrowser - def ofEnableDataPath(): - return _openframeworks.ofEnableDataPath() + return _openframeworks.ofEnableDataPath() ofEnableDataPath = _openframeworks.ofEnableDataPath def ofDisableDataPath(): - return _openframeworks.ofDisableDataPath() + return _openframeworks.ofDisableDataPath() ofDisableDataPath = _openframeworks.ofDisableDataPath -def ofToDataPath(*args): - return _openframeworks.ofToDataPath(*args) +def ofToDataPath(path, absolute=False): + return _openframeworks.ofToDataPath(path, absolute) ofToDataPath = _openframeworks.ofToDataPath -def ofSetWorkingDirectoryToDefault(): - return _openframeworks.ofSetWorkingDirectoryToDefault() -ofSetWorkingDirectoryToDefault = _openframeworks.ofSetWorkingDirectoryToDefault +def ofRestoreWorkingDirectoryToDefault(): + return _openframeworks.ofRestoreWorkingDirectoryToDefault() +ofRestoreWorkingDirectoryToDefault = _openframeworks.ofRestoreWorkingDirectoryToDefault -def ofSetDataPathRoot(*args): - return _openframeworks.ofSetDataPathRoot(*args) +def ofSetDataPathRoot(root): + return _openframeworks.ofSetDataPathRoot(root) ofSetDataPathRoot = _openframeworks.ofSetDataPathRoot -def ofToHex(*args): - return _openframeworks.ofToHex(*args) -ofToHex = _openframeworks.ofToHex +def ofSplitString(source, delimiter, ignoreEmpty=False, trim=False): + return _openframeworks.ofSplitString(source, delimiter, ignoreEmpty, trim) +ofSplitString = _openframeworks.ofSplitString -def ofHexToInt(*args): - return _openframeworks.ofHexToInt(*args) -ofHexToInt = _openframeworks.ofHexToInt +def ofJoinString(stringElements, delimiter): + return _openframeworks.ofJoinString(stringElements, delimiter) +ofJoinString = _openframeworks.ofJoinString -def ofHexToChar(*args): - return _openframeworks.ofHexToChar(*args) -ofHexToChar = _openframeworks.ofHexToChar +def ofStringReplace(input, searchStr, replaceStr): + return _openframeworks.ofStringReplace(input, searchStr, replaceStr) +ofStringReplace = _openframeworks.ofStringReplace -def ofHexToFloat(*args): - return _openframeworks.ofHexToFloat(*args) -ofHexToFloat = _openframeworks.ofHexToFloat +def ofIsStringInString(haystack, needle): + return _openframeworks.ofIsStringInString(haystack, needle) +ofIsStringInString = _openframeworks.ofIsStringInString -def ofHexToString(*args): - return _openframeworks.ofHexToString(*args) -ofHexToString = _openframeworks.ofHexToString +def ofStringTimesInString(haystack, needle): + return _openframeworks.ofStringTimesInString(haystack, needle) +ofStringTimesInString = _openframeworks.ofStringTimesInString + +def ofToLower(*args): + return _openframeworks.ofToLower(*args) +ofToLower = _openframeworks.ofToLower + +def ofToUpper(*args): + return _openframeworks.ofToUpper(*args) +ofToUpper = _openframeworks.ofToUpper + +def ofTrimFront(*args): + return _openframeworks.ofTrimFront(*args) +ofTrimFront = _openframeworks.ofTrimFront + +def ofTrimBack(*args): + return _openframeworks.ofTrimBack(*args) +ofTrimBack = _openframeworks.ofTrimBack + +def ofTrim(*args): + return _openframeworks.ofTrim(*args) +ofTrim = _openframeworks.ofTrim -def ofToInt(*args): - return _openframeworks.ofToInt(*args) +def ofAppendUTF8(str, utf8): + return _openframeworks.ofAppendUTF8(str, utf8) +ofAppendUTF8 = _openframeworks.ofAppendUTF8 + +def ofToInt(intString): + return _openframeworks.ofToInt(intString) ofToInt = _openframeworks.ofToInt -def ofToChar(*args): - return _openframeworks.ofToChar(*args) -ofToChar = _openframeworks.ofToChar +def ofToInt64(intString): + return _openframeworks.ofToInt64(intString) +ofToInt64 = _openframeworks.ofToInt64 -def ofToFloat(*args): - return _openframeworks.ofToFloat(*args) +def ofToFloat(floatString): + return _openframeworks.ofToFloat(floatString) ofToFloat = _openframeworks.ofToFloat -def ofToDouble(*args): - return _openframeworks.ofToDouble(*args) +def ofToDouble(doubleString): + return _openframeworks.ofToDouble(doubleString) ofToDouble = _openframeworks.ofToDouble -def ofToBool(*args): - return _openframeworks.ofToBool(*args) +def ofToBool(boolString): + return _openframeworks.ofToBool(boolString) ofToBool = _openframeworks.ofToBool -def ofToBinary(*args): - return _openframeworks.ofToBinary(*args) +def ofToHex(value): + return _openframeworks.ofToHex(value) +ofToHex = _openframeworks.ofToHex + +def ofHexToInt(intHexString): + return _openframeworks.ofHexToInt(intHexString) +ofHexToInt = _openframeworks.ofHexToInt + +def ofHexToChar(charHexString): + return _openframeworks.ofHexToChar(charHexString) +ofHexToChar = _openframeworks.ofHexToChar + +def ofHexToFloat(floatHexString): + return _openframeworks.ofHexToFloat(floatHexString) +ofHexToFloat = _openframeworks.ofHexToFloat + +def ofHexToString(stringHexString): + return _openframeworks.ofHexToString(stringHexString) +ofHexToString = _openframeworks.ofHexToString + +def ofToChar(charString): + return _openframeworks.ofToChar(charString) +ofToChar = _openframeworks.ofToChar + +def ofToBinary(value): + return _openframeworks.ofToBinary(value) ofToBinary = _openframeworks.ofToBinary -def ofBinaryToInt(*args): - return _openframeworks.ofBinaryToInt(*args) +def ofBinaryToInt(value): + return _openframeworks.ofBinaryToInt(value) ofBinaryToInt = _openframeworks.ofBinaryToInt -def ofBinaryToChar(*args): - return _openframeworks.ofBinaryToChar(*args) +def ofBinaryToChar(value): + return _openframeworks.ofBinaryToChar(value) ofBinaryToChar = _openframeworks.ofBinaryToChar -def ofBinaryToFloat(*args): - return _openframeworks.ofBinaryToFloat(*args) +def ofBinaryToFloat(value): + return _openframeworks.ofBinaryToFloat(value) ofBinaryToFloat = _openframeworks.ofBinaryToFloat -def ofBinaryToString(*args): - return _openframeworks.ofBinaryToString(*args) +def ofBinaryToString(value): + return _openframeworks.ofBinaryToString(value) ofBinaryToString = _openframeworks.ofBinaryToString def ofGetVersionInfo(): - return _openframeworks.ofGetVersionInfo() + return _openframeworks.ofGetVersionInfo() ofGetVersionInfo = _openframeworks.ofGetVersionInfo def ofGetVersionMajor(): - return _openframeworks.ofGetVersionMajor() + return _openframeworks.ofGetVersionMajor() ofGetVersionMajor = _openframeworks.ofGetVersionMajor def ofGetVersionMinor(): - return _openframeworks.ofGetVersionMinor() + return _openframeworks.ofGetVersionMinor() ofGetVersionMinor = _openframeworks.ofGetVersionMinor def ofGetVersionPatch(): - return _openframeworks.ofGetVersionPatch() + return _openframeworks.ofGetVersionPatch() ofGetVersionPatch = _openframeworks.ofGetVersionPatch -def ofSaveScreen(*args): - return _openframeworks.ofSaveScreen(*args) +def ofGetVersionPreRelease(): + return _openframeworks.ofGetVersionPreRelease() +ofGetVersionPreRelease = _openframeworks.ofGetVersionPreRelease + +def ofSaveScreen(filename): + return _openframeworks.ofSaveScreen(filename) ofSaveScreen = _openframeworks.ofSaveScreen def ofSaveFrame(bUseViewport=False): - return _openframeworks.ofSaveFrame(bUseViewport) + return _openframeworks.ofSaveFrame(bUseViewport) ofSaveFrame = _openframeworks.ofSaveFrame -def ofSaveViewport(*args): - return _openframeworks.ofSaveViewport(*args) +def ofSaveViewport(filename): + return _openframeworks.ofSaveViewport(filename) ofSaveViewport = _openframeworks.ofSaveViewport -def ofSplitString(*args): - return _openframeworks.ofSplitString(*args) -ofSplitString = _openframeworks.ofSplitString +def ofLaunchBrowser(url, uriEncodeQuery=False): + return _openframeworks.ofLaunchBrowser(url, uriEncodeQuery) +ofLaunchBrowser = _openframeworks.ofLaunchBrowser -def ofJoinString(*args): - return _openframeworks.ofJoinString(*args) -ofJoinString = _openframeworks.ofJoinString +def ofSystem(command): + return _openframeworks.ofSystem(command) +ofSystem = _openframeworks.ofSystem -def ofStringReplace(*args): - return _openframeworks.ofStringReplace(*args) -ofStringReplace = _openframeworks.ofStringReplace +def ofGetTargetPlatform(): + return _openframeworks.ofGetTargetPlatform() +ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform -def ofIsStringInString(*args): - return _openframeworks.ofIsStringInString(*args) -ofIsStringInString = _openframeworks.ofIsStringInString +def ofGetEnv(var): + return _openframeworks.ofGetEnv(var) +ofGetEnv = _openframeworks.ofGetEnv +class ofUTF8Iterator(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofUTF8Iterator, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofUTF8Iterator, name) + __repr__ = _swig_repr -def ofStringTimesInString(*args): - return _openframeworks.ofStringTimesInString(*args) -ofStringTimesInString = _openframeworks.ofStringTimesInString + def __init__(self, str): + this = _openframeworks.new_ofUTF8Iterator(str) + try: + self.this.append(this) + except Exception: + self.this = this -def ofToLower(*args): - return _openframeworks.ofToLower(*args) -ofToLower = _openframeworks.ofToLower + def begin(self): + return _openframeworks.ofUTF8Iterator_begin(self) -def ofToUpper(*args): - return _openframeworks.ofToUpper(*args) -ofToUpper = _openframeworks.ofToUpper + def end(self): + return _openframeworks.ofUTF8Iterator_end(self) -def ofSystem(*args): - return _openframeworks.ofSystem(*args) -ofSystem = _openframeworks.ofSystem + def rbegin(self): + return _openframeworks.ofUTF8Iterator_rbegin(self) -def ofGetTargetPlatform(): - return _openframeworks.ofGetTargetPlatform() -ofGetTargetPlatform = _openframeworks.ofGetTargetPlatform + def rend(self): + return _openframeworks.ofUTF8Iterator_rend(self) + __swig_destroy__ = _openframeworks.delete_ofUTF8Iterator + __del__ = lambda self: None +ofUTF8Iterator_swigregister = _openframeworks.ofUTF8Iterator_swigregister +ofUTF8Iterator_swigregister(ofUTF8Iterator) + + +def setWorkingDirectoryToDefault(): + return _openframeworks.setWorkingDirectoryToDefault() +setWorkingDirectoryToDefault = _openframeworks.setWorkingDirectoryToDefault + +def initutils(): + return _openframeworks.initutils() +initutils = _openframeworks.initutils + +def endutils(): + return _openframeworks.endutils() +endutils = _openframeworks.endutils class ofBuffer(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofBuffer, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofBuffer, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBuffer(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofBuffer_set(self, *args) + + def append(self, *args): + return _openframeworks.ofBuffer_append(self, *args) + + def writeTo(self, stream): + return _openframeworks.ofBuffer_writeTo(self, stream) + + def clear(self): + return _openframeworks.ofBuffer_clear(self) + + def allocate(self, _size): + return _openframeworks.ofBuffer_allocate(self, _size) + + def getData(self, *args): + return _openframeworks.ofBuffer_getData(self, *args) + + def getBinaryBuffer(self, *args): + return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) + + def getText(self): + return _openframeworks.ofBuffer_getText(self) + + def size(self): + return _openframeworks.ofBuffer_size(self) + + def getNextLine(self): + return _openframeworks.ofBuffer_getNextLine(self) + + def getFirstLine(self): + return _openframeworks.ofBuffer_getFirstLine(self) + + def isLastLine(self): + return _openframeworks.ofBuffer_isLastLine(self) + + def resetLineReader(self): + return _openframeworks.ofBuffer_resetLineReader(self) + + def begin(self, *args): + return _openframeworks.ofBuffer_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofBuffer_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofBuffer_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofBuffer_rend(self, *args) + + def getLines(self): + return _openframeworks.ofBuffer_getLines(self) __swig_destroy__ = _openframeworks.delete_ofBuffer - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBuffer_set(self, *args) - def append(self, *args): return _openframeworks.ofBuffer_append(self, *args) - def writeTo(self, *args): return _openframeworks.ofBuffer_writeTo(self, *args) - def clear(self): return _openframeworks.ofBuffer_clear(self) - def allocate(self, *args): return _openframeworks.ofBuffer_allocate(self, *args) - def getBinaryBuffer(self, *args): return _openframeworks.ofBuffer_getBinaryBuffer(self, *args) - def getText(self): return _openframeworks.ofBuffer_getText(self) - def size(self): return _openframeworks.ofBuffer_size(self) - def getNextLine(self): return _openframeworks.ofBuffer_getNextLine(self) - def getFirstLine(self): return _openframeworks.ofBuffer_getFirstLine(self) - def isLastLine(self): return _openframeworks.ofBuffer_isLastLine(self) - def resetLineReader(self): return _openframeworks.ofBuffer_resetLineReader(self) + __del__ = lambda self: None ofBuffer_swigregister = _openframeworks.ofBuffer_swigregister ofBuffer_swigregister(ofBuffer) -def ofBufferFromFile(*args): - return _openframeworks.ofBufferFromFile(*args) +def ofBufferFromFile(path, binary=False): + return _openframeworks.ofBufferFromFile(path, binary) ofBufferFromFile = _openframeworks.ofBufferFromFile -def ofBufferToFile(*args): - return _openframeworks.ofBufferToFile(*args) +def ofBufferToFile(path, buffer, binary=False): + return _openframeworks.ofBufferToFile(path, buffer, binary) ofBufferToFile = _openframeworks.ofBufferToFile class ofFilePath(_object): __swig_setmethods__ = {} @@ -1942,116 +3691,143 @@ class ofFilePath(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofFilePath, name) __repr__ = _swig_repr __swig_getmethods__["getFileExt"] = lambda x: _openframeworks.ofFilePath_getFileExt - if _newclass:getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) + if _newclass: + getFileExt = staticmethod(_openframeworks.ofFilePath_getFileExt) __swig_getmethods__["removeExt"] = lambda x: _openframeworks.ofFilePath_removeExt - if _newclass:removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) + if _newclass: + removeExt = staticmethod(_openframeworks.ofFilePath_removeExt) __swig_getmethods__["addLeadingSlash"] = lambda x: _openframeworks.ofFilePath_addLeadingSlash - if _newclass:addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) + if _newclass: + addLeadingSlash = staticmethod(_openframeworks.ofFilePath_addLeadingSlash) __swig_getmethods__["addTrailingSlash"] = lambda x: _openframeworks.ofFilePath_addTrailingSlash - if _newclass:addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) + if _newclass: + addTrailingSlash = staticmethod(_openframeworks.ofFilePath_addTrailingSlash) __swig_getmethods__["removeTrailingSlash"] = lambda x: _openframeworks.ofFilePath_removeTrailingSlash - if _newclass:removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) + if _newclass: + removeTrailingSlash = staticmethod(_openframeworks.ofFilePath_removeTrailingSlash) __swig_getmethods__["getPathForDirectory"] = lambda x: _openframeworks.ofFilePath_getPathForDirectory - if _newclass:getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) + if _newclass: + getPathForDirectory = staticmethod(_openframeworks.ofFilePath_getPathForDirectory) __swig_getmethods__["getAbsolutePath"] = lambda x: _openframeworks.ofFilePath_getAbsolutePath - if _newclass:getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) + if _newclass: + getAbsolutePath = staticmethod(_openframeworks.ofFilePath_getAbsolutePath) __swig_getmethods__["isAbsolute"] = lambda x: _openframeworks.ofFilePath_isAbsolute - if _newclass:isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) + if _newclass: + isAbsolute = staticmethod(_openframeworks.ofFilePath_isAbsolute) __swig_getmethods__["getFileName"] = lambda x: _openframeworks.ofFilePath_getFileName - if _newclass:getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) + if _newclass: + getFileName = staticmethod(_openframeworks.ofFilePath_getFileName) __swig_getmethods__["getBaseName"] = lambda x: _openframeworks.ofFilePath_getBaseName - if _newclass:getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) + if _newclass: + getBaseName = staticmethod(_openframeworks.ofFilePath_getBaseName) __swig_getmethods__["getEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_getEnclosingDirectory - if _newclass:getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) + if _newclass: + getEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_getEnclosingDirectory) __swig_getmethods__["createEnclosingDirectory"] = lambda x: _openframeworks.ofFilePath_createEnclosingDirectory - if _newclass:createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) + if _newclass: + createEnclosingDirectory = staticmethod(_openframeworks.ofFilePath_createEnclosingDirectory) __swig_getmethods__["getCurrentWorkingDirectory"] = lambda x: _openframeworks.ofFilePath_getCurrentWorkingDirectory - if _newclass:getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) + if _newclass: + getCurrentWorkingDirectory = staticmethod(_openframeworks.ofFilePath_getCurrentWorkingDirectory) __swig_getmethods__["join"] = lambda x: _openframeworks.ofFilePath_join - if _newclass:join = staticmethod(_openframeworks.ofFilePath_join) + if _newclass: + join = staticmethod(_openframeworks.ofFilePath_join) __swig_getmethods__["getCurrentExePath"] = lambda x: _openframeworks.ofFilePath_getCurrentExePath - if _newclass:getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) + if _newclass: + getCurrentExePath = staticmethod(_openframeworks.ofFilePath_getCurrentExePath) __swig_getmethods__["getCurrentExeDir"] = lambda x: _openframeworks.ofFilePath_getCurrentExeDir - if _newclass:getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) + if _newclass: + getCurrentExeDir = staticmethod(_openframeworks.ofFilePath_getCurrentExeDir) __swig_getmethods__["getUserHomeDir"] = lambda x: _openframeworks.ofFilePath_getUserHomeDir - if _newclass:getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) - def __init__(self): + if _newclass: + getUserHomeDir = staticmethod(_openframeworks.ofFilePath_getUserHomeDir) + __swig_getmethods__["makeRelative"] = lambda x: _openframeworks.ofFilePath_makeRelative + if _newclass: + makeRelative = staticmethod(_openframeworks.ofFilePath_makeRelative) + + def __init__(self): this = _openframeworks.new_ofFilePath() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFilePath - __del__ = lambda self : None; + __del__ = lambda self: None ofFilePath_swigregister = _openframeworks.ofFilePath_swigregister ofFilePath_swigregister(ofFilePath) -def ofFilePath_getFileExt(*args): - return _openframeworks.ofFilePath_getFileExt(*args) +def ofFilePath_getFileExt(filename): + return _openframeworks.ofFilePath_getFileExt(filename) ofFilePath_getFileExt = _openframeworks.ofFilePath_getFileExt -def ofFilePath_removeExt(*args): - return _openframeworks.ofFilePath_removeExt(*args) +def ofFilePath_removeExt(filename): + return _openframeworks.ofFilePath_removeExt(filename) ofFilePath_removeExt = _openframeworks.ofFilePath_removeExt -def ofFilePath_addLeadingSlash(*args): - return _openframeworks.ofFilePath_addLeadingSlash(*args) +def ofFilePath_addLeadingSlash(path): + return _openframeworks.ofFilePath_addLeadingSlash(path) ofFilePath_addLeadingSlash = _openframeworks.ofFilePath_addLeadingSlash -def ofFilePath_addTrailingSlash(*args): - return _openframeworks.ofFilePath_addTrailingSlash(*args) +def ofFilePath_addTrailingSlash(path): + return _openframeworks.ofFilePath_addTrailingSlash(path) ofFilePath_addTrailingSlash = _openframeworks.ofFilePath_addTrailingSlash -def ofFilePath_removeTrailingSlash(*args): - return _openframeworks.ofFilePath_removeTrailingSlash(*args) +def ofFilePath_removeTrailingSlash(path): + return _openframeworks.ofFilePath_removeTrailingSlash(path) ofFilePath_removeTrailingSlash = _openframeworks.ofFilePath_removeTrailingSlash -def ofFilePath_getPathForDirectory(*args): - return _openframeworks.ofFilePath_getPathForDirectory(*args) +def ofFilePath_getPathForDirectory(path): + return _openframeworks.ofFilePath_getPathForDirectory(path) ofFilePath_getPathForDirectory = _openframeworks.ofFilePath_getPathForDirectory -def ofFilePath_getAbsolutePath(*args): - return _openframeworks.ofFilePath_getAbsolutePath(*args) +def ofFilePath_getAbsolutePath(path, bRelativeToData=True): + return _openframeworks.ofFilePath_getAbsolutePath(path, bRelativeToData) ofFilePath_getAbsolutePath = _openframeworks.ofFilePath_getAbsolutePath -def ofFilePath_isAbsolute(*args): - return _openframeworks.ofFilePath_isAbsolute(*args) +def ofFilePath_isAbsolute(path): + return _openframeworks.ofFilePath_isAbsolute(path) ofFilePath_isAbsolute = _openframeworks.ofFilePath_isAbsolute -def ofFilePath_getFileName(*args): - return _openframeworks.ofFilePath_getFileName(*args) +def ofFilePath_getFileName(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getFileName(filePath, bRelativeToData) ofFilePath_getFileName = _openframeworks.ofFilePath_getFileName -def ofFilePath_getBaseName(*args): - return _openframeworks.ofFilePath_getBaseName(*args) +def ofFilePath_getBaseName(filePath): + return _openframeworks.ofFilePath_getBaseName(filePath) ofFilePath_getBaseName = _openframeworks.ofFilePath_getBaseName -def ofFilePath_getEnclosingDirectory(*args): - return _openframeworks.ofFilePath_getEnclosingDirectory(*args) +def ofFilePath_getEnclosingDirectory(filePath, bRelativeToData=True): + return _openframeworks.ofFilePath_getEnclosingDirectory(filePath, bRelativeToData) ofFilePath_getEnclosingDirectory = _openframeworks.ofFilePath_getEnclosingDirectory -def ofFilePath_createEnclosingDirectory(*args): - return _openframeworks.ofFilePath_createEnclosingDirectory(*args) +def ofFilePath_createEnclosingDirectory(filePath, bRelativeToData=True, bRecursive=True): + return _openframeworks.ofFilePath_createEnclosingDirectory(filePath, bRelativeToData, bRecursive) ofFilePath_createEnclosingDirectory = _openframeworks.ofFilePath_createEnclosingDirectory def ofFilePath_getCurrentWorkingDirectory(): - return _openframeworks.ofFilePath_getCurrentWorkingDirectory() + return _openframeworks.ofFilePath_getCurrentWorkingDirectory() ofFilePath_getCurrentWorkingDirectory = _openframeworks.ofFilePath_getCurrentWorkingDirectory -def ofFilePath_join(*args): - return _openframeworks.ofFilePath_join(*args) +def ofFilePath_join(path1, path2): + return _openframeworks.ofFilePath_join(path1, path2) ofFilePath_join = _openframeworks.ofFilePath_join def ofFilePath_getCurrentExePath(): - return _openframeworks.ofFilePath_getCurrentExePath() + return _openframeworks.ofFilePath_getCurrentExePath() ofFilePath_getCurrentExePath = _openframeworks.ofFilePath_getCurrentExePath def ofFilePath_getCurrentExeDir(): - return _openframeworks.ofFilePath_getCurrentExeDir() + return _openframeworks.ofFilePath_getCurrentExeDir() ofFilePath_getCurrentExeDir = _openframeworks.ofFilePath_getCurrentExeDir def ofFilePath_getUserHomeDir(): - return _openframeworks.ofFilePath_getUserHomeDir() + return _openframeworks.ofFilePath_getUserHomeDir() ofFilePath_getUserHomeDir = _openframeworks.ofFilePath_getUserHomeDir +def ofFilePath_makeRelative(arg2, to): + return _openframeworks.ofFilePath_makeRelative(arg2, to) +ofFilePath_makeRelative = _openframeworks.ofFilePath_makeRelative + class ofFile(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofFile, name, value) @@ -2063,74 +3839,152 @@ class ofFile(_object): WriteOnly = _openframeworks.ofFile_WriteOnly ReadWrite = _openframeworks.ofFile_ReadWrite Append = _openframeworks.ofFile_Append - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofFile(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofFile - __del__ = lambda self : None; - def open(self, *args): return _openframeworks.ofFile_open(self, *args) - def changeMode(self, *args): return _openframeworks.ofFile_changeMode(self, *args) - def close(self): return _openframeworks.ofFile_close(self) - def create(self): return _openframeworks.ofFile_create(self) - def exists(self): return _openframeworks.ofFile_exists(self) - def path(self): return _openframeworks.ofFile_path(self) - def getExtension(self): return _openframeworks.ofFile_getExtension(self) - def getFileName(self): return _openframeworks.ofFile_getFileName(self) - def getBaseName(self): return _openframeworks.ofFile_getBaseName(self) - def getEnclosingDirectory(self): return _openframeworks.ofFile_getEnclosingDirectory(self) - def getAbsolutePath(self): return _openframeworks.ofFile_getAbsolutePath(self) - def canRead(self): return _openframeworks.ofFile_canRead(self) - def canWrite(self): return _openframeworks.ofFile_canWrite(self) - def canExecute(self): return _openframeworks.ofFile_canExecute(self) - def isFile(self): return _openframeworks.ofFile_isFile(self) - def isLink(self): return _openframeworks.ofFile_isLink(self) - def isDirectory(self): return _openframeworks.ofFile_isDirectory(self) - def isDevice(self): return _openframeworks.ofFile_isDevice(self) - def isHidden(self): return _openframeworks.ofFile_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofFile_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofFile_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofFile_setExecutable(self, executable) - def copyTo(self, *args): return _openframeworks.ofFile_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofFile_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofFile_renameTo(self, *args) - def remove(self, recursive=False): return _openframeworks.ofFile_remove(self, recursive) - def getSize(self): return _openframeworks.ofFile_getSize(self) - def getPocoFile(self): return _openframeworks.ofFile_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofFile___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofFile___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofFile___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofFile___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofFile___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofFile___ge__(self, *args) - def readToBuffer(self): return _openframeworks.ofFile_readToBuffer(self) - def writeFromBuffer(self, *args): return _openframeworks.ofFile_writeFromBuffer(self, *args) - def getFileBuffer(self): return _openframeworks.ofFile_getFileBuffer(self) + __del__ = lambda self: None + + def open(self, *args): + return _openframeworks.ofFile_open(self, *args) + + def changeMode(self, mode, binary=False): + return _openframeworks.ofFile_changeMode(self, mode, binary) + + def close(self): + return _openframeworks.ofFile_close(self) + + def create(self): + return _openframeworks.ofFile_create(self) + + def exists(self): + return _openframeworks.ofFile_exists(self) + + def path(self): + return _openframeworks.ofFile_path(self) + + def getExtension(self): + return _openframeworks.ofFile_getExtension(self) + + def getFileName(self): + return _openframeworks.ofFile_getFileName(self) + + def getBaseName(self): + return _openframeworks.ofFile_getBaseName(self) + + def getEnclosingDirectory(self): + return _openframeworks.ofFile_getEnclosingDirectory(self) + + def getAbsolutePath(self): + return _openframeworks.ofFile_getAbsolutePath(self) + + def canRead(self): + return _openframeworks.ofFile_canRead(self) + + def canWrite(self): + return _openframeworks.ofFile_canWrite(self) + + def canExecute(self): + return _openframeworks.ofFile_canExecute(self) + + def isFile(self): + return _openframeworks.ofFile_isFile(self) + + def isLink(self): + return _openframeworks.ofFile_isLink(self) + + def isDirectory(self): + return _openframeworks.ofFile_isDirectory(self) + + def isDevice(self): + return _openframeworks.ofFile_isDevice(self) + + def isHidden(self): + return _openframeworks.ofFile_isHidden(self) + + def setWriteable(self, writeable=True): + return _openframeworks.ofFile_setWriteable(self, writeable) + + def setReadOnly(self, readable=True): + return _openframeworks.ofFile_setReadOnly(self, readable) + + def setExecutable(self, executable=True): + return _openframeworks.ofFile_setExecutable(self, executable) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive=False): + return _openframeworks.ofFile_remove(self, recursive) + + def getSize(self): + return _openframeworks.ofFile_getSize(self) + + def __eq__(self, file): + return _openframeworks.ofFile___eq__(self, file) + + def __ne__(self, file): + return _openframeworks.ofFile___ne__(self, file) + + def __lt__(self, file): + return _openframeworks.ofFile___lt__(self, file) + + def __le__(self, file): + return _openframeworks.ofFile___le__(self, file) + + def __gt__(self, file): + return _openframeworks.ofFile___gt__(self, file) + + def __ge__(self, file): + return _openframeworks.ofFile___ge__(self, file) + + def readToBuffer(self): + return _openframeworks.ofFile_readToBuffer(self) + + def writeFromBuffer(self, buffer): + return _openframeworks.ofFile_writeFromBuffer(self, buffer) + + def getFileBuffer(self): + return _openframeworks.ofFile_getFileBuffer(self) __swig_getmethods__["copyFromTo"] = lambda x: _openframeworks.ofFile_copyFromTo - if _newclass:copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) + if _newclass: + copyFromTo = staticmethod(_openframeworks.ofFile_copyFromTo) __swig_getmethods__["moveFromTo"] = lambda x: _openframeworks.ofFile_moveFromTo - if _newclass:moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) + if _newclass: + moveFromTo = staticmethod(_openframeworks.ofFile_moveFromTo) __swig_getmethods__["doesFileExist"] = lambda x: _openframeworks.ofFile_doesFileExist - if _newclass:doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) + if _newclass: + doesFileExist = staticmethod(_openframeworks.ofFile_doesFileExist) __swig_getmethods__["removeFile"] = lambda x: _openframeworks.ofFile_removeFile - if _newclass:removeFile = staticmethod(_openframeworks.ofFile_removeFile) + if _newclass: + removeFile = staticmethod(_openframeworks.ofFile_removeFile) ofFile_swigregister = _openframeworks.ofFile_swigregister ofFile_swigregister(ofFile) -def ofFile_copyFromTo(*args): - return _openframeworks.ofFile_copyFromTo(*args) +def ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_copyFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_copyFromTo = _openframeworks.ofFile_copyFromTo -def ofFile_moveFromTo(*args): - return _openframeworks.ofFile_moveFromTo(*args) +def ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData=True, overwrite=False): + return _openframeworks.ofFile_moveFromTo(pathSrc, pathDst, bRelativeToData, overwrite) ofFile_moveFromTo = _openframeworks.ofFile_moveFromTo -def ofFile_doesFileExist(*args): - return _openframeworks.ofFile_doesFileExist(*args) +def ofFile_doesFileExist(fPath, bRelativeToData=True): + return _openframeworks.ofFile_doesFileExist(fPath, bRelativeToData) ofFile_doesFileExist = _openframeworks.ofFile_doesFileExist -def ofFile_removeFile(*args): - return _openframeworks.ofFile_removeFile(*args) +def ofFile_removeFile(path, bRelativeToData=True): + return _openframeworks.ofFile_removeFile(path, bRelativeToData) ofFile_removeFile = _openframeworks.ofFile_removeFile class ofDirectory(_object): @@ -2139,146 +3993,259 @@ class ofDirectory(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofDirectory, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofDirectory(*args) - try: self.this.append(this) - except: self.this = this - def open(self, *args): return _openframeworks.ofDirectory_open(self, *args) - def close(self): return _openframeworks.ofDirectory_close(self) - def create(self, recursive=False): return _openframeworks.ofDirectory_create(self, recursive) - def exists(self): return _openframeworks.ofDirectory_exists(self) - def path(self): return _openframeworks.ofDirectory_path(self) - def getAbsolutePath(self): return _openframeworks.ofDirectory_getAbsolutePath(self) - def isDirectory(self): return _openframeworks.ofDirectory_isDirectory(self) - def isHidden(self): return _openframeworks.ofDirectory_isHidden(self) - def setWriteable(self, writeable=True): return _openframeworks.ofDirectory_setWriteable(self, writeable) - def setReadOnly(self, readable=True): return _openframeworks.ofDirectory_setReadOnly(self, readable) - def setExecutable(self, executable=True): return _openframeworks.ofDirectory_setExecutable(self, executable) - def setShowHidden(self, *args): return _openframeworks.ofDirectory_setShowHidden(self, *args) - def copyTo(self, *args): return _openframeworks.ofDirectory_copyTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofDirectory_moveTo(self, *args) - def renameTo(self, *args): return _openframeworks.ofDirectory_renameTo(self, *args) - def remove(self, *args): return _openframeworks.ofDirectory_remove(self, *args) - def allowExt(self, *args): return _openframeworks.ofDirectory_allowExt(self, *args) - def listDir(self, *args): return _openframeworks.ofDirectory_listDir(self, *args) - def getOriginalDirectory(self): return _openframeworks.ofDirectory_getOriginalDirectory(self) - def getName(self, *args): return _openframeworks.ofDirectory_getName(self, *args) - def getPath(self, *args): return _openframeworks.ofDirectory_getPath(self, *args) - def getFile(self, *args): return _openframeworks.ofDirectory_getFile(self, *args) - def getFiles(self): return _openframeworks.ofDirectory_getFiles(self) - def __getitem__(self, *args): return _openframeworks.ofDirectory___getitem__(self, *args) - def getShowHidden(self): return _openframeworks.ofDirectory_getShowHidden(self) - def reset(self): return _openframeworks.ofDirectory_reset(self) - def sort(self): return _openframeworks.ofDirectory_sort(self) - def size(self): return _openframeworks.ofDirectory_size(self) - def numFiles(self): return _openframeworks.ofDirectory_numFiles(self) - def getPocoFile(self): return _openframeworks.ofDirectory_getPocoFile(self) - def __eq__(self, *args): return _openframeworks.ofDirectory___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofDirectory___ne__(self, *args) - def __lt__(self, *args): return _openframeworks.ofDirectory___lt__(self, *args) - def __le__(self, *args): return _openframeworks.ofDirectory___le__(self, *args) - def __gt__(self, *args): return _openframeworks.ofDirectory___gt__(self, *args) - def __ge__(self, *args): return _openframeworks.ofDirectory___ge__(self, *args) - __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory - if _newclass:createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) - __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty - if _newclass:isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) - __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist - if _newclass:doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) - __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory - if _newclass:removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) - __swig_destroy__ = _openframeworks.delete_ofDirectory - __del__ = lambda self : None; -ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister -ofDirectory_swigregister(ofDirectory) + try: + self.this.append(this) + except Exception: + self.this = this -def ofDirectory_createDirectory(*args): - return _openframeworks.ofDirectory_createDirectory(*args) -ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + def open(self, path): + return _openframeworks.ofDirectory_open(self, path) -def ofDirectory_isDirectoryEmpty(*args): - return _openframeworks.ofDirectory_isDirectoryEmpty(*args) -ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + def close(self): + return _openframeworks.ofDirectory_close(self) -def ofDirectory_doesDirectoryExist(*args): - return _openframeworks.ofDirectory_doesDirectoryExist(*args) -ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + def create(self, recursive=False): + return _openframeworks.ofDirectory_create(self, recursive) -def ofDirectory_removeDirectory(*args): - return _openframeworks.ofDirectory_removeDirectory(*args) -ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + def exists(self): + return _openframeworks.ofDirectory_exists(self) + def path(self): + return _openframeworks.ofDirectory_path(self) -def log(*args): - return _openframeworks.log(*args) -log = _openframeworks.log -OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE -OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE -OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING -OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR -OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR -OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + def getAbsolutePath(self): + return _openframeworks.ofDirectory_getAbsolutePath(self) -def ofSetLogLevel(*args): - return _openframeworks.ofSetLogLevel(*args) -ofSetLogLevel = _openframeworks.ofSetLogLevel + def isDirectory(self): + return _openframeworks.ofDirectory_isDirectory(self) -def ofGetLogLevel(): - return _openframeworks.ofGetLogLevel() -ofGetLogLevel = _openframeworks.ofGetLogLevel + def isHidden(self): + return _openframeworks.ofDirectory_isHidden(self) -def ofGetLogLevelName(*args): - return _openframeworks.ofGetLogLevelName(*args) -ofGetLogLevelName = _openframeworks.ofGetLogLevelName + def setWriteable(self, writeable=True): + return _openframeworks.ofDirectory_setWriteable(self, writeable) -def ofLogToFile(*args): - return _openframeworks.ofLogToFile(*args) -ofLogToFile = _openframeworks.ofLogToFile + def setReadOnly(self, readable=True): + return _openframeworks.ofDirectory_setReadOnly(self, readable) -def ofLogToConsole(): - return _openframeworks.ofLogToConsole() -ofLogToConsole = _openframeworks.ofLogToConsole -class ofFileDialogResult(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) - __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofFileDialogResult() - try: self.this.append(this) - except: self.this = this - def getName(self): return _openframeworks.ofFileDialogResult_getName(self) - def getPath(self): return _openframeworks.ofFileDialogResult_getPath(self) - __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set - __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get - if _newclass:filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) - __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set - __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get - if _newclass:fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) - __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set + def setExecutable(self, executable=True): + return _openframeworks.ofDirectory_setExecutable(self, executable) + + def setShowHidden(self, showHidden): + return _openframeworks.ofDirectory_setShowHidden(self, showHidden) + + def copyTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_copyTo(self, path, bRelativeToData, overwrite) + + def moveTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_moveTo(self, path, bRelativeToData, overwrite) + + def renameTo(self, path, bRelativeToData=True, overwrite=False): + return _openframeworks.ofDirectory_renameTo(self, path, bRelativeToData, overwrite) + + def remove(self, recursive): + return _openframeworks.ofDirectory_remove(self, recursive) + + def allowExt(self, extension): + return _openframeworks.ofDirectory_allowExt(self, extension) + + def listDir(self, *args): + return _openframeworks.ofDirectory_listDir(self, *args) + + def getOriginalDirectory(self): + return _openframeworks.ofDirectory_getOriginalDirectory(self) + + def getName(self, position): + return _openframeworks.ofDirectory_getName(self, position) + + def getPath(self, position): + return _openframeworks.ofDirectory_getPath(self, position) + + def getFile(self, *args): + return _openframeworks.ofDirectory_getFile(self, *args) + + def getFiles(self): + return _openframeworks.ofDirectory_getFiles(self) + + def __getitem__(self, position): + return _openframeworks.ofDirectory___getitem__(self, position) + + def getShowHidden(self): + return _openframeworks.ofDirectory_getShowHidden(self) + + def reset(self): + return _openframeworks.ofDirectory_reset(self) + + def sort(self): + return _openframeworks.ofDirectory_sort(self) + + def getSorted(self): + return _openframeworks.ofDirectory_getSorted(self) + + def size(self): + return _openframeworks.ofDirectory_size(self) + + def numFiles(self): + return _openframeworks.ofDirectory_numFiles(self) + + def __eq__(self, dir): + return _openframeworks.ofDirectory___eq__(self, dir) + + def __ne__(self, dir): + return _openframeworks.ofDirectory___ne__(self, dir) + + def __lt__(self, dir): + return _openframeworks.ofDirectory___lt__(self, dir) + + def __le__(self, dir): + return _openframeworks.ofDirectory___le__(self, dir) + + def __gt__(self, dir): + return _openframeworks.ofDirectory___gt__(self, dir) + + def __ge__(self, dir): + return _openframeworks.ofDirectory___ge__(self, dir) + __swig_getmethods__["createDirectory"] = lambda x: _openframeworks.ofDirectory_createDirectory + if _newclass: + createDirectory = staticmethod(_openframeworks.ofDirectory_createDirectory) + __swig_getmethods__["isDirectoryEmpty"] = lambda x: _openframeworks.ofDirectory_isDirectoryEmpty + if _newclass: + isDirectoryEmpty = staticmethod(_openframeworks.ofDirectory_isDirectoryEmpty) + __swig_getmethods__["doesDirectoryExist"] = lambda x: _openframeworks.ofDirectory_doesDirectoryExist + if _newclass: + doesDirectoryExist = staticmethod(_openframeworks.ofDirectory_doesDirectoryExist) + __swig_getmethods__["removeDirectory"] = lambda x: _openframeworks.ofDirectory_removeDirectory + if _newclass: + removeDirectory = staticmethod(_openframeworks.ofDirectory_removeDirectory) + + def begin(self): + return _openframeworks.ofDirectory_begin(self) + + def end(self): + return _openframeworks.ofDirectory_end(self) + + def rbegin(self): + return _openframeworks.ofDirectory_rbegin(self) + + def rend(self): + return _openframeworks.ofDirectory_rend(self) + __swig_destroy__ = _openframeworks.delete_ofDirectory + __del__ = lambda self: None +ofDirectory_swigregister = _openframeworks.ofDirectory_swigregister +ofDirectory_swigregister(ofDirectory) + +def ofDirectory_createDirectory(dirPath, bRelativeToData=True, recursive=False): + return _openframeworks.ofDirectory_createDirectory(dirPath, bRelativeToData, recursive) +ofDirectory_createDirectory = _openframeworks.ofDirectory_createDirectory + +def ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_isDirectoryEmpty(dirPath, bRelativeToData) +ofDirectory_isDirectoryEmpty = _openframeworks.ofDirectory_isDirectoryEmpty + +def ofDirectory_doesDirectoryExist(dirPath, bRelativeToData=True): + return _openframeworks.ofDirectory_doesDirectoryExist(dirPath, bRelativeToData) +ofDirectory_doesDirectoryExist = _openframeworks.ofDirectory_doesDirectoryExist + +def ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData=True): + return _openframeworks.ofDirectory_removeDirectory(path, deleteIfNotEmpty, bRelativeToData) +ofDirectory_removeDirectory = _openframeworks.ofDirectory_removeDirectory + + +def log(level, message): + return _openframeworks.log(level, message) +log = _openframeworks.log + +_openframeworks.OF_LOG_VERBOSE_swigconstant(_openframeworks) +OF_LOG_VERBOSE = _openframeworks.OF_LOG_VERBOSE + +_openframeworks.OF_LOG_NOTICE_swigconstant(_openframeworks) +OF_LOG_NOTICE = _openframeworks.OF_LOG_NOTICE + +_openframeworks.OF_LOG_WARNING_swigconstant(_openframeworks) +OF_LOG_WARNING = _openframeworks.OF_LOG_WARNING + +_openframeworks.OF_LOG_ERROR_swigconstant(_openframeworks) +OF_LOG_ERROR = _openframeworks.OF_LOG_ERROR + +_openframeworks.OF_LOG_FATAL_ERROR_swigconstant(_openframeworks) +OF_LOG_FATAL_ERROR = _openframeworks.OF_LOG_FATAL_ERROR + +_openframeworks.OF_LOG_SILENT_swigconstant(_openframeworks) +OF_LOG_SILENT = _openframeworks.OF_LOG_SILENT + +def ofSetLogLevel(*args): + return _openframeworks.ofSetLogLevel(*args) +ofSetLogLevel = _openframeworks.ofSetLogLevel + +def ofGetLogLevel(): + return _openframeworks.ofGetLogLevel() +ofGetLogLevel = _openframeworks.ofGetLogLevel + +def ofGetLogLevelName(level, pad=False): + return _openframeworks.ofGetLogLevelName(level, pad) +ofGetLogLevelName = _openframeworks.ofGetLogLevelName + +def ofLogToFile(path, append=False): + return _openframeworks.ofLogToFile(path, append) +ofLogToFile = _openframeworks.ofLogToFile + +def ofLogToConsole(): + return _openframeworks.ofLogToConsole() +ofLogToConsole = _openframeworks.ofLogToConsole +class ofFileDialogResult(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFileDialogResult, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFileDialogResult, name) + __repr__ = _swig_repr + + def __init__(self): + this = _openframeworks.new_ofFileDialogResult() + try: + self.this.append(this) + except Exception: + self.this = this + + def getName(self): + return _openframeworks.ofFileDialogResult_getName(self) + + def getPath(self): + return _openframeworks.ofFileDialogResult_getPath(self) + __swig_setmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_set + __swig_getmethods__["filePath"] = _openframeworks.ofFileDialogResult_filePath_get + if _newclass: + filePath = _swig_property(_openframeworks.ofFileDialogResult_filePath_get, _openframeworks.ofFileDialogResult_filePath_set) + __swig_setmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_set + __swig_getmethods__["fileName"] = _openframeworks.ofFileDialogResult_fileName_get + if _newclass: + fileName = _swig_property(_openframeworks.ofFileDialogResult_fileName_get, _openframeworks.ofFileDialogResult_fileName_set) + __swig_setmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_set __swig_getmethods__["bSuccess"] = _openframeworks.ofFileDialogResult_bSuccess_get - if _newclass:bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) + if _newclass: + bSuccess = _swig_property(_openframeworks.ofFileDialogResult_bSuccess_get, _openframeworks.ofFileDialogResult_bSuccess_set) __swig_destroy__ = _openframeworks.delete_ofFileDialogResult - __del__ = lambda self : None; + __del__ = lambda self: None ofFileDialogResult_swigregister = _openframeworks.ofFileDialogResult_swigregister ofFileDialogResult_swigregister(ofFileDialogResult) -def ofSystemAlertDialog(*args): - return _openframeworks.ofSystemAlertDialog(*args) +def ofSystemAlertDialog(errorMessage): + return _openframeworks.ofSystemAlertDialog(errorMessage) ofSystemAlertDialog = _openframeworks.ofSystemAlertDialog -def ofSystemLoadDialog(windowTitle="", bFolderSelection=False, defaultPath=""): - return _openframeworks.ofSystemLoadDialog(windowTitle, bFolderSelection, defaultPath) +def ofSystemLoadDialog(*args): + return _openframeworks.ofSystemLoadDialog(*args) ofSystemLoadDialog = _openframeworks.ofSystemLoadDialog -def ofSystemSaveDialog(*args): - return _openframeworks.ofSystemSaveDialog(*args) +def ofSystemSaveDialog(defaultName, messageName): + return _openframeworks.ofSystemSaveDialog(defaultName, messageName) ofSystemSaveDialog = _openframeworks.ofSystemSaveDialog def ofSystemTextBoxDialog(*args): - return _openframeworks.ofSystemTextBoxDialog(*args) + return _openframeworks.ofSystemTextBoxDialog(*args) ofSystemTextBoxDialog = _openframeworks.ofSystemTextBoxDialog class ofHttpRequest(_object): __swig_setmethods__ = {} @@ -2286,22 +4253,37 @@ class ofHttpRequest(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpRequest, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpRequest(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["url"] = _openframeworks.ofHttpRequest_url_set __swig_getmethods__["url"] = _openframeworks.ofHttpRequest_url_get - if _newclass:url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) + if _newclass: + url = _swig_property(_openframeworks.ofHttpRequest_url_get, _openframeworks.ofHttpRequest_url_set) __swig_setmethods__["name"] = _openframeworks.ofHttpRequest_name_set __swig_getmethods__["name"] = _openframeworks.ofHttpRequest_name_get - if _newclass:name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) + if _newclass: + name = _swig_property(_openframeworks.ofHttpRequest_name_get, _openframeworks.ofHttpRequest_name_set) __swig_setmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_set __swig_getmethods__["saveTo"] = _openframeworks.ofHttpRequest_saveTo_get - if _newclass:saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) - def getID(self): return _openframeworks.ofHttpRequest_getID(self) + if _newclass: + saveTo = _swig_property(_openframeworks.ofHttpRequest_saveTo_get, _openframeworks.ofHttpRequest_saveTo_set) + __swig_setmethods__["headers"] = _openframeworks.ofHttpRequest_headers_set + __swig_getmethods__["headers"] = _openframeworks.ofHttpRequest_headers_get + if _newclass: + headers = _swig_property(_openframeworks.ofHttpRequest_headers_get, _openframeworks.ofHttpRequest_headers_set) + + def getId(self): + return _openframeworks.ofHttpRequest_getId(self) + + def getID(self): + return _openframeworks.ofHttpRequest_getID(self) __swig_destroy__ = _openframeworks.delete_ofHttpRequest - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpRequest_swigregister = _openframeworks.ofHttpRequest_swigregister ofHttpRequest_swigregister(ofHttpRequest) @@ -2311,58 +4293,65 @@ class ofHttpResponse(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofHttpResponse, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofHttpResponse(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["request"] = _openframeworks.ofHttpResponse_request_set __swig_getmethods__["request"] = _openframeworks.ofHttpResponse_request_get - if _newclass:request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) + if _newclass: + request = _swig_property(_openframeworks.ofHttpResponse_request_get, _openframeworks.ofHttpResponse_request_set) __swig_setmethods__["data"] = _openframeworks.ofHttpResponse_data_set __swig_getmethods__["data"] = _openframeworks.ofHttpResponse_data_get - if _newclass:data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) + if _newclass: + data = _swig_property(_openframeworks.ofHttpResponse_data_get, _openframeworks.ofHttpResponse_data_set) __swig_setmethods__["status"] = _openframeworks.ofHttpResponse_status_set __swig_getmethods__["status"] = _openframeworks.ofHttpResponse_status_get - if _newclass:status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) + if _newclass: + status = _swig_property(_openframeworks.ofHttpResponse_status_get, _openframeworks.ofHttpResponse_status_set) __swig_setmethods__["error"] = _openframeworks.ofHttpResponse_error_set __swig_getmethods__["error"] = _openframeworks.ofHttpResponse_error_get - if _newclass:error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) + if _newclass: + error = _swig_property(_openframeworks.ofHttpResponse_error_get, _openframeworks.ofHttpResponse_error_set) __swig_destroy__ = _openframeworks.delete_ofHttpResponse - __del__ = lambda self : None; + __del__ = lambda self: None ofHttpResponse_swigregister = _openframeworks.ofHttpResponse_swigregister ofHttpResponse_swigregister(ofHttpResponse) -def ofLoadURL(*args): - return _openframeworks.ofLoadURL(*args) +def ofLoadURL(url): + return _openframeworks.ofLoadURL(url) ofLoadURL = _openframeworks.ofLoadURL def ofLoadURLAsync(*args): - return _openframeworks.ofLoadURLAsync(*args) + return _openframeworks.ofLoadURLAsync(*args) ofLoadURLAsync = _openframeworks.ofLoadURLAsync -def ofSaveURLTo(*args): - return _openframeworks.ofSaveURLTo(*args) +def ofSaveURLTo(url, path): + return _openframeworks.ofSaveURLTo(url, path) ofSaveURLTo = _openframeworks.ofSaveURLTo -def ofSaveURLAsync(*args): - return _openframeworks.ofSaveURLAsync(*args) +def ofSaveURLAsync(url, path): + return _openframeworks.ofSaveURLAsync(url, path) ofSaveURLAsync = _openframeworks.ofSaveURLAsync -def ofRemoveURLRequest(*args): - return _openframeworks.ofRemoveURLRequest(*args) +def ofRemoveURLRequest(id): + return _openframeworks.ofRemoveURLRequest(id) ofRemoveURLRequest = _openframeworks.ofRemoveURLRequest def ofRemoveAllURLRequests(): - return _openframeworks.ofRemoveAllURLRequests() + return _openframeworks.ofRemoveAllURLRequests() ofRemoveAllURLRequests = _openframeworks.ofRemoveAllURLRequests def ofStopURLLoader(): - return _openframeworks.ofStopURLLoader() + return _openframeworks.ofStopURLLoader() ofStopURLLoader = _openframeworks.ofStopURLLoader def ofURLResponseEvent(): - return _openframeworks.ofURLResponseEvent() + return _openframeworks.ofURLResponseEvent() ofURLResponseEvent = _openframeworks.ofURLResponseEvent class ofURLFileLoader(_object): __swig_setmethods__ = {} @@ -2370,19 +4359,39 @@ class ofURLFileLoader(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofURLFileLoader, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofURLFileLoader() - try: self.this.append(this) - except: self.this = this - def get(self, *args): return _openframeworks.ofURLFileLoader_get(self, *args) - def getAsync(self, *args): return _openframeworks.ofURLFileLoader_getAsync(self, *args) - def saveTo(self, *args): return _openframeworks.ofURLFileLoader_saveTo(self, *args) - def saveAsync(self, *args): return _openframeworks.ofURLFileLoader_saveAsync(self, *args) - def remove(self, *args): return _openframeworks.ofURLFileLoader_remove(self, *args) - def clear(self): return _openframeworks.ofURLFileLoader_clear(self) - def stop(self): return _openframeworks.ofURLFileLoader_stop(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def get(self, url): + return _openframeworks.ofURLFileLoader_get(self, url) + + def getAsync(self, *args): + return _openframeworks.ofURLFileLoader_getAsync(self, *args) + + def saveTo(self, url, path): + return _openframeworks.ofURLFileLoader_saveTo(self, url, path) + + def saveAsync(self, url, path): + return _openframeworks.ofURLFileLoader_saveAsync(self, url, path) + + def remove(self, id): + return _openframeworks.ofURLFileLoader_remove(self, id) + + def clear(self): + return _openframeworks.ofURLFileLoader_clear(self) + + def stop(self): + return _openframeworks.ofURLFileLoader_stop(self) + + def handleRequest(self, request): + return _openframeworks.ofURLFileLoader_handleRequest(self, request) __swig_destroy__ = _openframeworks.delete_ofURLFileLoader - __del__ = lambda self : None; + __del__ = lambda self: None ofURLFileLoader_swigregister = _openframeworks.ofURLFileLoader_swigregister ofURLFileLoader_swigregister(ofURLFileLoader) @@ -2392,86 +4401,221 @@ class ofRectangle(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofRectangle, name) __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofRectangle - __del__ = lambda self : None; - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofRectangle(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofRectangle_set(self, *args) - def setX(self, *args): return _openframeworks.ofRectangle_setX(self, *args) - def setY(self, *args): return _openframeworks.ofRectangle_setY(self, *args) - def setWidth(self, *args): return _openframeworks.ofRectangle_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofRectangle_setHeight(self, *args) - def setPosition(self, *args): return _openframeworks.ofRectangle_setPosition(self, *args) - def setFromCenter(self, *args): return _openframeworks.ofRectangle_setFromCenter(self, *args) - def translate(self, *args): return _openframeworks.ofRectangle_translate(self, *args) - def translateX(self, *args): return _openframeworks.ofRectangle_translateX(self, *args) - def translateY(self, *args): return _openframeworks.ofRectangle_translateY(self, *args) - def scale(self, *args): return _openframeworks.ofRectangle_scale(self, *args) - def scaleWidth(self, *args): return _openframeworks.ofRectangle_scaleWidth(self, *args) - def scaleHeight(self, *args): return _openframeworks.ofRectangle_scaleHeight(self, *args) - def scaleFromCenter(self, *args): return _openframeworks.ofRectangle_scaleFromCenter(self, *args) - def scaleToScaleMode(self, *args): return _openframeworks.ofRectangle_scaleToScaleMode(self, *args) - def scaleToAspectRatio(self, *args): return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) - def scaleTo(self, *args): return _openframeworks.ofRectangle_scaleTo(self, *args) - def alignToHorz(self, *args): return _openframeworks.ofRectangle_alignToHorz(self, *args) - def alignToVert(self, *args): return _openframeworks.ofRectangle_alignToVert(self, *args) - def alignTo(self, *args): return _openframeworks.ofRectangle_alignTo(self, *args) - def inside(self, *args): return _openframeworks.ofRectangle_inside(self, *args) - def intersects(self, *args): return _openframeworks.ofRectangle_intersects(self, *args) - def growToInclude(self, *args): return _openframeworks.ofRectangle_growToInclude(self, *args) - def getIntersection(self, *args): return _openframeworks.ofRectangle_getIntersection(self, *args) - def getUnion(self, *args): return _openframeworks.ofRectangle_getUnion(self, *args) - def standardize(self): return _openframeworks.ofRectangle_standardize(self) - def getStandardized(self): return _openframeworks.ofRectangle_getStandardized(self) - def isStandardized(self): return _openframeworks.ofRectangle_isStandardized(self) - def getArea(self): return _openframeworks.ofRectangle_getArea(self) - def getPerimeter(self): return _openframeworks.ofRectangle_getPerimeter(self) - def getAspectRatio(self): return _openframeworks.ofRectangle_getAspectRatio(self) - def isEmpty(self): return _openframeworks.ofRectangle_isEmpty(self) - def getMin(self): return _openframeworks.ofRectangle_getMin(self) - def getMax(self): return _openframeworks.ofRectangle_getMax(self) - def getMinX(self): return _openframeworks.ofRectangle_getMinX(self) - def getMaxX(self): return _openframeworks.ofRectangle_getMaxX(self) - def getMinY(self): return _openframeworks.ofRectangle_getMinY(self) - def getMaxY(self): return _openframeworks.ofRectangle_getMaxY(self) - def getLeft(self): return _openframeworks.ofRectangle_getLeft(self) - def getRight(self): return _openframeworks.ofRectangle_getRight(self) - def getTop(self): return _openframeworks.ofRectangle_getTop(self) - def getBottom(self): return _openframeworks.ofRectangle_getBottom(self) - def getTopLeft(self): return _openframeworks.ofRectangle_getTopLeft(self) - def getTopRight(self): return _openframeworks.ofRectangle_getTopRight(self) - def getBottomLeft(self): return _openframeworks.ofRectangle_getBottomLeft(self) - def getBottomRight(self): return _openframeworks.ofRectangle_getBottomRight(self) - def getHorzAnchor(self, *args): return _openframeworks.ofRectangle_getHorzAnchor(self, *args) - def getVertAnchor(self, *args): return _openframeworks.ofRectangle_getVertAnchor(self, *args) - def getPosition(self): return _openframeworks.ofRectangle_getPosition(self) - def getPositionRef(self): return _openframeworks.ofRectangle_getPositionRef(self) - def getCenter(self): return _openframeworks.ofRectangle_getCenter(self) - def getX(self): return _openframeworks.ofRectangle_getX(self) - def getY(self): return _openframeworks.ofRectangle_getY(self) - def getWidth(self): return _openframeworks.ofRectangle_getWidth(self) - def getHeight(self): return _openframeworks.ofRectangle_getHeight(self) - def __add__(self, *args): return _openframeworks.ofRectangle___add__(self, *args) - def __eq__(self, *args): return _openframeworks.ofRectangle___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofRectangle___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofRectangle + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofRectangle_set(self, *args) + + def setX(self, px): + return _openframeworks.ofRectangle_setX(self, px) + + def setY(self, py): + return _openframeworks.ofRectangle_setY(self, py) + + def setWidth(self, w): + return _openframeworks.ofRectangle_setWidth(self, w) + + def setHeight(self, h): + return _openframeworks.ofRectangle_setHeight(self, h) + + def setPosition(self, *args): + return _openframeworks.ofRectangle_setPosition(self, *args) + + def setSize(self, w, h): + return _openframeworks.ofRectangle_setSize(self, w, h) + + def setFromCenter(self, *args): + return _openframeworks.ofRectangle_setFromCenter(self, *args) + + def translate(self, *args): + return _openframeworks.ofRectangle_translate(self, *args) + + def translateX(self, dx): + return _openframeworks.ofRectangle_translateX(self, dx) + + def translateY(self, dy): + return _openframeworks.ofRectangle_translateY(self, dy) + + def scale(self, *args): + return _openframeworks.ofRectangle_scale(self, *args) + + def scaleWidth(self, sX): + return _openframeworks.ofRectangle_scaleWidth(self, sX) + + def scaleHeight(self, sY): + return _openframeworks.ofRectangle_scaleHeight(self, sY) + + def scaleFromCenter(self, *args): + return _openframeworks.ofRectangle_scaleFromCenter(self, *args) + + def scaleToScaleMode(self, targetRect, scaleMode=OF_SCALEMODE_FIT): + return _openframeworks.ofRectangle_scaleToScaleMode(self, targetRect, scaleMode) + + def scaleToAspectRatio(self, *args): + return _openframeworks.ofRectangle_scaleToAspectRatio(self, *args) + + def scaleTo(self, *args): + return _openframeworks.ofRectangle_scaleTo(self, *args) + + def alignToHorz(self, *args): + return _openframeworks.ofRectangle_alignToHorz(self, *args) + + def alignToVert(self, *args): + return _openframeworks.ofRectangle_alignToVert(self, *args) + + def alignTo(self, *args): + return _openframeworks.ofRectangle_alignTo(self, *args) + + def inside(self, *args): + return _openframeworks.ofRectangle_inside(self, *args) + + def intersects(self, *args): + return _openframeworks.ofRectangle_intersects(self, *args) + + def growToInclude(self, *args): + return _openframeworks.ofRectangle_growToInclude(self, *args) + + def getIntersection(self, rect): + return _openframeworks.ofRectangle_getIntersection(self, rect) + + def getUnion(self, rect): + return _openframeworks.ofRectangle_getUnion(self, rect) + + def standardize(self): + return _openframeworks.ofRectangle_standardize(self) + + def getStandardized(self): + return _openframeworks.ofRectangle_getStandardized(self) + + def isStandardized(self): + return _openframeworks.ofRectangle_isStandardized(self) + + def getArea(self): + return _openframeworks.ofRectangle_getArea(self) + + def getPerimeter(self): + return _openframeworks.ofRectangle_getPerimeter(self) + + def getAspectRatio(self): + return _openframeworks.ofRectangle_getAspectRatio(self) + + def isEmpty(self): + return _openframeworks.ofRectangle_isEmpty(self) + + def getMin(self): + return _openframeworks.ofRectangle_getMin(self) + + def getMax(self): + return _openframeworks.ofRectangle_getMax(self) + + def getMinX(self): + return _openframeworks.ofRectangle_getMinX(self) + + def getMaxX(self): + return _openframeworks.ofRectangle_getMaxX(self) + + def getMinY(self): + return _openframeworks.ofRectangle_getMinY(self) + + def getMaxY(self): + return _openframeworks.ofRectangle_getMaxY(self) + + def getLeft(self): + return _openframeworks.ofRectangle_getLeft(self) + + def getRight(self): + return _openframeworks.ofRectangle_getRight(self) + + def getTop(self): + return _openframeworks.ofRectangle_getTop(self) + + def getBottom(self): + return _openframeworks.ofRectangle_getBottom(self) + + def getTopLeft(self): + return _openframeworks.ofRectangle_getTopLeft(self) + + def getTopRight(self): + return _openframeworks.ofRectangle_getTopRight(self) + + def getBottomLeft(self): + return _openframeworks.ofRectangle_getBottomLeft(self) + + def getBottomRight(self): + return _openframeworks.ofRectangle_getBottomRight(self) + + def getHorzAnchor(self, anchor): + return _openframeworks.ofRectangle_getHorzAnchor(self, anchor) + + def getVertAnchor(self, anchor): + return _openframeworks.ofRectangle_getVertAnchor(self, anchor) + + def getPosition(self): + return _openframeworks.ofRectangle_getPosition(self) + + def getPositionRef(self): + return _openframeworks.ofRectangle_getPositionRef(self) + + def getCenter(self): + return _openframeworks.ofRectangle_getCenter(self) + + def getX(self): + return _openframeworks.ofRectangle_getX(self) + + def getY(self): + return _openframeworks.ofRectangle_getY(self) + + def getWidth(self): + return _openframeworks.ofRectangle_getWidth(self) + + def getHeight(self): + return _openframeworks.ofRectangle_getHeight(self) + + def __add__(self, p): + return _openframeworks.ofRectangle___add__(self, p) + + def __sub__(self, p): + return _openframeworks.ofRectangle___sub__(self, p) + + def __eq__(self, rect): + return _openframeworks.ofRectangle___eq__(self, rect) + + def __ne__(self, rect): + return _openframeworks.ofRectangle___ne__(self, rect) + + def isZero(self): + return _openframeworks.ofRectangle_isZero(self) __swig_setmethods__["position"] = _openframeworks.ofRectangle_position_set __swig_getmethods__["position"] = _openframeworks.ofRectangle_position_get - if _newclass:position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) + if _newclass: + position = _swig_property(_openframeworks.ofRectangle_position_get, _openframeworks.ofRectangle_position_set) __swig_setmethods__["width"] = _openframeworks.ofRectangle_width_set __swig_getmethods__["width"] = _openframeworks.ofRectangle_width_get - if _newclass:width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofRectangle_width_get, _openframeworks.ofRectangle_width_set) __swig_setmethods__["height"] = _openframeworks.ofRectangle_height_set __swig_getmethods__["height"] = _openframeworks.ofRectangle_height_get - if _newclass:height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofRectangle_height_get, _openframeworks.ofRectangle_height_set) __swig_setmethods__["x"] = _openframeworks.ofRectangle_x_set __swig_getmethods__["x"] = _openframeworks.ofRectangle_x_get - if _newclass:x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofRectangle_x_get, _openframeworks.ofRectangle_x_set) __swig_setmethods__["y"] = _openframeworks.ofRectangle_y_set __swig_getmethods__["y"] = _openframeworks.ofRectangle_y_get - if _newclass:y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) - def __str__(self): return _openframeworks.ofRectangle___str__(self) + if _newclass: + y = _swig_property(_openframeworks.ofRectangle_y_get, _openframeworks.ofRectangle_y_set) + + def __str__(self): + return _openframeworks.ofRectangle___str__(self) ofRectangle_swigregister = _openframeworks.ofRectangle_swigregister ofRectangle_swigregister(ofRectangle) @@ -2481,309 +4625,700 @@ class ofNode(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofNode, name) __repr__ = _swig_repr - def __init__(self): - this = _openframeworks.new_ofNode() - try: self.this.append(this) - except: self.this = this __swig_destroy__ = _openframeworks.delete_ofNode - __del__ = lambda self : None; - def setParent(self, *args): return _openframeworks.ofNode_setParent(self, *args) - def clearParent(self, bMaintainGlobalTransform=False): return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) - def getParent(self): return _openframeworks.ofNode_getParent(self) - def getPosition(self): return _openframeworks.ofNode_getPosition(self) - def getX(self): return _openframeworks.ofNode_getX(self) - def getY(self): return _openframeworks.ofNode_getY(self) - def getZ(self): return _openframeworks.ofNode_getZ(self) - def getXAxis(self): return _openframeworks.ofNode_getXAxis(self) - def getYAxis(self): return _openframeworks.ofNode_getYAxis(self) - def getZAxis(self): return _openframeworks.ofNode_getZAxis(self) - def getSideDir(self): return _openframeworks.ofNode_getSideDir(self) - def getLookAtDir(self): return _openframeworks.ofNode_getLookAtDir(self) - def getUpDir(self): return _openframeworks.ofNode_getUpDir(self) - def getPitch(self): return _openframeworks.ofNode_getPitch(self) - def getHeading(self): return _openframeworks.ofNode_getHeading(self) - def getRoll(self): return _openframeworks.ofNode_getRoll(self) - def getOrientationQuat(self): return _openframeworks.ofNode_getOrientationQuat(self) - def getOrientationEuler(self): return _openframeworks.ofNode_getOrientationEuler(self) - def getScale(self): return _openframeworks.ofNode_getScale(self) - def getLocalTransformMatrix(self): return _openframeworks.ofNode_getLocalTransformMatrix(self) - def getGlobalTransformMatrix(self): return _openframeworks.ofNode_getGlobalTransformMatrix(self) - def getGlobalPosition(self): return _openframeworks.ofNode_getGlobalPosition(self) - def getGlobalOrientation(self): return _openframeworks.ofNode_getGlobalOrientation(self) - def getGlobalScale(self): return _openframeworks.ofNode_getGlobalScale(self) - def setTransformMatrix(self, *args): return _openframeworks.ofNode_setTransformMatrix(self, *args) - def setPosition(self, *args): return _openframeworks.ofNode_setPosition(self, *args) - def setGlobalPosition(self, *args): return _openframeworks.ofNode_setGlobalPosition(self, *args) - def setOrientation(self, *args): return _openframeworks.ofNode_setOrientation(self, *args) - def setGlobalOrientation(self, *args): return _openframeworks.ofNode_setGlobalOrientation(self, *args) - def setScale(self, *args): return _openframeworks.ofNode_setScale(self, *args) - def move(self, *args): return _openframeworks.ofNode_move(self, *args) - def truck(self, *args): return _openframeworks.ofNode_truck(self, *args) - def boom(self, *args): return _openframeworks.ofNode_boom(self, *args) - def dolly(self, *args): return _openframeworks.ofNode_dolly(self, *args) - def tilt(self, *args): return _openframeworks.ofNode_tilt(self, *args) - def pan(self, *args): return _openframeworks.ofNode_pan(self, *args) - def roll(self, *args): return _openframeworks.ofNode_roll(self, *args) - def rotate(self, *args): return _openframeworks.ofNode_rotate(self, *args) - def rotateAround(self, *args): return _openframeworks.ofNode_rotateAround(self, *args) - def lookAt(self, *args): return _openframeworks.ofNode_lookAt(self, *args) - def orbit(self, *args): return _openframeworks.ofNode_orbit(self, *args) - def transformGL(self): return _openframeworks.ofNode_transformGL(self) - def restoreTransformGL(self): return _openframeworks.ofNode_restoreTransformGL(self) - def resetTransform(self): return _openframeworks.ofNode_resetTransform(self) - def customDraw(self): return _openframeworks.ofNode_customDraw(self) - def draw(self): return _openframeworks.ofNode_draw(self) + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofNode(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setParent(self, parent, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_setParent(self, parent, bMaintainGlobalTransform) + + def clearParent(self, bMaintainGlobalTransform=False): + return _openframeworks.ofNode_clearParent(self, bMaintainGlobalTransform) + + def getParent(self): + return _openframeworks.ofNode_getParent(self) + + def getPosition(self): + return _openframeworks.ofNode_getPosition(self) + + def getX(self): + return _openframeworks.ofNode_getX(self) + + def getY(self): + return _openframeworks.ofNode_getY(self) + + def getZ(self): + return _openframeworks.ofNode_getZ(self) + + def getXAxis(self): + return _openframeworks.ofNode_getXAxis(self) + + def getYAxis(self): + return _openframeworks.ofNode_getYAxis(self) + + def getZAxis(self): + return _openframeworks.ofNode_getZAxis(self) + + def getSideDir(self): + return _openframeworks.ofNode_getSideDir(self) + + def getLookAtDir(self): + return _openframeworks.ofNode_getLookAtDir(self) + + def getUpDir(self): + return _openframeworks.ofNode_getUpDir(self) + + def getPitch(self): + return _openframeworks.ofNode_getPitch(self) + + def getHeading(self): + return _openframeworks.ofNode_getHeading(self) + + def getRoll(self): + return _openframeworks.ofNode_getRoll(self) + + def getOrientationQuat(self): + return _openframeworks.ofNode_getOrientationQuat(self) + + def getOrientationEuler(self): + return _openframeworks.ofNode_getOrientationEuler(self) + + def getScale(self): + return _openframeworks.ofNode_getScale(self) + + def getLocalTransformMatrix(self): + return _openframeworks.ofNode_getLocalTransformMatrix(self) + + def getGlobalTransformMatrix(self): + return _openframeworks.ofNode_getGlobalTransformMatrix(self) + + def getGlobalPosition(self): + return _openframeworks.ofNode_getGlobalPosition(self) + + def getGlobalOrientation(self): + return _openframeworks.ofNode_getGlobalOrientation(self) + + def getGlobalScale(self): + return _openframeworks.ofNode_getGlobalScale(self) + + def setTransformMatrix(self, m44): + return _openframeworks.ofNode_setTransformMatrix(self, m44) + + def setPosition(self, *args): + return _openframeworks.ofNode_setPosition(self, *args) + + def setGlobalPosition(self, *args): + return _openframeworks.ofNode_setGlobalPosition(self, *args) + + def setOrientation(self, *args): + return _openframeworks.ofNode_setOrientation(self, *args) + + def setGlobalOrientation(self, q): + return _openframeworks.ofNode_setGlobalOrientation(self, q) + + def setScale(self, *args): + return _openframeworks.ofNode_setScale(self, *args) + + def move(self, *args): + return _openframeworks.ofNode_move(self, *args) + + def truck(self, amount): + return _openframeworks.ofNode_truck(self, amount) + + def boom(self, amount): + return _openframeworks.ofNode_boom(self, amount) + + def dolly(self, amount): + return _openframeworks.ofNode_dolly(self, amount) + + def tilt(self, degrees): + return _openframeworks.ofNode_tilt(self, degrees) + + def pan(self, degrees): + return _openframeworks.ofNode_pan(self, degrees) + + def roll(self, degrees): + return _openframeworks.ofNode_roll(self, degrees) + + def rotate(self, *args): + return _openframeworks.ofNode_rotate(self, *args) + + def rotateAround(self, *args): + return _openframeworks.ofNode_rotateAround(self, *args) + + def lookAt(self, *args): + return _openframeworks.ofNode_lookAt(self, *args) + + def orbit(self, *args): + return _openframeworks.ofNode_orbit(self, *args) + + def transformGL(self, renderer=None): + return _openframeworks.ofNode_transformGL(self, renderer) + + def restoreTransformGL(self, renderer=None): + return _openframeworks.ofNode_restoreTransformGL(self, renderer) + + def resetTransform(self): + return _openframeworks.ofNode_resetTransform(self) + + def customDraw(self, *args): + return _openframeworks.ofNode_customDraw(self, *args) + + def draw(self): + return _openframeworks.ofNode_draw(self) ofNode_swigregister = _openframeworks.ofNode_swigregister ofNode_swigregister(ofNode) -def ofDrawAxis(*args): - return _openframeworks.ofDrawAxis(*args) +def ofDrawAxis(size): + return _openframeworks.ofDrawAxis(size) ofDrawAxis = _openframeworks.ofDrawAxis -def ofDrawGrid(scale=10.0, ticks=8.0, labels=False, x=True, y=True, z=True): - return _openframeworks.ofDrawGrid(scale, ticks, labels, x, y, z) +def ofDrawGrid(stepSize=1.25, numberOfSteps=8, labels=False, x=True, y=True, z=True): + return _openframeworks.ofDrawGrid(stepSize, numberOfSteps, labels, x, y, z) ofDrawGrid = _openframeworks.ofDrawGrid -def ofDrawGridPlane(*args): - return _openframeworks.ofDrawGridPlane(*args) +def ofDrawGridPlane(stepSize=1.25, numberOfSteps=8, labels=False): + return _openframeworks.ofDrawGridPlane(stepSize, numberOfSteps, labels) ofDrawGridPlane = _openframeworks.ofDrawGridPlane -def ofDrawArrow(*args): - return _openframeworks.ofDrawArrow(*args) +def ofDrawArrow(start, end, headSize=0.05): + return _openframeworks.ofDrawArrow(start, end, headSize) ofDrawArrow = _openframeworks.ofDrawArrow -def ofDrawRotationAxes(*args): - return _openframeworks.ofDrawRotationAxes(*args) +def ofDrawRotationAxes(radius, stripWidth=10, circleRes=60): + return _openframeworks.ofDrawRotationAxes(radius, stripWidth, circleRes) ofDrawRotationAxes = _openframeworks.ofDrawRotationAxes class ofCamera(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofCamera, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofCamera, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofCamera() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCamera - __del__ = lambda self : None; - def setFov(self, *args): return _openframeworks.ofCamera_setFov(self, *args) - def setNearClip(self, *args): return _openframeworks.ofCamera_setNearClip(self, *args) - def setFarClip(self, *args): return _openframeworks.ofCamera_setFarClip(self, *args) - def setLensOffset(self, *args): return _openframeworks.ofCamera_setLensOffset(self, *args) - def setAspectRatio(self, *args): return _openframeworks.ofCamera_setAspectRatio(self, *args) - def setForceAspectRatio(self, *args): return _openframeworks.ofCamera_setForceAspectRatio(self, *args) - def getFov(self): return _openframeworks.ofCamera_getFov(self) - def getNearClip(self): return _openframeworks.ofCamera_getNearClip(self) - def getFarClip(self): return _openframeworks.ofCamera_getFarClip(self) - def getLensOffset(self): return _openframeworks.ofCamera_getLensOffset(self) - def getForceAspectRatio(self): return _openframeworks.ofCamera_getForceAspectRatio(self) - def getAspectRatio(self): return _openframeworks.ofCamera_getAspectRatio(self) - def setupPerspective(self, *args): return _openframeworks.ofCamera_setupPerspective(self, *args) - def setupOffAxisViewPortal(self, *args): return _openframeworks.ofCamera_setupOffAxisViewPortal(self, *args) - def setVFlip(self, *args): return _openframeworks.ofCamera_setVFlip(self, *args) - def isVFlipped(self): return _openframeworks.ofCamera_isVFlipped(self) - def enableOrtho(self): return _openframeworks.ofCamera_enableOrtho(self) - def disableOrtho(self): return _openframeworks.ofCamera_disableOrtho(self) - def getOrtho(self): return _openframeworks.ofCamera_getOrtho(self) - def getImagePlaneDistance(self, *args): return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) - def begin(self, *args): return _openframeworks.ofCamera_begin(self, *args) - def end(self): return _openframeworks.ofCamera_end(self) - def getProjectionMatrix(self, *args): return _openframeworks.ofCamera_getProjectionMatrix(self, *args) - def getModelViewMatrix(self): return _openframeworks.ofCamera_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self, *args): return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) - def worldToScreen(self, *args): return _openframeworks.ofCamera_worldToScreen(self, *args) - def screenToWorld(self, *args): return _openframeworks.ofCamera_screenToWorld(self, *args) - def worldToCamera(self, *args): return _openframeworks.ofCamera_worldToCamera(self, *args) - def cameraToWorld(self, *args): return _openframeworks.ofCamera_cameraToWorld(self, *args) + __del__ = lambda self: None + + def setFov(self, f): + return _openframeworks.ofCamera_setFov(self, f) + + def setNearClip(self, f): + return _openframeworks.ofCamera_setNearClip(self, f) + + def setFarClip(self, f): + return _openframeworks.ofCamera_setFarClip(self, f) + + def setLensOffset(self, lensOffset): + return _openframeworks.ofCamera_setLensOffset(self, lensOffset) + + def setAspectRatio(self, aspectRatio): + return _openframeworks.ofCamera_setAspectRatio(self, aspectRatio) + + def setForceAspectRatio(self, forceAspectRatio): + return _openframeworks.ofCamera_setForceAspectRatio(self, forceAspectRatio) + + def getFov(self): + return _openframeworks.ofCamera_getFov(self) + + def getNearClip(self): + return _openframeworks.ofCamera_getNearClip(self) + + def getFarClip(self): + return _openframeworks.ofCamera_getFarClip(self) + + def getLensOffset(self): + return _openframeworks.ofCamera_getLensOffset(self) + + def getForceAspectRatio(self): + return _openframeworks.ofCamera_getForceAspectRatio(self) + + def getAspectRatio(self): + return _openframeworks.ofCamera_getAspectRatio(self) + + def setupPerspective(self, *args): + return _openframeworks.ofCamera_setupPerspective(self, *args) + + def setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight): + return _openframeworks.ofCamera_setupOffAxisViewPortal(self, topLeft, bottomLeft, bottomRight) + + def setVFlip(self, vflip): + return _openframeworks.ofCamera_setVFlip(self, vflip) + + def isVFlipped(self): + return _openframeworks.ofCamera_isVFlipped(self) + + def enableOrtho(self): + return _openframeworks.ofCamera_enableOrtho(self) + + def disableOrtho(self): + return _openframeworks.ofCamera_disableOrtho(self) + + def getOrtho(self): + return _openframeworks.ofCamera_getOrtho(self) + + def getImagePlaneDistance(self, *args): + return _openframeworks.ofCamera_getImagePlaneDistance(self, *args) + + def begin(self, *args): + return _openframeworks.ofCamera_begin(self, *args) + + def end(self): + return _openframeworks.ofCamera_end(self) + + def getProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getProjectionMatrix(self, *args) + + def getModelViewMatrix(self): + return _openframeworks.ofCamera_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self, *args): + return _openframeworks.ofCamera_getModelViewProjectionMatrix(self, *args) + + def worldToScreen(self, *args): + return _openframeworks.ofCamera_worldToScreen(self, *args) + + def screenToWorld(self, *args): + return _openframeworks.ofCamera_screenToWorld(self, *args) + + def worldToCamera(self, *args): + return _openframeworks.ofCamera_worldToCamera(self, *args) + + def cameraToWorld(self, *args): + return _openframeworks.ofCamera_cameraToWorld(self, *args) + + def setRenderer(self, renderer): + return _openframeworks.ofCamera_setRenderer(self, renderer) ofCamera_swigregister = _openframeworks.ofCamera_swigregister ofCamera_swigregister(ofCamera) class ofEasyCam(ofCamera): __swig_setmethods__ = {} - for _s in [ofCamera]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofCamera]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofEasyCam, name, value) __swig_getmethods__ = {} - for _s in [ofCamera]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofCamera]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofEasyCam, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofEasyCam() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofEasyCam - __del__ = lambda self : None; - def begin(self, *args): return _openframeworks.ofEasyCam_begin(self, *args) - def reset(self): return _openframeworks.ofEasyCam_reset(self) - def setTarget(self, *args): return _openframeworks.ofEasyCam_setTarget(self, *args) - def getTarget(self): return _openframeworks.ofEasyCam_getTarget(self) - def setDistance(self, *args): return _openframeworks.ofEasyCam_setDistance(self, *args) - def getDistance(self): return _openframeworks.ofEasyCam_getDistance(self) - def setDrag(self, *args): return _openframeworks.ofEasyCam_setDrag(self, *args) - def getDrag(self): return _openframeworks.ofEasyCam_getDrag(self) - def setTranslationKey(self, *args): return _openframeworks.ofEasyCam_setTranslationKey(self, *args) - def getTranslationKey(self): return _openframeworks.ofEasyCam_getTranslationKey(self) - def enableMouseInput(self): return _openframeworks.ofEasyCam_enableMouseInput(self) - def disableMouseInput(self): return _openframeworks.ofEasyCam_disableMouseInput(self) - def getMouseInputEnabled(self): return _openframeworks.ofEasyCam_getMouseInputEnabled(self) - def enableMouseMiddleButton(self): return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) - def disableMouseMiddleButton(self): return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) - def getMouseMiddleButtonEnabled(self): return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) - def setAutoDistance(self, *args): return _openframeworks.ofEasyCam_setAutoDistance(self, *args) -ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister -ofEasyCam_swigregister(ofEasyCam) + __del__ = lambda self: None -class ofMesh(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) - __swig_getmethods__ = {} + def begin(self, *args): + return _openframeworks.ofEasyCam_begin(self, *args) + + def reset(self): + return _openframeworks.ofEasyCam_reset(self) + + def setTarget(self, *args): + return _openframeworks.ofEasyCam_setTarget(self, *args) + + def getTarget(self): + return _openframeworks.ofEasyCam_getTarget(self) + + def setDistance(self, distance): + return _openframeworks.ofEasyCam_setDistance(self, distance) + + def getDistance(self): + return _openframeworks.ofEasyCam_getDistance(self) + + def setDrag(self, drag): + return _openframeworks.ofEasyCam_setDrag(self, drag) + + def getDrag(self): + return _openframeworks.ofEasyCam_getDrag(self) + + def setAutoDistance(self, bAutoDistance): + return _openframeworks.ofEasyCam_setAutoDistance(self, bAutoDistance) + + def setEvents(self, events): + return _openframeworks.ofEasyCam_setEvents(self, events) + + def setTranslationKey(self, key): + return _openframeworks.ofEasyCam_setTranslationKey(self, key) + + def getTranslationKey(self): + return _openframeworks.ofEasyCam_getTranslationKey(self) + + def enableMouseInput(self): + return _openframeworks.ofEasyCam_enableMouseInput(self) + + def disableMouseInput(self): + return _openframeworks.ofEasyCam_disableMouseInput(self) + + def getMouseInputEnabled(self): + return _openframeworks.ofEasyCam_getMouseInputEnabled(self) + + def enableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_enableMouseMiddleButton(self) + + def disableMouseMiddleButton(self): + return _openframeworks.ofEasyCam_disableMouseMiddleButton(self) + + def getMouseMiddleButtonEnabled(self): + return _openframeworks.ofEasyCam_getMouseMiddleButtonEnabled(self) +ofEasyCam_swigregister = _openframeworks.ofEasyCam_swigregister +ofEasyCam_swigregister(ofEasyCam) + +class ofMesh(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofMesh, name, value) + __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMesh, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofMesh(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _openframeworks.delete_ofMesh - __del__ = lambda self : None; - def setMode(self, *args): return _openframeworks.ofMesh_setMode(self, *args) - def getMode(self): return _openframeworks.ofMesh_getMode(self) - def clear(self): return _openframeworks.ofMesh_clear(self) - def setupIndicesAuto(self): return _openframeworks.ofMesh_setupIndicesAuto(self) - def getVertex(self, *args): return _openframeworks.ofMesh_getVertex(self, *args) - def addVertex(self, *args): return _openframeworks.ofMesh_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofMesh_addVertices(self, *args) - def removeVertex(self, *args): return _openframeworks.ofMesh_removeVertex(self, *args) - def setVertex(self, *args): return _openframeworks.ofMesh_setVertex(self, *args) - def clearVertices(self): return _openframeworks.ofMesh_clearVertices(self) - def getNormal(self, *args): return _openframeworks.ofMesh_getNormal(self, *args) - def addNormal(self, *args): return _openframeworks.ofMesh_addNormal(self, *args) - def addNormals(self, *args): return _openframeworks.ofMesh_addNormals(self, *args) - def removeNormal(self, *args): return _openframeworks.ofMesh_removeNormal(self, *args) - def setNormal(self, *args): return _openframeworks.ofMesh_setNormal(self, *args) - def clearNormals(self): return _openframeworks.ofMesh_clearNormals(self) - def getColor(self, *args): return _openframeworks.ofMesh_getColor(self, *args) - def addColor(self, *args): return _openframeworks.ofMesh_addColor(self, *args) - def addColors(self, *args): return _openframeworks.ofMesh_addColors(self, *args) - def removeColor(self, *args): return _openframeworks.ofMesh_removeColor(self, *args) - def setColor(self, *args): return _openframeworks.ofMesh_setColor(self, *args) - def clearColors(self): return _openframeworks.ofMesh_clearColors(self) - def getTexCoord(self, *args): return _openframeworks.ofMesh_getTexCoord(self, *args) - def addTexCoord(self, *args): return _openframeworks.ofMesh_addTexCoord(self, *args) - def addTexCoords(self, *args): return _openframeworks.ofMesh_addTexCoords(self, *args) - def removeTexCoord(self, *args): return _openframeworks.ofMesh_removeTexCoord(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMesh_setTexCoord(self, *args) - def clearTexCoords(self): return _openframeworks.ofMesh_clearTexCoords(self) - def getIndex(self, *args): return _openframeworks.ofMesh_getIndex(self, *args) - def addIndex(self, *args): return _openframeworks.ofMesh_addIndex(self, *args) - def addIndices(self, *args): return _openframeworks.ofMesh_addIndices(self, *args) - def removeIndex(self, *args): return _openframeworks.ofMesh_removeIndex(self, *args) - def setIndex(self, *args): return _openframeworks.ofMesh_setIndex(self, *args) - def clearIndices(self): return _openframeworks.ofMesh_clearIndices(self) - def addTriangle(self, *args): return _openframeworks.ofMesh_addTriangle(self, *args) - def getNumVertices(self): return _openframeworks.ofMesh_getNumVertices(self) - def getNumColors(self): return _openframeworks.ofMesh_getNumColors(self) - def getNumNormals(self): return _openframeworks.ofMesh_getNumNormals(self) - def getNumTexCoords(self): return _openframeworks.ofMesh_getNumTexCoords(self) - def getNumIndices(self): return _openframeworks.ofMesh_getNumIndices(self) - def getVerticesPointer(self, *args): return _openframeworks.ofMesh_getVerticesPointer(self, *args) - def getColorsPointer(self, *args): return _openframeworks.ofMesh_getColorsPointer(self, *args) - def getNormalsPointer(self, *args): return _openframeworks.ofMesh_getNormalsPointer(self, *args) - def getTexCoordsPointer(self, *args): return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) - def getIndexPointer(self, *args): return _openframeworks.ofMesh_getIndexPointer(self, *args) - def getVertices(self, *args): return _openframeworks.ofMesh_getVertices(self, *args) - def getColors(self, *args): return _openframeworks.ofMesh_getColors(self, *args) - def getNormals(self, *args): return _openframeworks.ofMesh_getNormals(self, *args) - def getTexCoords(self, *args): return _openframeworks.ofMesh_getTexCoords(self, *args) - def getIndices(self, *args): return _openframeworks.ofMesh_getIndices(self, *args) - def getCentroid(self): return _openframeworks.ofMesh_getCentroid(self) - def haveVertsChanged(self): return _openframeworks.ofMesh_haveVertsChanged(self) - def haveColorsChanged(self): return _openframeworks.ofMesh_haveColorsChanged(self) - def haveNormalsChanged(self): return _openframeworks.ofMesh_haveNormalsChanged(self) - def haveTexCoordsChanged(self): return _openframeworks.ofMesh_haveTexCoordsChanged(self) - def haveIndicesChanged(self): return _openframeworks.ofMesh_haveIndicesChanged(self) - def hasVertices(self): return _openframeworks.ofMesh_hasVertices(self) - def hasColors(self): return _openframeworks.ofMesh_hasColors(self) - def hasNormals(self): return _openframeworks.ofMesh_hasNormals(self) - def hasTexCoords(self): return _openframeworks.ofMesh_hasTexCoords(self) - def hasIndices(self): return _openframeworks.ofMesh_hasIndices(self) - def drawVertices(self): return _openframeworks.ofMesh_drawVertices(self) - def drawWireframe(self): return _openframeworks.ofMesh_drawWireframe(self) - def drawFaces(self): return _openframeworks.ofMesh_drawFaces(self) - def load(self, *args): return _openframeworks.ofMesh_load(self, *args) - def save(self, *args): return _openframeworks.ofMesh_save(self, *args) - def enableColors(self): return _openframeworks.ofMesh_enableColors(self) - def enableTextures(self): return _openframeworks.ofMesh_enableTextures(self) - def enableNormals(self): return _openframeworks.ofMesh_enableNormals(self) - def enableIndices(self): return _openframeworks.ofMesh_enableIndices(self) - def disableColors(self): return _openframeworks.ofMesh_disableColors(self) - def disableTextures(self): return _openframeworks.ofMesh_disableTextures(self) - def disableNormals(self): return _openframeworks.ofMesh_disableNormals(self) - def disableIndices(self): return _openframeworks.ofMesh_disableIndices(self) - def usingColors(self): return _openframeworks.ofMesh_usingColors(self) - def usingTextures(self): return _openframeworks.ofMesh_usingTextures(self) - def usingNormals(self): return _openframeworks.ofMesh_usingNormals(self) - def usingIndices(self): return _openframeworks.ofMesh_usingIndices(self) - def append(self, *args): return _openframeworks.ofMesh_append(self, *args) - def setColorForIndices(self, *args): return _openframeworks.ofMesh_setColorForIndices(self, *args) - def getMeshForIndices(self, *args): return _openframeworks.ofMesh_getMeshForIndices(self, *args) - def mergeDuplicateVertices(self): return _openframeworks.ofMesh_mergeDuplicateVertices(self) - def getUniqueFaces(self): return _openframeworks.ofMesh_getUniqueFaces(self) - def getFaceNormals(self, perVetex=False): return _openframeworks.ofMesh_getFaceNormals(self, perVetex) - def setFromTriangles(self, *args): return _openframeworks.ofMesh_setFromTriangles(self, *args) - def smoothNormals(self, *args): return _openframeworks.ofMesh_smoothNormals(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def setFromTriangles(self, tris, bUseFaceNormal=False): + return _openframeworks.ofMesh_setFromTriangles(self, tris, bUseFaceNormal) + + def setMode(self, mode): + return _openframeworks.ofMesh_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofMesh_getMode(self) __swig_getmethods__["plane"] = lambda x: _openframeworks.ofMesh_plane - if _newclass:plane = staticmethod(_openframeworks.ofMesh_plane) + if _newclass: + plane = staticmethod(_openframeworks.ofMesh_plane) __swig_getmethods__["sphere"] = lambda x: _openframeworks.ofMesh_sphere - if _newclass:sphere = staticmethod(_openframeworks.ofMesh_sphere) + if _newclass: + sphere = staticmethod(_openframeworks.ofMesh_sphere) __swig_getmethods__["icosahedron"] = lambda x: _openframeworks.ofMesh_icosahedron - if _newclass:icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) + if _newclass: + icosahedron = staticmethod(_openframeworks.ofMesh_icosahedron) __swig_getmethods__["icosphere"] = lambda x: _openframeworks.ofMesh_icosphere - if _newclass:icosphere = staticmethod(_openframeworks.ofMesh_icosphere) + if _newclass: + icosphere = staticmethod(_openframeworks.ofMesh_icosphere) __swig_getmethods__["cylinder"] = lambda x: _openframeworks.ofMesh_cylinder - if _newclass:cylinder = staticmethod(_openframeworks.ofMesh_cylinder) + if _newclass: + cylinder = staticmethod(_openframeworks.ofMesh_cylinder) __swig_getmethods__["cone"] = lambda x: _openframeworks.ofMesh_cone - if _newclass:cone = staticmethod(_openframeworks.ofMesh_cone) + if _newclass: + cone = staticmethod(_openframeworks.ofMesh_cone) __swig_getmethods__["box"] = lambda x: _openframeworks.ofMesh_box - if _newclass:box = staticmethod(_openframeworks.ofMesh_box) + if _newclass: + box = staticmethod(_openframeworks.ofMesh_box) __swig_getmethods__["axis"] = lambda x: _openframeworks.ofMesh_axis - if _newclass:axis = staticmethod(_openframeworks.ofMesh_axis) - def draw(self, *args): return _openframeworks.ofMesh_draw(self, *args) + if _newclass: + axis = staticmethod(_openframeworks.ofMesh_axis) + + def addVertex(self, v): + return _openframeworks.ofMesh_addVertex(self, v) + + def addVertices(self, *args): + return _openframeworks.ofMesh_addVertices(self, *args) + + def removeVertex(self, index): + return _openframeworks.ofMesh_removeVertex(self, index) + + def setVertex(self, index, v): + return _openframeworks.ofMesh_setVertex(self, index, v) + + def clearVertices(self): + return _openframeworks.ofMesh_clearVertices(self) + + def clear(self): + return _openframeworks.ofMesh_clear(self) + + def getNumVertices(self): + return _openframeworks.ofMesh_getNumVertices(self) + + def getVerticesPointer(self, *args): + return _openframeworks.ofMesh_getVerticesPointer(self, *args) + + def getVertex(self, i): + return _openframeworks.ofMesh_getVertex(self, i) + + def getVertices(self, *args): + return _openframeworks.ofMesh_getVertices(self, *args) + + def haveVertsChanged(self): + return _openframeworks.ofMesh_haveVertsChanged(self) + + def hasVertices(self): + return _openframeworks.ofMesh_hasVertices(self) + + def append(self, mesh): + return _openframeworks.ofMesh_append(self, mesh) + + def mergeDuplicateVertices(self): + return _openframeworks.ofMesh_mergeDuplicateVertices(self) + + def getCentroid(self): + return _openframeworks.ofMesh_getCentroid(self) + + def getNormal(self, i): + return _openframeworks.ofMesh_getNormal(self, i) + + def addNormal(self, n): + return _openframeworks.ofMesh_addNormal(self, n) + + def addNormals(self, *args): + return _openframeworks.ofMesh_addNormals(self, *args) + + def removeNormal(self, index): + return _openframeworks.ofMesh_removeNormal(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMesh_setNormal(self, index, n) + + def clearNormals(self): + return _openframeworks.ofMesh_clearNormals(self) + + def getNumNormals(self): + return _openframeworks.ofMesh_getNumNormals(self) + + def getNormalsPointer(self, *args): + return _openframeworks.ofMesh_getNormalsPointer(self, *args) + + def getNormals(self, *args): + return _openframeworks.ofMesh_getNormals(self, *args) + + def haveNormalsChanged(self): + return _openframeworks.ofMesh_haveNormalsChanged(self) + + def hasNormals(self): + return _openframeworks.ofMesh_hasNormals(self) + + def enableNormals(self): + return _openframeworks.ofMesh_enableNormals(self) + + def disableNormals(self): + return _openframeworks.ofMesh_disableNormals(self) + + def usingNormals(self): + return _openframeworks.ofMesh_usingNormals(self) + + def smoothNormals(self, angle): + return _openframeworks.ofMesh_smoothNormals(self, angle) + + def getFace(self, faceId): + return _openframeworks.ofMesh_getFace(self, faceId) + + def getFaceNormals(self, perVetex=False): + return _openframeworks.ofMesh_getFaceNormals(self, perVetex) + + def getUniqueFaces(self): + return _openframeworks.ofMesh_getUniqueFaces(self) + + def getColor(self, i): + return _openframeworks.ofMesh_getColor(self, i) + + def addColor(self, c): + return _openframeworks.ofMesh_addColor(self, c) + + def addColors(self, *args): + return _openframeworks.ofMesh_addColors(self, *args) + + def removeColor(self, index): + return _openframeworks.ofMesh_removeColor(self, index) + + def setColor(self, index, c): + return _openframeworks.ofMesh_setColor(self, index, c) + + def clearColors(self): + return _openframeworks.ofMesh_clearColors(self) + + def getNumColors(self): + return _openframeworks.ofMesh_getNumColors(self) + + def getColorsPointer(self, *args): + return _openframeworks.ofMesh_getColorsPointer(self, *args) + + def getColors(self, *args): + return _openframeworks.ofMesh_getColors(self, *args) + + def haveColorsChanged(self): + return _openframeworks.ofMesh_haveColorsChanged(self) + + def hasColors(self): + return _openframeworks.ofMesh_hasColors(self) + + def enableColors(self): + return _openframeworks.ofMesh_enableColors(self) + + def disableColors(self): + return _openframeworks.ofMesh_disableColors(self) + + def usingColors(self): + return _openframeworks.ofMesh_usingColors(self) + + def getTexCoord(self, i): + return _openframeworks.ofMesh_getTexCoord(self, i) + + def addTexCoord(self, t): + return _openframeworks.ofMesh_addTexCoord(self, t) + + def addTexCoords(self, *args): + return _openframeworks.ofMesh_addTexCoords(self, *args) + + def removeTexCoord(self, index): + return _openframeworks.ofMesh_removeTexCoord(self, index) + + def setTexCoord(self, index, t): + return _openframeworks.ofMesh_setTexCoord(self, index, t) + + def clearTexCoords(self): + return _openframeworks.ofMesh_clearTexCoords(self) + + def getNumTexCoords(self): + return _openframeworks.ofMesh_getNumTexCoords(self) + + def getTexCoordsPointer(self, *args): + return _openframeworks.ofMesh_getTexCoordsPointer(self, *args) + + def getTexCoords(self, *args): + return _openframeworks.ofMesh_getTexCoords(self, *args) + + def haveTexCoordsChanged(self): + return _openframeworks.ofMesh_haveTexCoordsChanged(self) + + def hasTexCoords(self): + return _openframeworks.ofMesh_hasTexCoords(self) + + def enableTextures(self): + return _openframeworks.ofMesh_enableTextures(self) + + def disableTextures(self): + return _openframeworks.ofMesh_disableTextures(self) + + def usingTextures(self): + return _openframeworks.ofMesh_usingTextures(self) + + def setupIndicesAuto(self): + return _openframeworks.ofMesh_setupIndicesAuto(self) + + def getIndex(self, i): + return _openframeworks.ofMesh_getIndex(self, i) + + def addIndex(self, i): + return _openframeworks.ofMesh_addIndex(self, i) + + def addIndices(self, *args): + return _openframeworks.ofMesh_addIndices(self, *args) + + def removeIndex(self, index): + return _openframeworks.ofMesh_removeIndex(self, index) + + def setIndex(self, index, val): + return _openframeworks.ofMesh_setIndex(self, index, val) + + def clearIndices(self): + return _openframeworks.ofMesh_clearIndices(self) + + def getNumIndices(self): + return _openframeworks.ofMesh_getNumIndices(self) + + def getIndexPointer(self, *args): + return _openframeworks.ofMesh_getIndexPointer(self, *args) + + def getIndices(self, *args): + return _openframeworks.ofMesh_getIndices(self, *args) + + def haveIndicesChanged(self): + return _openframeworks.ofMesh_haveIndicesChanged(self) + + def hasIndices(self): + return _openframeworks.ofMesh_hasIndices(self) + + def addTriangle(self, index1, index2, index3): + return _openframeworks.ofMesh_addTriangle(self, index1, index2, index3) + + def enableIndices(self): + return _openframeworks.ofMesh_enableIndices(self) + + def disableIndices(self): + return _openframeworks.ofMesh_disableIndices(self) + + def usingIndices(self): + return _openframeworks.ofMesh_usingIndices(self) + + def setColorForIndices(self, startIndex, endIndex, color): + return _openframeworks.ofMesh_setColorForIndices(self, startIndex, endIndex, color) + + def getMeshForIndices(self, *args): + return _openframeworks.ofMesh_getMeshForIndices(self, *args) + + def drawVertices(self): + return _openframeworks.ofMesh_drawVertices(self) + + def drawWireframe(self): + return _openframeworks.ofMesh_drawWireframe(self) + + def drawFaces(self): + return _openframeworks.ofMesh_drawFaces(self) + + def draw(self, *args): + return _openframeworks.ofMesh_draw(self, *args) + + def load(self, path): + return _openframeworks.ofMesh_load(self, path) + + def save(self, path, useBinary=False): + return _openframeworks.ofMesh_save(self, path, useBinary) + __swig_destroy__ = _openframeworks.delete_ofMesh + __del__ = lambda self: None ofMesh_swigregister = _openframeworks.ofMesh_swigregister ofMesh_swigregister(ofMesh) def ofMesh_plane(*args): - return _openframeworks.ofMesh_plane(*args) + return _openframeworks.ofMesh_plane(*args) ofMesh_plane = _openframeworks.ofMesh_plane def ofMesh_sphere(*args): - return _openframeworks.ofMesh_sphere(*args) + return _openframeworks.ofMesh_sphere(*args) ofMesh_sphere = _openframeworks.ofMesh_sphere -def ofMesh_icosahedron(*args): - return _openframeworks.ofMesh_icosahedron(*args) +def ofMesh_icosahedron(radius): + return _openframeworks.ofMesh_icosahedron(radius) ofMesh_icosahedron = _openframeworks.ofMesh_icosahedron -def ofMesh_icosphere(*args): - return _openframeworks.ofMesh_icosphere(*args) +def ofMesh_icosphere(radius, iterations=2): + return _openframeworks.ofMesh_icosphere(radius, iterations) ofMesh_icosphere = _openframeworks.ofMesh_icosphere def ofMesh_cylinder(*args): - return _openframeworks.ofMesh_cylinder(*args) + return _openframeworks.ofMesh_cylinder(*args) ofMesh_cylinder = _openframeworks.ofMesh_cylinder def ofMesh_cone(*args): - return _openframeworks.ofMesh_cone(*args) + return _openframeworks.ofMesh_cone(*args) ofMesh_cone = _openframeworks.ofMesh_cone -def ofMesh_box(*args): - return _openframeworks.ofMesh_box(*args) +def ofMesh_box(width, height, depth, resX=2, resY=2, resZ=2): + return _openframeworks.ofMesh_box(width, height, depth, resX, resY, resZ) ofMesh_box = _openframeworks.ofMesh_box def ofMesh_axis(size=1.0): - return _openframeworks.ofMesh_axis(size) + return _openframeworks.ofMesh_axis(size) ofMesh_axis = _openframeworks.ofMesh_axis class ofMeshFace(_object): @@ -2792,27 +5327,60 @@ class ofMeshFace(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMeshFace, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMeshFace() - try: self.this.append(this) - except: self.this = this - def getFaceNormal(self): return _openframeworks.ofMeshFace_getFaceNormal(self) - def setVertex(self, *args): return _openframeworks.ofMeshFace_setVertex(self, *args) - def getVertex(self, *args): return _openframeworks.ofMeshFace_getVertex(self, *args) - def setNormal(self, *args): return _openframeworks.ofMeshFace_setNormal(self, *args) - def getNormal(self, *args): return _openframeworks.ofMeshFace_getNormal(self, *args) - def setColor(self, *args): return _openframeworks.ofMeshFace_setColor(self, *args) - def getColor(self, *args): return _openframeworks.ofMeshFace_getColor(self, *args) - def setTexCoord(self, *args): return _openframeworks.ofMeshFace_setTexCoord(self, *args) - def getTexCoord(self, *args): return _openframeworks.ofMeshFace_getTexCoord(self, *args) - def setHasColors(self, *args): return _openframeworks.ofMeshFace_setHasColors(self, *args) - def setHasNormals(self, *args): return _openframeworks.ofMeshFace_setHasNormals(self, *args) - def setHasTexcoords(self, *args): return _openframeworks.ofMeshFace_setHasTexcoords(self, *args) - def hasColors(self): return _openframeworks.ofMeshFace_hasColors(self) - def hasNormals(self): return _openframeworks.ofMeshFace_hasNormals(self) - def hasTexcoords(self): return _openframeworks.ofMeshFace_hasTexcoords(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def getFaceNormal(self): + return _openframeworks.ofMeshFace_getFaceNormal(self) + + def setVertex(self, index, v): + return _openframeworks.ofMeshFace_setVertex(self, index, v) + + def getVertex(self, index): + return _openframeworks.ofMeshFace_getVertex(self, index) + + def setNormal(self, index, n): + return _openframeworks.ofMeshFace_setNormal(self, index, n) + + def getNormal(self, index): + return _openframeworks.ofMeshFace_getNormal(self, index) + + def setColor(self, index, color): + return _openframeworks.ofMeshFace_setColor(self, index, color) + + def getColor(self, index): + return _openframeworks.ofMeshFace_getColor(self, index) + + def setTexCoord(self, index, tCoord): + return _openframeworks.ofMeshFace_setTexCoord(self, index, tCoord) + + def getTexCoord(self, index): + return _openframeworks.ofMeshFace_getTexCoord(self, index) + + def setHasColors(self, bColors): + return _openframeworks.ofMeshFace_setHasColors(self, bColors) + + def setHasNormals(self, bNormals): + return _openframeworks.ofMeshFace_setHasNormals(self, bNormals) + + def setHasTexcoords(self, bTexcoords): + return _openframeworks.ofMeshFace_setHasTexcoords(self, bTexcoords) + + def hasColors(self): + return _openframeworks.ofMeshFace_hasColors(self) + + def hasNormals(self): + return _openframeworks.ofMeshFace_hasNormals(self) + + def hasTexcoords(self): + return _openframeworks.ofMeshFace_hasTexcoords(self) __swig_destroy__ = _openframeworks.delete_ofMeshFace - __del__ = lambda self : None; + __del__ = lambda self: None ofMeshFace_swigregister = _openframeworks.ofMeshFace_swigregister ofMeshFace_swigregister(ofMeshFace) @@ -2822,25 +5390,54 @@ class ofPlanePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPlanePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPlanePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofPlanePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofPlanePrimitive_set(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofPlanePrimitive_resizeToTexture(self, *args) - def setWidth(self, *args): return _openframeworks.ofPlanePrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofPlanePrimitive_setHeight(self, *args) - def setColumns(self, *args): return _openframeworks.ofPlanePrimitive_setColumns(self, *args) - def setRows(self, *args): return _openframeworks.ofPlanePrimitive_setRows(self, *args) - def setResolution(self, *args): return _openframeworks.ofPlanePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofPlanePrimitive_setMode(self, *args) - def getNumColumns(self): return _openframeworks.ofPlanePrimitive_getNumColumns(self) - def getNumRows(self): return _openframeworks.ofPlanePrimitive_getNumRows(self) - def getResolution(self): return _openframeworks.ofPlanePrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofPlanePrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofPlanePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofPlanePrimitive_set(self, *args) + + def resizeToTexture(self, inTexture, scale=1.): + return _openframeworks.ofPlanePrimitive_resizeToTexture(self, inTexture, scale) + + def setWidth(self, width): + return _openframeworks.ofPlanePrimitive_setWidth(self, width) + + def setHeight(self, height): + return _openframeworks.ofPlanePrimitive_setHeight(self, height) + + def setColumns(self, columns): + return _openframeworks.ofPlanePrimitive_setColumns(self, columns) + + def setRows(self, rows): + return _openframeworks.ofPlanePrimitive_setRows(self, rows) + + def setResolution(self, columns, rows): + return _openframeworks.ofPlanePrimitive_setResolution(self, columns, rows) + + def setMode(self, mode): + return _openframeworks.ofPlanePrimitive_setMode(self, mode) + + def getNumColumns(self): + return _openframeworks.ofPlanePrimitive_getNumColumns(self) + + def getNumRows(self): + return _openframeworks.ofPlanePrimitive_getNumRows(self) + + def getResolution(self): + return _openframeworks.ofPlanePrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofPlanePrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPlanePrimitive_getHeight(self) ofPlanePrimitive_swigregister = _openframeworks.ofPlanePrimitive_swigregister ofPlanePrimitive_swigregister(ofPlanePrimitive) @@ -2850,18 +5447,33 @@ class ofSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofSpherePrimitive_set(self, *args) + + def setResolution(self, res): + return _openframeworks.ofSpherePrimitive_setResolution(self, res) + + def setRadius(self, radius): + return _openframeworks.ofSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofSpherePrimitive_getResolution(self) ofSpherePrimitive_swigregister = _openframeworks.ofSpherePrimitive_swigregister ofSpherePrimitive_swigregister(ofSpherePrimitive) @@ -2871,18 +5483,33 @@ class ofIcoSpherePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofIcoSpherePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofIcoSpherePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofIcoSpherePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofIcoSpherePrimitive_set(self, *args) - def setResolution(self, *args): return _openframeworks.ofIcoSpherePrimitive_setResolution(self, *args) - def setRadius(self, *args): return _openframeworks.ofIcoSpherePrimitive_setRadius(self, *args) - def setMode(self, *args): return _openframeworks.ofIcoSpherePrimitive_setMode(self, *args) - def getRadius(self): return _openframeworks.ofIcoSpherePrimitive_getRadius(self) - def getResolution(self): return _openframeworks.ofIcoSpherePrimitive_getResolution(self) + __del__ = lambda self: None + + def set(self, radius, res): + return _openframeworks.ofIcoSpherePrimitive_set(self, radius, res) + + def setResolution(self, iterations): + return _openframeworks.ofIcoSpherePrimitive_setResolution(self, iterations) + + def setRadius(self, radius): + return _openframeworks.ofIcoSpherePrimitive_setRadius(self, radius) + + def setMode(self, mode): + return _openframeworks.ofIcoSpherePrimitive_setMode(self, mode) + + def getRadius(self): + return _openframeworks.ofIcoSpherePrimitive_getRadius(self) + + def getResolution(self): + return _openframeworks.ofIcoSpherePrimitive_getResolution(self) ofIcoSpherePrimitive_swigregister = _openframeworks.ofIcoSpherePrimitive_swigregister ofIcoSpherePrimitive_swigregister(ofIcoSpherePrimitive) @@ -2892,37 +5519,90 @@ class ofCylinderPrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofCylinderPrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofCylinderPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofCylinderPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofCylinderPrimitive_set(self, *args) - def setRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setHeight(self, *args) - def setCapped(self, *args): return _openframeworks.ofCylinderPrimitive_setCapped(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofCylinderPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofCylinderPrimitive_setMode(self, *args) - def setTopCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, *args) - def setCylinderColor(self, *args): return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, *args) - def setBottomCapColor(self, *args): return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, *args) - def getTopCapIndices(self): return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) - def getTopCapMesh(self): return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) - def getCylinderIndices(self): return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) - def getCylinderMesh(self): return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) - def getBottomCapIndices(self): return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) - def getBottomCapMesh(self): return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofCylinderPrimitive_getResolution(self) - def getHeight(self): return _openframeworks.ofCylinderPrimitive_getHeight(self) - def getRadius(self): return _openframeworks.ofCylinderPrimitive_getRadius(self) - def getCapped(self): return _openframeworks.ofCylinderPrimitive_getCapped(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofCylinderPrimitive_set(self, *args) + + def setRadius(self, radius): + return _openframeworks.ofCylinderPrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofCylinderPrimitive_setHeight(self, height) + + def setCapped(self, bCapped): + return _openframeworks.ofCylinderPrimitive_setCapped(self, bCapped) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofCylinderPrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofCylinderPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofCylinderPrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofCylinderPrimitive_setResolution(self, radiusSegments, heightSegments, capSegments) + + def setMode(self, mode): + return _openframeworks.ofCylinderPrimitive_setMode(self, mode) + + def setTopCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setTopCapColor(self, color) + + def setCylinderColor(self, color): + return _openframeworks.ofCylinderPrimitive_setCylinderColor(self, color) + + def setBottomCapColor(self, color): + return _openframeworks.ofCylinderPrimitive_setBottomCapColor(self, color) + + def getTopCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getTopCapIndices(self) + + def getTopCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getTopCapMesh(self) + + def getCylinderIndices(self): + return _openframeworks.ofCylinderPrimitive_getCylinderIndices(self) + + def getCylinderMesh(self): + return _openframeworks.ofCylinderPrimitive_getCylinderMesh(self) + + def getBottomCapIndices(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapIndices(self) + + def getBottomCapMesh(self): + return _openframeworks.ofCylinderPrimitive_getBottomCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofCylinderPrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofCylinderPrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofCylinderPrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofCylinderPrimitive_getResolution(self) + + def getHeight(self): + return _openframeworks.ofCylinderPrimitive_getHeight(self) + + def getRadius(self): + return _openframeworks.ofCylinderPrimitive_getRadius(self) + + def getCapped(self): + return _openframeworks.ofCylinderPrimitive_getCapped(self) ofCylinderPrimitive_swigregister = _openframeworks.ofCylinderPrimitive_swigregister ofCylinderPrimitive_swigregister(ofCylinderPrimitive) @@ -2932,32 +5612,75 @@ class ofConePrimitive(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofConePrimitive, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofConePrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofConePrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofConePrimitive_set(self, *args) - def setResolutionRadius(self, *args): return _openframeworks.ofConePrimitive_setResolutionRadius(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofConePrimitive_setResolutionHeight(self, *args) - def setResolutionCap(self, *args): return _openframeworks.ofConePrimitive_setResolutionCap(self, *args) - def setResolution(self, *args): return _openframeworks.ofConePrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofConePrimitive_setMode(self, *args) - def setRadius(self, *args): return _openframeworks.ofConePrimitive_setRadius(self, *args) - def setHeight(self, *args): return _openframeworks.ofConePrimitive_setHeight(self, *args) - def setTopColor(self, *args): return _openframeworks.ofConePrimitive_setTopColor(self, *args) - def setCapColor(self, *args): return _openframeworks.ofConePrimitive_setCapColor(self, *args) - def getConeIndices(self): return _openframeworks.ofConePrimitive_getConeIndices(self) - def getConeMesh(self): return _openframeworks.ofConePrimitive_getConeMesh(self) - def getCapIndices(self): return _openframeworks.ofConePrimitive_getCapIndices(self) - def getCapMesh(self): return _openframeworks.ofConePrimitive_getCapMesh(self) - def getResolutionRadius(self): return _openframeworks.ofConePrimitive_getResolutionRadius(self) - def getResolutionHeight(self): return _openframeworks.ofConePrimitive_getResolutionHeight(self) - def getResolutionCap(self): return _openframeworks.ofConePrimitive_getResolutionCap(self) - def getResolution(self): return _openframeworks.ofConePrimitive_getResolution(self) - def getRadius(self): return _openframeworks.ofConePrimitive_getRadius(self) - def getHeight(self): return _openframeworks.ofConePrimitive_getHeight(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofConePrimitive_set(self, *args) + + def setResolutionRadius(self, radiusRes): + return _openframeworks.ofConePrimitive_setResolutionRadius(self, radiusRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofConePrimitive_setResolutionHeight(self, heightRes) + + def setResolutionCap(self, capRes): + return _openframeworks.ofConePrimitive_setResolutionCap(self, capRes) + + def setResolution(self, radiusRes, heightRes, capRes): + return _openframeworks.ofConePrimitive_setResolution(self, radiusRes, heightRes, capRes) + + def setMode(self, mode): + return _openframeworks.ofConePrimitive_setMode(self, mode) + + def setRadius(self, radius): + return _openframeworks.ofConePrimitive_setRadius(self, radius) + + def setHeight(self, height): + return _openframeworks.ofConePrimitive_setHeight(self, height) + + def setTopColor(self, color): + return _openframeworks.ofConePrimitive_setTopColor(self, color) + + def setCapColor(self, color): + return _openframeworks.ofConePrimitive_setCapColor(self, color) + + def getConeIndices(self): + return _openframeworks.ofConePrimitive_getConeIndices(self) + + def getConeMesh(self): + return _openframeworks.ofConePrimitive_getConeMesh(self) + + def getCapIndices(self): + return _openframeworks.ofConePrimitive_getCapIndices(self) + + def getCapMesh(self): + return _openframeworks.ofConePrimitive_getCapMesh(self) + + def getResolutionRadius(self): + return _openframeworks.ofConePrimitive_getResolutionRadius(self) + + def getResolutionHeight(self): + return _openframeworks.ofConePrimitive_getResolutionHeight(self) + + def getResolutionCap(self): + return _openframeworks.ofConePrimitive_getResolutionCap(self) + + def getResolution(self): + return _openframeworks.ofConePrimitive_getResolution(self) + + def getRadius(self): + return _openframeworks.ofConePrimitive_getRadius(self) + + def getHeight(self): + return _openframeworks.ofConePrimitive_getHeight(self) ofConePrimitive_swigregister = _openframeworks.ofConePrimitive_swigregister ofConePrimitive_swigregister(ofConePrimitive) @@ -2974,226 +5697,421 @@ class ofBoxPrimitive(_object): SIDE_TOP = _openframeworks.ofBoxPrimitive_SIDE_TOP SIDE_BOTTOM = _openframeworks.ofBoxPrimitive_SIDE_BOTTOM SIDES_TOTAL = _openframeworks.ofBoxPrimitive_SIDES_TOTAL - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofBoxPrimitive(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofBoxPrimitive - __del__ = lambda self : None; - def set(self, *args): return _openframeworks.ofBoxPrimitive_set(self, *args) - def setWidth(self, *args): return _openframeworks.ofBoxPrimitive_setWidth(self, *args) - def setHeight(self, *args): return _openframeworks.ofBoxPrimitive_setHeight(self, *args) - def setDepth(self, *args): return _openframeworks.ofBoxPrimitive_setDepth(self, *args) - def resizeToTexture(self, *args): return _openframeworks.ofBoxPrimitive_resizeToTexture(self, *args) - def getSideIndices(self, *args): return _openframeworks.ofBoxPrimitive_getSideIndices(self, *args) - def getSideMesh(self, *args): return _openframeworks.ofBoxPrimitive_getSideMesh(self, *args) - def setResolutionWidth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, *args) - def setResolutionHeight(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, *args) - def setResolutionDepth(self, *args): return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, *args) - def setResolution(self, *args): return _openframeworks.ofBoxPrimitive_setResolution(self, *args) - def setMode(self, *args): return _openframeworks.ofBoxPrimitive_setMode(self, *args) - def setSideColor(self, *args): return _openframeworks.ofBoxPrimitive_setSideColor(self, *args) - def getResolutionWidth(self): return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) - def getResolutionHeight(self): return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) - def getResolutionDepth(self): return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) - def getResolution(self): return _openframeworks.ofBoxPrimitive_getResolution(self) - def getWidth(self): return _openframeworks.ofBoxPrimitive_getWidth(self) - def getHeight(self): return _openframeworks.ofBoxPrimitive_getHeight(self) - def getDepth(self): return _openframeworks.ofBoxPrimitive_getDepth(self) - def getSize(self): return _openframeworks.ofBoxPrimitive_getSize(self) + __del__ = lambda self: None + + def set(self, *args): + return _openframeworks.ofBoxPrimitive_set(self, *args) + + def setWidth(self, a_width): + return _openframeworks.ofBoxPrimitive_setWidth(self, a_width) + + def setHeight(self, a_height): + return _openframeworks.ofBoxPrimitive_setHeight(self, a_height) + + def setDepth(self, a_depth): + return _openframeworks.ofBoxPrimitive_setDepth(self, a_depth) + + def resizeToTexture(self, inTexture): + return _openframeworks.ofBoxPrimitive_resizeToTexture(self, inTexture) + + def getSideIndices(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideIndices(self, sideIndex) + + def getSideMesh(self, sideIndex): + return _openframeworks.ofBoxPrimitive_getSideMesh(self, sideIndex) + + def setResolutionWidth(self, widthRes): + return _openframeworks.ofBoxPrimitive_setResolutionWidth(self, widthRes) + + def setResolutionHeight(self, heightRes): + return _openframeworks.ofBoxPrimitive_setResolutionHeight(self, heightRes) + + def setResolutionDepth(self, depthRes): + return _openframeworks.ofBoxPrimitive_setResolutionDepth(self, depthRes) + + def setResolution(self, *args): + return _openframeworks.ofBoxPrimitive_setResolution(self, *args) + + def setMode(self, mode): + return _openframeworks.ofBoxPrimitive_setMode(self, mode) + + def setSideColor(self, sideIndex, color): + return _openframeworks.ofBoxPrimitive_setSideColor(self, sideIndex, color) + + def getResolutionWidth(self): + return _openframeworks.ofBoxPrimitive_getResolutionWidth(self) + + def getResolutionHeight(self): + return _openframeworks.ofBoxPrimitive_getResolutionHeight(self) + + def getResolutionDepth(self): + return _openframeworks.ofBoxPrimitive_getResolutionDepth(self) + + def getResolution(self): + return _openframeworks.ofBoxPrimitive_getResolution(self) + + def getWidth(self): + return _openframeworks.ofBoxPrimitive_getWidth(self) + + def getHeight(self): + return _openframeworks.ofBoxPrimitive_getHeight(self) + + def getDepth(self): + return _openframeworks.ofBoxPrimitive_getDepth(self) + + def getSize(self): + return _openframeworks.ofBoxPrimitive_getSize(self) ofBoxPrimitive_swigregister = _openframeworks.ofBoxPrimitive_swigregister ofBoxPrimitive_swigregister(ofBoxPrimitive) +def ofInit(): + return _openframeworks.ofInit() +ofInit = _openframeworks.ofInit + +def ofCreateWindow(settings): + return _openframeworks.ofCreateWindow(settings) +ofCreateWindow = _openframeworks.ofCreateWindow + +def ofGetMainLoop(): + return _openframeworks.ofGetMainLoop() +ofGetMainLoop = _openframeworks.ofGetMainLoop + +def ofSetMainLoop(mainLoop): + return _openframeworks.ofSetMainLoop(mainLoop) +ofSetMainLoop = _openframeworks.ofSetMainLoop + def ofSetupOpenGL(*args): - return _openframeworks.ofSetupOpenGL(*args) + return _openframeworks.ofSetupOpenGL(*args) ofSetupOpenGL = _openframeworks.ofSetupOpenGL -def ofRunApp(OFSA=None): - return _openframeworks.ofRunApp(OFSA) +def ofRunApp(*args): + return _openframeworks.ofRunApp(*args) ofRunApp = _openframeworks.ofRunApp +def ofRunMainLoop(): + return _openframeworks.ofRunMainLoop() +ofRunMainLoop = _openframeworks.ofRunMainLoop + def ofGetAppPtr(): - return _openframeworks.ofGetAppPtr() + return _openframeworks.ofGetAppPtr() ofGetAppPtr = _openframeworks.ofGetAppPtr def ofExit(status=0): - return _openframeworks.ofExit(status) + return _openframeworks.ofExit(status) ofExit = _openframeworks.ofExit def ofGetFrameRate(): - return _openframeworks.ofGetFrameRate() + return _openframeworks.ofGetFrameRate() ofGetFrameRate = _openframeworks.ofGetFrameRate def ofGetTargetFrameRate(): - return _openframeworks.ofGetTargetFrameRate() + return _openframeworks.ofGetTargetFrameRate() ofGetTargetFrameRate = _openframeworks.ofGetTargetFrameRate -def ofSetFrameRate(*args): - return _openframeworks.ofSetFrameRate(*args) +def ofSetFrameRate(targetRate): + return _openframeworks.ofSetFrameRate(targetRate) ofSetFrameRate = _openframeworks.ofSetFrameRate -def ofSleepMillis(*args): - return _openframeworks.ofSleepMillis(*args) -ofSleepMillis = _openframeworks.ofSleepMillis - def ofGetLastFrameTime(): - return _openframeworks.ofGetLastFrameTime() + return _openframeworks.ofGetLastFrameTime() ofGetLastFrameTime = _openframeworks.ofGetLastFrameTime -def ofSetOrientation(*args): - return _openframeworks.ofSetOrientation(*args) +def ofSetOrientation(orientation, vFlip=True): + return _openframeworks.ofSetOrientation(orientation, vFlip) ofSetOrientation = _openframeworks.ofSetOrientation def ofGetOrientation(): - return _openframeworks.ofGetOrientation() + return _openframeworks.ofGetOrientation() ofGetOrientation = _openframeworks.ofGetOrientation def ofHideCursor(): - return _openframeworks.ofHideCursor() + return _openframeworks.ofHideCursor() ofHideCursor = _openframeworks.ofHideCursor def ofShowCursor(): - return _openframeworks.ofShowCursor() + return _openframeworks.ofShowCursor() ofShowCursor = _openframeworks.ofShowCursor def ofGetWindowPositionX(): - return _openframeworks.ofGetWindowPositionX() + return _openframeworks.ofGetWindowPositionX() ofGetWindowPositionX = _openframeworks.ofGetWindowPositionX def ofGetWindowPositionY(): - return _openframeworks.ofGetWindowPositionY() + return _openframeworks.ofGetWindowPositionY() ofGetWindowPositionY = _openframeworks.ofGetWindowPositionY def ofGetScreenWidth(): - return _openframeworks.ofGetScreenWidth() + return _openframeworks.ofGetScreenWidth() ofGetScreenWidth = _openframeworks.ofGetScreenWidth def ofGetScreenHeight(): - return _openframeworks.ofGetScreenHeight() + return _openframeworks.ofGetScreenHeight() ofGetScreenHeight = _openframeworks.ofGetScreenHeight def ofGetWindowMode(): - return _openframeworks.ofGetWindowMode() + return _openframeworks.ofGetWindowMode() ofGetWindowMode = _openframeworks.ofGetWindowMode def ofGetWidth(): - return _openframeworks.ofGetWidth() + return _openframeworks.ofGetWidth() ofGetWidth = _openframeworks.ofGetWidth def ofGetHeight(): - return _openframeworks.ofGetHeight() + return _openframeworks.ofGetHeight() ofGetHeight = _openframeworks.ofGetHeight def ofGetWindowWidth(): - return _openframeworks.ofGetWindowWidth() + return _openframeworks.ofGetWindowWidth() ofGetWindowWidth = _openframeworks.ofGetWindowWidth def ofGetWindowHeight(): - return _openframeworks.ofGetWindowHeight() + return _openframeworks.ofGetWindowHeight() ofGetWindowHeight = _openframeworks.ofGetWindowHeight +def ofRandomWidth(): + return _openframeworks.ofRandomWidth() +ofRandomWidth = _openframeworks.ofRandomWidth + +def ofRandomHeight(): + return _openframeworks.ofRandomHeight() +ofRandomHeight = _openframeworks.ofRandomHeight + def ofDoesHWOrientation(): - return _openframeworks.ofDoesHWOrientation() + return _openframeworks.ofDoesHWOrientation() ofDoesHWOrientation = _openframeworks.ofDoesHWOrientation def ofGetWindowSize(): - return _openframeworks.ofGetWindowSize() + return _openframeworks.ofGetWindowSize() ofGetWindowSize = _openframeworks.ofGetWindowSize def ofGetWindowRect(): - return _openframeworks.ofGetWindowRect() + return _openframeworks.ofGetWindowRect() ofGetWindowRect = _openframeworks.ofGetWindowRect def ofGetWindowPtr(): - return _openframeworks.ofGetWindowPtr() + return _openframeworks.ofGetWindowPtr() ofGetWindowPtr = _openframeworks.ofGetWindowPtr -def ofSetWindowPosition(*args): - return _openframeworks.ofSetWindowPosition(*args) +def ofSetWindowPosition(x, y): + return _openframeworks.ofSetWindowPosition(x, y) ofSetWindowPosition = _openframeworks.ofSetWindowPosition -def ofSetWindowShape(*args): - return _openframeworks.ofSetWindowShape(*args) +def ofSetWindowShape(width, height): + return _openframeworks.ofSetWindowShape(width, height) ofSetWindowShape = _openframeworks.ofSetWindowShape -def ofSetWindowTitle(*args): - return _openframeworks.ofSetWindowTitle(*args) +def ofSetWindowTitle(title): + return _openframeworks.ofSetWindowTitle(title) ofSetWindowTitle = _openframeworks.ofSetWindowTitle def ofEnableSetupScreen(): - return _openframeworks.ofEnableSetupScreen() + return _openframeworks.ofEnableSetupScreen() ofEnableSetupScreen = _openframeworks.ofEnableSetupScreen def ofDisableSetupScreen(): - return _openframeworks.ofDisableSetupScreen() + return _openframeworks.ofDisableSetupScreen() ofDisableSetupScreen = _openframeworks.ofDisableSetupScreen -def ofSetFullscreen(*args): - return _openframeworks.ofSetFullscreen(*args) +def ofSetFullscreen(fullscreen): + return _openframeworks.ofSetFullscreen(fullscreen) ofSetFullscreen = _openframeworks.ofSetFullscreen def ofToggleFullscreen(): - return _openframeworks.ofToggleFullscreen() + return _openframeworks.ofToggleFullscreen() ofToggleFullscreen = _openframeworks.ofToggleFullscreen -def ofSetVerticalSync(*args): - return _openframeworks.ofSetVerticalSync(*args) +def ofSetVerticalSync(bSync): + return _openframeworks.ofSetVerticalSync(bSync) ofSetVerticalSync = _openframeworks.ofSetVerticalSync + +def ofEvents(): + return _openframeworks.ofEvents() +ofEvents = _openframeworks.ofEvents + +def ofSetCurrentRenderer(renderer, setDefaults=False): + return _openframeworks.ofSetCurrentRenderer(renderer, setDefaults) +ofSetCurrentRenderer = _openframeworks.ofSetCurrentRenderer + +def ofGetCurrentRenderer(): + return _openframeworks.ofGetCurrentRenderer() +ofGetCurrentRenderer = _openframeworks.ofGetCurrentRenderer + +def ofSetEscapeQuitsApp(bQuitOnEsc): + return _openframeworks.ofSetEscapeQuitsApp(bQuitOnEsc) +ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp + +_openframeworks.FIRMATA_MAJOR_VERSION_swigconstant(_openframeworks) FIRMATA_MAJOR_VERSION = _openframeworks.FIRMATA_MAJOR_VERSION + +_openframeworks.FIRMATA_MINOR_VERSION_swigconstant(_openframeworks) FIRMATA_MINOR_VERSION = _openframeworks.FIRMATA_MINOR_VERSION + +_openframeworks.FIRMATA_MAX_DATA_BYTES_swigconstant(_openframeworks) FIRMATA_MAX_DATA_BYTES = _openframeworks.FIRMATA_MAX_DATA_BYTES + +_openframeworks.FIRMATA_DIGITAL_MESSAGE_swigconstant(_openframeworks) FIRMATA_DIGITAL_MESSAGE = _openframeworks.FIRMATA_DIGITAL_MESSAGE + +_openframeworks.FIRMATA_ANALOG_MESSAGE_swigconstant(_openframeworks) FIRMATA_ANALOG_MESSAGE = _openframeworks.FIRMATA_ANALOG_MESSAGE + +_openframeworks.FIRMATA_REPORT_ANALOG_swigconstant(_openframeworks) FIRMATA_REPORT_ANALOG = _openframeworks.FIRMATA_REPORT_ANALOG + +_openframeworks.FIRMATA_REPORT_DIGITAL_swigconstant(_openframeworks) FIRMATA_REPORT_DIGITAL = _openframeworks.FIRMATA_REPORT_DIGITAL + +_openframeworks.FIRMATA_SET_PIN_MODE_swigconstant(_openframeworks) FIRMATA_SET_PIN_MODE = _openframeworks.FIRMATA_SET_PIN_MODE + +_openframeworks.FIRMATA_REPORT_VERSION_swigconstant(_openframeworks) FIRMATA_REPORT_VERSION = _openframeworks.FIRMATA_REPORT_VERSION + +_openframeworks.FIRMATA_SYSTEM_RESET_swigconstant(_openframeworks) FIRMATA_SYSTEM_RESET = _openframeworks.FIRMATA_SYSTEM_RESET + +_openframeworks.FIRMATA_START_SYSEX_swigconstant(_openframeworks) FIRMATA_START_SYSEX = _openframeworks.FIRMATA_START_SYSEX + +_openframeworks.FIRMATA_END_SYSEX_swigconstant(_openframeworks) FIRMATA_END_SYSEX = _openframeworks.FIRMATA_END_SYSEX + +_openframeworks.FIRMATA_INPUT_swigconstant(_openframeworks) FIRMATA_INPUT = _openframeworks.FIRMATA_INPUT + +_openframeworks.FIRMATA_OUTPUT_swigconstant(_openframeworks) FIRMATA_OUTPUT = _openframeworks.FIRMATA_OUTPUT + +_openframeworks.FIRMATA_ANALOG_swigconstant(_openframeworks) FIRMATA_ANALOG = _openframeworks.FIRMATA_ANALOG + +_openframeworks.FIRMATA_PWM_swigconstant(_openframeworks) FIRMATA_PWM = _openframeworks.FIRMATA_PWM + +_openframeworks.FIRMATA_SERVO_swigconstant(_openframeworks) FIRMATA_SERVO = _openframeworks.FIRMATA_SERVO + +_openframeworks.SHIFT_swigconstant(_openframeworks) SHIFT = _openframeworks.SHIFT + +_openframeworks.I2C_swigconstant(_openframeworks) I2C = _openframeworks.I2C + +_openframeworks.TOTAL_PIN_MODES_swigconstant(_openframeworks) TOTAL_PIN_MODES = _openframeworks.TOTAL_PIN_MODES + +_openframeworks.FIRMATA_SYSEX_SERVO_CONFIG_swigconstant(_openframeworks) FIRMATA_SYSEX_SERVO_CONFIG = _openframeworks.FIRMATA_SYSEX_SERVO_CONFIG + +_openframeworks.FIRMATA_SYSEX_FIRMATA_STRING_swigconstant(_openframeworks) FIRMATA_SYSEX_FIRMATA_STRING = _openframeworks.FIRMATA_SYSEX_FIRMATA_STRING + +_openframeworks.SHIFT_DATA_swigconstant(_openframeworks) SHIFT_DATA = _openframeworks.SHIFT_DATA + +_openframeworks.I2C_REQUEST_swigconstant(_openframeworks) I2C_REQUEST = _openframeworks.I2C_REQUEST + +_openframeworks.I2C_REPLY_swigconstant(_openframeworks) I2C_REPLY = _openframeworks.I2C_REPLY + +_openframeworks.I2C_CONFIG_swigconstant(_openframeworks) I2C_CONFIG = _openframeworks.I2C_CONFIG + +_openframeworks.EXTENDED_ANALOG_swigconstant(_openframeworks) EXTENDED_ANALOG = _openframeworks.EXTENDED_ANALOG + +_openframeworks.PIN_STATE_QUERY_swigconstant(_openframeworks) PIN_STATE_QUERY = _openframeworks.PIN_STATE_QUERY + +_openframeworks.PIN_STATE_RESPONSE_swigconstant(_openframeworks) PIN_STATE_RESPONSE = _openframeworks.PIN_STATE_RESPONSE + +_openframeworks.CAPABILITY_QUERY_swigconstant(_openframeworks) CAPABILITY_QUERY = _openframeworks.CAPABILITY_QUERY + +_openframeworks.CAPABILITY_RESPONSE_swigconstant(_openframeworks) CAPABILITY_RESPONSE = _openframeworks.CAPABILITY_RESPONSE + +_openframeworks.ANALOG_MAPPING_QUERY_swigconstant(_openframeworks) ANALOG_MAPPING_QUERY = _openframeworks.ANALOG_MAPPING_QUERY + +_openframeworks.ANALOG_MAPPING_RESPONSE_swigconstant(_openframeworks) ANALOG_MAPPING_RESPONSE = _openframeworks.ANALOG_MAPPING_RESPONSE + +_openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant(_openframeworks) FIRMATA_SYSEX_REPORT_FIRMWARE = _openframeworks.FIRMATA_SYSEX_REPORT_FIRMWARE + +_openframeworks.SAMPLING_INTERVAL_swigconstant(_openframeworks) SAMPLING_INTERVAL = _openframeworks.SAMPLING_INTERVAL + +_openframeworks.FIRMATA_SYSEX_NON_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_NON_REALTIME = _openframeworks.FIRMATA_SYSEX_NON_REALTIME + +_openframeworks.FIRMATA_SYSEX_REALTIME_swigconstant(_openframeworks) FIRMATA_SYSEX_REALTIME = _openframeworks.FIRMATA_SYSEX_REALTIME + +_openframeworks.ARD_TOTAL_DIGITAL_PINS_swigconstant(_openframeworks) ARD_TOTAL_DIGITAL_PINS = _openframeworks.ARD_TOTAL_DIGITAL_PINS + +_openframeworks.ARD_TOTAL_ANALOG_PINS_swigconstant(_openframeworks) ARD_TOTAL_ANALOG_PINS = _openframeworks.ARD_TOTAL_ANALOG_PINS + +_openframeworks.ARD_TOTAL_PORTS_swigconstant(_openframeworks) ARD_TOTAL_PORTS = _openframeworks.ARD_TOTAL_PORTS + +_openframeworks.ARD_INPUT_swigconstant(_openframeworks) ARD_INPUT = _openframeworks.ARD_INPUT + +_openframeworks.ARD_OUTPUT_swigconstant(_openframeworks) ARD_OUTPUT = _openframeworks.ARD_OUTPUT + +_openframeworks.ARD_ANALOG_swigconstant(_openframeworks) ARD_ANALOG = _openframeworks.ARD_ANALOG + +_openframeworks.ARD_PWM_swigconstant(_openframeworks) ARD_PWM = _openframeworks.ARD_PWM + +_openframeworks.ARD_SERVO_swigconstant(_openframeworks) ARD_SERVO = _openframeworks.ARD_SERVO + +_openframeworks.ARD_HIGH_swigconstant(_openframeworks) ARD_HIGH = _openframeworks.ARD_HIGH + +_openframeworks.ARD_LOW_swigconstant(_openframeworks) ARD_LOW = _openframeworks.ARD_LOW + +_openframeworks.ARD_ON_swigconstant(_openframeworks) ARD_ON = _openframeworks.ARD_ON + +_openframeworks.ARD_OFF_swigconstant(_openframeworks) ARD_OFF = _openframeworks.ARD_OFF + +_openframeworks.SYSEX_SERVO_ATTACH_swigconstant(_openframeworks) SYSEX_SERVO_ATTACH = _openframeworks.SYSEX_SERVO_ATTACH + +_openframeworks.SYSEX_SERVO_DETACH_swigconstant(_openframeworks) SYSEX_SERVO_DETACH = _openframeworks.SYSEX_SERVO_DETACH + +_openframeworks.SYSEX_SERVO_WRITE_swigconstant(_openframeworks) SYSEX_SERVO_WRITE = _openframeworks.SYSEX_SERVO_WRITE + +_openframeworks.OF_ARDUINO_DELAY_LENGTH_swigconstant(_openframeworks) OF_ARDUINO_DELAY_LENGTH = _openframeworks.OF_ARDUINO_DELAY_LENGTH + +_openframeworks.FIRMWARE2_2_swigconstant(_openframeworks) FIRMWARE2_2 = _openframeworks.FIRMWARE2_2 + +_openframeworks.FIRMWARE2_3_swigconstant(_openframeworks) FIRMWARE2_3 = _openframeworks.FIRMWARE2_3 class ofArduino(_object): __swig_setmethods__ = {} @@ -3201,77 +6119,175 @@ class ofArduino(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofArduino, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofArduino() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofArduino - __del__ = lambda self : None; - def connect(self, *args): return _openframeworks.ofArduino_connect(self, *args) - def disconnect(self): return _openframeworks.ofArduino_disconnect(self) - def isArduinoReady(self): return _openframeworks.ofArduino_isArduinoReady(self) - def setUseDelay(self, *args): return _openframeworks.ofArduino_setUseDelay(self, *args) - def update(self): return _openframeworks.ofArduino_update(self) - def isInitialized(self): return _openframeworks.ofArduino_isInitialized(self) - def setDigitalHistoryLength(self, *args): return _openframeworks.ofArduino_setDigitalHistoryLength(self, *args) - def setAnalogHistoryLength(self, *args): return _openframeworks.ofArduino_setAnalogHistoryLength(self, *args) - def setStringHistoryLength(self, *args): return _openframeworks.ofArduino_setStringHistoryLength(self, *args) - def setSysExHistoryLength(self, *args): return _openframeworks.ofArduino_setSysExHistoryLength(self, *args) - def sendDigitalPinMode(self, *args): return _openframeworks.ofArduino_sendDigitalPinMode(self, *args) - def sendAnalogPinReporting(self, *args): return _openframeworks.ofArduino_sendAnalogPinReporting(self, *args) - def sendDigital(self, *args): return _openframeworks.ofArduino_sendDigital(self, *args) - def sendPwm(self, *args): return _openframeworks.ofArduino_sendPwm(self, *args) - def sendSysEx(self, *args): return _openframeworks.ofArduino_sendSysEx(self, *args) - def sendString(self, *args): return _openframeworks.ofArduino_sendString(self, *args) - def sendProtocolVersionRequest(self): return _openframeworks.ofArduino_sendProtocolVersionRequest(self) - def sendFirmwareVersionRequest(self): return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) - def sendReset(self): return _openframeworks.ofArduino_sendReset(self) - def sendSysExBegin(self): return _openframeworks.ofArduino_sendSysExBegin(self) - def sendSysExEnd(self): return _openframeworks.ofArduino_sendSysExEnd(self) - def sendByte(self, *args): return _openframeworks.ofArduino_sendByte(self, *args) - def sendValueAsTwo7bitBytes(self, *args): return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, *args) - def getPwm(self, *args): return _openframeworks.ofArduino_getPwm(self, *args) - def getDigital(self, *args): return _openframeworks.ofArduino_getDigital(self, *args) - def getAnalog(self, *args): return _openframeworks.ofArduino_getAnalog(self, *args) - def getSysEx(self): return _openframeworks.ofArduino_getSysEx(self) - def getString(self): return _openframeworks.ofArduino_getString(self) - def getMajorProtocolVersion(self): return _openframeworks.ofArduino_getMajorProtocolVersion(self) - def getMinorProtocolVersion(self): return _openframeworks.ofArduino_getMinorProtocolVersion(self) - def getMajorFirmwareVersion(self): return _openframeworks.ofArduino_getMajorFirmwareVersion(self) - def getMinorFirmwareVersion(self): return _openframeworks.ofArduino_getMinorFirmwareVersion(self) - def getFirmwareName(self): return _openframeworks.ofArduino_getFirmwareName(self) - def getDigitalHistory(self, *args): return _openframeworks.ofArduino_getDigitalHistory(self, *args) - def getAnalogHistory(self, *args): return _openframeworks.ofArduino_getAnalogHistory(self, *args) - def getSysExHistory(self): return _openframeworks.ofArduino_getSysExHistory(self) - def getStringHistory(self): return _openframeworks.ofArduino_getStringHistory(self) - def getDigitalPinMode(self, *args): return _openframeworks.ofArduino_getDigitalPinMode(self, *args) - def getAnalogPinReporting(self, *args): return _openframeworks.ofArduino_getAnalogPinReporting(self, *args) - def getValueFromTwo7bitBytes(self, *args): return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, *args) + __del__ = lambda self: None + + def connect(self, device, baud=57600): + return _openframeworks.ofArduino_connect(self, device, baud) + + def isInitialized(self): + return _openframeworks.ofArduino_isInitialized(self) + + def isArduinoReady(self): + return _openframeworks.ofArduino_isArduinoReady(self) + + def disconnect(self): + return _openframeworks.ofArduino_disconnect(self) + + def update(self): + return _openframeworks.ofArduino_update(self) + + def sendDigitalPinMode(self, pin, mode): + return _openframeworks.ofArduino_sendDigitalPinMode(self, pin, mode) + + def sendAnalogPinReporting(self, pin, mode): + return _openframeworks.ofArduino_sendAnalogPinReporting(self, pin, mode) + + def setUseDelay(self, bDelay): + return _openframeworks.ofArduino_setUseDelay(self, bDelay) + + def setDigitalHistoryLength(self, length): + return _openframeworks.ofArduino_setDigitalHistoryLength(self, length) + + def setAnalogHistoryLength(self, length): + return _openframeworks.ofArduino_setAnalogHistoryLength(self, length) + + def setStringHistoryLength(self, length): + return _openframeworks.ofArduino_setStringHistoryLength(self, length) + + def setSysExHistoryLength(self, nSysEx): + return _openframeworks.ofArduino_setSysExHistoryLength(self, nSysEx) + + def sendDigital(self, pin, value, force=False): + return _openframeworks.ofArduino_sendDigital(self, pin, value, force) + + def sendPwm(self, pin, value, force=False): + return _openframeworks.ofArduino_sendPwm(self, pin, value, force) + + def sendSysEx(self, command, data): + return _openframeworks.ofArduino_sendSysEx(self, command, data) + + def sendString(self, str): + return _openframeworks.ofArduino_sendString(self, str) + + def sendProtocolVersionRequest(self): + return _openframeworks.ofArduino_sendProtocolVersionRequest(self) + + def sendFirmwareVersionRequest(self): + return _openframeworks.ofArduino_sendFirmwareVersionRequest(self) + + def sendReset(self): + return _openframeworks.ofArduino_sendReset(self) + + def sendSysExBegin(self): + return _openframeworks.ofArduino_sendSysExBegin(self) + + def sendSysExEnd(self): + return _openframeworks.ofArduino_sendSysExEnd(self) + + def sendByte(self, byte): + return _openframeworks.ofArduino_sendByte(self, byte) + + def sendValueAsTwo7bitBytes(self, value): + return _openframeworks.ofArduino_sendValueAsTwo7bitBytes(self, value) + + def getPwm(self, pin): + return _openframeworks.ofArduino_getPwm(self, pin) + + def getDigital(self, pin): + return _openframeworks.ofArduino_getDigital(self, pin) + + def getAnalog(self, pin): + return _openframeworks.ofArduino_getAnalog(self, pin) + + def getSysEx(self): + return _openframeworks.ofArduino_getSysEx(self) + + def getString(self): + return _openframeworks.ofArduino_getString(self) + + def getMajorProtocolVersion(self): + return _openframeworks.ofArduino_getMajorProtocolVersion(self) + + def getMinorProtocolVersion(self): + return _openframeworks.ofArduino_getMinorProtocolVersion(self) + + def getMajorFirmwareVersion(self): + return _openframeworks.ofArduino_getMajorFirmwareVersion(self) + + def getMinorFirmwareVersion(self): + return _openframeworks.ofArduino_getMinorFirmwareVersion(self) + + def getFirmwareName(self): + return _openframeworks.ofArduino_getFirmwareName(self) + + def getDigitalHistory(self, pin): + return _openframeworks.ofArduino_getDigitalHistory(self, pin) + + def getAnalogHistory(self, pin): + return _openframeworks.ofArduino_getAnalogHistory(self, pin) + + def getSysExHistory(self): + return _openframeworks.ofArduino_getSysExHistory(self) + + def getStringHistory(self): + return _openframeworks.ofArduino_getStringHistory(self) + + def getDigitalPinMode(self, pin): + return _openframeworks.ofArduino_getDigitalPinMode(self, pin) + + def getAnalogPinReporting(self, pin): + return _openframeworks.ofArduino_getAnalogPinReporting(self, pin) + + def getValueFromTwo7bitBytes(self, lsb, msb): + return _openframeworks.ofArduino_getValueFromTwo7bitBytes(self, lsb, msb) __swig_setmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_set __swig_getmethods__["EDigitalPinChanged"] = _openframeworks.ofArduino_EDigitalPinChanged_get - if _newclass:EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) + if _newclass: + EDigitalPinChanged = _swig_property(_openframeworks.ofArduino_EDigitalPinChanged_get, _openframeworks.ofArduino_EDigitalPinChanged_set) __swig_setmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_set __swig_getmethods__["EAnalogPinChanged"] = _openframeworks.ofArduino_EAnalogPinChanged_get - if _newclass:EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) + if _newclass: + EAnalogPinChanged = _swig_property(_openframeworks.ofArduino_EAnalogPinChanged_get, _openframeworks.ofArduino_EAnalogPinChanged_set) __swig_setmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_set __swig_getmethods__["ESysExReceived"] = _openframeworks.ofArduino_ESysExReceived_get - if _newclass:ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) + if _newclass: + ESysExReceived = _swig_property(_openframeworks.ofArduino_ESysExReceived_get, _openframeworks.ofArduino_ESysExReceived_set) __swig_setmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_set __swig_getmethods__["EProtocolVersionReceived"] = _openframeworks.ofArduino_EProtocolVersionReceived_get - if _newclass:EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) + if _newclass: + EProtocolVersionReceived = _swig_property(_openframeworks.ofArduino_EProtocolVersionReceived_get, _openframeworks.ofArduino_EProtocolVersionReceived_set) __swig_setmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_set __swig_getmethods__["EFirmwareVersionReceived"] = _openframeworks.ofArduino_EFirmwareVersionReceived_get - if _newclass:EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) + if _newclass: + EFirmwareVersionReceived = _swig_property(_openframeworks.ofArduino_EFirmwareVersionReceived_get, _openframeworks.ofArduino_EFirmwareVersionReceived_set) __swig_setmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_set __swig_getmethods__["EInitialized"] = _openframeworks.ofArduino_EInitialized_get - if _newclass:EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) + if _newclass: + EInitialized = _swig_property(_openframeworks.ofArduino_EInitialized_get, _openframeworks.ofArduino_EInitialized_set) __swig_setmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_set __swig_getmethods__["EStringReceived"] = _openframeworks.ofArduino_EStringReceived_get - if _newclass:EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) - def sendServo(self, *args): return _openframeworks.ofArduino_sendServo(self, *args) - def sendServoAttach(self, *args): return _openframeworks.ofArduino_sendServoAttach(self, *args) - def sendServoDetach(self, *args): return _openframeworks.ofArduino_sendServoDetach(self, *args) - def getServo(self, *args): return _openframeworks.ofArduino_getServo(self, *args) + if _newclass: + EStringReceived = _swig_property(_openframeworks.ofArduino_EStringReceived_get, _openframeworks.ofArduino_EStringReceived_set) + + def sendServo(self, pin, value, force=False): + return _openframeworks.ofArduino_sendServo(self, pin, value, force) + + def sendServoAttach(self, pin, minPulse=544, maxPulse=2400, angle=180): + return _openframeworks.ofArduino_sendServoAttach(self, pin, minPulse, maxPulse, angle) + + def sendServoDetach(self, pin): + return _openframeworks.ofArduino_sendServoDetach(self, pin) + + def getServo(self, pin): + return _openframeworks.ofArduino_getServo(self, pin) ofArduino_swigregister = _openframeworks.ofArduino_swigregister ofArduino_swigregister(ofArduino) @@ -3281,129 +6297,254 @@ class ofSerial(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofSerial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofSerial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofSerial - __del__ = lambda self : None; - def listDevices(self): return _openframeworks.ofSerial_listDevices(self) - def enumerateDevices(self): return _openframeworks.ofSerial_enumerateDevices(self) - def getDeviceList(self): return _openframeworks.ofSerial_getDeviceList(self) - def close(self): return _openframeworks.ofSerial_close(self) - def setup(self, *args): return _openframeworks.ofSerial_setup(self, *args) - def readBytes(self, *args): return _openframeworks.ofSerial_readBytes(self, *args) - def writeBytes(self, *args): return _openframeworks.ofSerial_writeBytes(self, *args) - def writeByte(self, *args): return _openframeworks.ofSerial_writeByte(self, *args) - def readByte(self): return _openframeworks.ofSerial_readByte(self) - def flush(self, flushIn=True, flushOut=True): return _openframeworks.ofSerial_flush(self, flushIn, flushOut) - def available(self): return _openframeworks.ofSerial_available(self) - def drain(self): return _openframeworks.ofSerial_drain(self) - def isInitialized(self): return _openframeworks.ofSerial_isInitialized(self) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofSerial_listDevices(self) + + def enumerateDevices(self): + return _openframeworks.ofSerial_enumerateDevices(self) + + def getDeviceList(self): + return _openframeworks.ofSerial_getDeviceList(self) + + def setup(self, *args): + return _openframeworks.ofSerial_setup(self, *args) + + def isInitialized(self): + return _openframeworks.ofSerial_isInitialized(self) + + def close(self): + return _openframeworks.ofSerial_close(self) + + def available(self): + return _openframeworks.ofSerial_available(self) + + def readBytes(self, buffer, length): + return _openframeworks.ofSerial_readBytes(self, buffer, length) + + def readByte(self): + return _openframeworks.ofSerial_readByte(self) + + def writeBytes(self, buffer, length): + return _openframeworks.ofSerial_writeBytes(self, buffer, length) + + def writeByte(self, singleByte): + return _openframeworks.ofSerial_writeByte(self, singleByte) + + def flush(self, flushIn=True, flushOut=True): + return _openframeworks.ofSerial_flush(self, flushIn, flushOut) + + def drain(self): + return _openframeworks.ofSerial_drain(self) ofSerial_swigregister = _openframeworks.ofSerial_swigregister ofSerial_swigregister(ofSerial) -OF_MAX_LIGHTS = _openframeworks.OF_MAX_LIGHTS + +_openframeworks.OF_LIGHT_POINT_swigconstant(_openframeworks) OF_LIGHT_POINT = _openframeworks.OF_LIGHT_POINT -OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_DIRECTIONAL_swigconstant(_openframeworks) OF_LIGHT_DIRECTIONAL = _openframeworks.OF_LIGHT_DIRECTIONAL +_openframeworks.OF_LIGHT_SPOT_swigconstant(_openframeworks) +OF_LIGHT_SPOT = _openframeworks.OF_LIGHT_SPOT + +_openframeworks.OF_LIGHT_AREA_swigconstant(_openframeworks) +OF_LIGHT_AREA = _openframeworks.OF_LIGHT_AREA + def ofEnableLighting(): - return _openframeworks.ofEnableLighting() + return _openframeworks.ofEnableLighting() ofEnableLighting = _openframeworks.ofEnableLighting def ofDisableLighting(): - return _openframeworks.ofDisableLighting() + return _openframeworks.ofDisableLighting() ofDisableLighting = _openframeworks.ofDisableLighting def ofEnableSeparateSpecularLight(): - return _openframeworks.ofEnableSeparateSpecularLight() + return _openframeworks.ofEnableSeparateSpecularLight() ofEnableSeparateSpecularLight = _openframeworks.ofEnableSeparateSpecularLight def ofDisableSeparateSpecularLight(): - return _openframeworks.ofDisableSeparateSpecularLight() + return _openframeworks.ofDisableSeparateSpecularLight() ofDisableSeparateSpecularLight = _openframeworks.ofDisableSeparateSpecularLight def ofGetLightingEnabled(): - return _openframeworks.ofGetLightingEnabled() + return _openframeworks.ofGetLightingEnabled() ofGetLightingEnabled = _openframeworks.ofGetLightingEnabled -def ofSetSmoothLighting(*args): - return _openframeworks.ofSetSmoothLighting(*args) +def ofSetSmoothLighting(b): + return _openframeworks.ofSetSmoothLighting(b) ofSetSmoothLighting = _openframeworks.ofSetSmoothLighting -def ofSetGlobalAmbientColor(*args): - return _openframeworks.ofSetGlobalAmbientColor(*args) +def ofSetGlobalAmbientColor(c): + return _openframeworks.ofSetGlobalAmbientColor(c) ofSetGlobalAmbientColor = _openframeworks.ofSetGlobalAmbientColor + +def ofGetGlobalAmbientColor(): + return _openframeworks.ofGetGlobalAmbientColor() +ofGetGlobalAmbientColor = _openframeworks.ofGetGlobalAmbientColor class ofLight(ofNode): __swig_setmethods__ = {} - for _s in [ofNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofNode]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofLight, name, value) __swig_getmethods__ = {} - for _s in [ofNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofNode]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofLight, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofLight(*args) - try: self.this.append(this) - except: self.this = this + + def __init__(self): + this = _openframeworks.new_ofLight() + try: + self.this.append(this) + except Exception: + self.this = this + + def setup(self): + return _openframeworks.ofLight_setup(self) + + def enable(self): + return _openframeworks.ofLight_enable(self) + + def disable(self): + return _openframeworks.ofLight_disable(self) + + def getIsEnabled(self): + return _openframeworks.ofLight_getIsEnabled(self) + + def setDirectional(self): + return _openframeworks.ofLight_setDirectional(self) + + def getIsDirectional(self): + return _openframeworks.ofLight_getIsDirectional(self) + + def setSpotlight(self, spotCutOff=45., exponent=0.): + return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) + + def getIsSpotlight(self): + return _openframeworks.ofLight_getIsSpotlight(self) + + def setSpotlightCutOff(self, spotCutOff): + return _openframeworks.ofLight_setSpotlightCutOff(self, spotCutOff) + + def getSpotlightCutOff(self): + return _openframeworks.ofLight_getSpotlightCutOff(self) + + def setSpotConcentration(self, exponent): + return _openframeworks.ofLight_setSpotConcentration(self, exponent) + + def getSpotConcentration(self): + return _openframeworks.ofLight_getSpotConcentration(self) + + def setPointLight(self): + return _openframeworks.ofLight_setPointLight(self) + + def getIsPointLight(self): + return _openframeworks.ofLight_getIsPointLight(self) + + def setAttenuation(self, constant=1., linear=0., quadratic=0.): + return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) + + def getAttenuationConstant(self): + return _openframeworks.ofLight_getAttenuationConstant(self) + + def getAttenuationLinear(self): + return _openframeworks.ofLight_getAttenuationLinear(self) + + def getAttenuationQuadratic(self): + return _openframeworks.ofLight_getAttenuationQuadratic(self) + + def setAreaLight(self, width, height): + return _openframeworks.ofLight_setAreaLight(self, width, height) + + def getIsAreaLight(self): + return _openframeworks.ofLight_getIsAreaLight(self) + + def getType(self): + return _openframeworks.ofLight_getType(self) + + def setAmbientColor(self, c): + return _openframeworks.ofLight_setAmbientColor(self, c) + + def setDiffuseColor(self, c): + return _openframeworks.ofLight_setDiffuseColor(self, c) + + def setSpecularColor(self, c): + return _openframeworks.ofLight_setSpecularColor(self, c) + + def getAmbientColor(self): + return _openframeworks.ofLight_getAmbientColor(self) + + def getDiffuseColor(self): + return _openframeworks.ofLight_getDiffuseColor(self) + + def getSpecularColor(self): + return _openframeworks.ofLight_getSpecularColor(self) + + def getLightID(self): + return _openframeworks.ofLight_getLightID(self) __swig_destroy__ = _openframeworks.delete_ofLight - __del__ = lambda self : None; - def destroy(self): return _openframeworks.ofLight_destroy(self) - def setup(self): return _openframeworks.ofLight_setup(self) - def enable(self): return _openframeworks.ofLight_enable(self) - def disable(self): return _openframeworks.ofLight_disable(self) - def getIsEnabled(self): return _openframeworks.ofLight_getIsEnabled(self) - def setDirectional(self): return _openframeworks.ofLight_setDirectional(self) - def getIsDirectional(self): return _openframeworks.ofLight_getIsDirectional(self) - def setSpotlight(self, spotCutOff=45., exponent=0.): return _openframeworks.ofLight_setSpotlight(self, spotCutOff, exponent) - def getIsSpotlight(self): return _openframeworks.ofLight_getIsSpotlight(self) - def setSpotlightCutOff(self, *args): return _openframeworks.ofLight_setSpotlightCutOff(self, *args) - def getSpotlightCutOff(self): return _openframeworks.ofLight_getSpotlightCutOff(self) - def setSpotConcentration(self, *args): return _openframeworks.ofLight_setSpotConcentration(self, *args) - def getSpotConcentration(self): return _openframeworks.ofLight_getSpotConcentration(self) - def setPointLight(self): return _openframeworks.ofLight_setPointLight(self) - def getIsPointLight(self): return _openframeworks.ofLight_getIsPointLight(self) - def setAttenuation(self, constant=1., linear=0., quadratic=0.): return _openframeworks.ofLight_setAttenuation(self, constant, linear, quadratic) - def getAttenuationConstant(self): return _openframeworks.ofLight_getAttenuationConstant(self) - def getAttenuationLinear(self): return _openframeworks.ofLight_getAttenuationLinear(self) - def getAttenuationQuadratic(self): return _openframeworks.ofLight_getAttenuationQuadratic(self) - def getType(self): return _openframeworks.ofLight_getType(self) - def setAmbientColor(self, *args): return _openframeworks.ofLight_setAmbientColor(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofLight_setDiffuseColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofLight_setSpecularColor(self, *args) - def getAmbientColor(self): return _openframeworks.ofLight_getAmbientColor(self) - def getDiffuseColor(self): return _openframeworks.ofLight_getDiffuseColor(self) - def getSpecularColor(self): return _openframeworks.ofLight_getSpecularColor(self) - def getLightID(self): return _openframeworks.ofLight_getLightID(self) + __del__ = lambda self: None ofLight_swigregister = _openframeworks.ofLight_swigregister ofLight_swigregister(ofLight) -class ofMaterial(_object): + +def ofLightsData(): + return _openframeworks.ofLightsData() +ofLightsData = _openframeworks.ofLightsData +class ofMaterial(ofBaseMaterial): __swig_setmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofMaterial, name, value) __swig_getmethods__ = {} + for _s in [ofBaseMaterial]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofMaterial, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofMaterial() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMaterial - __del__ = lambda self : None; - def setColors(self, *args): return _openframeworks.ofMaterial_setColors(self, *args) - def setDiffuseColor(self, *args): return _openframeworks.ofMaterial_setDiffuseColor(self, *args) - def setAmbientColor(self, *args): return _openframeworks.ofMaterial_setAmbientColor(self, *args) - def setSpecularColor(self, *args): return _openframeworks.ofMaterial_setSpecularColor(self, *args) - def setEmissiveColor(self, *args): return _openframeworks.ofMaterial_setEmissiveColor(self, *args) - def setShininess(self, *args): return _openframeworks.ofMaterial_setShininess(self, *args) - def getDiffuseColor(self): return _openframeworks.ofMaterial_getDiffuseColor(self) - def getAmbientColor(self): return _openframeworks.ofMaterial_getAmbientColor(self) - def getSpecularColor(self): return _openframeworks.ofMaterial_getSpecularColor(self) - def getEmissiveColor(self): return _openframeworks.ofMaterial_getEmissiveColor(self) - def getShininess(self): return _openframeworks.ofMaterial_getShininess(self) - def begin(self): return _openframeworks.ofMaterial_begin(self) - def end(self): return _openframeworks.ofMaterial_end(self) + __del__ = lambda self: None + + def setColors(self, oDiffuse, oAmbient, oSpecular, emissive): + return _openframeworks.ofMaterial_setColors(self, oDiffuse, oAmbient, oSpecular, emissive) + + def setDiffuseColor(self, oDiffuse): + return _openframeworks.ofMaterial_setDiffuseColor(self, oDiffuse) + + def setAmbientColor(self, oAmbient): + return _openframeworks.ofMaterial_setAmbientColor(self, oAmbient) + + def setSpecularColor(self, oSpecular): + return _openframeworks.ofMaterial_setSpecularColor(self, oSpecular) + + def setEmissiveColor(self, oEmmisive): + return _openframeworks.ofMaterial_setEmissiveColor(self, oEmmisive) + + def setShininess(self, nShininess): + return _openframeworks.ofMaterial_setShininess(self, nShininess) + + def getData(self): + return _openframeworks.ofMaterial_getData(self) + + def setData(self, data): + return _openframeworks.ofMaterial_setData(self, data) ofMaterial_swigregister = _openframeworks.ofMaterial_swigregister ofMaterial_swigregister(ofMaterial) @@ -3414,71 +6555,196 @@ class ofShader(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShader, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShader - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShader(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofShader_load(self, *args) - def setGeometryInputType(self, *args): return _openframeworks.ofShader_setGeometryInputType(self, *args) - def setGeometryOutputType(self, *args): return _openframeworks.ofShader_setGeometryOutputType(self, *args) - def setGeometryOutputCount(self, *args): return _openframeworks.ofShader_setGeometryOutputCount(self, *args) - def getGeometryMaxOutputCount(self): return _openframeworks.ofShader_getGeometryMaxOutputCount(self) - def unload(self): return _openframeworks.ofShader_unload(self) - def isLoaded(self): return _openframeworks.ofShader_isLoaded(self) - def begin(self): return _openframeworks.ofShader_begin(self) - def end(self): return _openframeworks.ofShader_end(self) - def setUniformTexture(self, *args): return _openframeworks.ofShader_setUniformTexture(self, *args) - def setUniform1i(self, *args): return _openframeworks.ofShader_setUniform1i(self, *args) - def setUniform2i(self, *args): return _openframeworks.ofShader_setUniform2i(self, *args) - def setUniform3i(self, *args): return _openframeworks.ofShader_setUniform3i(self, *args) - def setUniform4i(self, *args): return _openframeworks.ofShader_setUniform4i(self, *args) - def setUniform1f(self, *args): return _openframeworks.ofShader_setUniform1f(self, *args) - def setUniform2f(self, *args): return _openframeworks.ofShader_setUniform2f(self, *args) - def setUniform3f(self, *args): return _openframeworks.ofShader_setUniform3f(self, *args) - def setUniform4f(self, *args): return _openframeworks.ofShader_setUniform4f(self, *args) - def setUniform1iv(self, *args): return _openframeworks.ofShader_setUniform1iv(self, *args) - def setUniform2iv(self, *args): return _openframeworks.ofShader_setUniform2iv(self, *args) - def setUniform3iv(self, *args): return _openframeworks.ofShader_setUniform3iv(self, *args) - def setUniform4iv(self, *args): return _openframeworks.ofShader_setUniform4iv(self, *args) - def setUniform1fv(self, *args): return _openframeworks.ofShader_setUniform1fv(self, *args) - def setUniform2fv(self, *args): return _openframeworks.ofShader_setUniform2fv(self, *args) - def setUniform3fv(self, *args): return _openframeworks.ofShader_setUniform3fv(self, *args) - def setUniform4fv(self, *args): return _openframeworks.ofShader_setUniform4fv(self, *args) - def setUniformMatrix4f(self, *args): return _openframeworks.ofShader_setUniformMatrix4f(self, *args) - def getAttributeLocation(self, *args): return _openframeworks.ofShader_getAttributeLocation(self, *args) - def setAttribute1s(self, *args): return _openframeworks.ofShader_setAttribute1s(self, *args) - def setAttribute2s(self, *args): return _openframeworks.ofShader_setAttribute2s(self, *args) - def setAttribute3s(self, *args): return _openframeworks.ofShader_setAttribute3s(self, *args) - def setAttribute4s(self, *args): return _openframeworks.ofShader_setAttribute4s(self, *args) - def setAttribute1f(self, *args): return _openframeworks.ofShader_setAttribute1f(self, *args) - def setAttribute2f(self, *args): return _openframeworks.ofShader_setAttribute2f(self, *args) - def setAttribute3f(self, *args): return _openframeworks.ofShader_setAttribute3f(self, *args) - def setAttribute4f(self, *args): return _openframeworks.ofShader_setAttribute4f(self, *args) - def setAttribute1d(self, *args): return _openframeworks.ofShader_setAttribute1d(self, *args) - def setAttribute2d(self, *args): return _openframeworks.ofShader_setAttribute2d(self, *args) - def setAttribute3d(self, *args): return _openframeworks.ofShader_setAttribute3d(self, *args) - def setAttribute4d(self, *args): return _openframeworks.ofShader_setAttribute4d(self, *args) - def setAttribute1fv(self, *args): return _openframeworks.ofShader_setAttribute1fv(self, *args) - def setAttribute2fv(self, *args): return _openframeworks.ofShader_setAttribute2fv(self, *args) - def setAttribute3fv(self, *args): return _openframeworks.ofShader_setAttribute3fv(self, *args) - def setAttribute4fv(self, *args): return _openframeworks.ofShader_setAttribute4fv(self, *args) - def bindAttribute(self, *args): return _openframeworks.ofShader_bindAttribute(self, *args) - def printActiveUniforms(self): return _openframeworks.ofShader_printActiveUniforms(self) - def printActiveAttributes(self): return _openframeworks.ofShader_printActiveAttributes(self) - def setupShaderFromSource(self, *args): return _openframeworks.ofShader_setupShaderFromSource(self, *args) - def setupShaderFromFile(self, *args): return _openframeworks.ofShader_setupShaderFromFile(self, *args) - def linkProgram(self): return _openframeworks.ofShader_linkProgram(self) - def bindDefaults(self): return _openframeworks.ofShader_bindDefaults(self) - def getProgram(self): return _openframeworks.ofShader_getProgram(self) - def getShader(self, *args): return _openframeworks.ofShader_getShader(self, *args) - def __eq__(self, *args): return _openframeworks.ofShader___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofShader___ne__(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, *args): + return _openframeworks.ofShader_load(self, *args) + + def setGeometryInputType(self, type): + return _openframeworks.ofShader_setGeometryInputType(self, type) + + def setGeometryOutputType(self, type): + return _openframeworks.ofShader_setGeometryOutputType(self, type) + + def setGeometryOutputCount(self, count): + return _openframeworks.ofShader_setGeometryOutputCount(self, count) + + def getGeometryMaxOutputCount(self): + return _openframeworks.ofShader_getGeometryMaxOutputCount(self) + + def unload(self): + return _openframeworks.ofShader_unload(self) + + def isLoaded(self): + return _openframeworks.ofShader_isLoaded(self) + + def begin(self): + return _openframeworks.ofShader_begin(self) + + def end(self): + return _openframeworks.ofShader_end(self) + + def setUniformTexture(self, *args): + return _openframeworks.ofShader_setUniformTexture(self, *args) + + def setUniform1i(self, name, v1): + return _openframeworks.ofShader_setUniform1i(self, name, v1) + + def setUniform2i(self, name, v1, v2): + return _openframeworks.ofShader_setUniform2i(self, name, v1, v2) + + def setUniform3i(self, name, v1, v2, v3): + return _openframeworks.ofShader_setUniform3i(self, name, v1, v2, v3) + + def setUniform4i(self, name, v1, v2, v3, v4): + return _openframeworks.ofShader_setUniform4i(self, name, v1, v2, v3, v4) + + def setUniform1f(self, name, v1): + return _openframeworks.ofShader_setUniform1f(self, name, v1) + + def setUniform2f(self, *args): + return _openframeworks.ofShader_setUniform2f(self, *args) + + def setUniform3f(self, *args): + return _openframeworks.ofShader_setUniform3f(self, *args) + + def setUniform4f(self, *args): + return _openframeworks.ofShader_setUniform4f(self, *args) + + def setUniform1iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1iv(self, name, v, count) + + def setUniform2iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2iv(self, name, v, count) + + def setUniform3iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3iv(self, name, v, count) + + def setUniform4iv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4iv(self, name, v, count) + + def setUniform1fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform1fv(self, name, v, count) + + def setUniform2fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform2fv(self, name, v, count) + + def setUniform3fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform3fv(self, name, v, count) + + def setUniform4fv(self, name, v, count=1): + return _openframeworks.ofShader_setUniform4fv(self, name, v, count) + + def setUniforms(self, parameters): + return _openframeworks.ofShader_setUniforms(self, parameters) + + def setUniformMatrix3f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix3f(self, name, m, count) + + def setUniformMatrix4f(self, name, m, count=1): + return _openframeworks.ofShader_setUniformMatrix4f(self, name, m, count) + + def getUniformLocation(self, name): + return _openframeworks.ofShader_getUniformLocation(self, name) + + def getAttributeLocation(self, name): + return _openframeworks.ofShader_getAttributeLocation(self, name) + + def setAttribute1s(self, location, v1): + return _openframeworks.ofShader_setAttribute1s(self, location, v1) + + def setAttribute2s(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2s(self, location, v1, v2) + + def setAttribute3s(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3s(self, location, v1, v2, v3) + + def setAttribute4s(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4s(self, location, v1, v2, v3, v4) + + def setAttribute1f(self, location, v1): + return _openframeworks.ofShader_setAttribute1f(self, location, v1) + + def setAttribute2f(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2f(self, location, v1, v2) + + def setAttribute3f(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3f(self, location, v1, v2, v3) + + def setAttribute4f(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4f(self, location, v1, v2, v3, v4) + + def setAttribute1d(self, location, v1): + return _openframeworks.ofShader_setAttribute1d(self, location, v1) + + def setAttribute2d(self, location, v1, v2): + return _openframeworks.ofShader_setAttribute2d(self, location, v1, v2) + + def setAttribute3d(self, location, v1, v2, v3): + return _openframeworks.ofShader_setAttribute3d(self, location, v1, v2, v3) + + def setAttribute4d(self, location, v1, v2, v3, v4): + return _openframeworks.ofShader_setAttribute4d(self, location, v1, v2, v3, v4) + + def setAttribute1fv(self, *args): + return _openframeworks.ofShader_setAttribute1fv(self, *args) + + def setAttribute2fv(self, *args): + return _openframeworks.ofShader_setAttribute2fv(self, *args) + + def setAttribute3fv(self, *args): + return _openframeworks.ofShader_setAttribute3fv(self, *args) + + def setAttribute4fv(self, *args): + return _openframeworks.ofShader_setAttribute4fv(self, *args) + + def bindAttribute(self, location, name): + return _openframeworks.ofShader_bindAttribute(self, location, name) + + def printActiveUniforms(self): + return _openframeworks.ofShader_printActiveUniforms(self) + + def printActiveAttributes(self): + return _openframeworks.ofShader_printActiveAttributes(self) + + def setupShaderFromSource(self, *args): + return _openframeworks.ofShader_setupShaderFromSource(self, *args) + + def setupShaderFromFile(self, type, filename): + return _openframeworks.ofShader_setupShaderFromFile(self, type, filename) + + def linkProgram(self): + return _openframeworks.ofShader_linkProgram(self) + + def bindDefaults(self): + return _openframeworks.ofShader_bindDefaults(self) + + def getProgram(self): + return _openframeworks.ofShader_getProgram(self) + + def getShader(self, type): + return _openframeworks.ofShader_getShader(self, type) + + def __eq__(self, other): + return _openframeworks.ofShader___eq__(self, other) + + def __ne__(self, other): + return _openframeworks.ofShader___ne__(self, other) POSITION_ATTRIBUTE = _openframeworks.ofShader_POSITION_ATTRIBUTE COLOR_ATTRIBUTE = _openframeworks.ofShader_COLOR_ATTRIBUTE NORMAL_ATTRIBUTE = _openframeworks.ofShader_NORMAL_ATTRIBUTE TEXCOORD_ATTRIBUTE = _openframeworks.ofShader_TEXCOORD_ATTRIBUTE - def getShaderSource(self, *args): return _openframeworks.ofShader_getShaderSource(self, *args) + INDEX_ATTRIBUTE = _openframeworks.ofShader_INDEX_ATTRIBUTE + + def getShaderSource(self, type): + return _openframeworks.ofShader_getShaderSource(self, type) ofShader_swigregister = _openframeworks.ofShader_swigregister ofShader_swigregister(ofShader) @@ -3488,206 +6754,635 @@ class ofVbo(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVbo, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofVbo(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVbo - __del__ = lambda self : None; - def setMesh(self, *args): return _openframeworks.ofVbo_setMesh(self, *args) - def setIndexData(self, *args): return _openframeworks.ofVbo_setIndexData(self, *args) - def setVertexData(self, *args): return _openframeworks.ofVbo_setVertexData(self, *args) - def setColorData(self, *args): return _openframeworks.ofVbo_setColorData(self, *args) - def setNormalData(self, *args): return _openframeworks.ofVbo_setNormalData(self, *args) - def setTexCoordData(self, *args): return _openframeworks.ofVbo_setTexCoordData(self, *args) - def setAttributeData(self, *args): return _openframeworks.ofVbo_setAttributeData(self, *args) - def updateMesh(self, *args): return _openframeworks.ofVbo_updateMesh(self, *args) - def updateIndexData(self, *args): return _openframeworks.ofVbo_updateIndexData(self, *args) - def updateVertexData(self, *args): return _openframeworks.ofVbo_updateVertexData(self, *args) - def updateColorData(self, *args): return _openframeworks.ofVbo_updateColorData(self, *args) - def updateNormalData(self, *args): return _openframeworks.ofVbo_updateNormalData(self, *args) - def updateTexCoordData(self, *args): return _openframeworks.ofVbo_updateTexCoordData(self, *args) - def updateAttributeData(self, *args): return _openframeworks.ofVbo_updateAttributeData(self, *args) - def enableColors(self): return _openframeworks.ofVbo_enableColors(self) - def enableNormals(self): return _openframeworks.ofVbo_enableNormals(self) - def enableTexCoords(self): return _openframeworks.ofVbo_enableTexCoords(self) - def enableIndices(self): return _openframeworks.ofVbo_enableIndices(self) - def disableColors(self): return _openframeworks.ofVbo_disableColors(self) - def disableNormals(self): return _openframeworks.ofVbo_disableNormals(self) - def disableTexCoords(self): return _openframeworks.ofVbo_disableTexCoords(self) - def disableIndices(self): return _openframeworks.ofVbo_disableIndices(self) - def getVertId(self): return _openframeworks.ofVbo_getVertId(self) - def getColorId(self): return _openframeworks.ofVbo_getColorId(self) - def getNormalId(self): return _openframeworks.ofVbo_getNormalId(self) - def getTexCoordId(self): return _openframeworks.ofVbo_getTexCoordId(self) - def getIndexId(self): return _openframeworks.ofVbo_getIndexId(self) - def getIsAllocated(self): return _openframeworks.ofVbo_getIsAllocated(self) - def getUsingVerts(self): return _openframeworks.ofVbo_getUsingVerts(self) - def getUsingColors(self): return _openframeworks.ofVbo_getUsingColors(self) - def getUsingNormals(self): return _openframeworks.ofVbo_getUsingNormals(self) - def getUsingTexCoords(self): return _openframeworks.ofVbo_getUsingTexCoords(self) - def getUsingIndices(self): return _openframeworks.ofVbo_getUsingIndices(self) - def draw(self, *args): return _openframeworks.ofVbo_draw(self, *args) - def drawElements(self, *args): return _openframeworks.ofVbo_drawElements(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVbo_drawInstanced(self, *args) - def drawElementsInstanced(self, *args): return _openframeworks.ofVbo_drawElementsInstanced(self, *args) - def bind(self): return _openframeworks.ofVbo_bind(self) - def unbind(self): return _openframeworks.ofVbo_unbind(self) - def clear(self): return _openframeworks.ofVbo_clear(self) - def clearVertices(self): return _openframeworks.ofVbo_clearVertices(self) - def clearNormals(self): return _openframeworks.ofVbo_clearNormals(self) - def clearColors(self): return _openframeworks.ofVbo_clearColors(self) - def clearTexCoords(self): return _openframeworks.ofVbo_clearTexCoords(self) - def clearIndices(self): return _openframeworks.ofVbo_clearIndices(self) - def getNumVertices(self): return _openframeworks.ofVbo_getNumVertices(self) - def getNumIndices(self): return _openframeworks.ofVbo_getNumIndices(self) - __swig_getmethods__["disableVAOs"] = lambda x: _openframeworks.ofVbo_disableVAOs - if _newclass:disableVAOs = staticmethod(_openframeworks.ofVbo_disableVAOs) - __swig_getmethods__["enableVAOs"] = lambda x: _openframeworks.ofVbo_enableVAOs - if _newclass:enableVAOs = staticmethod(_openframeworks.ofVbo_enableVAOs) -ofVbo_swigregister = _openframeworks.ofVbo_swigregister -ofVbo_swigregister(ofVbo) + __del__ = lambda self: None -def ofVbo_disableVAOs(): - return _openframeworks.ofVbo_disableVAOs() -ofVbo_disableVAOs = _openframeworks.ofVbo_disableVAOs + def setMesh(self, *args): + return _openframeworks.ofVbo_setMesh(self, *args) -def ofVbo_enableVAOs(): - return _openframeworks.ofVbo_enableVAOs() -ofVbo_enableVAOs = _openframeworks.ofVbo_enableVAOs + def setIndexData(self, indices, total, usage): + return _openframeworks.ofVbo_setIndexData(self, indices, total, usage) -class ofVboMesh(ofMesh): - __swig_setmethods__ = {} - for _s in [ofMesh]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) - __swig_getmethods__ = {} - for _s in [ofMesh]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofVboMesh(*args) - try: self.this.append(this) - except: self.this = this - def setUsage(self, *args): return _openframeworks.ofVboMesh_setUsage(self, *args) - def draw(self, *args): return _openframeworks.ofVboMesh_draw(self, *args) - def drawInstanced(self, *args): return _openframeworks.ofVboMesh_drawInstanced(self, *args) - def getVbo(self): return _openframeworks.ofVboMesh_getVbo(self) - __swig_destroy__ = _openframeworks.delete_ofVboMesh - __del__ = lambda self : None; -ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister -ofVboMesh_swigregister(ofVboMesh) + def setVertexData(self, *args): + return _openframeworks.ofVbo_setVertexData(self, *args) -OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR -OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR -OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC -class ofPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) - __repr__ = _swig_repr - __swig_destroy__ = _openframeworks.delete_ofPixels - __del__ = lambda self : None; - def __init__(self, *args): - this = _openframeworks.new_ofPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofPixels_swapRgb(self) - def clear(self): return _openframeworks.ofPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofPixels_size(self) -ofPixels_swigregister = _openframeworks.ofPixels_swigregister -ofPixels_swigregister(ofPixels) + def setColorData(self, *args): + return _openframeworks.ofVbo_setColorData(self, *args) -class ofFloatPixels(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) - __repr__ = _swig_repr + def setNormalData(self, *args): + return _openframeworks.ofVbo_setNormalData(self, *args) + + def setTexCoordData(self, *args): + return _openframeworks.ofVbo_setTexCoordData(self, *args) + + def setAttributeData(self, location, vert0x, numCoords, total, usage, stride=0): + return _openframeworks.ofVbo_setAttributeData(self, location, vert0x, numCoords, total, usage, stride) + + def setAttributeDivisor(self, location, divisor): + return _openframeworks.ofVbo_setAttributeDivisor(self, location, divisor) + + def setVertexBuffer(self, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setVertexBuffer(self, buffer, numCoords, stride, offset) + + def setColorBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setColorBuffer(self, buffer, stride, offset) + + def setNormalBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setNormalBuffer(self, buffer, stride, offset) + + def setTexCoordBuffer(self, buffer, stride, offset=0): + return _openframeworks.ofVbo_setTexCoordBuffer(self, buffer, stride, offset) + + def setIndexBuffer(self, buffer): + return _openframeworks.ofVbo_setIndexBuffer(self, buffer) + + def setAttributeBuffer(self, location, buffer, numCoords, stride, offset=0): + return _openframeworks.ofVbo_setAttributeBuffer(self, location, buffer, numCoords, stride, offset) + + def getVertexBuffer(self, *args): + return _openframeworks.ofVbo_getVertexBuffer(self, *args) + + def getColorBuffer(self, *args): + return _openframeworks.ofVbo_getColorBuffer(self, *args) + + def getNormalBuffer(self, *args): + return _openframeworks.ofVbo_getNormalBuffer(self, *args) + + def getTexCoordBuffer(self, *args): + return _openframeworks.ofVbo_getTexCoordBuffer(self, *args) + + def getIndexBuffer(self, *args): + return _openframeworks.ofVbo_getIndexBuffer(self, *args) + + def getAttributeBuffer(self, *args): + return _openframeworks.ofVbo_getAttributeBuffer(self, *args) + + def updateMesh(self, mesh): + return _openframeworks.ofVbo_updateMesh(self, mesh) + + def updateIndexData(self, indices, total): + return _openframeworks.ofVbo_updateIndexData(self, indices, total) + + def updateVertexData(self, *args): + return _openframeworks.ofVbo_updateVertexData(self, *args) + + def updateColorData(self, *args): + return _openframeworks.ofVbo_updateColorData(self, *args) + + def updateNormalData(self, *args): + return _openframeworks.ofVbo_updateNormalData(self, *args) + + def updateTexCoordData(self, *args): + return _openframeworks.ofVbo_updateTexCoordData(self, *args) + + def updateAttributeData(self, location, vert0x, total): + return _openframeworks.ofVbo_updateAttributeData(self, location, vert0x, total) + + def enableColors(self): + return _openframeworks.ofVbo_enableColors(self) + + def enableNormals(self): + return _openframeworks.ofVbo_enableNormals(self) + + def enableTexCoords(self): + return _openframeworks.ofVbo_enableTexCoords(self) + + def enableIndices(self): + return _openframeworks.ofVbo_enableIndices(self) + + def disableColors(self): + return _openframeworks.ofVbo_disableColors(self) + + def disableNormals(self): + return _openframeworks.ofVbo_disableNormals(self) + + def disableTexCoords(self): + return _openframeworks.ofVbo_disableTexCoords(self) + + def disableIndices(self): + return _openframeworks.ofVbo_disableIndices(self) + + def getVaoId(self): + return _openframeworks.ofVbo_getVaoId(self) + + def getVertId(self): + return _openframeworks.ofVbo_getVertId(self) + + def getColorId(self): + return _openframeworks.ofVbo_getColorId(self) + + def getNormalId(self): + return _openframeworks.ofVbo_getNormalId(self) + + def getTexCoordId(self): + return _openframeworks.ofVbo_getTexCoordId(self) + + def getIndexId(self): + return _openframeworks.ofVbo_getIndexId(self) + + def getAttributeId(self, AttrPos_): + return _openframeworks.ofVbo_getAttributeId(self, AttrPos_) + + def getIsAllocated(self): + return _openframeworks.ofVbo_getIsAllocated(self) + + def getUsingVerts(self): + return _openframeworks.ofVbo_getUsingVerts(self) + + def getUsingColors(self): + return _openframeworks.ofVbo_getUsingColors(self) + + def getUsingNormals(self): + return _openframeworks.ofVbo_getUsingNormals(self) + + def getUsingTexCoords(self): + return _openframeworks.ofVbo_getUsingTexCoords(self) + + def getUsingIndices(self): + return _openframeworks.ofVbo_getUsingIndices(self) + + def draw(self, drawMode, first, total): + return _openframeworks.ofVbo_draw(self, drawMode, first, total) + + def drawElements(self, drawMode, amt, offsetelements=0): + return _openframeworks.ofVbo_drawElements(self, drawMode, amt, offsetelements) + + def drawInstanced(self, drawMode, first, total, primCount): + return _openframeworks.ofVbo_drawInstanced(self, drawMode, first, total, primCount) + + def drawElementsInstanced(self, drawMode, amt, primCount): + return _openframeworks.ofVbo_drawElementsInstanced(self, drawMode, amt, primCount) + + def bind(self): + return _openframeworks.ofVbo_bind(self) + + def unbind(self): + return _openframeworks.ofVbo_unbind(self) + + def clear(self): + return _openframeworks.ofVbo_clear(self) + + def clearVertices(self): + return _openframeworks.ofVbo_clearVertices(self) + + def clearNormals(self): + return _openframeworks.ofVbo_clearNormals(self) + + def clearColors(self): + return _openframeworks.ofVbo_clearColors(self) + + def clearTexCoords(self): + return _openframeworks.ofVbo_clearTexCoords(self) + + def clearIndices(self): + return _openframeworks.ofVbo_clearIndices(self) + + def clearAttribute(self, attributePos_): + return _openframeworks.ofVbo_clearAttribute(self, attributePos_) + + def getNumVertices(self): + return _openframeworks.ofVbo_getNumVertices(self) + + def getNumIndices(self): + return _openframeworks.ofVbo_getNumIndices(self) + + def hasAttribute(self, attributePos_): + return _openframeworks.ofVbo_hasAttribute(self, attributePos_) +ofVbo_swigregister = _openframeworks.ofVbo_swigregister +ofVbo_swigregister(ofVbo) + +class ofVboMesh(ofMesh): + __swig_setmethods__ = {} + for _s in [ofMesh]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVboMesh, name, value) + __swig_getmethods__ = {} + for _s in [ofMesh]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) + __getattr__ = lambda self, name: _swig_getattr(self, ofVboMesh, name) + __repr__ = _swig_repr + + def __init__(self, *args): + this = _openframeworks.new_ofVboMesh(*args) + try: + self.this.append(this) + except Exception: + self.this = this + __swig_destroy__ = _openframeworks.delete_ofVboMesh + __del__ = lambda self: None + + def setUsage(self, usage): + return _openframeworks.ofVboMesh_setUsage(self, usage) + + def draw(self, *args): + return _openframeworks.ofVboMesh_draw(self, *args) + + def drawInstanced(self, drawMode, primCount): + return _openframeworks.ofVboMesh_drawInstanced(self, drawMode, primCount) + + def getVbo(self, *args): + return _openframeworks.ofVboMesh_getVbo(self, *args) +ofVboMesh_swigregister = _openframeworks.ofVboMesh_swigregister +ofVboMesh_swigregister(ofVboMesh) + + +_openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant(_openframeworks) +OF_INTERPOLATE_NEAREST_NEIGHBOR = _openframeworks.OF_INTERPOLATE_NEAREST_NEIGHBOR + +_openframeworks.OF_INTERPOLATE_BILINEAR_swigconstant(_openframeworks) +OF_INTERPOLATE_BILINEAR = _openframeworks.OF_INTERPOLATE_BILINEAR + +_openframeworks.OF_INTERPOLATE_BICUBIC_swigconstant(_openframeworks) +OF_INTERPOLATE_BICUBIC = _openframeworks.OF_INTERPOLATE_BICUBIC +class ofPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofPixels, name) + __repr__ = _swig_repr + __swig_destroy__ = _openframeworks.delete_ofPixels + __del__ = lambda self: None + + def __init__(self, *args): + this = _openframeworks.new_ofPixels(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofPixels_size(self) + + def getImageType(self): + return _openframeworks.ofPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofPixels_getConstPixelsIter(self) +ofPixels_swigregister = _openframeworks.ofPixels_swigregister +ofPixels_swigregister(ofPixels) + +def ofPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofPixels_pixelBitsFromPixelFormat(format) +ofPixels_pixelBitsFromPixelFormat = _openframeworks.ofPixels_pixelBitsFromPixelFormat + +def ofPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofPixels_bytesFromPixelFormat(w, h, format) +ofPixels_bytesFromPixelFormat = _openframeworks.ofPixels_bytesFromPixelFormat + +class ofFloatPixels(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofFloatPixels, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofFloatPixels, name) + __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofFloatPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofFloatPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofFloatPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofFloatPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofFloatPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofFloatPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofFloatPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofFloatPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofFloatPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofFloatPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofFloatPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofFloatPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofFloatPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofFloatPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofFloatPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofFloatPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofFloatPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofFloatPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofFloatPixels_swapRgb(self) - def clear(self): return _openframeworks.ofFloatPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofFloatPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofFloatPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofFloatPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofFloatPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofFloatPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofFloatPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofFloatPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofFloatPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofFloatPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofFloatPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofFloatPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofFloatPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofFloatPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofFloatPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofFloatPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofFloatPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofFloatPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofFloatPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofFloatPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofFloatPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofFloatPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofFloatPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofFloatPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofFloatPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofFloatPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofFloatPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofFloatPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofFloatPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofFloatPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofFloatPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofFloatPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofFloatPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofFloatPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofFloatPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofFloatPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofFloatPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofFloatPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofFloatPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofFloatPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofFloatPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofFloatPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofFloatPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofFloatPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofFloatPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofFloatPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofFloatPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofFloatPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofFloatPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofFloatPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofFloatPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofFloatPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofFloatPixels_size(self) + + def getImageType(self): + return _openframeworks.ofFloatPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofFloatPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofFloatPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofFloatPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofFloatPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofFloatPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofFloatPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofFloatPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofFloatPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofFloatPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofFloatPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofFloatPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofFloatPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofFloatPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofFloatPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofFloatPixels_getConstPixelsIter(self) ofFloatPixels_swigregister = _openframeworks.ofFloatPixels_swigregister ofFloatPixels_swigregister(ofFloatPixels) +def ofFloatPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat(format) +ofFloatPixels_pixelBitsFromPixelFormat = _openframeworks.ofFloatPixels_pixelBitsFromPixelFormat + +def ofFloatPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofFloatPixels_bytesFromPixelFormat(w, h, format) +ofFloatPixels_bytesFromPixelFormat = _openframeworks.ofFloatPixels_bytesFromPixelFormat + class ofShortPixels(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofShortPixels, name, value) @@ -3695,115 +7390,348 @@ class ofShortPixels(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofShortPixels, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofShortPixels - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofShortPixels(*args) - try: self.this.append(this) - except: self.this = this - def allocate(self, *args): return _openframeworks.ofShortPixels_allocate(self, *args) - def allocatePixelFormat(self, *args): return _openframeworks.ofShortPixels_allocatePixelFormat(self, *args) - def allocateImageType(self, *args): return _openframeworks.ofShortPixels_allocateImageType(self, *args) - def set(self, *args): return _openframeworks.ofShortPixels_set(self, *args) - def setFromPixels(self, *args): return _openframeworks.ofShortPixels_setFromPixels(self, *args) - def setFromPixelsImageType(self, *args): return _openframeworks.ofShortPixels_setFromPixelsImageType(self, *args) - def setFromExternalPixels(self, *args): return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) - def setFromAlignedPixels(self, *args): return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) - def swap(self, *args): return _openframeworks.ofShortPixels_swap(self, *args) - def crop(self, *args): return _openframeworks.ofShortPixels_crop(self, *args) - def cropTo(self, *args): return _openframeworks.ofShortPixels_cropTo(self, *args) - def rotate90(self, *args): return _openframeworks.ofShortPixels_rotate90(self, *args) - def rotate90To(self, *args): return _openframeworks.ofShortPixels_rotate90To(self, *args) - def mirrorTo(self, *args): return _openframeworks.ofShortPixels_mirrorTo(self, *args) - def mirror(self, *args): return _openframeworks.ofShortPixels_mirror(self, *args) - def resize(self, *args): return _openframeworks.ofShortPixels_resize(self, *args) - def resizeTo(self, *args): return _openframeworks.ofShortPixels_resizeTo(self, *args) - def pasteInto(self, *args): return _openframeworks.ofShortPixels_pasteInto(self, *args) - def swapRgb(self): return _openframeworks.ofShortPixels_swapRgb(self) - def clear(self): return _openframeworks.ofShortPixels_clear(self) - def getPixels(self, *args): return _openframeworks.ofShortPixels_getPixels(self, *args) - def getPixelIndex(self, *args): return _openframeworks.ofShortPixels_getPixelIndex(self, *args) - def getColor(self, *args): return _openframeworks.ofShortPixels_getColor(self, *args) - def setColor(self, *args): return _openframeworks.ofShortPixels_setColor(self, *args) - def __getitem__(self, *args): return _openframeworks.ofShortPixels___getitem__(self, *args) - def isAllocated(self): return _openframeworks.ofShortPixels_isAllocated(self) - def getWidth(self): return _openframeworks.ofShortPixels_getWidth(self) - def getHeight(self): return _openframeworks.ofShortPixels_getHeight(self) - def getBytesPerPixel(self): return _openframeworks.ofShortPixels_getBytesPerPixel(self) - def getBitsPerPixel(self): return _openframeworks.ofShortPixels_getBitsPerPixel(self) - def getBytesPerChannel(self): return _openframeworks.ofShortPixels_getBytesPerChannel(self) - def getBitsPerChannel(self): return _openframeworks.ofShortPixels_getBitsPerChannel(self) - def getNumChannels(self): return _openframeworks.ofShortPixels_getNumChannels(self) - def getChannel(self, *args): return _openframeworks.ofShortPixels_getChannel(self, *args) - def setChannel(self, *args): return _openframeworks.ofShortPixels_setChannel(self, *args) - def getImageType(self): return _openframeworks.ofShortPixels_getImageType(self) - def setImageType(self, *args): return _openframeworks.ofShortPixels_setImageType(self, *args) - def setNumChannels(self, *args): return _openframeworks.ofShortPixels_setNumChannels(self, *args) - def size(self): return _openframeworks.ofShortPixels_size(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def allocate(self, *args): + return _openframeworks.ofShortPixels_allocate(self, *args) + + def isAllocated(self): + return _openframeworks.ofShortPixels_isAllocated(self) + + def clear(self): + return _openframeworks.ofShortPixels_clear(self) + + def set(self, *args): + return _openframeworks.ofShortPixels_set(self, *args) + + def setFromPixels(self, *args): + return _openframeworks.ofShortPixels_setFromPixels(self, *args) + + def setFromExternalPixels(self, *args): + return _openframeworks.ofShortPixels_setFromExternalPixels(self, *args) + + def setFromAlignedPixels(self, *args): + return _openframeworks.ofShortPixels_setFromAlignedPixels(self, *args) + + def swap(self, pix): + return _openframeworks.ofShortPixels_swap(self, pix) + + def crop(self, x, y, width, height): + return _openframeworks.ofShortPixels_crop(self, x, y, width, height) + + def cropTo(self, toPix, x, y, width, height): + return _openframeworks.ofShortPixels_cropTo(self, toPix, x, y, width, height) + + def rotate90(self, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90(self, nClockwiseRotations) + + def rotate90To(self, dst, nClockwiseRotations): + return _openframeworks.ofShortPixels_rotate90To(self, dst, nClockwiseRotations) + + def mirrorTo(self, dst, vertically, horizontal): + return _openframeworks.ofShortPixels_mirrorTo(self, dst, vertically, horizontal) + + def mirror(self, vertically, horizontal): + return _openframeworks.ofShortPixels_mirror(self, vertically, horizontal) + + def resize(self, dstWidth, dstHeight, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resize(self, dstWidth, dstHeight, interpMethod) + + def resizeTo(self, dst, interpMethod=OF_INTERPOLATE_NEAREST_NEIGHBOR): + return _openframeworks.ofShortPixels_resizeTo(self, dst, interpMethod) + + def pasteInto(self, dst, x, y): + return _openframeworks.ofShortPixels_pasteInto(self, dst, x, y) + + def blendInto(self, dst, x, y): + return _openframeworks.ofShortPixels_blendInto(self, dst, x, y) + + def swapRgb(self): + return _openframeworks.ofShortPixels_swapRgb(self) + + def getData(self, *args): + return _openframeworks.ofShortPixels_getData(self, *args) + + def getPixels(self, *args): + return _openframeworks.ofShortPixels_getPixels(self, *args) + + def getPixelIndex(self, x, y): + return _openframeworks.ofShortPixels_getPixelIndex(self, x, y) + + def getColor(self, *args): + return _openframeworks.ofShortPixels_getColor(self, *args) + + def setColor(self, *args): + return _openframeworks.ofShortPixels_setColor(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofShortPixels___getitem__(self, *args) + + def getWidth(self): + return _openframeworks.ofShortPixels_getWidth(self) + + def getHeight(self): + return _openframeworks.ofShortPixels_getHeight(self) + + def getBytesPerPixel(self): + return _openframeworks.ofShortPixels_getBytesPerPixel(self) + + def getBitsPerPixel(self): + return _openframeworks.ofShortPixels_getBitsPerPixel(self) + + def getBytesPerChannel(self): + return _openframeworks.ofShortPixels_getBytesPerChannel(self) + + def getBitsPerChannel(self): + return _openframeworks.ofShortPixels_getBitsPerChannel(self) + + def getBytesStride(self): + return _openframeworks.ofShortPixels_getBytesStride(self) + + def getNumChannels(self): + return _openframeworks.ofShortPixels_getNumChannels(self) + + def getTotalBytes(self): + return _openframeworks.ofShortPixels_getTotalBytes(self) + + def getNumPlanes(self): + return _openframeworks.ofShortPixels_getNumPlanes(self) + + def getPlane(self, plane): + return _openframeworks.ofShortPixels_getPlane(self, plane) + + def getChannel(self, channel): + return _openframeworks.ofShortPixels_getChannel(self, channel) + + def getPixelFormat(self): + return _openframeworks.ofShortPixels_getPixelFormat(self) + + def size(self): + return _openframeworks.ofShortPixels_size(self) + + def getImageType(self): + return _openframeworks.ofShortPixels_getImageType(self) + + def setChannel(self, channel, channelPixels): + return _openframeworks.ofShortPixels_setChannel(self, channel, channelPixels) + + def setImageType(self, imageType): + return _openframeworks.ofShortPixels_setImageType(self, imageType) + + def setNumChannels(self, numChannels): + return _openframeworks.ofShortPixels_setNumChannels(self, numChannels) + __swig_getmethods__["pixelBitsFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + if _newclass: + pixelBitsFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_pixelBitsFromPixelFormat) + __swig_getmethods__["bytesFromPixelFormat"] = lambda x: _openframeworks.ofShortPixels_bytesFromPixelFormat + if _newclass: + bytesFromPixelFormat = staticmethod(_openframeworks.ofShortPixels_bytesFromPixelFormat) + + def begin(self, *args): + return _openframeworks.ofShortPixels_begin(self, *args) + + def end(self, *args): + return _openframeworks.ofShortPixels_end(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofShortPixels_rbegin(self, *args) + + def rend(self, *args): + return _openframeworks.ofShortPixels_rend(self, *args) + + def getLine(self, line): + return _openframeworks.ofShortPixels_getLine(self, line) + + def getLines(self, *args): + return _openframeworks.ofShortPixels_getLines(self, *args) + + def getPixelsIter(self): + return _openframeworks.ofShortPixels_getPixelsIter(self) + + def getConstLine(self, line): + return _openframeworks.ofShortPixels_getConstLine(self, line) + + def getConstLines(self, *args): + return _openframeworks.ofShortPixels_getConstLines(self, *args) + + def getConstPixelsIter(self): + return _openframeworks.ofShortPixels_getConstPixelsIter(self) ofShortPixels_swigregister = _openframeworks.ofShortPixels_swigregister ofShortPixels_swigregister(ofShortPixels) +def ofShortPixels_pixelBitsFromPixelFormat(format): + return _openframeworks.ofShortPixels_pixelBitsFromPixelFormat(format) +ofShortPixels_pixelBitsFromPixelFormat = _openframeworks.ofShortPixels_pixelBitsFromPixelFormat + +def ofShortPixels_bytesFromPixelFormat(w, h, format): + return _openframeworks.ofShortPixels_bytesFromPixelFormat(w, h, format) +ofShortPixels_bytesFromPixelFormat = _openframeworks.ofShortPixels_bytesFromPixelFormat + class ofPath(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofPath, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPath, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofPath() - try: self.this.append(this) - except: self.this = this - def clear(self): return _openframeworks.ofPath_clear(self) - def newSubPath(self): return _openframeworks.ofPath_newSubPath(self) - def close(self): return _openframeworks.ofPath_close(self) - def lineTo(self, *args): return _openframeworks.ofPath_lineTo(self, *args) - def moveTo(self, *args): return _openframeworks.ofPath_moveTo(self, *args) - def curveTo(self, *args): return _openframeworks.ofPath_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPath_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPath_quadBezierTo(self, *args) - def arc(self, *args): return _openframeworks.ofPath_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPath_arcNegative(self, *args) - def triangle(self, *args): return _openframeworks.ofPath_triangle(self, *args) - def circle(self, *args): return _openframeworks.ofPath_circle(self, *args) - def ellipse(self, *args): return _openframeworks.ofPath_ellipse(self, *args) - def rectangle(self, *args): return _openframeworks.ofPath_rectangle(self, *args) - def rectRounded(self, *args): return _openframeworks.ofPath_rectRounded(self, *args) - def setPolyWindingMode(self, *args): return _openframeworks.ofPath_setPolyWindingMode(self, *args) - def setFilled(self, *args): return _openframeworks.ofPath_setFilled(self, *args) - def setStrokeWidth(self, *args): return _openframeworks.ofPath_setStrokeWidth(self, *args) - def setColor(self, *args): return _openframeworks.ofPath_setColor(self, *args) - def setHexColor(self, *args): return _openframeworks.ofPath_setHexColor(self, *args) - def setFillColor(self, *args): return _openframeworks.ofPath_setFillColor(self, *args) - def setFillHexColor(self, *args): return _openframeworks.ofPath_setFillHexColor(self, *args) - def setStrokeColor(self, *args): return _openframeworks.ofPath_setStrokeColor(self, *args) - def setStrokeHexColor(self, *args): return _openframeworks.ofPath_setStrokeHexColor(self, *args) - def getWindingMode(self): return _openframeworks.ofPath_getWindingMode(self) - def isFilled(self): return _openframeworks.ofPath_isFilled(self) - def getFillColor(self): return _openframeworks.ofPath_getFillColor(self) - def getStrokeColor(self): return _openframeworks.ofPath_getStrokeColor(self) - def getStrokeWidth(self): return _openframeworks.ofPath_getStrokeWidth(self) - def hasOutline(self): return _openframeworks.ofPath_hasOutline(self) - def draw(self, *args): return _openframeworks.ofPath_draw(self, *args) - def getOutline(self): return _openframeworks.ofPath_getOutline(self) - def getTessellation(self): return _openframeworks.ofPath_getTessellation(self) - def simplify(self, tolerance=0.3): return _openframeworks.ofPath_simplify(self, tolerance) - def flagShapeChanged(self): return _openframeworks.ofPath_flagShapeChanged(self) - def hasChanged(self): return _openframeworks.ofPath_hasChanged(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def clear(self): + return _openframeworks.ofPath_clear(self) + + def newSubPath(self): + return _openframeworks.ofPath_newSubPath(self) + + def close(self): + return _openframeworks.ofPath_close(self) + + def lineTo(self, *args): + return _openframeworks.ofPath_lineTo(self, *args) + + def moveTo(self, *args): + return _openframeworks.ofPath_moveTo(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPath_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPath_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPath_quadBezierTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPath_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPath_arcNegative(self, *args) + + def triangle(self, *args): + return _openframeworks.ofPath_triangle(self, *args) + + def circle(self, *args): + return _openframeworks.ofPath_circle(self, *args) + + def ellipse(self, *args): + return _openframeworks.ofPath_ellipse(self, *args) + + def rectangle(self, *args): + return _openframeworks.ofPath_rectangle(self, *args) + + def rectRounded(self, *args): + return _openframeworks.ofPath_rectRounded(self, *args) + + def setPolyWindingMode(self, mode): + return _openframeworks.ofPath_setPolyWindingMode(self, mode) + + def getWindingMode(self): + return _openframeworks.ofPath_getWindingMode(self) + + def setFilled(self, hasFill): + return _openframeworks.ofPath_setFilled(self, hasFill) + + def setStrokeWidth(self, width): + return _openframeworks.ofPath_setStrokeWidth(self, width) + + def setColor(self, color): + return _openframeworks.ofPath_setColor(self, color) + + def setHexColor(self, hex): + return _openframeworks.ofPath_setHexColor(self, hex) + + def setFillColor(self, color): + return _openframeworks.ofPath_setFillColor(self, color) + + def setFillHexColor(self, hex): + return _openframeworks.ofPath_setFillHexColor(self, hex) + + def setStrokeColor(self, color): + return _openframeworks.ofPath_setStrokeColor(self, color) + + def setStrokeHexColor(self, hex): + return _openframeworks.ofPath_setStrokeHexColor(self, hex) + + def isFilled(self): + return _openframeworks.ofPath_isFilled(self) + + def getFillColor(self): + return _openframeworks.ofPath_getFillColor(self) + + def getStrokeColor(self): + return _openframeworks.ofPath_getStrokeColor(self) + + def getStrokeWidth(self): + return _openframeworks.ofPath_getStrokeWidth(self) + + def hasOutline(self): + return _openframeworks.ofPath_hasOutline(self) + + def setCurveResolution(self, curveResolution): + return _openframeworks.ofPath_setCurveResolution(self, curveResolution) + + def setCircleResolution(self, circleResolution): + return _openframeworks.ofPath_setCircleResolution(self, circleResolution) + + def getCircleResolution(self): + return _openframeworks.ofPath_getCircleResolution(self) + + def setUseShapeColor(self, useColor): + return _openframeworks.ofPath_setUseShapeColor(self, useColor) + + def getUseShapeColor(self): + return _openframeworks.ofPath_getUseShapeColor(self) + + def draw(self, *args): + return _openframeworks.ofPath_draw(self, *args) + + def getOutline(self): + return _openframeworks.ofPath_getOutline(self) + + def tessellate(self): + return _openframeworks.ofPath_tessellate(self) + + def getTessellation(self): + return _openframeworks.ofPath_getTessellation(self) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPath_simplify(self, tolerance) + + def translate(self, p): + return _openframeworks.ofPath_translate(self, p) + + def rotate(self, az, axis): + return _openframeworks.ofPath_rotate(self, az, axis) + + def scale(self, x, y): + return _openframeworks.ofPath_scale(self, x, y) + + def append(self, path): + return _openframeworks.ofPath_append(self, path) COMMANDS = _openframeworks.ofPath_COMMANDS POLYLINES = _openframeworks.ofPath_POLYLINES - def setMode(self, *args): return _openframeworks.ofPath_setMode(self, *args) - def getMode(self): return _openframeworks.ofPath_getMode(self) - def setCurveResolution(self, *args): return _openframeworks.ofPath_setCurveResolution(self, *args) - def setCircleResolution(self, *args): return _openframeworks.ofPath_setCircleResolution(self, *args) - def getCircleResolution(self): return _openframeworks.ofPath_getCircleResolution(self) - def setUseShapeColor(self, *args): return _openframeworks.ofPath_setUseShapeColor(self, *args) - def getUseShapeColor(self): return _openframeworks.ofPath_getUseShapeColor(self) - def tessellate(self): return _openframeworks.ofPath_tessellate(self) - def translate(self, *args): return _openframeworks.ofPath_translate(self, *args) - def rotate(self, *args): return _openframeworks.ofPath_rotate(self, *args) - def scale(self, *args): return _openframeworks.ofPath_scale(self, *args) - def getCommands(self, *args): return _openframeworks.ofPath_getCommands(self, *args) + + def setMode(self, mode): + return _openframeworks.ofPath_setMode(self, mode) + + def getMode(self): + return _openframeworks.ofPath_getMode(self) + + def getCommands(self, *args): + return _openframeworks.ofPath_getCommands(self, *args) __swig_destroy__ = _openframeworks.delete_ofPath - __del__ = lambda self : None; + __del__ = lambda self: None ofPath_swigregister = _openframeworks.ofPath_swigregister ofPath_swigregister(ofPath) @@ -3813,539 +7741,857 @@ class ofPolyline(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofPolyline, name) __repr__ = _swig_repr - def __init__(self, *args): + + def __init__(self, *args): this = _openframeworks.new_ofPolyline(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_getmethods__["fromRectangle"] = lambda x: _openframeworks.ofPolyline_fromRectangle - if _newclass:fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) - def clear(self): return _openframeworks.ofPolyline_clear(self) - def addVertex(self, *args): return _openframeworks.ofPolyline_addVertex(self, *args) - def addVertices(self, *args): return _openframeworks.ofPolyline_addVertices(self, *args) - def lineTo(self, *args): return _openframeworks.ofPolyline_lineTo(self, *args) - def insertVertex(self, *args): return _openframeworks.ofPolyline_insertVertex(self, *args) - def arc(self, *args): return _openframeworks.ofPolyline_arc(self, *args) - def arcNegative(self, *args): return _openframeworks.ofPolyline_arcNegative(self, *args) - def curveTo(self, *args): return _openframeworks.ofPolyline_curveTo(self, *args) - def bezierTo(self, *args): return _openframeworks.ofPolyline_bezierTo(self, *args) - def quadBezierTo(self, *args): return _openframeworks.ofPolyline_quadBezierTo(self, *args) - def getSmoothed(self, *args): return _openframeworks.ofPolyline_getSmoothed(self, *args) - def getResampledBySpacing(self, *args): return _openframeworks.ofPolyline_getResampledBySpacing(self, *args) - def getResampledByCount(self, *args): return _openframeworks.ofPolyline_getResampledByCount(self, *args) - def getBoundingBox(self): return _openframeworks.ofPolyline_getBoundingBox(self) - def getClosestPoint(self, *args): return _openframeworks.ofPolyline_getClosestPoint(self, *args) - def inside(self, *args): return _openframeworks.ofPolyline_inside(self, *args) - def simplify(self, tolerance=0.3): return _openframeworks.ofPolyline_simplify(self, tolerance) - def size(self): return _openframeworks.ofPolyline_size(self) - def __getitem__(self, *args): return _openframeworks.ofPolyline___getitem__(self, *args) - def resize(self, *args): return _openframeworks.ofPolyline_resize(self, *args) - def setClosed(self, *args): return _openframeworks.ofPolyline_setClosed(self, *args) - def isClosed(self): return _openframeworks.ofPolyline_isClosed(self) - def close(self): return _openframeworks.ofPolyline_close(self) - def hasChanged(self): return _openframeworks.ofPolyline_hasChanged(self) - def flagHasChanged(self): return _openframeworks.ofPolyline_flagHasChanged(self) - def getVertices(self, *args): return _openframeworks.ofPolyline_getVertices(self, *args) - def getPerimeter(self): return _openframeworks.ofPolyline_getPerimeter(self) - def getArea(self): return _openframeworks.ofPolyline_getArea(self) - def getCentroid2D(self): return _openframeworks.ofPolyline_getCentroid2D(self) - def draw(self): return _openframeworks.ofPolyline_draw(self) - def setRightVector(self, *args): return _openframeworks.ofPolyline_setRightVector(self, *args) - def getRightVector(self): return _openframeworks.ofPolyline_getRightVector(self) - def getIndexAtLength(self, *args): return _openframeworks.ofPolyline_getIndexAtLength(self, *args) - def getIndexAtPercent(self, *args): return _openframeworks.ofPolyline_getIndexAtPercent(self, *args) - def getLengthAtIndex(self, *args): return _openframeworks.ofPolyline_getLengthAtIndex(self, *args) - def getLengthAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, *args) - def getPointAtLength(self, *args): return _openframeworks.ofPolyline_getPointAtLength(self, *args) - def getPointAtPercent(self, *args): return _openframeworks.ofPolyline_getPointAtPercent(self, *args) - def getPointAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, *args) - def getAngleAtIndex(self, *args): return _openframeworks.ofPolyline_getAngleAtIndex(self, *args) - def getAngleAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, *args) - def getRotationAtIndex(self, *args): return _openframeworks.ofPolyline_getRotationAtIndex(self, *args) - def getRotationAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, *args) - def getTangentAtIndex(self, *args): return _openframeworks.ofPolyline_getTangentAtIndex(self, *args) - def getTangentAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, *args) - def getNormalAtIndex(self, *args): return _openframeworks.ofPolyline_getNormalAtIndex(self, *args) - def getNormalAtIndexInterpolated(self, *args): return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, *args) - def getWrappedIndex(self, *args): return _openframeworks.ofPolyline_getWrappedIndex(self, *args) + if _newclass: + fromRectangle = staticmethod(_openframeworks.ofPolyline_fromRectangle) + + def clear(self): + return _openframeworks.ofPolyline_clear(self) + + def addVertex(self, *args): + return _openframeworks.ofPolyline_addVertex(self, *args) + + def addVertices(self, *args): + return _openframeworks.ofPolyline_addVertices(self, *args) + + def insertVertex(self, *args): + return _openframeworks.ofPolyline_insertVertex(self, *args) + + def resize(self, size): + return _openframeworks.ofPolyline_resize(self, size) + + def size(self): + return _openframeworks.ofPolyline_size(self) + + def __getitem__(self, *args): + return _openframeworks.ofPolyline___getitem__(self, *args) + + def getVertices(self, *args): + return _openframeworks.ofPolyline_getVertices(self, *args) + + def begin(self, *args): + return _openframeworks.ofPolyline_begin(self, *args) + + def rbegin(self, *args): + return _openframeworks.ofPolyline_rbegin(self, *args) + + def end(self, *args): + return _openframeworks.ofPolyline_end(self, *args) + + def rend(self, *args): + return _openframeworks.ofPolyline_rend(self, *args) + + def lineTo(self, *args): + return _openframeworks.ofPolyline_lineTo(self, *args) + + def arc(self, *args): + return _openframeworks.ofPolyline_arc(self, *args) + + def arcNegative(self, *args): + return _openframeworks.ofPolyline_arcNegative(self, *args) + + def curveTo(self, *args): + return _openframeworks.ofPolyline_curveTo(self, *args) + + def bezierTo(self, *args): + return _openframeworks.ofPolyline_bezierTo(self, *args) + + def quadBezierTo(self, *args): + return _openframeworks.ofPolyline_quadBezierTo(self, *args) + + def getSmoothed(self, smoothingSize, smoothingShape=0): + return _openframeworks.ofPolyline_getSmoothed(self, smoothingSize, smoothingShape) + + def getResampledBySpacing(self, spacing): + return _openframeworks.ofPolyline_getResampledBySpacing(self, spacing) + + def getResampledByCount(self, count): + return _openframeworks.ofPolyline_getResampledByCount(self, count) + + def simplify(self, tolerance=0.3): + return _openframeworks.ofPolyline_simplify(self, tolerance) + + def close(self): + return _openframeworks.ofPolyline_close(self) + + def setClosed(self, tf): + return _openframeworks.ofPolyline_setClosed(self, tf) + + def isClosed(self): + return _openframeworks.ofPolyline_isClosed(self) + + def hasChanged(self): + return _openframeworks.ofPolyline_hasChanged(self) + + def flagHasChanged(self): + return _openframeworks.ofPolyline_flagHasChanged(self) + + def inside(self, *args): + return _openframeworks.ofPolyline_inside(self, *args) + + def getBoundingBox(self): + return _openframeworks.ofPolyline_getBoundingBox(self) + + def getPerimeter(self): + return _openframeworks.ofPolyline_getPerimeter(self) + + def getArea(self): + return _openframeworks.ofPolyline_getArea(self) + + def getCentroid2D(self): + return _openframeworks.ofPolyline_getCentroid2D(self) + + def getClosestPoint(self, target, nearestIndex=None): + return _openframeworks.ofPolyline_getClosestPoint(self, target, nearestIndex) + + def getIndexAtLength(self, f): + return _openframeworks.ofPolyline_getIndexAtLength(self, f) + + def getIndexAtPercent(self, f): + return _openframeworks.ofPolyline_getIndexAtPercent(self, f) + + def getLengthAtIndex(self, index): + return _openframeworks.ofPolyline_getLengthAtIndex(self, index) + + def getLengthAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getLengthAtIndexInterpolated(self, findex) + + def getPointAtLength(self, f): + return _openframeworks.ofPolyline_getPointAtLength(self, f) + + def getPointAtPercent(self, f): + return _openframeworks.ofPolyline_getPointAtPercent(self, f) + + def getPointAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getPointAtIndexInterpolated(self, findex) + + def getAngleAtIndex(self, index): + return _openframeworks.ofPolyline_getAngleAtIndex(self, index) + + def getAngleAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getAngleAtIndexInterpolated(self, findex) + + def getRotationAtIndex(self, index): + return _openframeworks.ofPolyline_getRotationAtIndex(self, index) + + def getRotationAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getRotationAtIndexInterpolated(self, findex) + + def getTangentAtIndex(self, index): + return _openframeworks.ofPolyline_getTangentAtIndex(self, index) + + def getTangentAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getTangentAtIndexInterpolated(self, findex) + + def getNormalAtIndex(self, index): + return _openframeworks.ofPolyline_getNormalAtIndex(self, index) + + def getNormalAtIndexInterpolated(self, findex): + return _openframeworks.ofPolyline_getNormalAtIndexInterpolated(self, findex) + + def getWrappedIndex(self, index): + return _openframeworks.ofPolyline_getWrappedIndex(self, index) + + def setRightVector(self, *args): + return _openframeworks.ofPolyline_setRightVector(self, *args) + + def getRightVector(self): + return _openframeworks.ofPolyline_getRightVector(self) + + def draw(self): + return _openframeworks.ofPolyline_draw(self) __swig_destroy__ = _openframeworks.delete_ofPolyline - __del__ = lambda self : None; + __del__ = lambda self: None ofPolyline_swigregister = _openframeworks.ofPolyline_swigregister ofPolyline_swigregister(ofPolyline) -def ofPolyline_fromRectangle(*args): - return _openframeworks.ofPolyline_fromRectangle(*args) -ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle +def ofPolyline_fromRectangle(rect): + return _openframeworks.ofPolyline_fromRectangle(rect) +ofPolyline_fromRectangle = _openframeworks.ofPolyline_fromRectangle + + +_openframeworks.CIRC_RESOLUTION_swigconstant(_openframeworks) +CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION + +def ofSetColor(*args): + return _openframeworks.ofSetColor(*args) +ofSetColor = _openframeworks.ofSetColor + +def ofSetHexColor(hexColor): + return _openframeworks.ofSetHexColor(hexColor) +ofSetHexColor = _openframeworks.ofSetHexColor + +def ofNoFill(): + return _openframeworks.ofNoFill() +ofNoFill = _openframeworks.ofNoFill + +def ofFill(): + return _openframeworks.ofFill() +ofFill = _openframeworks.ofFill + +def ofGetFill(): + return _openframeworks.ofGetFill() +ofGetFill = _openframeworks.ofGetFill + +def ofGetBackgroundColor(): + return _openframeworks.ofGetBackgroundColor() +ofGetBackgroundColor = _openframeworks.ofGetBackgroundColor + +def ofGetBackground(): + return _openframeworks.ofGetBackground() +ofGetBackground = _openframeworks.ofGetBackground + +def ofBackground(*args): + return _openframeworks.ofBackground(*args) +ofBackground = _openframeworks.ofBackground + +def ofBackgroundHex(hexColor, alpha=255): + return _openframeworks.ofBackgroundHex(hexColor, alpha) +ofBackgroundHex = _openframeworks.ofBackgroundHex + +def ofBackgroundGradient(start, end, mode=OF_GRADIENT_CIRCULAR): + return _openframeworks.ofBackgroundGradient(start, end, mode) +ofBackgroundGradient = _openframeworks.ofBackgroundGradient + +def ofSetBackgroundColor(*args): + return _openframeworks.ofSetBackgroundColor(*args) +ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor + +def ofSetBackgroundColorHex(hexColor, alpha=255): + return _openframeworks.ofSetBackgroundColorHex(hexColor, alpha) +ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex + +def ofSetBackgroundAuto(bManual): + return _openframeworks.ofSetBackgroundAuto(bManual) +ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto -CIRC_RESOLUTION = _openframeworks.CIRC_RESOLUTION +def ofGetBackgroundAuto(): + return _openframeworks.ofGetBackgroundAuto() +ofGetBackgroundAuto = _openframeworks.ofGetBackgroundAuto -def ofBeginSaveScreenAsPDF(*args): - return _openframeworks.ofBeginSaveScreenAsPDF(*args) -ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF +def ofClear(*args): + return _openframeworks.ofClear(*args) +ofClear = _openframeworks.ofClear -def ofEndSaveScreenAsPDF(): - return _openframeworks.ofEndSaveScreenAsPDF() -ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF +def ofClearAlpha(): + return _openframeworks.ofClearAlpha() +ofClearAlpha = _openframeworks.ofClearAlpha -def ofPushView(): - return _openframeworks.ofPushView() -ofPushView = _openframeworks.ofPushView +def ofDrawTriangle(*args): + return _openframeworks.ofDrawTriangle(*args) +ofDrawTriangle = _openframeworks.ofDrawTriangle -def ofPopView(): - return _openframeworks.ofPopView() -ofPopView = _openframeworks.ofPopView +def ofDrawCircle(*args): + return _openframeworks.ofDrawCircle(*args) +ofDrawCircle = _openframeworks.ofDrawCircle -def ofViewport(*args): - return _openframeworks.ofViewport(*args) -ofViewport = _openframeworks.ofViewport +def ofDrawEllipse(*args): + return _openframeworks.ofDrawEllipse(*args) +ofDrawEllipse = _openframeworks.ofDrawEllipse -def ofSetupScreenPerspective(*args): - return _openframeworks.ofSetupScreenPerspective(*args) -ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective +def ofDrawLine(*args): + return _openframeworks.ofDrawLine(*args) +ofDrawLine = _openframeworks.ofDrawLine -def ofSetupScreenOrtho(*args): - return _openframeworks.ofSetupScreenOrtho(*args) -ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho +def ofDrawRectangle(*args): + return _openframeworks.ofDrawRectangle(*args) +ofDrawRectangle = _openframeworks.ofDrawRectangle -def ofGetCurrentViewport(): - return _openframeworks.ofGetCurrentViewport() -ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport +def ofDrawRectRounded(*args): + return _openframeworks.ofDrawRectRounded(*args) +ofDrawRectRounded = _openframeworks.ofDrawRectRounded -def ofGetNativeViewport(): - return _openframeworks.ofGetNativeViewport() -ofGetNativeViewport = _openframeworks.ofGetNativeViewport +def ofDrawCurve(*args): + return _openframeworks.ofDrawCurve(*args) +ofDrawCurve = _openframeworks.ofDrawCurve -def ofGetViewportWidth(): - return _openframeworks.ofGetViewportWidth() -ofGetViewportWidth = _openframeworks.ofGetViewportWidth +def ofDrawBezier(*args): + return _openframeworks.ofDrawBezier(*args) +ofDrawBezier = _openframeworks.ofDrawBezier -def ofGetViewportHeight(): - return _openframeworks.ofGetViewportHeight() -ofGetViewportHeight = _openframeworks.ofGetViewportHeight +def ofTriangle(*args): + return _openframeworks.ofTriangle(*args) +ofTriangle = _openframeworks.ofTriangle -def ofOrientationToDegrees(*args): - return _openframeworks.ofOrientationToDegrees(*args) -ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees +def ofCircle(*args): + return _openframeworks.ofCircle(*args) +ofCircle = _openframeworks.ofCircle -def ofSetCoordHandedness(*args): - return _openframeworks.ofSetCoordHandedness(*args) -ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness +def ofEllipse(*args): + return _openframeworks.ofEllipse(*args) +ofEllipse = _openframeworks.ofEllipse -def ofGetCoordHandedness(): - return _openframeworks.ofGetCoordHandedness() -ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness +def ofLine(*args): + return _openframeworks.ofLine(*args) +ofLine = _openframeworks.ofLine -def ofPushMatrix(): - return _openframeworks.ofPushMatrix() -ofPushMatrix = _openframeworks.ofPushMatrix +def ofRect(*args): + return _openframeworks.ofRect(*args) +ofRect = _openframeworks.ofRect -def ofPopMatrix(): - return _openframeworks.ofPopMatrix() -ofPopMatrix = _openframeworks.ofPopMatrix +def ofRectRounded(*args): + return _openframeworks.ofRectRounded(*args) +ofRectRounded = _openframeworks.ofRectRounded -def ofGetCurrentMatrix(*args): - return _openframeworks.ofGetCurrentMatrix(*args) -ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix +def ofCurve(*args): + return _openframeworks.ofCurve(*args) +ofCurve = _openframeworks.ofCurve -def ofGetCurrentOrientationMatrix(): - return _openframeworks.ofGetCurrentOrientationMatrix() -ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix +def ofBezier(*args): + return _openframeworks.ofBezier(*args) +ofBezier = _openframeworks.ofBezier -def ofTranslate(*args): - return _openframeworks.ofTranslate(*args) -ofTranslate = _openframeworks.ofTranslate +def ofBeginShape(): + return _openframeworks.ofBeginShape() +ofBeginShape = _openframeworks.ofBeginShape -def ofScale(*args): - return _openframeworks.ofScale(*args) -ofScale = _openframeworks.ofScale +def ofVertex(*args): + return _openframeworks.ofVertex(*args) +ofVertex = _openframeworks.ofVertex -def ofRotateX(*args): - return _openframeworks.ofRotateX(*args) -ofRotateX = _openframeworks.ofRotateX +def ofVertices(polyPoints): + return _openframeworks.ofVertices(polyPoints) +ofVertices = _openframeworks.ofVertices -def ofRotateY(*args): - return _openframeworks.ofRotateY(*args) -ofRotateY = _openframeworks.ofRotateY +def ofCurveVertex(*args): + return _openframeworks.ofCurveVertex(*args) +ofCurveVertex = _openframeworks.ofCurveVertex -def ofRotateZ(*args): - return _openframeworks.ofRotateZ(*args) -ofRotateZ = _openframeworks.ofRotateZ +def ofCurveVertices(curvePoints): + return _openframeworks.ofCurveVertices(curvePoints) +ofCurveVertices = _openframeworks.ofCurveVertices -def ofRotate(*args): - return _openframeworks.ofRotate(*args) -ofRotate = _openframeworks.ofRotate +def ofBezierVertex(*args): + return _openframeworks.ofBezierVertex(*args) +ofBezierVertex = _openframeworks.ofBezierVertex -def ofLoadIdentityMatrix(): - return _openframeworks.ofLoadIdentityMatrix() -ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix +def ofEndShape(bClose=False): + return _openframeworks.ofEndShape(bClose) +ofEndShape = _openframeworks.ofEndShape -def ofLoadMatrix(*args): - return _openframeworks.ofLoadMatrix(*args) -ofLoadMatrix = _openframeworks.ofLoadMatrix +def ofNextContour(bClose=False): + return _openframeworks.ofNextContour(bClose) +ofNextContour = _openframeworks.ofNextContour -def ofMultMatrix(*args): - return _openframeworks.ofMultMatrix(*args) -ofMultMatrix = _openframeworks.ofMultMatrix +def ofSetDrawBitmapMode(mode): + return _openframeworks.ofSetDrawBitmapMode(mode) +ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode -def ofSetMatrixMode(*args): - return _openframeworks.ofSetMatrixMode(*args) -ofSetMatrixMode = _openframeworks.ofSetMatrixMode +def ofDrawBitmapStringHighlight(*args): + return _openframeworks.ofDrawBitmapStringHighlight(*args) +ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight def ofSetupGraphicDefaults(): - return _openframeworks.ofSetupGraphicDefaults() + return _openframeworks.ofSetupGraphicDefaults() ofSetupGraphicDefaults = _openframeworks.ofSetupGraphicDefaults def ofSetupScreen(): - return _openframeworks.ofSetupScreen() + return _openframeworks.ofSetupScreen() ofSetupScreen = _openframeworks.ofSetupScreen def ofGetRectMode(): - return _openframeworks.ofGetRectMode() + return _openframeworks.ofGetRectMode() ofGetRectMode = _openframeworks.ofGetRectMode -def ofSetCircleResolution(*args): - return _openframeworks.ofSetCircleResolution(*args) +def ofSetCircleResolution(res): + return _openframeworks.ofSetCircleResolution(res) ofSetCircleResolution = _openframeworks.ofSetCircleResolution -def ofSetCurveResolution(*args): - return _openframeworks.ofSetCurveResolution(*args) +def ofSetCurveResolution(res): + return _openframeworks.ofSetCurveResolution(res) ofSetCurveResolution = _openframeworks.ofSetCurveResolution -def ofNoFill(): - return _openframeworks.ofNoFill() -ofNoFill = _openframeworks.ofNoFill - -def ofFill(): - return _openframeworks.ofFill() -ofFill = _openframeworks.ofFill - -def ofGetFill(): - return _openframeworks.ofGetFill() -ofGetFill = _openframeworks.ofGetFill - -def ofSetLineWidth(*args): - return _openframeworks.ofSetLineWidth(*args) +def ofSetLineWidth(lineWidth): + return _openframeworks.ofSetLineWidth(lineWidth) ofSetLineWidth = _openframeworks.ofSetLineWidth -def ofSetDepthTest(*args): - return _openframeworks.ofSetDepthTest(*args) +def ofSetDepthTest(depthTest): + return _openframeworks.ofSetDepthTest(depthTest) ofSetDepthTest = _openframeworks.ofSetDepthTest def ofEnableDepthTest(): - return _openframeworks.ofEnableDepthTest() + return _openframeworks.ofEnableDepthTest() ofEnableDepthTest = _openframeworks.ofEnableDepthTest def ofDisableDepthTest(): - return _openframeworks.ofDisableDepthTest() + return _openframeworks.ofDisableDepthTest() ofDisableDepthTest = _openframeworks.ofDisableDepthTest -def ofSetColor(*args): - return _openframeworks.ofSetColor(*args) -ofSetColor = _openframeworks.ofSetColor - -def ofSetHexColor(*args): - return _openframeworks.ofSetHexColor(*args) -ofSetHexColor = _openframeworks.ofSetHexColor - -def ofEnableBlendMode(*args): - return _openframeworks.ofEnableBlendMode(*args) +def ofEnableBlendMode(blendMode): + return _openframeworks.ofEnableBlendMode(blendMode) ofEnableBlendMode = _openframeworks.ofEnableBlendMode def ofDisableBlendMode(): - return _openframeworks.ofDisableBlendMode() + return _openframeworks.ofDisableBlendMode() ofDisableBlendMode = _openframeworks.ofDisableBlendMode def ofEnablePointSprites(): - return _openframeworks.ofEnablePointSprites() + return _openframeworks.ofEnablePointSprites() ofEnablePointSprites = _openframeworks.ofEnablePointSprites def ofDisablePointSprites(): - return _openframeworks.ofDisablePointSprites() + return _openframeworks.ofDisablePointSprites() ofDisablePointSprites = _openframeworks.ofDisablePointSprites def ofEnableAlphaBlending(): - return _openframeworks.ofEnableAlphaBlending() + return _openframeworks.ofEnableAlphaBlending() ofEnableAlphaBlending = _openframeworks.ofEnableAlphaBlending def ofDisableAlphaBlending(): - return _openframeworks.ofDisableAlphaBlending() + return _openframeworks.ofDisableAlphaBlending() ofDisableAlphaBlending = _openframeworks.ofDisableAlphaBlending def ofEnableSmoothing(): - return _openframeworks.ofEnableSmoothing() + return _openframeworks.ofEnableSmoothing() ofEnableSmoothing = _openframeworks.ofEnableSmoothing def ofDisableSmoothing(): - return _openframeworks.ofDisableSmoothing() + return _openframeworks.ofDisableSmoothing() ofDisableSmoothing = _openframeworks.ofDisableSmoothing def ofEnableAntiAliasing(): - return _openframeworks.ofEnableAntiAliasing() + return _openframeworks.ofEnableAntiAliasing() ofEnableAntiAliasing = _openframeworks.ofEnableAntiAliasing def ofDisableAntiAliasing(): - return _openframeworks.ofDisableAntiAliasing() + return _openframeworks.ofDisableAntiAliasing() ofDisableAntiAliasing = _openframeworks.ofDisableAntiAliasing def ofGetStyle(): - return _openframeworks.ofGetStyle() + return _openframeworks.ofGetStyle() ofGetStyle = _openframeworks.ofGetStyle -def ofSetStyle(*args): - return _openframeworks.ofSetStyle(*args) +def ofSetStyle(style): + return _openframeworks.ofSetStyle(style) ofSetStyle = _openframeworks.ofSetStyle def ofPushStyle(): - return _openframeworks.ofPushStyle() + return _openframeworks.ofPushStyle() ofPushStyle = _openframeworks.ofPushStyle def ofPopStyle(): - return _openframeworks.ofPopStyle() + return _openframeworks.ofPopStyle() ofPopStyle = _openframeworks.ofPopStyle -def ofSetPolyMode(*args): - return _openframeworks.ofSetPolyMode(*args) +def ofSetPolyMode(mode): + return _openframeworks.ofSetPolyMode(mode) ofSetPolyMode = _openframeworks.ofSetPolyMode -def ofSetRectMode(*args): - return _openframeworks.ofSetRectMode(*args) +def ofSetRectMode(mode): + return _openframeworks.ofSetRectMode(mode) ofSetRectMode = _openframeworks.ofSetRectMode -def ofGetBackground(): - return _openframeworks.ofGetBackground() -ofGetBackground = _openframeworks.ofGetBackground +def ofPushMatrix(): + return _openframeworks.ofPushMatrix() +ofPushMatrix = _openframeworks.ofPushMatrix -def ofBackground(*args): - return _openframeworks.ofBackground(*args) -ofBackground = _openframeworks.ofBackground +def ofPopMatrix(): + return _openframeworks.ofPopMatrix() +ofPopMatrix = _openframeworks.ofPopMatrix -def ofBackgroundHex(*args): - return _openframeworks.ofBackgroundHex(*args) -ofBackgroundHex = _openframeworks.ofBackgroundHex +def ofGetCurrentMatrix(matrixMode): + return _openframeworks.ofGetCurrentMatrix(matrixMode) +ofGetCurrentMatrix = _openframeworks.ofGetCurrentMatrix -def ofBackgroundGradient(*args): - return _openframeworks.ofBackgroundGradient(*args) -ofBackgroundGradient = _openframeworks.ofBackgroundGradient +def ofGetCurrentOrientationMatrix(): + return _openframeworks.ofGetCurrentOrientationMatrix() +ofGetCurrentOrientationMatrix = _openframeworks.ofGetCurrentOrientationMatrix -def ofSetBackgroundColor(*args): - return _openframeworks.ofSetBackgroundColor(*args) -ofSetBackgroundColor = _openframeworks.ofSetBackgroundColor +def ofGetCurrentNormalMatrix(): + return _openframeworks.ofGetCurrentNormalMatrix() +ofGetCurrentNormalMatrix = _openframeworks.ofGetCurrentNormalMatrix -def ofSetBackgroundColorHex(*args): - return _openframeworks.ofSetBackgroundColorHex(*args) -ofSetBackgroundColorHex = _openframeworks.ofSetBackgroundColorHex +def ofTranslate(*args): + return _openframeworks.ofTranslate(*args) +ofTranslate = _openframeworks.ofTranslate -def ofSetBackgroundAuto(*args): - return _openframeworks.ofSetBackgroundAuto(*args) -ofSetBackgroundAuto = _openframeworks.ofSetBackgroundAuto +def ofScale(*args): + return _openframeworks.ofScale(*args) +ofScale = _openframeworks.ofScale -def ofClear(*args): - return _openframeworks.ofClear(*args) -ofClear = _openframeworks.ofClear +def ofRotate(*args): + return _openframeworks.ofRotate(*args) +ofRotate = _openframeworks.ofRotate -def ofClearAlpha(): - return _openframeworks.ofClearAlpha() -ofClearAlpha = _openframeworks.ofClearAlpha +def ofRotateX(degrees): + return _openframeworks.ofRotateX(degrees) +ofRotateX = _openframeworks.ofRotateX -def ofTriangle(*args): - return _openframeworks.ofTriangle(*args) -ofTriangle = _openframeworks.ofTriangle +def ofRotateY(degrees): + return _openframeworks.ofRotateY(degrees) +ofRotateY = _openframeworks.ofRotateY -def ofCircle(*args): - return _openframeworks.ofCircle(*args) -ofCircle = _openframeworks.ofCircle +def ofRotateZ(degrees): + return _openframeworks.ofRotateZ(degrees) +ofRotateZ = _openframeworks.ofRotateZ -def ofEllipse(*args): - return _openframeworks.ofEllipse(*args) -ofEllipse = _openframeworks.ofEllipse +def ofLoadIdentityMatrix(): + return _openframeworks.ofLoadIdentityMatrix() +ofLoadIdentityMatrix = _openframeworks.ofLoadIdentityMatrix -def ofLine(*args): - return _openframeworks.ofLine(*args) -ofLine = _openframeworks.ofLine +def ofLoadMatrix(*args): + return _openframeworks.ofLoadMatrix(*args) +ofLoadMatrix = _openframeworks.ofLoadMatrix -def ofRect(*args): - return _openframeworks.ofRect(*args) -ofRect = _openframeworks.ofRect +def ofMultMatrix(*args): + return _openframeworks.ofMultMatrix(*args) +ofMultMatrix = _openframeworks.ofMultMatrix -def ofRectRounded(*args): - return _openframeworks.ofRectRounded(*args) -ofRectRounded = _openframeworks.ofRectRounded +def ofSetMatrixMode(matrixMode): + return _openframeworks.ofSetMatrixMode(matrixMode) +ofSetMatrixMode = _openframeworks.ofSetMatrixMode -def ofCurve(*args): - return _openframeworks.ofCurve(*args) -ofCurve = _openframeworks.ofCurve +def ofLoadViewMatrix(m): + return _openframeworks.ofLoadViewMatrix(m) +ofLoadViewMatrix = _openframeworks.ofLoadViewMatrix -def ofBezier(*args): - return _openframeworks.ofBezier(*args) -ofBezier = _openframeworks.ofBezier +def ofMultViewMatrix(m): + return _openframeworks.ofMultViewMatrix(m) +ofMultViewMatrix = _openframeworks.ofMultViewMatrix -def ofBeginShape(): - return _openframeworks.ofBeginShape() -ofBeginShape = _openframeworks.ofBeginShape +def ofGetCurrentViewMatrix(): + return _openframeworks.ofGetCurrentViewMatrix() +ofGetCurrentViewMatrix = _openframeworks.ofGetCurrentViewMatrix -def ofVertex(*args): - return _openframeworks.ofVertex(*args) -ofVertex = _openframeworks.ofVertex +def ofPushView(): + return _openframeworks.ofPushView() +ofPushView = _openframeworks.ofPushView -def ofVertices(*args): - return _openframeworks.ofVertices(*args) -ofVertices = _openframeworks.ofVertices +def ofPopView(): + return _openframeworks.ofPopView() +ofPopView = _openframeworks.ofPopView -def ofCurveVertex(*args): - return _openframeworks.ofCurveVertex(*args) -ofCurveVertex = _openframeworks.ofCurveVertex +def ofViewport(*args): + return _openframeworks.ofViewport(*args) +ofViewport = _openframeworks.ofViewport -def ofCurveVertices(*args): - return _openframeworks.ofCurveVertices(*args) -ofCurveVertices = _openframeworks.ofCurveVertices +def ofGetCurrentViewport(): + return _openframeworks.ofGetCurrentViewport() +ofGetCurrentViewport = _openframeworks.ofGetCurrentViewport -def ofBezierVertex(*args): - return _openframeworks.ofBezierVertex(*args) -ofBezierVertex = _openframeworks.ofBezierVertex +def ofGetNativeViewport(): + return _openframeworks.ofGetNativeViewport() +ofGetNativeViewport = _openframeworks.ofGetNativeViewport -def ofEndShape(bClose=False): - return _openframeworks.ofEndShape(bClose) -ofEndShape = _openframeworks.ofEndShape +def ofGetViewportWidth(): + return _openframeworks.ofGetViewportWidth() +ofGetViewportWidth = _openframeworks.ofGetViewportWidth -def ofNextContour(bClose=False): - return _openframeworks.ofNextContour(bClose) -ofNextContour = _openframeworks.ofNextContour +def ofGetViewportHeight(): + return _openframeworks.ofGetViewportHeight() +ofGetViewportHeight = _openframeworks.ofGetViewportHeight -def ofSetDrawBitmapMode(*args): - return _openframeworks.ofSetDrawBitmapMode(*args) -ofSetDrawBitmapMode = _openframeworks.ofSetDrawBitmapMode +def ofSetupScreenPerspective(width=-1, height=-1, fov=60, nearDist=0, farDist=0): + return _openframeworks.ofSetupScreenPerspective(width, height, fov, nearDist, farDist) +ofSetupScreenPerspective = _openframeworks.ofSetupScreenPerspective -def ofDrawBitmapString(*args): - return _openframeworks.ofDrawBitmapString(*args) -ofDrawBitmapString = _openframeworks.ofDrawBitmapString +def ofSetupScreenOrtho(width=-1, height=-1, nearDist=-1, farDist=1): + return _openframeworks.ofSetupScreenOrtho(width, height, nearDist, farDist) +ofSetupScreenOrtho = _openframeworks.ofSetupScreenOrtho -def ofDrawBitmapStringHighlight(*args): - return _openframeworks.ofDrawBitmapStringHighlight(*args) -ofDrawBitmapStringHighlight = _openframeworks.ofDrawBitmapStringHighlight +def ofOrientationToDegrees(orientation): + return _openframeworks.ofOrientationToDegrees(orientation) +ofOrientationToDegrees = _openframeworks.ofOrientationToDegrees + +def ofSetCoordHandedness(handedness): + return _openframeworks.ofSetCoordHandedness(handedness) +ofSetCoordHandedness = _openframeworks.ofSetCoordHandedness + +def ofGetCoordHandedness(): + return _openframeworks.ofGetCoordHandedness() +ofGetCoordHandedness = _openframeworks.ofGetCoordHandedness + +def ofBeginSaveScreenAsPDF(*args): + return _openframeworks.ofBeginSaveScreenAsPDF(*args) +ofBeginSaveScreenAsPDF = _openframeworks.ofBeginSaveScreenAsPDF + +def ofEndSaveScreenAsPDF(): + return _openframeworks.ofEndSaveScreenAsPDF() +ofEndSaveScreenAsPDF = _openframeworks.ofEndSaveScreenAsPDF + +def ofBeginSaveScreenAsSVG(*args): + return _openframeworks.ofBeginSaveScreenAsSVG(*args) +ofBeginSaveScreenAsSVG = _openframeworks.ofBeginSaveScreenAsSVG -def ofSetPlaneResolution(*args): - return _openframeworks.ofSetPlaneResolution(*args) +def ofEndSaveScreenAsSVG(): + return _openframeworks.ofEndSaveScreenAsSVG() +ofEndSaveScreenAsSVG = _openframeworks.ofEndSaveScreenAsSVG + +def ofSetPlaneResolution(columns, rows): + return _openframeworks.ofSetPlaneResolution(columns, rows) ofSetPlaneResolution = _openframeworks.ofSetPlaneResolution def ofGetPlaneResolution(): - return _openframeworks.ofGetPlaneResolution() + return _openframeworks.ofGetPlaneResolution() ofGetPlaneResolution = _openframeworks.ofGetPlaneResolution def ofDrawPlane(*args): - return _openframeworks.ofDrawPlane(*args) + return _openframeworks.ofDrawPlane(*args) ofDrawPlane = _openframeworks.ofDrawPlane -def ofSetSphereResolution(*args): - return _openframeworks.ofSetSphereResolution(*args) +def ofSetSphereResolution(res): + return _openframeworks.ofSetSphereResolution(res) ofSetSphereResolution = _openframeworks.ofSetSphereResolution def ofGetSphereResolution(): - return _openframeworks.ofGetSphereResolution() + return _openframeworks.ofGetSphereResolution() ofGetSphereResolution = _openframeworks.ofGetSphereResolution def ofDrawSphere(*args): - return _openframeworks.ofDrawSphere(*args) + return _openframeworks.ofDrawSphere(*args) ofDrawSphere = _openframeworks.ofDrawSphere -def ofSetIcoSphereResolution(*args): - return _openframeworks.ofSetIcoSphereResolution(*args) +def ofSetIcoSphereResolution(res): + return _openframeworks.ofSetIcoSphereResolution(res) ofSetIcoSphereResolution = _openframeworks.ofSetIcoSphereResolution def ofGetIcoSphereResolution(): - return _openframeworks.ofGetIcoSphereResolution() + return _openframeworks.ofGetIcoSphereResolution() ofGetIcoSphereResolution = _openframeworks.ofGetIcoSphereResolution def ofDrawIcoSphere(*args): - return _openframeworks.ofDrawIcoSphere(*args) + return _openframeworks.ofDrawIcoSphere(*args) ofDrawIcoSphere = _openframeworks.ofDrawIcoSphere -def ofSetCylinderResolution(*args): - return _openframeworks.ofSetCylinderResolution(*args) +def ofSetCylinderResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetCylinderResolution(radiusSegments, heightSegments, capSegments) ofSetCylinderResolution = _openframeworks.ofSetCylinderResolution def ofGetCylinderResolution(): - return _openframeworks.ofGetCylinderResolution() + return _openframeworks.ofGetCylinderResolution() ofGetCylinderResolution = _openframeworks.ofGetCylinderResolution def ofDrawCylinder(*args): - return _openframeworks.ofDrawCylinder(*args) + return _openframeworks.ofDrawCylinder(*args) ofDrawCylinder = _openframeworks.ofDrawCylinder -def ofSetConeResolution(*args): - return _openframeworks.ofSetConeResolution(*args) +def ofSetConeResolution(radiusSegments, heightSegments, capSegments=2): + return _openframeworks.ofSetConeResolution(radiusSegments, heightSegments, capSegments) ofSetConeResolution = _openframeworks.ofSetConeResolution def ofGetConeResolution(): - return _openframeworks.ofGetConeResolution() + return _openframeworks.ofGetConeResolution() ofGetConeResolution = _openframeworks.ofGetConeResolution def ofDrawCone(*args): - return _openframeworks.ofDrawCone(*args) + return _openframeworks.ofDrawCone(*args) ofDrawCone = _openframeworks.ofDrawCone def ofSetBoxResolution(*args): - return _openframeworks.ofSetBoxResolution(*args) + return _openframeworks.ofSetBoxResolution(*args) ofSetBoxResolution = _openframeworks.ofSetBoxResolution def ofGetBoxResolution(): - return _openframeworks.ofGetBoxResolution() + return _openframeworks.ofGetBoxResolution() ofGetBoxResolution = _openframeworks.ofGetBoxResolution def ofDrawBox(*args): - return _openframeworks.ofDrawBox(*args) + return _openframeworks.ofDrawBox(*args) ofDrawBox = _openframeworks.ofDrawBox +class of3dGraphics(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, of3dGraphics, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, of3dGraphics, name) + __repr__ = _swig_repr + + def __init__(self, renderer): + this = _openframeworks.new_of3dGraphics(renderer) + try: + self.this.append(this) + except Exception: + self.this = this + + def setPlaneResolution(self, columns, rows): + return _openframeworks.of3dGraphics_setPlaneResolution(self, columns, rows) + + def getPlaneResolution(self): + return _openframeworks.of3dGraphics_getPlaneResolution(self) + + def drawPlane(self, *args): + return _openframeworks.of3dGraphics_drawPlane(self, *args) + + def setSphereResolution(self, res): + return _openframeworks.of3dGraphics_setSphereResolution(self, res) + + def getSphereResolution(self): + return _openframeworks.of3dGraphics_getSphereResolution(self) + + def drawSphere(self, *args): + return _openframeworks.of3dGraphics_drawSphere(self, *args) + + def setIcoSphereResolution(self, res): + return _openframeworks.of3dGraphics_setIcoSphereResolution(self, res) + + def getIcoSphereResolution(self): + return _openframeworks.of3dGraphics_getIcoSphereResolution(self) + + def drawIcoSphere(self, *args): + return _openframeworks.of3dGraphics_drawIcoSphere(self, *args) + + def setCylinderResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setCylinderResolution(self, radiusSegments, heightSegments, capSegments) + + def getCylinderResolution(self): + return _openframeworks.of3dGraphics_getCylinderResolution(self) + + def drawCylinder(self, *args): + return _openframeworks.of3dGraphics_drawCylinder(self, *args) + + def setConeResolution(self, radiusSegments, heightSegments, capSegments=2): + return _openframeworks.of3dGraphics_setConeResolution(self, radiusSegments, heightSegments, capSegments) + + def getConeResolution(self): + return _openframeworks.of3dGraphics_getConeResolution(self) + + def drawCone(self, *args): + return _openframeworks.of3dGraphics_drawCone(self, *args) + + def setBoxResolution(self, *args): + return _openframeworks.of3dGraphics_setBoxResolution(self, *args) + + def getBoxResolution(self): + return _openframeworks.of3dGraphics_getBoxResolution(self) + + def drawBox(self, *args): + return _openframeworks.of3dGraphics_drawBox(self, *args) + + def drawAxis(self, size): + return _openframeworks.of3dGraphics_drawAxis(self, size) + + def drawGrid(self, stepSize, numberOfSteps, labels, x, y, z): + return _openframeworks.of3dGraphics_drawGrid(self, stepSize, numberOfSteps, labels, x, y, z) + + def drawGridPlane(self, stepSize, numberOfSteps, labels): + return _openframeworks.of3dGraphics_drawGridPlane(self, stepSize, numberOfSteps, labels) + + def drawArrow(self, start, end, headSize): + return _openframeworks.of3dGraphics_drawArrow(self, start, end, headSize) + + def drawRotationAxes(self, radius, stripWidth, circleRes): + return _openframeworks.of3dGraphics_drawRotationAxes(self, radius, stripWidth, circleRes) + __swig_destroy__ = _openframeworks.delete_of3dGraphics + __del__ = lambda self: None +of3dGraphics_swigregister = _openframeworks.of3dGraphics_swigregister +of3dGraphics_swigregister(of3dGraphics) + class ofTrueTypeFont(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofTrueTypeFont, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofTrueTypeFont, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofTrueTypeFont() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofTrueTypeFont - __del__ = lambda self : None; + __del__ = lambda self: None __swig_getmethods__["setGlobalDpi"] = lambda x: _openframeworks.ofTrueTypeFont_setGlobalDpi - if _newclass:setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) - def loadFont(self, *args): return _openframeworks.ofTrueTypeFont_loadFont(self, *args) - def isLoaded(self): return _openframeworks.ofTrueTypeFont_isLoaded(self) - def isAntiAliased(self): return _openframeworks.ofTrueTypeFont_isAntiAliased(self) - def hasFullCharacterSet(self): return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) - def getSize(self): return _openframeworks.ofTrueTypeFont_getSize(self) - def getLineHeight(self): return _openframeworks.ofTrueTypeFont_getLineHeight(self) - def setLineHeight(self, *args): return _openframeworks.ofTrueTypeFont_setLineHeight(self, *args) - def getLetterSpacing(self): return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) - def setLetterSpacing(self, *args): return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, *args) - def getSpaceSize(self): return _openframeworks.ofTrueTypeFont_getSpaceSize(self) - def setSpaceSize(self, *args): return _openframeworks.ofTrueTypeFont_setSpaceSize(self, *args) - def stringWidth(self, *args): return _openframeworks.ofTrueTypeFont_stringWidth(self, *args) - def stringHeight(self, *args): return _openframeworks.ofTrueTypeFont_stringHeight(self, *args) - def getStringBoundingBox(self, *args): return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, *args) - def drawString(self, *args): return _openframeworks.ofTrueTypeFont_drawString(self, *args) - def drawStringAsShapes(self, *args): return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, *args) - def getNumCharacters(self): return _openframeworks.ofTrueTypeFont_getNumCharacters(self) - def getCharacterAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) - def getStringAsPoints(self, *args): return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) - def getStringMesh(self, *args): return _openframeworks.ofTrueTypeFont_getStringMesh(self, *args) - def getFontTexture(self): return _openframeworks.ofTrueTypeFont_getFontTexture(self) - def bind(self): return _openframeworks.ofTrueTypeFont_bind(self) - def unbind(self): return _openframeworks.ofTrueTypeFont_unbind(self) - def getEncoding(self): return _openframeworks.ofTrueTypeFont_getEncoding(self) - def setEncoding(self, *args): return _openframeworks.ofTrueTypeFont_setEncoding(self, *args) + if _newclass: + setGlobalDpi = staticmethod(_openframeworks.ofTrueTypeFont_setGlobalDpi) + + def loadFont(self, filename, fontsize, _bAntiAliased=True, _bFullCharacterSet=False, makeContours=False, simplifyAmt=0.3, dpi=0): + return _openframeworks.ofTrueTypeFont_loadFont(self, filename, fontsize, _bAntiAliased, _bFullCharacterSet, makeContours, simplifyAmt, dpi) + + def isLoaded(self): + return _openframeworks.ofTrueTypeFont_isLoaded(self) + + def isAntiAliased(self): + return _openframeworks.ofTrueTypeFont_isAntiAliased(self) + + def hasFullCharacterSet(self): + return _openframeworks.ofTrueTypeFont_hasFullCharacterSet(self) + + def getSize(self): + return _openframeworks.ofTrueTypeFont_getSize(self) + + def getLineHeight(self): + return _openframeworks.ofTrueTypeFont_getLineHeight(self) + + def setLineHeight(self, height): + return _openframeworks.ofTrueTypeFont_setLineHeight(self, height) + + def getLetterSpacing(self): + return _openframeworks.ofTrueTypeFont_getLetterSpacing(self) + + def setLetterSpacing(self, spacing): + return _openframeworks.ofTrueTypeFont_setLetterSpacing(self, spacing) + + def getSpaceSize(self): + return _openframeworks.ofTrueTypeFont_getSpaceSize(self) + + def setSpaceSize(self, size): + return _openframeworks.ofTrueTypeFont_setSpaceSize(self, size) + + def stringWidth(self, s): + return _openframeworks.ofTrueTypeFont_stringWidth(self, s) + + def stringHeight(self, s): + return _openframeworks.ofTrueTypeFont_stringHeight(self, s) + + def getStringBoundingBox(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringBoundingBox(self, s, x, y) + + def drawString(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawString(self, s, x, y) + + def drawStringAsShapes(self, s, x, y): + return _openframeworks.ofTrueTypeFont_drawStringAsShapes(self, s, x, y) + + def getNumCharacters(self): + return _openframeworks.ofTrueTypeFont_getNumCharacters(self) + + def getCharacterAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getCharacterAsPoints(self, *args) + + def getStringAsPoints(self, *args): + return _openframeworks.ofTrueTypeFont_getStringAsPoints(self, *args) + + def getStringMesh(self, s, x, y): + return _openframeworks.ofTrueTypeFont_getStringMesh(self, s, x, y) + + def getFontTexture(self): + return _openframeworks.ofTrueTypeFont_getFontTexture(self) + + def bind(self): + return _openframeworks.ofTrueTypeFont_bind(self) + + def unbind(self): + return _openframeworks.ofTrueTypeFont_unbind(self) + + def getEncoding(self): + return _openframeworks.ofTrueTypeFont_getEncoding(self) + + def setEncoding(self, encoding): + return _openframeworks.ofTrueTypeFont_setEncoding(self, encoding) __swig_setmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_set __swig_getmethods__["lineHeight"] = _openframeworks.ofTrueTypeFont_lineHeight_get - if _newclass:lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) + if _newclass: + lineHeight = _swig_property(_openframeworks.ofTrueTypeFont_lineHeight_get, _openframeworks.ofTrueTypeFont_lineHeight_set) __swig_setmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_set __swig_getmethods__["letterSpacing"] = _openframeworks.ofTrueTypeFont_letterSpacing_get - if _newclass:letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) + if _newclass: + letterSpacing = _swig_property(_openframeworks.ofTrueTypeFont_letterSpacing_get, _openframeworks.ofTrueTypeFont_letterSpacing_set) __swig_setmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_set __swig_getmethods__["spaceSize"] = _openframeworks.ofTrueTypeFont_spaceSize_get - if _newclass:spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) + if _newclass: + spaceSize = _swig_property(_openframeworks.ofTrueTypeFont_spaceSize_get, _openframeworks.ofTrueTypeFont_spaceSize_set) ofTrueTypeFont_swigregister = _openframeworks.ofTrueTypeFont_swigregister ofTrueTypeFont_swigregister(ofTrueTypeFont) -def ofTrueTypeFont_setGlobalDpi(*args): - return _openframeworks.ofTrueTypeFont_setGlobalDpi(*args) +def ofTrueTypeFont_setGlobalDpi(newDpi): + return _openframeworks.ofTrueTypeFont_setGlobalDpi(newDpi) ofTrueTypeFont_setGlobalDpi = _openframeworks.ofTrueTypeFont_setGlobalDpi class ofMatrix3x3(_object): @@ -4356,53 +8602,97 @@ class ofMatrix3x3(_object): __repr__ = _swig_repr __swig_setmethods__["a"] = _openframeworks.ofMatrix3x3_a_set __swig_getmethods__["a"] = _openframeworks.ofMatrix3x3_a_get - if _newclass:a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) + if _newclass: + a = _swig_property(_openframeworks.ofMatrix3x3_a_get, _openframeworks.ofMatrix3x3_a_set) __swig_setmethods__["b"] = _openframeworks.ofMatrix3x3_b_set __swig_getmethods__["b"] = _openframeworks.ofMatrix3x3_b_get - if _newclass:b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) + if _newclass: + b = _swig_property(_openframeworks.ofMatrix3x3_b_get, _openframeworks.ofMatrix3x3_b_set) __swig_setmethods__["c"] = _openframeworks.ofMatrix3x3_c_set __swig_getmethods__["c"] = _openframeworks.ofMatrix3x3_c_get - if _newclass:c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) + if _newclass: + c = _swig_property(_openframeworks.ofMatrix3x3_c_get, _openframeworks.ofMatrix3x3_c_set) __swig_setmethods__["d"] = _openframeworks.ofMatrix3x3_d_set __swig_getmethods__["d"] = _openframeworks.ofMatrix3x3_d_get - if _newclass:d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) + if _newclass: + d = _swig_property(_openframeworks.ofMatrix3x3_d_get, _openframeworks.ofMatrix3x3_d_set) __swig_setmethods__["e"] = _openframeworks.ofMatrix3x3_e_set __swig_getmethods__["e"] = _openframeworks.ofMatrix3x3_e_get - if _newclass:e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) + if _newclass: + e = _swig_property(_openframeworks.ofMatrix3x3_e_get, _openframeworks.ofMatrix3x3_e_set) __swig_setmethods__["f"] = _openframeworks.ofMatrix3x3_f_set __swig_getmethods__["f"] = _openframeworks.ofMatrix3x3_f_get - if _newclass:f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) + if _newclass: + f = _swig_property(_openframeworks.ofMatrix3x3_f_get, _openframeworks.ofMatrix3x3_f_set) __swig_setmethods__["g"] = _openframeworks.ofMatrix3x3_g_set __swig_getmethods__["g"] = _openframeworks.ofMatrix3x3_g_get - if _newclass:g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) + if _newclass: + g = _swig_property(_openframeworks.ofMatrix3x3_g_get, _openframeworks.ofMatrix3x3_g_set) __swig_setmethods__["h"] = _openframeworks.ofMatrix3x3_h_set __swig_getmethods__["h"] = _openframeworks.ofMatrix3x3_h_get - if _newclass:h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) + if _newclass: + h = _swig_property(_openframeworks.ofMatrix3x3_h_get, _openframeworks.ofMatrix3x3_h_set) __swig_setmethods__["i"] = _openframeworks.ofMatrix3x3_i_set __swig_getmethods__["i"] = _openframeworks.ofMatrix3x3_i_get - if _newclass:i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) - def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): + if _newclass: + i = _swig_property(_openframeworks.ofMatrix3x3_i_get, _openframeworks.ofMatrix3x3_i_set) + + def __init__(self, _a=0.0, _b=0.0, _c=0.0, _d=0.0, _e=0.0, _f=0.0, _g=0.0, _h=0.0, _i=0.0): this = _openframeworks.new_ofMatrix3x3(_a, _b, _c, _d, _e, _f, _g, _h, _i) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofMatrix3x3_set(self, *args) - def __getitem__(self, *args): return _openframeworks.ofMatrix3x3___getitem__(self, *args) - def transpose(self, *args): return _openframeworks.ofMatrix3x3_transpose(self, *args) - def determinant(self, *args): return _openframeworks.ofMatrix3x3_determinant(self, *args) - def invert(self): return _openframeworks.ofMatrix3x3_invert(self) - def inverse(self, *args): return _openframeworks.ofMatrix3x3_inverse(self, *args) - def __add__(self, *args): return _openframeworks.ofMatrix3x3___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofMatrix3x3___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofMatrix3x3___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofMatrix3x3___isub__(self, *args) - def entrywiseTimes(self, *args): return _openframeworks.ofMatrix3x3_entrywiseTimes(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix3x3___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix3x3___mul__(self, *args) - def __div__(self, *args): return _openframeworks.ofMatrix3x3___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofMatrix3x3___idiv__(self, *args) - def __str__(self): return _openframeworks.ofMatrix3x3___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i): + return _openframeworks.ofMatrix3x3_set(self, _a, _b, _c, _d, _e, _f, _g, _h, _i) + + def __getitem__(self, index): + return _openframeworks.ofMatrix3x3___getitem__(self, index) + + def transpose(self, *args): + return _openframeworks.ofMatrix3x3_transpose(self, *args) + + def determinant(self, *args): + return _openframeworks.ofMatrix3x3_determinant(self, *args) + + def inverse(self, A): + return _openframeworks.ofMatrix3x3_inverse(self, A) + + def invert(self): + return _openframeworks.ofMatrix3x3_invert(self) + + def entrywiseTimes(self, A): + return _openframeworks.ofMatrix3x3_entrywiseTimes(self, A) + + def __add__(self, B): + return _openframeworks.ofMatrix3x3___add__(self, B) + + def __iadd__(self, B): + return _openframeworks.ofMatrix3x3___iadd__(self, B) + + def __sub__(self, B): + return _openframeworks.ofMatrix3x3___sub__(self, B) + + def __isub__(self, B): + return _openframeworks.ofMatrix3x3___isub__(self, B) + + def __imul__(self, *args): + return _openframeworks.ofMatrix3x3___imul__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofMatrix3x3___mul__(self, *args) + + def __div__(self, scalar): + return _openframeworks.ofMatrix3x3___div__(self, scalar) + + def __idiv__(self, *args): + return _openframeworks.ofMatrix3x3___idiv__(self, *args) + + def __str__(self): + return _openframeworks.ofMatrix3x3___str__(self) __swig_destroy__ = _openframeworks.delete_ofMatrix3x3 - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrix3x3_swigregister = _openframeworks.ofMatrix3x3_swigregister ofMatrix3x3_swigregister(ofMatrix3x3) @@ -4414,143 +8704,262 @@ class ofMatrix4x4(_object): __repr__ = _swig_repr __swig_setmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_set __swig_getmethods__["_mat"] = _openframeworks.ofMatrix4x4__mat_get - if _newclass:_mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) - def __init__(self, *args): + if _newclass: + _mat = _swig_property(_openframeworks.ofMatrix4x4__mat_get, _openframeworks.ofMatrix4x4__mat_set) + + def __init__(self, *args): this = _openframeworks.new_ofMatrix4x4(*args) - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofMatrix4x4 - __del__ = lambda self : None; - def __call__(self, *args): return _openframeworks.ofMatrix4x4___call__(self, *args) - def getRowAsVec3f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, *args) - def getRowAsVec4f(self, *args): return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, *args) - def isValid(self): return _openframeworks.ofMatrix4x4_isValid(self) - def isNaN(self): return _openframeworks.ofMatrix4x4_isNaN(self) - def set(self, *args): return _openframeworks.ofMatrix4x4_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofMatrix4x4_getPtr(self, *args) - def isIdentity(self): return _openframeworks.ofMatrix4x4_isIdentity(self) - def makeIdentityMatrix(self): return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) - def makeScaleMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) - def makeTranslationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) - def makeRotationMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) - def makeInvertOf(self, *args): return _openframeworks.ofMatrix4x4_makeInvertOf(self, *args) - def makeOrthoNormalOf(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, *args) - def makeFromMultiplicationOf(self, *args): return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, *args) - def getInverse(self): return _openframeworks.ofMatrix4x4_getInverse(self) - def makeOrthoMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, *args) - def makeOrtho2DMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, *args) - def makeFrustumMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, *args) - def makePerspectiveMatrix(self, *args): return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, *args) - def makeLookAtMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, *args) - def makeLookAtViewMatrix(self, *args): return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, *args) - def getOrtho(self, *args): return _openframeworks.ofMatrix4x4_getOrtho(self, *args) - def getFrustum(self, *args): return _openframeworks.ofMatrix4x4_getFrustum(self, *args) - def getPerspective(self, *args): return _openframeworks.ofMatrix4x4_getPerspective(self, *args) - def getLookAt(self, *args): return _openframeworks.ofMatrix4x4_getLookAt(self, *args) - def decompose(self, *args): return _openframeworks.ofMatrix4x4_decompose(self, *args) + __del__ = lambda self: None + + def makeIdentityMatrix(self): + return _openframeworks.ofMatrix4x4_makeIdentityMatrix(self) + + def makeScaleMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeScaleMatrix(self, *args) + + def makeTranslationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeTranslationMatrix(self, *args) + + def makeRotationMatrix(self, *args): + return _openframeworks.ofMatrix4x4_makeRotationMatrix(self, *args) + + def makeInvertOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeInvertOf(self, rhs) + + def makeOrthoNormalOf(self, rhs): + return _openframeworks.ofMatrix4x4_makeOrthoNormalOf(self, rhs) + + def makeFromMultiplicationOf(self, arg2, arg3): + return _openframeworks.ofMatrix4x4_makeFromMultiplicationOf(self, arg2, arg3) + + def makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeOrthoMatrix(self, left, right, bottom, top, zNear, zFar) + + def makeOrtho2DMatrix(self, left, right, bottom, top): + return _openframeworks.ofMatrix4x4_makeOrtho2DMatrix(self, left, right, bottom, top) + + def makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_makeFrustumMatrix(self, left, right, bottom, top, zNear, zFar) + + def makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_makePerspectiveMatrix(self, fovy, aspectRatio, zNear, zFar) + + def makeLookAtMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtMatrix(self, eye, center, up) + + def makeLookAtViewMatrix(self, eye, center, up): + return _openframeworks.ofMatrix4x4_makeLookAtViewMatrix(self, eye, center, up) __swig_getmethods__["newIdentityMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newIdentityMatrix - if _newclass:newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) + if _newclass: + newIdentityMatrix = staticmethod(_openframeworks.ofMatrix4x4_newIdentityMatrix) __swig_getmethods__["newScaleMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newScaleMatrix - if _newclass:newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) + if _newclass: + newScaleMatrix = staticmethod(_openframeworks.ofMatrix4x4_newScaleMatrix) __swig_getmethods__["newTranslationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newTranslationMatrix - if _newclass:newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) + if _newclass: + newTranslationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newTranslationMatrix) __swig_getmethods__["newRotationMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newRotationMatrix - if _newclass:newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) - __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf - if _newclass:getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) - __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf - if _newclass:getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) - __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf - if _newclass:getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + if _newclass: + newRotationMatrix = staticmethod(_openframeworks.ofMatrix4x4_newRotationMatrix) __swig_getmethods__["newOrthoMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrthoMatrix - if _newclass:newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) + if _newclass: + newOrthoMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrthoMatrix) __swig_getmethods__["newOrtho2DMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newOrtho2DMatrix - if _newclass:newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) + if _newclass: + newOrtho2DMatrix = staticmethod(_openframeworks.ofMatrix4x4_newOrtho2DMatrix) __swig_getmethods__["newFrustumMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newFrustumMatrix - if _newclass:newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) + if _newclass: + newFrustumMatrix = staticmethod(_openframeworks.ofMatrix4x4_newFrustumMatrix) __swig_getmethods__["newPerspectiveMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newPerspectiveMatrix - if _newclass:newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) + if _newclass: + newPerspectiveMatrix = staticmethod(_openframeworks.ofMatrix4x4_newPerspectiveMatrix) __swig_getmethods__["newLookAtMatrix"] = lambda x: _openframeworks.ofMatrix4x4_newLookAtMatrix - if _newclass:newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) - def setRotate(self, *args): return _openframeworks.ofMatrix4x4_setRotate(self, *args) - def setTranslation(self, *args): return _openframeworks.ofMatrix4x4_setTranslation(self, *args) - def rotateRad(self, *args): return _openframeworks.ofMatrix4x4_rotateRad(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrix4x4_rotate(self, *args) - def translate(self, *args): return _openframeworks.ofMatrix4x4_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrix4x4_scale(self, *args) - def glRotateRad(self, *args): return _openframeworks.ofMatrix4x4_glRotateRad(self, *args) - def glRotate(self, *args): return _openframeworks.ofMatrix4x4_glRotate(self, *args) - def glTranslate(self, *args): return _openframeworks.ofMatrix4x4_glTranslate(self, *args) - def glScale(self, *args): return _openframeworks.ofMatrix4x4_glScale(self, *args) - def getRotate(self): return _openframeworks.ofMatrix4x4_getRotate(self) - def getTranslation(self): return _openframeworks.ofMatrix4x4_getTranslation(self) - def getScale(self): return _openframeworks.ofMatrix4x4_getScale(self) + if _newclass: + newLookAtMatrix = staticmethod(_openframeworks.ofMatrix4x4_newLookAtMatrix) + + def __call__(self, *args): + return _openframeworks.ofMatrix4x4___call__(self, *args) + + def getRowAsVec3f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec3f(self, i) + + def getRowAsVec4f(self, i): + return _openframeworks.ofMatrix4x4_getRowAsVec4f(self, i) + + def getPtr(self, *args): + return _openframeworks.ofMatrix4x4_getPtr(self, *args) + + def isValid(self): + return _openframeworks.ofMatrix4x4_isValid(self) + + def isNaN(self): + return _openframeworks.ofMatrix4x4_isNaN(self) + + def isIdentity(self): + return _openframeworks.ofMatrix4x4_isIdentity(self) + + def set(self, *args): + return _openframeworks.ofMatrix4x4_set(self, *args) + + def getInverse(self): + return _openframeworks.ofMatrix4x4_getInverse(self) + + def getOrtho(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getOrtho(self, left, right, bottom, top, zNear, zFar) + + def getFrustum(self, left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_getFrustum(self, left, right, bottom, top, zNear, zFar) + + def getPerspective(self, fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_getPerspective(self, fovy, aspectRatio, zNear, zFar) + + def getLookAt(self, eye, center, up, lookDistance=1.0): + return _openframeworks.ofMatrix4x4_getLookAt(self, eye, center, up, lookDistance) + + def decompose(self, translation, rotation, scale, so): + return _openframeworks.ofMatrix4x4_decompose(self, translation, rotation, scale, so) + __swig_getmethods__["getInverseOf"] = lambda x: _openframeworks.ofMatrix4x4_getInverseOf + if _newclass: + getInverseOf = staticmethod(_openframeworks.ofMatrix4x4_getInverseOf) + __swig_getmethods__["getTransposedOf"] = lambda x: _openframeworks.ofMatrix4x4_getTransposedOf + if _newclass: + getTransposedOf = staticmethod(_openframeworks.ofMatrix4x4_getTransposedOf) + __swig_getmethods__["getOrthoNormalOf"] = lambda x: _openframeworks.ofMatrix4x4_getOrthoNormalOf + if _newclass: + getOrthoNormalOf = staticmethod(_openframeworks.ofMatrix4x4_getOrthoNormalOf) + + def postMult(self, *args): + return _openframeworks.ofMatrix4x4_postMult(self, *args) + + def preMult(self, *args): + return _openframeworks.ofMatrix4x4_preMult(self, *args) + + def __imul__(self, other): + return _openframeworks.ofMatrix4x4___imul__(self, other) + + def __mul__(self, *args): + return _openframeworks.ofMatrix4x4___mul__(self, *args) + + def postMultTranslate(self, *args): + return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) + + def postMultRotate(self, *args): + return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) + + def postMultScale(self, *args): + return _openframeworks.ofMatrix4x4_postMultScale(self, *args) + + def preMultScale(self, v): + return _openframeworks.ofMatrix4x4_preMultScale(self, v) + + def preMultTranslate(self, v): + return _openframeworks.ofMatrix4x4_preMultTranslate(self, v) + + def preMultRotate(self, q): + return _openframeworks.ofMatrix4x4_preMultRotate(self, q) + + def setRotate(self, q): + return _openframeworks.ofMatrix4x4_setRotate(self, q) + + def setTranslation(self, *args): + return _openframeworks.ofMatrix4x4_setTranslation(self, *args) + + def rotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_rotateRad(self, angle, x, y, z) + + def rotate(self, *args): + return _openframeworks.ofMatrix4x4_rotate(self, *args) + + def translate(self, *args): + return _openframeworks.ofMatrix4x4_translate(self, *args) + + def scale(self, *args): + return _openframeworks.ofMatrix4x4_scale(self, *args) + + def glRotateRad(self, angle, x, y, z): + return _openframeworks.ofMatrix4x4_glRotateRad(self, angle, x, y, z) + + def glRotate(self, *args): + return _openframeworks.ofMatrix4x4_glRotate(self, *args) + + def glTranslate(self, *args): + return _openframeworks.ofMatrix4x4_glTranslate(self, *args) + + def glScale(self, *args): + return _openframeworks.ofMatrix4x4_glScale(self, *args) + + def getRotate(self): + return _openframeworks.ofMatrix4x4_getRotate(self) + + def getTranslation(self): + return _openframeworks.ofMatrix4x4_getTranslation(self) + + def getScale(self): + return _openframeworks.ofMatrix4x4_getScale(self) __swig_getmethods__["transform3x3"] = lambda x: _openframeworks.ofMatrix4x4_transform3x3 - if _newclass:transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) - def postMult(self, *args): return _openframeworks.ofMatrix4x4_postMult(self, *args) - def __imul__(self, *args): return _openframeworks.ofMatrix4x4___imul__(self, *args) - def __mul__(self, *args): return _openframeworks.ofMatrix4x4___mul__(self, *args) - def preMult(self, *args): return _openframeworks.ofMatrix4x4_preMult(self, *args) - def postMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_postMultTranslate(self, *args) - def postMultRotate(self, *args): return _openframeworks.ofMatrix4x4_postMultRotate(self, *args) - def postMultScale(self, *args): return _openframeworks.ofMatrix4x4_postMultScale(self, *args) - def preMultScale(self, *args): return _openframeworks.ofMatrix4x4_preMultScale(self, *args) - def preMultTranslate(self, *args): return _openframeworks.ofMatrix4x4_preMultTranslate(self, *args) - def preMultRotate(self, *args): return _openframeworks.ofMatrix4x4_preMultRotate(self, *args) - def __str__(self): return _openframeworks.ofMatrix4x4___str__(self) + if _newclass: + transform3x3 = staticmethod(_openframeworks.ofMatrix4x4_transform3x3) + + def __str__(self): + return _openframeworks.ofMatrix4x4___str__(self) ofMatrix4x4_swigregister = _openframeworks.ofMatrix4x4_swigregister ofMatrix4x4_swigregister(ofMatrix4x4) def ofMatrix4x4_newIdentityMatrix(): - return _openframeworks.ofMatrix4x4_newIdentityMatrix() + return _openframeworks.ofMatrix4x4_newIdentityMatrix() ofMatrix4x4_newIdentityMatrix = _openframeworks.ofMatrix4x4_newIdentityMatrix def ofMatrix4x4_newScaleMatrix(*args): - return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) + return _openframeworks.ofMatrix4x4_newScaleMatrix(*args) ofMatrix4x4_newScaleMatrix = _openframeworks.ofMatrix4x4_newScaleMatrix def ofMatrix4x4_newTranslationMatrix(*args): - return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) + return _openframeworks.ofMatrix4x4_newTranslationMatrix(*args) ofMatrix4x4_newTranslationMatrix = _openframeworks.ofMatrix4x4_newTranslationMatrix def ofMatrix4x4_newRotationMatrix(*args): - return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) + return _openframeworks.ofMatrix4x4_newRotationMatrix(*args) ofMatrix4x4_newRotationMatrix = _openframeworks.ofMatrix4x4_newRotationMatrix -def ofMatrix4x4_getInverseOf(*args): - return _openframeworks.ofMatrix4x4_getInverseOf(*args) -ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf - -def ofMatrix4x4_getTransposedOf(*args): - return _openframeworks.ofMatrix4x4_getTransposedOf(*args) -ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf - -def ofMatrix4x4_getOrthoNormalOf(*args): - return _openframeworks.ofMatrix4x4_getOrthoNormalOf(*args) -ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf - -def ofMatrix4x4_newOrthoMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrthoMatrix(*args) +def ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newOrthoMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newOrthoMatrix = _openframeworks.ofMatrix4x4_newOrthoMatrix -def ofMatrix4x4_newOrtho2DMatrix(*args): - return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(*args) +def ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top): + return _openframeworks.ofMatrix4x4_newOrtho2DMatrix(left, right, bottom, top) ofMatrix4x4_newOrtho2DMatrix = _openframeworks.ofMatrix4x4_newOrtho2DMatrix -def ofMatrix4x4_newFrustumMatrix(*args): - return _openframeworks.ofMatrix4x4_newFrustumMatrix(*args) +def ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar): + return _openframeworks.ofMatrix4x4_newFrustumMatrix(left, right, bottom, top, zNear, zFar) ofMatrix4x4_newFrustumMatrix = _openframeworks.ofMatrix4x4_newFrustumMatrix -def ofMatrix4x4_newPerspectiveMatrix(*args): - return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(*args) +def ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar): + return _openframeworks.ofMatrix4x4_newPerspectiveMatrix(fovy, aspectRatio, zNear, zFar) ofMatrix4x4_newPerspectiveMatrix = _openframeworks.ofMatrix4x4_newPerspectiveMatrix -def ofMatrix4x4_newLookAtMatrix(*args): - return _openframeworks.ofMatrix4x4_newLookAtMatrix(*args) +def ofMatrix4x4_newLookAtMatrix(eye, center, up): + return _openframeworks.ofMatrix4x4_newLookAtMatrix(eye, center, up) ofMatrix4x4_newLookAtMatrix = _openframeworks.ofMatrix4x4_newLookAtMatrix +def ofMatrix4x4_getInverseOf(matrix): + return _openframeworks.ofMatrix4x4_getInverseOf(matrix) +ofMatrix4x4_getInverseOf = _openframeworks.ofMatrix4x4_getInverseOf + +def ofMatrix4x4_getTransposedOf(matrix): + return _openframeworks.ofMatrix4x4_getTransposedOf(matrix) +ofMatrix4x4_getTransposedOf = _openframeworks.ofMatrix4x4_getTransposedOf + +def ofMatrix4x4_getOrthoNormalOf(matrix): + return _openframeworks.ofMatrix4x4_getOrthoNormalOf(matrix) +ofMatrix4x4_getOrthoNormalOf = _openframeworks.ofMatrix4x4_getOrthoNormalOf + def ofMatrix4x4_transform3x3(*args): - return _openframeworks.ofMatrix4x4_transform3x3(*args) + return _openframeworks.ofMatrix4x4_transform3x3(*args) ofMatrix4x4_transform3x3 = _openframeworks.ofMatrix4x4_transform3x3 class ofQuaternion(_object): @@ -4561,47 +8970,113 @@ class ofQuaternion(_object): __repr__ = _swig_repr __swig_setmethods__["_v"] = _openframeworks.ofQuaternion__v_set __swig_getmethods__["_v"] = _openframeworks.ofQuaternion__v_get - if _newclass:_v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) - def __init__(self, *args): + if _newclass: + _v = _swig_property(_openframeworks.ofQuaternion__v_get, _openframeworks.ofQuaternion__v_set) + + def __init__(self, *args): this = _openframeworks.new_ofQuaternion(*args) - try: self.this.append(this) - except: self.this = this - def __eq__(self, *args): return _openframeworks.ofQuaternion___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofQuaternion___ne__(self, *args) - def __lshift__(self, *args): return _openframeworks.ofQuaternion___lshift__(self, *args) - def __rshift__(self, *args): return _openframeworks.ofQuaternion___rshift__(self, *args) - def asVec4(self): return _openframeworks.ofQuaternion_asVec4(self) - def asVec3(self): return _openframeworks.ofQuaternion_asVec3(self) - def set(self, *args): return _openframeworks.ofQuaternion_set(self, *args) - def get(self, *args): return _openframeworks.ofQuaternion_get(self, *args) - def __getitem__(self, *args): return _openframeworks.ofQuaternion___getitem__(self, *args) - def x(self): return _openframeworks.ofQuaternion_x(self) - def y(self): return _openframeworks.ofQuaternion_y(self) - def z(self): return _openframeworks.ofQuaternion_z(self) - def w(self): return _openframeworks.ofQuaternion_w(self) - def zeroRotation(self): return _openframeworks.ofQuaternion_zeroRotation(self) - def __imul__(self, *args): return _openframeworks.ofQuaternion___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofQuaternion___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofQuaternion___idiv__(self, *args) - def __add__(self, *args): return _openframeworks.ofQuaternion___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofQuaternion___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofQuaternion___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofQuaternion___isub__(self, *args) - def __neg__(self): return _openframeworks.ofQuaternion___neg__(self) - def __mul__(self, *args): return _openframeworks.ofQuaternion___mul__(self, *args) - def length(self): return _openframeworks.ofQuaternion_length(self) - def length2(self): return _openframeworks.ofQuaternion_length2(self) - def conj(self): return _openframeworks.ofQuaternion_conj(self) - def inverse(self): return _openframeworks.ofQuaternion_inverse(self) - def makeRotate(self, *args): return _openframeworks.ofQuaternion_makeRotate(self, *args) - def makeRotate_original(self, *args): return _openframeworks.ofQuaternion_makeRotate_original(self, *args) - def getRotate(self, *args): return _openframeworks.ofQuaternion_getRotate(self, *args) - def getEuler(self): return _openframeworks.ofQuaternion_getEuler(self) - def slerp(self, *args): return _openframeworks.ofQuaternion_slerp(self, *args) - def normalize(self): return _openframeworks.ofQuaternion_normalize(self) - def __str__(self): return _openframeworks.ofQuaternion___str__(self) + try: + self.this.append(this) + except Exception: + self.this = this + + def set(self, *args): + return _openframeworks.ofQuaternion_set(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofQuaternion___getitem__(self, *args) + + def get(self, matrix): + return _openframeworks.ofQuaternion_get(self, matrix) + + def x(self): + return _openframeworks.ofQuaternion_x(self) + + def y(self): + return _openframeworks.ofQuaternion_y(self) + + def z(self): + return _openframeworks.ofQuaternion_z(self) + + def w(self): + return _openframeworks.ofQuaternion_w(self) + + def asVec4(self): + return _openframeworks.ofQuaternion_asVec4(self) + + def asVec3(self): + return _openframeworks.ofQuaternion_asVec3(self) + + def zeroRotation(self): + return _openframeworks.ofQuaternion_zeroRotation(self) + + def length(self): + return _openframeworks.ofQuaternion_length(self) + + def length2(self): + return _openframeworks.ofQuaternion_length2(self) + + def conj(self): + return _openframeworks.ofQuaternion_conj(self) + + def inverse(self): + return _openframeworks.ofQuaternion_inverse(self) + + def makeRotate(self, *args): + return _openframeworks.ofQuaternion_makeRotate(self, *args) + + def makeRotate_original(self, vec1, vec2): + return _openframeworks.ofQuaternion_makeRotate_original(self, vec1, vec2) + + def getRotate(self, *args): + return _openframeworks.ofQuaternion_getRotate(self, *args) + + def getEuler(self): + return _openframeworks.ofQuaternion_getEuler(self) + + def slerp(self, t, arg3, to): + return _openframeworks.ofQuaternion_slerp(self, t, arg3, to) + + def normalize(self): + return _openframeworks.ofQuaternion_normalize(self) + + def __eq__(self, q): + return _openframeworks.ofQuaternion___eq__(self, q) + + def __ne__(self, q): + return _openframeworks.ofQuaternion___ne__(self, q) + + def __mul__(self, *args): + return _openframeworks.ofQuaternion___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofQuaternion___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofQuaternion___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofQuaternion___idiv__(self, *args) + + def __add__(self, rhs): + return _openframeworks.ofQuaternion___add__(self, rhs) + + def __iadd__(self, rhs): + return _openframeworks.ofQuaternion___iadd__(self, rhs) + + def __isub__(self, rhs): + return _openframeworks.ofQuaternion___isub__(self, rhs) + + def __sub__(self, rhs): + return _openframeworks.ofQuaternion___sub__(self, rhs) + + def __neg__(self): + return _openframeworks.ofQuaternion___neg__(self) + + def __str__(self): + return _openframeworks.ofQuaternion___str__(self) __swig_destroy__ = _openframeworks.delete_ofQuaternion - __del__ = lambda self : None; + __del__ = lambda self: None ofQuaternion_swigregister = _openframeworks.ofQuaternion_swigregister ofQuaternion_swigregister(ofQuaternion) @@ -4611,184 +9086,429 @@ class ofVec2f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec2f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec2f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec2f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec2f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec2f_x_get, _openframeworks.ofVec2f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec2f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec2f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) - DIM = _openframeworks.ofVec2f_DIM - def __init__(self, *args): + if _newclass: + y = _swig_property(_openframeworks.ofVec2f_y_get, _openframeworks.ofVec2f_y_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec2f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec2f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec2f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec2f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec2f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec2f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec2f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec2f_isAligned(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec2f_isAlignedRad(self, *args) - def align(self, *args): return _openframeworks.ofVec2f_align(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec2f_alignRad(self, *args) - def __add__(self, *args): return _openframeworks.ofVec2f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec2f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec2f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec2f___isub__(self, *args) - def __neg__(self): return _openframeworks.ofVec2f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec2f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec2f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec2f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec2f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec2f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec2f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec2f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec2f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec2f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec2f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec2f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec2f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec2f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec2f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec2f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec2f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec2f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec2f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec2f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec2f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec2f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec2f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec2f_limit(self, *args) - def getPerpendicular(self): return _openframeworks.ofVec2f_getPerpendicular(self) - def perpendicular(self): return _openframeworks.ofVec2f_perpendicular(self) - def length(self): return _openframeworks.ofVec2f_length(self) - def lengthSquared(self): return _openframeworks.ofVec2f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec2f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec2f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec2f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec2f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec2f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec2f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec2f_limited(self, *args) - def perpendiculared(self): return _openframeworks.ofVec2f_perpendiculared(self) - def interpolated(self, *args): return _openframeworks.ofVec2f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec2f_middled(self, *args) - def mapped(self, *args): return _openframeworks.ofVec2f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec2f_distanceSquared(self, *args) - def rotated(self, *args): return _openframeworks.ofVec2f_rotated(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec2f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec2f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec2f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec2f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec2f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec2f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec2f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec2f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec2f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec2f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec2f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec2f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec2f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec2f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec2f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec2f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec2f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec2f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec2f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec2f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec2f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_getMapped(self, origin, vx, vy) + + def map(self, origin, vx, vy): + return _openframeworks.ofVec2f_map(self, origin, vx, vy) + + def distance(self, pnt): + return _openframeworks.ofVec2f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec2f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec2f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec2f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec2f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec2f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec2f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec2f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec2f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec2f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec2f_limit(self, max) + + def length(self): + return _openframeworks.ofVec2f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec2f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec2f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec2f_angleRad(self, vec) + + def getPerpendicular(self): + return _openframeworks.ofVec2f_getPerpendicular(self) + + def perpendicular(self): + return _openframeworks.ofVec2f_perpendicular(self) + + def dot(self, vec): + return _openframeworks.ofVec2f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec2f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec2f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec2f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec2f_limited(self, max) + + def perpendiculared(self): + return _openframeworks.ofVec2f_perpendiculared(self) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec2f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec2f_middled(self, pnt) + + def mapped(self, origin, vx, vy): + return _openframeworks.ofVec2f_mapped(self, origin, vx, vy) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec2f_distanceSquared(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec2f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec2f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec2f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec2f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec2f_one - if _newclass:one = staticmethod(_openframeworks.ofVec2f_one) - def __str__(self): return _openframeworks.ofVec2f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec2f_one) + + def __str__(self): + return _openframeworks.ofVec2f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec2f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec2f_swigregister = _openframeworks.ofVec2f_swigregister ofVec2f_swigregister(ofVec2f) -def ofVec2f_zero(): - return _openframeworks.ofVec2f_zero() -ofVec2f_zero = _openframeworks.ofVec2f_zero +def ofVec2f_zero(): + return _openframeworks.ofVec2f_zero() +ofVec2f_zero = _openframeworks.ofVec2f_zero + +def ofVec2f_one(): + return _openframeworks.ofVec2f_one() +ofVec2f_one = _openframeworks.ofVec2f_one + +class ofVec3f(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) + __repr__ = _swig_repr + DIM = _openframeworks.ofVec3f_DIM + __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set + __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get + if _newclass: + x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) + __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set + __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get + if _newclass: + y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) + __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set + __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get + if _newclass: + z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) + + def __init__(self, *args): + this = _openframeworks.new_ofVec3f(*args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec3f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec3f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec3f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec3f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec3f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_match(self, vec, tolerance) + + def isAligned(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAligned(self, vec, tolerance) + + def isAlignedRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_isAlignedRad(self, vec, tolerance) + + def align(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_align(self, vec, tolerance) + + def alignRad(self, vec, tolerance=0.0001): + return _openframeworks.ofVec3f_alignRad(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec3f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec3f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec3f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec3f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec3f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec3f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec3f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec3f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec3f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec3f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec3f_scale(self, length) + + def getRotated(self, *args): + return _openframeworks.ofVec3f_getRotated(self, *args) + + def getRotatedRad(self, *args): + return _openframeworks.ofVec3f_getRotatedRad(self, *args) + + def rotate(self, *args): + return _openframeworks.ofVec3f_rotate(self, *args) + + def rotateRad(self, *args): + return _openframeworks.ofVec3f_rotateRad(self, *args) + + def getMapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_getMapped(self, origin, vx, vy, vz) + + def map(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_map(self, origin, vx, vy, vz) + + def distance(self, pnt): + return _openframeworks.ofVec3f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec3f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec3f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec3f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec3f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec3f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec3f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec3f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec3f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec3f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec3f_limit(self, max) + + def length(self): + return _openframeworks.ofVec3f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec3f_lengthSquared(self) + + def angle(self, vec): + return _openframeworks.ofVec3f_angle(self, vec) + + def angleRad(self, vec): + return _openframeworks.ofVec3f_angleRad(self, vec) + + def getPerpendicular(self, vec): + return _openframeworks.ofVec3f_getPerpendicular(self, vec) + + def perpendicular(self, vec): + return _openframeworks.ofVec3f_perpendicular(self, vec) + + def getCrossed(self, vec): + return _openframeworks.ofVec3f_getCrossed(self, vec) + + def cross(self, vec): + return _openframeworks.ofVec3f_cross(self, vec) + + def dot(self, vec): + return _openframeworks.ofVec3f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec3f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec3f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec3f_normalized(self) -def ofVec2f_one(): - return _openframeworks.ofVec2f_one() -ofVec2f_one = _openframeworks.ofVec2f_one + def limited(self, max): + return _openframeworks.ofVec3f_limited(self, max) -class ofVec3f(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ofVec3f, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ofVec3f, name) - __repr__ = _swig_repr - __swig_setmethods__["x"] = _openframeworks.ofVec3f_x_set - __swig_getmethods__["x"] = _openframeworks.ofVec3f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec3f_x_get, _openframeworks.ofVec3f_x_set) - __swig_setmethods__["y"] = _openframeworks.ofVec3f_y_set - __swig_getmethods__["y"] = _openframeworks.ofVec3f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec3f_y_get, _openframeworks.ofVec3f_y_set) - __swig_setmethods__["z"] = _openframeworks.ofVec3f_z_set - __swig_getmethods__["z"] = _openframeworks.ofVec3f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec3f_z_get, _openframeworks.ofVec3f_z_set) - DIM = _openframeworks.ofVec3f_DIM - def __init__(self, *args): - this = _openframeworks.new_ofVec3f(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self, *args): return _openframeworks.ofVec3f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec3f___getitem__(self, *args) - def set(self, *args): return _openframeworks.ofVec3f_set(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec3f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec3f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec3f_match(self, *args) - def isAligned(self, *args): return _openframeworks.ofVec3f_isAligned(self, *args) - def align(self, *args): return _openframeworks.ofVec3f_align(self, *args) - def isAlignedRad(self, *args): return _openframeworks.ofVec3f_isAlignedRad(self, *args) - def alignRad(self, *args): return _openframeworks.ofVec3f_alignRad(self, *args) - def __neg__(self): return _openframeworks.ofVec3f___neg__(self) - def __add__(self, *args): return _openframeworks.ofVec3f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec3f___iadd__(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec3f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec3f___isub__(self, *args) - def __mul__(self, *args): return _openframeworks.ofVec3f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec3f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec3f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec3f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec3f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec3f_scale(self, *args) - def getRotated(self, *args): return _openframeworks.ofVec3f_getRotated(self, *args) - def rotate(self, *args): return _openframeworks.ofVec3f_rotate(self, *args) - def getRotatedRad(self, *args): return _openframeworks.ofVec3f_getRotatedRad(self, *args) - def rotateRad(self, *args): return _openframeworks.ofVec3f_rotateRad(self, *args) - def getMapped(self, *args): return _openframeworks.ofVec3f_getMapped(self, *args) - def map(self, *args): return _openframeworks.ofVec3f_map(self, *args) - def distance(self, *args): return _openframeworks.ofVec3f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec3f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec3f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec3f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec3f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec3f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec3f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec3f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec3f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec3f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec3f_limit(self, *args) - def getCrossed(self, *args): return _openframeworks.ofVec3f_getCrossed(self, *args) - def cross(self, *args): return _openframeworks.ofVec3f_cross(self, *args) - def getPerpendicular(self, *args): return _openframeworks.ofVec3f_getPerpendicular(self, *args) - def perpendicular(self, *args): return _openframeworks.ofVec3f_perpendicular(self, *args) - def length(self): return _openframeworks.ofVec3f_length(self) - def lengthSquared(self): return _openframeworks.ofVec3f_lengthSquared(self) - def angle(self, *args): return _openframeworks.ofVec3f_angle(self, *args) - def angleRad(self, *args): return _openframeworks.ofVec3f_angleRad(self, *args) - def dot(self, *args): return _openframeworks.ofVec3f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec3f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec3f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec3f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec3f_limited(self, *args) - def crossed(self, *args): return _openframeworks.ofVec3f_crossed(self, *args) - def perpendiculared(self, *args): return _openframeworks.ofVec3f_perpendiculared(self, *args) - def mapped(self, *args): return _openframeworks.ofVec3f_mapped(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec3f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec3f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec3f_middled(self, *args) - def rotated(self, *args): return _openframeworks.ofVec3f_rotated(self, *args) + def crossed(self, vec): + return _openframeworks.ofVec3f_crossed(self, vec) + + def perpendiculared(self, vec): + return _openframeworks.ofVec3f_perpendiculared(self, vec) + + def mapped(self, origin, vx, vy, vz): + return _openframeworks.ofVec3f_mapped(self, origin, vx, vy, vz) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec3f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec3f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec3f_middled(self, pnt) + + def rotated(self, *args): + return _openframeworks.ofVec3f_rotated(self, *args) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec3f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec3f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec3f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec3f_one - if _newclass:one = staticmethod(_openframeworks.ofVec3f_one) - def __str__(self): return _openframeworks.ofVec3f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec3f_one) + + def __str__(self): + return _openframeworks.ofVec3f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec3f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec3f_swigregister = _openframeworks.ofVec3f_swigregister ofVec3f_swigregister(ofVec3f) def ofVec3f_zero(): - return _openframeworks.ofVec3f_zero() + return _openframeworks.ofVec3f_zero() ofVec3f_zero = _openframeworks.ofVec3f_zero def ofVec3f_one(): - return _openframeworks.ofVec3f_one() + return _openframeworks.ofVec3f_one() ofVec3f_one = _openframeworks.ofVec3f_one class ofVec4f(_object): @@ -4797,207 +9517,286 @@ class ofVec4f(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVec4f, name) __repr__ = _swig_repr + DIM = _openframeworks.ofVec4f_DIM __swig_setmethods__["x"] = _openframeworks.ofVec4f_x_set __swig_getmethods__["x"] = _openframeworks.ofVec4f_x_get - if _newclass:x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) + if _newclass: + x = _swig_property(_openframeworks.ofVec4f_x_get, _openframeworks.ofVec4f_x_set) __swig_setmethods__["y"] = _openframeworks.ofVec4f_y_set __swig_getmethods__["y"] = _openframeworks.ofVec4f_y_get - if _newclass:y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) + if _newclass: + y = _swig_property(_openframeworks.ofVec4f_y_get, _openframeworks.ofVec4f_y_set) __swig_setmethods__["z"] = _openframeworks.ofVec4f_z_set __swig_getmethods__["z"] = _openframeworks.ofVec4f_z_get - if _newclass:z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) + if _newclass: + z = _swig_property(_openframeworks.ofVec4f_z_get, _openframeworks.ofVec4f_z_set) __swig_setmethods__["w"] = _openframeworks.ofVec4f_w_set __swig_getmethods__["w"] = _openframeworks.ofVec4f_w_get - if _newclass:w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) - DIM = _openframeworks.ofVec4f_DIM - def __init__(self, *args): + if _newclass: + w = _swig_property(_openframeworks.ofVec4f_w_get, _openframeworks.ofVec4f_w_set) + + def __init__(self, *args): this = _openframeworks.new_ofVec4f(*args) - try: self.this.append(this) - except: self.this = this - def set(self, *args): return _openframeworks.ofVec4f_set(self, *args) - def getPtr(self, *args): return _openframeworks.ofVec4f_getPtr(self, *args) - def __getitem__(self, *args): return _openframeworks.ofVec4f___getitem__(self, *args) - def __eq__(self, *args): return _openframeworks.ofVec4f___eq__(self, *args) - def __ne__(self, *args): return _openframeworks.ofVec4f___ne__(self, *args) - def match(self, *args): return _openframeworks.ofVec4f_match(self, *args) - def __sub__(self, *args): return _openframeworks.ofVec4f___sub__(self, *args) - def __isub__(self, *args): return _openframeworks.ofVec4f___isub__(self, *args) - def __add__(self, *args): return _openframeworks.ofVec4f___add__(self, *args) - def __iadd__(self, *args): return _openframeworks.ofVec4f___iadd__(self, *args) - def __neg__(self): return _openframeworks.ofVec4f___neg__(self) - def __mul__(self, *args): return _openframeworks.ofVec4f___mul__(self, *args) - def __imul__(self, *args): return _openframeworks.ofVec4f___imul__(self, *args) - def __div__(self, *args): return _openframeworks.ofVec4f___div__(self, *args) - def __idiv__(self, *args): return _openframeworks.ofVec4f___idiv__(self, *args) - def getScaled(self, *args): return _openframeworks.ofVec4f_getScaled(self, *args) - def scale(self, *args): return _openframeworks.ofVec4f_scale(self, *args) - def distance(self, *args): return _openframeworks.ofVec4f_distance(self, *args) - def squareDistance(self, *args): return _openframeworks.ofVec4f_squareDistance(self, *args) - def getInterpolated(self, *args): return _openframeworks.ofVec4f_getInterpolated(self, *args) - def interpolate(self, *args): return _openframeworks.ofVec4f_interpolate(self, *args) - def getMiddle(self, *args): return _openframeworks.ofVec4f_getMiddle(self, *args) - def middle(self, *args): return _openframeworks.ofVec4f_middle(self, *args) - def average(self, *args): return _openframeworks.ofVec4f_average(self, *args) - def getNormalized(self): return _openframeworks.ofVec4f_getNormalized(self) - def normalize(self): return _openframeworks.ofVec4f_normalize(self) - def getLimited(self, *args): return _openframeworks.ofVec4f_getLimited(self, *args) - def limit(self, *args): return _openframeworks.ofVec4f_limit(self, *args) - def length(self): return _openframeworks.ofVec4f_length(self) - def lengthSquared(self): return _openframeworks.ofVec4f_lengthSquared(self) - def dot(self, *args): return _openframeworks.ofVec4f_dot(self, *args) - def rescaled(self, *args): return _openframeworks.ofVec4f_rescaled(self, *args) - def rescale(self, *args): return _openframeworks.ofVec4f_rescale(self, *args) - def normalized(self): return _openframeworks.ofVec4f_normalized(self) - def limited(self, *args): return _openframeworks.ofVec4f_limited(self, *args) - def distanceSquared(self, *args): return _openframeworks.ofVec4f_distanceSquared(self, *args) - def interpolated(self, *args): return _openframeworks.ofVec4f_interpolated(self, *args) - def middled(self, *args): return _openframeworks.ofVec4f_middled(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def getPtr(self, *args): + return _openframeworks.ofVec4f_getPtr(self, *args) + + def __getitem__(self, *args): + return _openframeworks.ofVec4f___getitem__(self, *args) + + def set(self, *args): + return _openframeworks.ofVec4f_set(self, *args) + + def __eq__(self, vec): + return _openframeworks.ofVec4f___eq__(self, vec) + + def __ne__(self, vec): + return _openframeworks.ofVec4f___ne__(self, vec) + + def match(self, vec, tolerance=0.0001): + return _openframeworks.ofVec4f_match(self, vec, tolerance) + + def __add__(self, *args): + return _openframeworks.ofVec4f___add__(self, *args) + + def __iadd__(self, *args): + return _openframeworks.ofVec4f___iadd__(self, *args) + + def __sub__(self, *args): + return _openframeworks.ofVec4f___sub__(self, *args) + + def __neg__(self): + return _openframeworks.ofVec4f___neg__(self) + + def __isub__(self, *args): + return _openframeworks.ofVec4f___isub__(self, *args) + + def __mul__(self, *args): + return _openframeworks.ofVec4f___mul__(self, *args) + + def __imul__(self, *args): + return _openframeworks.ofVec4f___imul__(self, *args) + + def __div__(self, *args): + return _openframeworks.ofVec4f___div__(self, *args) + + def __idiv__(self, *args): + return _openframeworks.ofVec4f___idiv__(self, *args) + + def getScaled(self, length): + return _openframeworks.ofVec4f_getScaled(self, length) + + def scale(self, length): + return _openframeworks.ofVec4f_scale(self, length) + + def distance(self, pnt): + return _openframeworks.ofVec4f_distance(self, pnt) + + def squareDistance(self, pnt): + return _openframeworks.ofVec4f_squareDistance(self, pnt) + + def getInterpolated(self, pnt, p): + return _openframeworks.ofVec4f_getInterpolated(self, pnt, p) + + def interpolate(self, pnt, p): + return _openframeworks.ofVec4f_interpolate(self, pnt, p) + + def getMiddle(self, pnt): + return _openframeworks.ofVec4f_getMiddle(self, pnt) + + def middle(self, pnt): + return _openframeworks.ofVec4f_middle(self, pnt) + + def average(self, points, num): + return _openframeworks.ofVec4f_average(self, points, num) + + def getNormalized(self): + return _openframeworks.ofVec4f_getNormalized(self) + + def normalize(self): + return _openframeworks.ofVec4f_normalize(self) + + def getLimited(self, max): + return _openframeworks.ofVec4f_getLimited(self, max) + + def limit(self, max): + return _openframeworks.ofVec4f_limit(self, max) + + def length(self): + return _openframeworks.ofVec4f_length(self) + + def lengthSquared(self): + return _openframeworks.ofVec4f_lengthSquared(self) + + def dot(self, vec): + return _openframeworks.ofVec4f_dot(self, vec) + + def rescaled(self, length): + return _openframeworks.ofVec4f_rescaled(self, length) + + def rescale(self, length): + return _openframeworks.ofVec4f_rescale(self, length) + + def normalized(self): + return _openframeworks.ofVec4f_normalized(self) + + def limited(self, max): + return _openframeworks.ofVec4f_limited(self, max) + + def distanceSquared(self, pnt): + return _openframeworks.ofVec4f_distanceSquared(self, pnt) + + def interpolated(self, pnt, p): + return _openframeworks.ofVec4f_interpolated(self, pnt, p) + + def middled(self, pnt): + return _openframeworks.ofVec4f_middled(self, pnt) __swig_getmethods__["zero"] = lambda x: _openframeworks.ofVec4f_zero - if _newclass:zero = staticmethod(_openframeworks.ofVec4f_zero) + if _newclass: + zero = staticmethod(_openframeworks.ofVec4f_zero) __swig_getmethods__["one"] = lambda x: _openframeworks.ofVec4f_one - if _newclass:one = staticmethod(_openframeworks.ofVec4f_one) - def __str__(self): return _openframeworks.ofVec4f___str__(self) + if _newclass: + one = staticmethod(_openframeworks.ofVec4f_one) + + def __str__(self): + return _openframeworks.ofVec4f___str__(self) __swig_destroy__ = _openframeworks.delete_ofVec4f - __del__ = lambda self : None; + __del__ = lambda self: None ofVec4f_swigregister = _openframeworks.ofVec4f_swigregister ofVec4f_swigregister(ofVec4f) def ofVec4f_zero(): - return _openframeworks.ofVec4f_zero() + return _openframeworks.ofVec4f_zero() ofVec4f_zero = _openframeworks.ofVec4f_zero def ofVec4f_one(): - return _openframeworks.ofVec4f_one() + return _openframeworks.ofVec4f_one() ofVec4f_one = _openframeworks.ofVec4f_one -def ofNextPow2(*args): - return _openframeworks.ofNextPow2(*args) -ofNextPow2 = _openframeworks.ofNextPow2 - -def ofSeedRandom(*args): - return _openframeworks.ofSeedRandom(*args) -ofSeedRandom = _openframeworks.ofSeedRandom - def ofRandom(*args): - return _openframeworks.ofRandom(*args) + return _openframeworks.ofRandom(*args) ofRandom = _openframeworks.ofRandom def ofRandomf(): - return _openframeworks.ofRandomf() + return _openframeworks.ofRandomf() ofRandomf = _openframeworks.ofRandomf def ofRandomuf(): - return _openframeworks.ofRandomuf() + return _openframeworks.ofRandomuf() ofRandomuf = _openframeworks.ofRandomuf -def ofNormalize(*args): - return _openframeworks.ofNormalize(*args) +def ofSeedRandom(*args): + return _openframeworks.ofSeedRandom(*args) +ofSeedRandom = _openframeworks.ofSeedRandom + +def ofNormalize(value, min, max): + return _openframeworks.ofNormalize(value, min, max) ofNormalize = _openframeworks.ofNormalize -def ofMap(*args): - return _openframeworks.ofMap(*args) +def ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp=False): + return _openframeworks.ofMap(value, inputMin, inputMax, outputMin, outputMax, clamp) ofMap = _openframeworks.ofMap -def ofClamp(*args): - return _openframeworks.ofClamp(*args) +def ofClamp(value, min, max): + return _openframeworks.ofClamp(value, min, max) ofClamp = _openframeworks.ofClamp -def ofLerp(*args): - return _openframeworks.ofLerp(*args) +def ofInRange(t, min, max): + return _openframeworks.ofInRange(t, min, max) +ofInRange = _openframeworks.ofInRange + +def ofLerp(start, stop, amt): + return _openframeworks.ofLerp(start, stop, amt) ofLerp = _openframeworks.ofLerp def ofDist(*args): - return _openframeworks.ofDist(*args) + return _openframeworks.ofDist(*args) ofDist = _openframeworks.ofDist def ofDistSquared(*args): - return _openframeworks.ofDistSquared(*args) + return _openframeworks.ofDistSquared(*args) ofDistSquared = _openframeworks.ofDistSquared -def ofSign(*args): - return _openframeworks.ofSign(*args) -ofSign = _openframeworks.ofSign - -def ofInRange(*args): - return _openframeworks.ofInRange(*args) -ofInRange = _openframeworks.ofInRange - -def ofRadToDeg(*args): - return _openframeworks.ofRadToDeg(*args) +def ofRadToDeg(radians): + return _openframeworks.ofRadToDeg(radians) ofRadToDeg = _openframeworks.ofRadToDeg -def ofDegToRad(*args): - return _openframeworks.ofDegToRad(*args) +def ofDegToRad(degrees): + return _openframeworks.ofDegToRad(degrees) ofDegToRad = _openframeworks.ofDegToRad -def ofLerpDegrees(*args): - return _openframeworks.ofLerpDegrees(*args) +def ofLerpDegrees(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpDegrees(currentAngle, targetAngle, pct) ofLerpDegrees = _openframeworks.ofLerpDegrees -def ofLerpRadians(*args): - return _openframeworks.ofLerpRadians(*args) +def ofLerpRadians(currentAngle, targetAngle, pct): + return _openframeworks.ofLerpRadians(currentAngle, targetAngle, pct) ofLerpRadians = _openframeworks.ofLerpRadians -def ofAngleDifferenceDegrees(*args): - return _openframeworks.ofAngleDifferenceDegrees(*args) +def ofAngleDifferenceDegrees(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceDegrees(currentAngle, targetAngle) ofAngleDifferenceDegrees = _openframeworks.ofAngleDifferenceDegrees -def ofAngleDifferenceRadians(*args): - return _openframeworks.ofAngleDifferenceRadians(*args) +def ofAngleDifferenceRadians(currentAngle, targetAngle): + return _openframeworks.ofAngleDifferenceRadians(currentAngle, targetAngle) ofAngleDifferenceRadians = _openframeworks.ofAngleDifferenceRadians -def ofWrap(*args): - return _openframeworks.ofWrap(*args) +def ofWrap(value, arg2, to): + return _openframeworks.ofWrap(value, arg2, to) ofWrap = _openframeworks.ofWrap def ofWrapRadians(*args): - return _openframeworks.ofWrapRadians(*args) + return _openframeworks.ofWrapRadians(*args) ofWrapRadians = _openframeworks.ofWrapRadians -def ofWrapDegrees(*args): - return _openframeworks.ofWrapDegrees(*args) +def ofWrapDegrees(angle, arg2=-180, to=+180): + return _openframeworks.ofWrapDegrees(angle, arg2, to) ofWrapDegrees = _openframeworks.ofWrapDegrees -def ofRandomWidth(): - return _openframeworks.ofRandomWidth() -ofRandomWidth = _openframeworks.ofRandomWidth - -def ofRandomHeight(): - return _openframeworks.ofRandomHeight() -ofRandomHeight = _openframeworks.ofRandomHeight - def ofNoise(*args): - return _openframeworks.ofNoise(*args) + return _openframeworks.ofNoise(*args) ofNoise = _openframeworks.ofNoise def ofSignedNoise(*args): - return _openframeworks.ofSignedNoise(*args) + return _openframeworks.ofSignedNoise(*args) ofSignedNoise = _openframeworks.ofSignedNoise def ofInsidePoly(*args): - return _openframeworks.ofInsidePoly(*args) + return _openframeworks.ofInsidePoly(*args) ofInsidePoly = _openframeworks.ofInsidePoly -def ofLineSegmentIntersection(*args): - return _openframeworks.ofLineSegmentIntersection(*args) +def ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection): + return _openframeworks.ofLineSegmentIntersection(line1Start, line1End, line2Start, line2End, intersection) ofLineSegmentIntersection = _openframeworks.ofLineSegmentIntersection -def ofBezierPoint(*args): - return _openframeworks.ofBezierPoint(*args) +def ofBezierPoint(a, b, c, d, t): + return _openframeworks.ofBezierPoint(a, b, c, d, t) ofBezierPoint = _openframeworks.ofBezierPoint -def ofCurvePoint(*args): - return _openframeworks.ofCurvePoint(*args) +def ofCurvePoint(a, b, c, d, t): + return _openframeworks.ofCurvePoint(a, b, c, d, t) ofCurvePoint = _openframeworks.ofCurvePoint -def ofBezierTangent(*args): - return _openframeworks.ofBezierTangent(*args) +def ofBezierTangent(a, b, c, d, t): + return _openframeworks.ofBezierTangent(a, b, c, d, t) ofBezierTangent = _openframeworks.ofBezierTangent -def ofCurveTangent(*args): - return _openframeworks.ofCurveTangent(*args) +def ofCurveTangent(a, b, c, d, t): + return _openframeworks.ofCurveTangent(a, b, c, d, t) ofCurveTangent = _openframeworks.ofCurveTangent + +def ofNextPow2(a): + return _openframeworks.ofNextPow2(a) +ofNextPow2 = _openframeworks.ofNextPow2 + +def ofSign(n): + return _openframeworks.ofSign(n) +ofSign = _openframeworks.ofSign class ofXml(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofXml, name, value) @@ -5005,50 +9804,121 @@ class ofXml(_object): __getattr__ = lambda self, name: _swig_getattr(self, ofXml, name) __repr__ = _swig_repr __swig_destroy__ = _openframeworks.delete_ofXml - __del__ = lambda self : None; - def __init__(self, *args): + __del__ = lambda self: None + + def __init__(self, *args): this = _openframeworks.new_ofXml(*args) - try: self.this.append(this) - except: self.this = this - def load(self, *args): return _openframeworks.ofXml_load(self, *args) - def save(self, *args): return _openframeworks.ofXml_save(self, *args) - def addChild(self, *args): return _openframeworks.ofXml_addChild(self, *args) - def addXml(self, *args): return _openframeworks.ofXml_addXml(self, *args) - def getValue(self, *args): return _openframeworks.ofXml_getValue(self, *args) - def getIntValue(self, *args): return _openframeworks.ofXml_getIntValue(self, *args) - def getFloatValue(self, *args): return _openframeworks.ofXml_getFloatValue(self, *args) - def getBoolValue(self, *args): return _openframeworks.ofXml_getBoolValue(self, *args) - def setValue(self, *args): return _openframeworks.ofXml_setValue(self, *args) - def getAttribute(self, *args): return _openframeworks.ofXml_getAttribute(self, *args) - def setAttribute(self, *args): return _openframeworks.ofXml_setAttribute(self, *args) - def getAttributes(self): return _openframeworks.ofXml_getAttributes(self) - def getNumChildren(self, *args): return _openframeworks.ofXml_getNumChildren(self, *args) - def removeAttribute(self, *args): return _openframeworks.ofXml_removeAttribute(self, *args) - def removeAttributes(self, *args): return _openframeworks.ofXml_removeAttributes(self, *args) - def removeContents(self, *args): return _openframeworks.ofXml_removeContents(self, *args) - def remove(self, *args): return _openframeworks.ofXml_remove(self, *args) - def exists(self, *args): return _openframeworks.ofXml_exists(self, *args) - def clear(self): return _openframeworks.ofXml_clear(self) - def getName(self): return _openframeworks.ofXml_getName(self) - def reset(self): return _openframeworks.ofXml_reset(self) - def setToChild(self, *args): return _openframeworks.ofXml_setToChild(self, *args) - def setTo(self, *args): return _openframeworks.ofXml_setTo(self, *args) - def setToParent(self, *args): return _openframeworks.ofXml_setToParent(self, *args) - def setToSibling(self): return _openframeworks.ofXml_setToSibling(self) - def setToPrevSibling(self): return _openframeworks.ofXml_setToPrevSibling(self) - def loadFromBuffer(self, *args): return _openframeworks.ofXml_loadFromBuffer(self, *args) - def toString(self): return _openframeworks.ofXml_toString(self) - def serialize(self, *args): return _openframeworks.ofXml_serialize(self, *args) - def deserialize(self, *args): return _openframeworks.ofXml_deserialize(self, *args) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, path): + return _openframeworks.ofXml_load(self, path) + + def save(self, path): + return _openframeworks.ofXml_save(self, path) + + def addChild(self, path): + return _openframeworks.ofXml_addChild(self, path) + + def addXml(self, xml, copyAll=False): + return _openframeworks.ofXml_addXml(self, xml, copyAll) + + def getValue(self, *args): + return _openframeworks.ofXml_getValue(self, *args) + + def getIntValue(self, *args): + return _openframeworks.ofXml_getIntValue(self, *args) + + def getInt64Value(self, *args): + return _openframeworks.ofXml_getInt64Value(self, *args) + + def getFloatValue(self, *args): + return _openframeworks.ofXml_getFloatValue(self, *args) + + def getBoolValue(self, *args): + return _openframeworks.ofXml_getBoolValue(self, *args) + + def setValue(self, path, value): + return _openframeworks.ofXml_setValue(self, path, value) + + def getAttribute(self, path): + return _openframeworks.ofXml_getAttribute(self, path) + + def setAttribute(self, path, value): + return _openframeworks.ofXml_setAttribute(self, path, value) + + def getAttributes(self): + return _openframeworks.ofXml_getAttributes(self) + + def getNumChildren(self, *args): + return _openframeworks.ofXml_getNumChildren(self, *args) + + def removeAttribute(self, path): + return _openframeworks.ofXml_removeAttribute(self, path) + + def removeAttributes(self, *args): + return _openframeworks.ofXml_removeAttributes(self, *args) + + def removeContents(self, *args): + return _openframeworks.ofXml_removeContents(self, *args) + + def remove(self, *args): + return _openframeworks.ofXml_remove(self, *args) + + def exists(self, path): + return _openframeworks.ofXml_exists(self, path) + + def clear(self): + return _openframeworks.ofXml_clear(self) + + def getName(self): + return _openframeworks.ofXml_getName(self) + + def reset(self): + return _openframeworks.ofXml_reset(self) + + def setToChild(self, index): + return _openframeworks.ofXml_setToChild(self, index) + + def setTo(self, path): + return _openframeworks.ofXml_setTo(self, path) + + def setToParent(self, *args): + return _openframeworks.ofXml_setToParent(self, *args) + + def setToSibling(self): + return _openframeworks.ofXml_setToSibling(self) + + def setToPrevSibling(self): + return _openframeworks.ofXml_setToPrevSibling(self) + + def loadFromBuffer(self, buffer): + return _openframeworks.ofXml_loadFromBuffer(self, buffer) + + def toString(self): + return _openframeworks.ofXml_toString(self) + + def serialize(self, parameter): + return _openframeworks.ofXml_serialize(self, parameter) + + def deserialize(self, parameter): + return _openframeworks.ofXml_deserialize(self, parameter) __swig_getmethods__["tokenize"] = lambda x: _openframeworks.ofXml_tokenize - if _newclass:tokenize = staticmethod(_openframeworks.ofXml_tokenize) - def getPocoElement(self, *args): return _openframeworks.ofXml_getPocoElement(self, *args) - def getPocoDocument(self, *args): return _openframeworks.ofXml_getPocoDocument(self, *args) + if _newclass: + tokenize = staticmethod(_openframeworks.ofXml_tokenize) + + def getPocoElement(self, *args): + return _openframeworks.ofXml_getPocoElement(self, *args) + + def getPocoDocument(self, *args): + return _openframeworks.ofXml_getPocoDocument(self, *args) ofXml_swigregister = _openframeworks.ofXml_swigregister ofXml_swigregister(ofXml) -def ofXml_tokenize(*args): - return _openframeworks.ofXml_tokenize(*args) +def ofXml_tokenize(str, delim): + return _openframeworks.ofXml_tokenize(str, delim) ofXml_tokenize = _openframeworks.ofXml_tokenize class ofMatrixStack(_object): @@ -5057,43 +9927,123 @@ class ofMatrixStack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofMatrixStack, name) __repr__ = _swig_repr - def __init__(self, *args): - this = _openframeworks.new_ofMatrixStack(*args) - try: self.this.append(this) - except: self.this = this - def setRenderSurface(self, *args): return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) - def setOrientation(self, *args): return _openframeworks.ofMatrixStack_setOrientation(self, *args) - def getOrientation(self): return _openframeworks.ofMatrixStack_getOrientation(self) - def viewport(self, *args): return _openframeworks.ofMatrixStack_viewport(self, *args) - def nativeViewport(self, *args): return _openframeworks.ofMatrixStack_nativeViewport(self, *args) - def getCurrentViewport(self): return _openframeworks.ofMatrixStack_getCurrentViewport(self) - def getNativeViewport(self): return _openframeworks.ofMatrixStack_getNativeViewport(self) - def getProjectionMatrix(self): return _openframeworks.ofMatrixStack_getProjectionMatrix(self) - def getModelViewMatrix(self): return _openframeworks.ofMatrixStack_getModelViewMatrix(self) - def getModelViewProjectionMatrix(self): return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) - def getTextureMatrix(self): return _openframeworks.ofMatrixStack_getTextureMatrix(self) - def getCurrentMatrix(self): return _openframeworks.ofMatrixStack_getCurrentMatrix(self) - def getProjectionMatrixNoOrientation(self): return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) - def getOrientationMatrix(self): return _openframeworks.ofMatrixStack_getOrientationMatrix(self) - def getOrientationMatrixInverse(self): return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) - def getCurrentMatrixMode(self): return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) - def getHandedness(self): return _openframeworks.ofMatrixStack_getHandedness(self) - def isVFlipped(self): return _openframeworks.ofMatrixStack_isVFlipped(self) - def customMatrixNeedsFlip(self): return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) - def pushView(self): return _openframeworks.ofMatrixStack_pushView(self) - def popView(self): return _openframeworks.ofMatrixStack_popView(self) - def pushMatrix(self): return _openframeworks.ofMatrixStack_pushMatrix(self) - def popMatrix(self): return _openframeworks.ofMatrixStack_popMatrix(self) - def translate(self, *args): return _openframeworks.ofMatrixStack_translate(self, *args) - def scale(self, *args): return _openframeworks.ofMatrixStack_scale(self, *args) - def rotate(self, *args): return _openframeworks.ofMatrixStack_rotate(self, *args) - def matrixMode(self, *args): return _openframeworks.ofMatrixStack_matrixMode(self, *args) - def loadIdentityMatrix(self): return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) - def loadMatrix(self, *args): return _openframeworks.ofMatrixStack_loadMatrix(self, *args) - def multMatrix(self, *args): return _openframeworks.ofMatrixStack_multMatrix(self, *args) - def clearStacks(self): return _openframeworks.ofMatrixStack_clearStacks(self) + + def __init__(self, window): + this = _openframeworks.new_ofMatrixStack(window) + try: + self.this.append(this) + except Exception: + self.this = this + + def setRenderSurface(self, *args): + return _openframeworks.ofMatrixStack_setRenderSurface(self, *args) + + def setOrientation(self, orientation, vFlip): + return _openframeworks.ofMatrixStack_setOrientation(self, orientation, vFlip) + + def getOrientation(self): + return _openframeworks.ofMatrixStack_getOrientation(self) + + def viewport(self, x, y, width, height, vflip): + return _openframeworks.ofMatrixStack_viewport(self, x, y, width, height, vflip) + + def nativeViewport(self, viewport): + return _openframeworks.ofMatrixStack_nativeViewport(self, viewport) + + def getCurrentViewport(self): + return _openframeworks.ofMatrixStack_getCurrentViewport(self) + + def getNativeViewport(self): + return _openframeworks.ofMatrixStack_getNativeViewport(self) + + def getFullSurfaceViewport(self): + return _openframeworks.ofMatrixStack_getFullSurfaceViewport(self) + + def getProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getProjectionMatrix(self) + + def getViewMatrix(self): + return _openframeworks.ofMatrixStack_getViewMatrix(self) + + def getModelViewMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewMatrix(self) + + def getModelViewProjectionMatrix(self): + return _openframeworks.ofMatrixStack_getModelViewProjectionMatrix(self) + + def getTextureMatrix(self): + return _openframeworks.ofMatrixStack_getTextureMatrix(self) + + def getCurrentMatrix(self): + return _openframeworks.ofMatrixStack_getCurrentMatrix(self) + + def getProjectionMatrixNoOrientation(self): + return _openframeworks.ofMatrixStack_getProjectionMatrixNoOrientation(self) + + def getOrientationMatrix(self): + return _openframeworks.ofMatrixStack_getOrientationMatrix(self) + + def getOrientationMatrixInverse(self): + return _openframeworks.ofMatrixStack_getOrientationMatrixInverse(self) + + def getCurrentMatrixMode(self): + return _openframeworks.ofMatrixStack_getCurrentMatrixMode(self) + + def getHandedness(self): + return _openframeworks.ofMatrixStack_getHandedness(self) + + def isVFlipped(self): + return _openframeworks.ofMatrixStack_isVFlipped(self) + + def customMatrixNeedsFlip(self): + return _openframeworks.ofMatrixStack_customMatrixNeedsFlip(self) + + def pushView(self): + return _openframeworks.ofMatrixStack_pushView(self) + + def popView(self): + return _openframeworks.ofMatrixStack_popView(self) + + def pushMatrix(self): + return _openframeworks.ofMatrixStack_pushMatrix(self) + + def popMatrix(self): + return _openframeworks.ofMatrixStack_popMatrix(self) + + def translate(self, x, y, z=0): + return _openframeworks.ofMatrixStack_translate(self, x, y, z) + + def scale(self, xAmnt, yAmnt, zAmnt=1): + return _openframeworks.ofMatrixStack_scale(self, xAmnt, yAmnt, zAmnt) + + def rotate(self, degrees, vecX, vecY, vecZ): + return _openframeworks.ofMatrixStack_rotate(self, degrees, vecX, vecY, vecZ) + + def matrixMode(self, mode): + return _openframeworks.ofMatrixStack_matrixMode(self, mode) + + def loadIdentityMatrix(self): + return _openframeworks.ofMatrixStack_loadIdentityMatrix(self) + + def loadMatrix(self, m): + return _openframeworks.ofMatrixStack_loadMatrix(self, m) + + def multMatrix(self, m): + return _openframeworks.ofMatrixStack_multMatrix(self, m) + + def loadViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_loadViewMatrix(self, matrix) + + def multViewMatrix(self, matrix): + return _openframeworks.ofMatrixStack_multViewMatrix(self, matrix) + + def clearStacks(self): + return _openframeworks.ofMatrixStack_clearStacks(self) + + def doesHardwareOrientation(self): + return _openframeworks.ofMatrixStack_doesHardwareOrientation(self) __swig_destroy__ = _openframeworks.delete_ofMatrixStack - __del__ = lambda self : None; + __del__ = lambda self: None ofMatrixStack_swigregister = _openframeworks.ofMatrixStack_swigregister ofMatrixStack_swigregister(ofMatrixStack) @@ -5103,42 +10053,105 @@ class ofVideoGrabber(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoGrabber, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoGrabber() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofVideoGrabber - __del__ = lambda self : None; - def setGrabber(self, *args): return _openframeworks.ofVideoGrabber_setGrabber(self, *args) - def getGrabber(self): return _openframeworks.ofVideoGrabber_getGrabber(self) - def listDevices(self): return _openframeworks.ofVideoGrabber_listDevices(self) - def isFrameNew(self): return _openframeworks.ofVideoGrabber_isFrameNew(self) - def update(self): return _openframeworks.ofVideoGrabber_update(self) - def close(self): return _openframeworks.ofVideoGrabber_close(self) - def initGrabber(self, *args): return _openframeworks.ofVideoGrabber_initGrabber(self, *args) - def setPixelFormat(self, *args): return _openframeworks.ofVideoGrabber_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoGrabber_getPixelFormat(self) - def videoSettings(self): return _openframeworks.ofVideoGrabber_videoSettings(self) - def getPixels(self): return _openframeworks.ofVideoGrabber_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoGrabber_getPixelsRef(self) - def getTextureReference(self): return _openframeworks.ofVideoGrabber_getTextureReference(self) - def setVerbose(self, *args): return _openframeworks.ofVideoGrabber_setVerbose(self, *args) - def setDeviceID(self, *args): return _openframeworks.ofVideoGrabber_setDeviceID(self, *args) - def setDesiredFrameRate(self, *args): return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoGrabber_setUseTexture(self, *args) - def draw(self, *args): return _openframeworks.ofVideoGrabber_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoGrabber_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoGrabber_resetAnchor(self) - def getHeight(self): return _openframeworks.ofVideoGrabber_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoGrabber_getWidth(self) - def isInitialized(self): return _openframeworks.ofVideoGrabber_isInitialized(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoGrabber_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoGrabber_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoGrabber_height_get, _openframeworks.ofVideoGrabber_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoGrabber_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoGrabber_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoGrabber_width_get, _openframeworks.ofVideoGrabber_width_set) + __del__ = lambda self: None + + def listDevices(self): + return _openframeworks.ofVideoGrabber_listDevices(self) + + def isFrameNew(self): + return _openframeworks.ofVideoGrabber_isFrameNew(self) + + def update(self): + return _openframeworks.ofVideoGrabber_update(self) + + def close(self): + return _openframeworks.ofVideoGrabber_close(self) + + def setup(self, *args): + return _openframeworks.ofVideoGrabber_setup(self, *args) + + def initGrabber(self, *args): + return _openframeworks.ofVideoGrabber_initGrabber(self, *args) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoGrabber_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoGrabber_getPixelFormat(self) + + def videoSettings(self): + return _openframeworks.ofVideoGrabber_videoSettings(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoGrabber_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoGrabber_getPixelsRef(self, *args) + + def getTexture(self, *args): + return _openframeworks.ofVideoGrabber_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoGrabber_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoGrabber_getTexturePlanes(self, *args) + + def setVerbose(self, bTalkToMe): + return _openframeworks.ofVideoGrabber_setVerbose(self, bTalkToMe) + + def setDeviceID(self, _deviceID): + return _openframeworks.ofVideoGrabber_setDeviceID(self, _deviceID) + + def setDesiredFrameRate(self, framerate): + return _openframeworks.ofVideoGrabber_setDesiredFrameRate(self, framerate) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoGrabber_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoGrabber_isUsingTexture(self) + + def draw(self, *args): + return _openframeworks.ofVideoGrabber_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoGrabber_bind(self) + + def unbind(self): + return _openframeworks.ofVideoGrabber_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoGrabber_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoGrabber_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoGrabber_resetAnchor(self) + + def getHeight(self): + return _openframeworks.ofVideoGrabber_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoGrabber_getWidth(self) + + def isInitialized(self): + return _openframeworks.ofVideoGrabber_isInitialized(self) + + def setGrabber(self, newGrabber): + return _openframeworks.ofVideoGrabber_setGrabber(self, newGrabber) + + def getGrabber(self, *args): + return _openframeworks.ofVideoGrabber_getGrabber(self, *args) ofVideoGrabber_swigregister = _openframeworks.ofVideoGrabber_swigregister ofVideoGrabber_swigregister(ofVideoGrabber) @@ -5148,90 +10161,189 @@ class ofVideoPlayer(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ofVideoPlayer, name) __repr__ = _swig_repr - def __init__(self): + + def __init__(self): this = _openframeworks.new_ofVideoPlayer() - try: self.this.append(this) - except: self.this = this - def setPlayer(self, *args): return _openframeworks.ofVideoPlayer_setPlayer(self, *args) - def getPlayer(self): return _openframeworks.ofVideoPlayer_getPlayer(self) - def loadMovie(self, *args): return _openframeworks.ofVideoPlayer_loadMovie(self, *args) - def getMoviePath(self): return _openframeworks.ofVideoPlayer_getMoviePath(self) - def setPixelFormat(self, *args): return _openframeworks.ofVideoPlayer_setPixelFormat(self, *args) - def getPixelFormat(self): return _openframeworks.ofVideoPlayer_getPixelFormat(self) - def closeMovie(self): return _openframeworks.ofVideoPlayer_closeMovie(self) - def close(self): return _openframeworks.ofVideoPlayer_close(self) - def update(self): return _openframeworks.ofVideoPlayer_update(self) - def play(self): return _openframeworks.ofVideoPlayer_play(self) - def stop(self): return _openframeworks.ofVideoPlayer_stop(self) - def isFrameNew(self): return _openframeworks.ofVideoPlayer_isFrameNew(self) - def getPixels(self): return _openframeworks.ofVideoPlayer_getPixels(self) - def getPixelsRef(self): return _openframeworks.ofVideoPlayer_getPixelsRef(self) - def getPosition(self): return _openframeworks.ofVideoPlayer_getPosition(self) - def getSpeed(self): return _openframeworks.ofVideoPlayer_getSpeed(self) - def getDuration(self): return _openframeworks.ofVideoPlayer_getDuration(self) - def getIsMovieDone(self): return _openframeworks.ofVideoPlayer_getIsMovieDone(self) - def setPosition(self, *args): return _openframeworks.ofVideoPlayer_setPosition(self, *args) - def setVolume(self, *args): return _openframeworks.ofVideoPlayer_setVolume(self, *args) - def setLoopState(self, *args): return _openframeworks.ofVideoPlayer_setLoopState(self, *args) - def getLoopState(self): return _openframeworks.ofVideoPlayer_getLoopState(self) - def setSpeed(self, *args): return _openframeworks.ofVideoPlayer_setSpeed(self, *args) - def setFrame(self, *args): return _openframeworks.ofVideoPlayer_setFrame(self, *args) - def setUseTexture(self, *args): return _openframeworks.ofVideoPlayer_setUseTexture(self, *args) - def getTextureReference(self): return _openframeworks.ofVideoPlayer_getTextureReference(self) - def draw(self, *args): return _openframeworks.ofVideoPlayer_draw(self, *args) - def setAnchorPercent(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPercent(self, *args) - def setAnchorPoint(self, *args): return _openframeworks.ofVideoPlayer_setAnchorPoint(self, *args) - def resetAnchor(self): return _openframeworks.ofVideoPlayer_resetAnchor(self) - def setPaused(self, *args): return _openframeworks.ofVideoPlayer_setPaused(self, *args) - def getCurrentFrame(self): return _openframeworks.ofVideoPlayer_getCurrentFrame(self) - def getTotalNumFrames(self): return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) - def firstFrame(self): return _openframeworks.ofVideoPlayer_firstFrame(self) - def nextFrame(self): return _openframeworks.ofVideoPlayer_nextFrame(self) - def previousFrame(self): return _openframeworks.ofVideoPlayer_previousFrame(self) - def getHeight(self): return _openframeworks.ofVideoPlayer_getHeight(self) - def getWidth(self): return _openframeworks.ofVideoPlayer_getWidth(self) - def isPaused(self): return _openframeworks.ofVideoPlayer_isPaused(self) - def isLoaded(self): return _openframeworks.ofVideoPlayer_isLoaded(self) - def isPlaying(self): return _openframeworks.ofVideoPlayer_isPlaying(self) - __swig_setmethods__["height"] = _openframeworks.ofVideoPlayer_height_set - __swig_getmethods__["height"] = _openframeworks.ofVideoPlayer_height_get - if _newclass:height = _swig_property(_openframeworks.ofVideoPlayer_height_get, _openframeworks.ofVideoPlayer_height_set) - __swig_setmethods__["width"] = _openframeworks.ofVideoPlayer_width_set - __swig_getmethods__["width"] = _openframeworks.ofVideoPlayer_width_get - if _newclass:width = _swig_property(_openframeworks.ofVideoPlayer_width_get, _openframeworks.ofVideoPlayer_width_set) + try: + self.this.append(this) + except Exception: + self.this = this + + def load(self, name): + return _openframeworks.ofVideoPlayer_load(self, name) + + def loadAsync(self, name): + return _openframeworks.ofVideoPlayer_loadAsync(self, name) + + def loadMovie(self, name): + return _openframeworks.ofVideoPlayer_loadMovie(self, name) + + def getMoviePath(self): + return _openframeworks.ofVideoPlayer_getMoviePath(self) + + def setPixelFormat(self, pixelFormat): + return _openframeworks.ofVideoPlayer_setPixelFormat(self, pixelFormat) + + def getPixelFormat(self): + return _openframeworks.ofVideoPlayer_getPixelFormat(self) + + def closeMovie(self): + return _openframeworks.ofVideoPlayer_closeMovie(self) + + def close(self): + return _openframeworks.ofVideoPlayer_close(self) + + def update(self): + return _openframeworks.ofVideoPlayer_update(self) + + def play(self): + return _openframeworks.ofVideoPlayer_play(self) + + def stop(self): + return _openframeworks.ofVideoPlayer_stop(self) + + def isFrameNew(self): + return _openframeworks.ofVideoPlayer_isFrameNew(self) + + def getPixels(self, *args): + return _openframeworks.ofVideoPlayer_getPixels(self, *args) + + def getPixelsRef(self, *args): + return _openframeworks.ofVideoPlayer_getPixelsRef(self, *args) + + def getPosition(self): + return _openframeworks.ofVideoPlayer_getPosition(self) + + def getSpeed(self): + return _openframeworks.ofVideoPlayer_getSpeed(self) + + def getDuration(self): + return _openframeworks.ofVideoPlayer_getDuration(self) + + def getIsMovieDone(self): + return _openframeworks.ofVideoPlayer_getIsMovieDone(self) + + def setPosition(self, pct): + return _openframeworks.ofVideoPlayer_setPosition(self, pct) + + def setVolume(self, volume): + return _openframeworks.ofVideoPlayer_setVolume(self, volume) + + def setLoopState(self, state): + return _openframeworks.ofVideoPlayer_setLoopState(self, state) + + def getLoopState(self): + return _openframeworks.ofVideoPlayer_getLoopState(self) + + def setSpeed(self, speed): + return _openframeworks.ofVideoPlayer_setSpeed(self, speed) + + def setFrame(self, frame): + return _openframeworks.ofVideoPlayer_setFrame(self, frame) + + def setUseTexture(self, bUse): + return _openframeworks.ofVideoPlayer_setUseTexture(self, bUse) + + def isUsingTexture(self): + return _openframeworks.ofVideoPlayer_isUsingTexture(self) + + def getTexture(self, *args): + return _openframeworks.ofVideoPlayer_getTexture(self, *args) + + def getTextureReference(self, *args): + return _openframeworks.ofVideoPlayer_getTextureReference(self, *args) + + def getTexturePlanes(self, *args): + return _openframeworks.ofVideoPlayer_getTexturePlanes(self, *args) + + def draw(self, *args): + return _openframeworks.ofVideoPlayer_draw(self, *args) + + def bind(self): + return _openframeworks.ofVideoPlayer_bind(self) + + def unbind(self): + return _openframeworks.ofVideoPlayer_unbind(self) + + def setAnchorPercent(self, xPct, yPct): + return _openframeworks.ofVideoPlayer_setAnchorPercent(self, xPct, yPct) + + def setAnchorPoint(self, x, y): + return _openframeworks.ofVideoPlayer_setAnchorPoint(self, x, y) + + def resetAnchor(self): + return _openframeworks.ofVideoPlayer_resetAnchor(self) + + def setPaused(self, bPause): + return _openframeworks.ofVideoPlayer_setPaused(self, bPause) + + def getCurrentFrame(self): + return _openframeworks.ofVideoPlayer_getCurrentFrame(self) + + def getTotalNumFrames(self): + return _openframeworks.ofVideoPlayer_getTotalNumFrames(self) + + def firstFrame(self): + return _openframeworks.ofVideoPlayer_firstFrame(self) + + def nextFrame(self): + return _openframeworks.ofVideoPlayer_nextFrame(self) + + def previousFrame(self): + return _openframeworks.ofVideoPlayer_previousFrame(self) + + def getHeight(self): + return _openframeworks.ofVideoPlayer_getHeight(self) + + def getWidth(self): + return _openframeworks.ofVideoPlayer_getWidth(self) + + def isPaused(self): + return _openframeworks.ofVideoPlayer_isPaused(self) + + def isLoaded(self): + return _openframeworks.ofVideoPlayer_isLoaded(self) + + def isPlaying(self): + return _openframeworks.ofVideoPlayer_isPlaying(self) + + def isInitialized(self): + return _openframeworks.ofVideoPlayer_isInitialized(self) + + def setPlayer(self, newPlayer): + return _openframeworks.ofVideoPlayer_setPlayer(self, newPlayer) + + def getPlayer(self, *args): + return _openframeworks.ofVideoPlayer_getPlayer(self, *args) __swig_destroy__ = _openframeworks.delete_ofVideoPlayer - __del__ = lambda self : None; + __del__ = lambda self: None ofVideoPlayer_swigregister = _openframeworks.ofVideoPlayer_swigregister ofVideoPlayer_swigregister(ofVideoPlayer) -def ofGetMousePressed(*args): - return _openframeworks.ofGetMousePressed(*args) +def ofGetMousePressed(button=-1): + return _openframeworks.ofGetMousePressed(button) ofGetMousePressed = _openframeworks.ofGetMousePressed -def ofGetKeyPressed(*args): - return _openframeworks.ofGetKeyPressed(*args) +def ofGetKeyPressed(key=-1): + return _openframeworks.ofGetKeyPressed(key) ofGetKeyPressed = _openframeworks.ofGetKeyPressed def ofGetMouseX(): - return _openframeworks.ofGetMouseX() + return _openframeworks.ofGetMouseX() ofGetMouseX = _openframeworks.ofGetMouseX def ofGetMouseY(): - return _openframeworks.ofGetMouseY() + return _openframeworks.ofGetMouseY() ofGetMouseY = _openframeworks.ofGetMouseY def ofGetPreviousMouseX(): - return _openframeworks.ofGetPreviousMouseX() + return _openframeworks.ofGetPreviousMouseX() ofGetPreviousMouseX = _openframeworks.ofGetPreviousMouseX def ofGetPreviousMouseY(): - return _openframeworks.ofGetPreviousMouseY() + return _openframeworks.ofGetPreviousMouseY() ofGetPreviousMouseY = _openframeworks.ofGetPreviousMouseY - -def ofSetEscapeQuitsApp(*args): - return _openframeworks.ofSetEscapeQuitsApp(*args) -ofSetEscapeQuitsApp = _openframeworks.ofSetEscapeQuitsApp class ofDragInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ofDragInfo, name, value) @@ -5240,25 +10352,32 @@ class ofDragInfo(_object): __repr__ = _swig_repr __swig_setmethods__["files"] = _openframeworks.ofDragInfo_files_set __swig_getmethods__["files"] = _openframeworks.ofDragInfo_files_get - if _newclass:files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) + if _newclass: + files = _swig_property(_openframeworks.ofDragInfo_files_get, _openframeworks.ofDragInfo_files_set) __swig_setmethods__["position"] = _openframeworks.ofDragInfo_position_set __swig_getmethods__["position"] = _openframeworks.ofDragInfo_position_get - if _newclass:position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) - def __init__(self): + if _newclass: + position = _swig_property(_openframeworks.ofDragInfo_position_get, _openframeworks.ofDragInfo_position_set) + + def __init__(self): this = _openframeworks.new_ofDragInfo() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this __swig_destroy__ = _openframeworks.delete_ofDragInfo - __del__ = lambda self : None; + __del__ = lambda self: None ofDragInfo_swigregister = _openframeworks.ofDragInfo_swigregister ofDragInfo_swigregister(ofDragInfo) class ofTouchEventArgs(ofVec2f): __swig_setmethods__ = {} - for _s in [ofVec2f]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + for _s in [ofVec2f]: + __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofTouchEventArgs, name, value) __swig_getmethods__ = {} - for _s in [ofVec2f]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + for _s in [ofVec2f]: + __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ofTouchEventArgs, name) __repr__ = _swig_repr down = _openframeworks.ofTouchEventArgs_down @@ -5266,61 +10385,80 @@ class ofTouchEventArgs(ofVec2f): move = _openframeworks.ofTouchEventArgs_move doubleTap = _openframeworks.ofTouchEventArgs_doubleTap cancel = _openframeworks.ofTouchEventArgs_cancel + + def __init__(self, *args): + this = _openframeworks.new_ofTouchEventArgs(*args) + try: + self.this.append(this) + except Exception: + self.this = this __swig_setmethods__["type"] = _openframeworks.ofTouchEventArgs_type_set __swig_getmethods__["type"] = _openframeworks.ofTouchEventArgs_type_get - if _newclass:type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) + if _newclass: + type = _swig_property(_openframeworks.ofTouchEventArgs_type_get, _openframeworks.ofTouchEventArgs_type_set) __swig_setmethods__["id"] = _openframeworks.ofTouchEventArgs_id_set __swig_getmethods__["id"] = _openframeworks.ofTouchEventArgs_id_get - if _newclass:id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) + if _newclass: + id = _swig_property(_openframeworks.ofTouchEventArgs_id_get, _openframeworks.ofTouchEventArgs_id_set) __swig_setmethods__["time"] = _openframeworks.ofTouchEventArgs_time_set __swig_getmethods__["time"] = _openframeworks.ofTouchEventArgs_time_get - if _newclass:time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) + if _newclass: + time = _swig_property(_openframeworks.ofTouchEventArgs_time_get, _openframeworks.ofTouchEventArgs_time_set) __swig_setmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_set __swig_getmethods__["numTouches"] = _openframeworks.ofTouchEventArgs_numTouches_get - if _newclass:numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) + if _newclass: + numTouches = _swig_property(_openframeworks.ofTouchEventArgs_numTouches_get, _openframeworks.ofTouchEventArgs_numTouches_set) __swig_setmethods__["width"] = _openframeworks.ofTouchEventArgs_width_set __swig_getmethods__["width"] = _openframeworks.ofTouchEventArgs_width_get - if _newclass:width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) + if _newclass: + width = _swig_property(_openframeworks.ofTouchEventArgs_width_get, _openframeworks.ofTouchEventArgs_width_set) __swig_setmethods__["height"] = _openframeworks.ofTouchEventArgs_height_set __swig_getmethods__["height"] = _openframeworks.ofTouchEventArgs_height_get - if _newclass:height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) + if _newclass: + height = _swig_property(_openframeworks.ofTouchEventArgs_height_get, _openframeworks.ofTouchEventArgs_height_set) __swig_setmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_set __swig_getmethods__["angle"] = _openframeworks.ofTouchEventArgs_angle_get - if _newclass:angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) + if _newclass: + angle = _swig_property(_openframeworks.ofTouchEventArgs_angle_get, _openframeworks.ofTouchEventArgs_angle_set) __swig_setmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_set __swig_getmethods__["minoraxis"] = _openframeworks.ofTouchEventArgs_minoraxis_get - if _newclass:minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) + if _newclass: + minoraxis = _swig_property(_openframeworks.ofTouchEventArgs_minoraxis_get, _openframeworks.ofTouchEventArgs_minoraxis_set) __swig_setmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_set __swig_getmethods__["majoraxis"] = _openframeworks.ofTouchEventArgs_majoraxis_get - if _newclass:majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) + if _newclass: + majoraxis = _swig_property(_openframeworks.ofTouchEventArgs_majoraxis_get, _openframeworks.ofTouchEventArgs_majoraxis_set) __swig_setmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_set __swig_getmethods__["pressure"] = _openframeworks.ofTouchEventArgs_pressure_get - if _newclass:pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) + if _newclass: + pressure = _swig_property(_openframeworks.ofTouchEventArgs_pressure_get, _openframeworks.ofTouchEventArgs_pressure_set) __swig_setmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_set __swig_getmethods__["xspeed"] = _openframeworks.ofTouchEventArgs_xspeed_get - if _newclass:xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) + if _newclass: + xspeed = _swig_property(_openframeworks.ofTouchEventArgs_xspeed_get, _openframeworks.ofTouchEventArgs_xspeed_set) __swig_setmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_set __swig_getmethods__["yspeed"] = _openframeworks.ofTouchEventArgs_yspeed_get - if _newclass:yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) + if _newclass: + yspeed = _swig_property(_openframeworks.ofTouchEventArgs_yspeed_get, _openframeworks.ofTouchEventArgs_yspeed_set) __swig_setmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_set __swig_getmethods__["xaccel"] = _openframeworks.ofTouchEventArgs_xaccel_get - if _newclass:xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) + if _newclass: + xaccel = _swig_property(_openframeworks.ofTouchEventArgs_xaccel_get, _openframeworks.ofTouchEventArgs_xaccel_set) __swig_setmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_set __swig_getmethods__["yaccel"] = _openframeworks.ofTouchEventArgs_yaccel_get - if _newclass:yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) - def __init__(self): - this = _openframeworks.new_ofTouchEventArgs() - try: self.this.append(this) - except: self.this = this + if _newclass: + yaccel = _swig_property(_openframeworks.ofTouchEventArgs_yaccel_get, _openframeworks.ofTouchEventArgs_yaccel_set) __swig_destroy__ = _openframeworks.delete_ofTouchEventArgs - __del__ = lambda self : None; + __del__ = lambda self: None ofTouchEventArgs_swigregister = _openframeworks.ofTouchEventArgs_swigregister ofTouchEventArgs_swigregister(ofTouchEventArgs) def ofSendMessage(*args): - return _openframeworks.ofSendMessage(*args) + return _openframeworks.ofSendMessage(*args) ofSendMessage = _openframeworks.ofSendMessage + + # handle typedefs which swig doesnt wrap ofPoint = ofVec3f diff --git a/lib/openframeworks_extra.py b/lib/openframeworks_extra.py old mode 100644 new mode 100755 index d5dd3b7..fce8e18 --- a/lib/openframeworks_extra.py +++ b/lib/openframeworks_extra.py @@ -1,13 +1,15 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 2.0.7 +# Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. + + from sys import version_info -if version_info >= (2,6,0): +if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp @@ -31,39 +33,60 @@ def swig_import_helper(): try: _swig_property = property except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) + pass # Python < 2.2 doesn't have 'property'. + + +def _swig_setattr_nondynamic(self, class_type, name, value, static=1): + if (name == "thisown"): + return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) + method = class_type.__swig_setmethods__.get(name, None) + if method: + return method(self, value) if (not static): - self.__dict__[name] = value + if _newclass: + object.__setattr__(self, name, value) + else: + self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) +def _swig_setattr(self, class_type, name, value): + return _swig_setattr_nondynamic(self, class_type, name, value, 0) + + +def _swig_getattr_nondynamic(self, class_type, name, static=1): + if (name == "thisown"): + return self.this.own() + method = class_type.__swig_getmethods__.get(name, None) + if method: + return method(self) + if (not static): + return object.__getattr__(self, name) + else: + raise AttributeError(name) + +def _swig_getattr(self, class_type, name): + return _swig_getattr_nondynamic(self, class_type, name, 0) + def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" + try: + strthis = "proxy of " + self.this.__repr__() + except Exception: + strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: - class _object : pass + class _object: + pass _newclass = 0 @@ -73,9 +96,12 @@ class CallBack(_object): __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CallBack, name) __repr__ = _swig_repr - def _call(self): return _openframeworks_extra.CallBack__call(self) + + def _call(self): + return _openframeworks_extra.CallBack__call(self) __swig_destroy__ = _openframeworks_extra.delete_CallBack - __del__ = lambda self : None; + __del__ = lambda self: None + def call(self,*args,**kwargs): CallBack._args = args CallBack._kwargs = kwargs @@ -83,16 +109,19 @@ def call(self,*args,**kwargs): CallBack._args = None CallBack._kwargs = None - def __init__(self): + + def __init__(self): this = _openframeworks_extra.new_CallBack() - try: self.this.append(this) - except: self.this = this + try: + self.this.append(this) + except Exception: + self.this = this CallBack_swigregister = _openframeworks_extra.CallBack_swigregister CallBack_swigregister(CallBack) def _getCallBackPointer(): - return _openframeworks_extra._getCallBackPointer() + return _openframeworks_extra._getCallBackPointer() _getCallBackPointer = _openframeworks_extra._getCallBackPointer # This file is compatible with both classic and new-style classes. diff --git a/license.md b/license.md old mode 100644 new mode 100755 diff --git a/ofxaddons_thumbnail.png b/ofxaddons_thumbnail.png old mode 100644 new mode 100755 diff --git a/src/bindings/desktop/openFrameworks_wrap.cpp b/src/bindings/desktop/openFrameworks_wrap.cpp index 4239a05..44ebe17 100644 --- a/src/bindings/desktop/openFrameworks_wrap.cpp +++ b/src/bindings/desktop/openFrameworks_wrap.cpp @@ -1,19 +1,23 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * This file is not intended to be easily readable and contains a number of + * Version 3.0.8 + * + * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. * ----------------------------------------------------------------------------- */ -#if defined( __WIN32__ ) || defined( _WIN32 ) -#include -#endif + #if defined( __WIN32__ ) || defined( _WIN32 ) + #include + #endif + +#ifndef SWIGPYTHON #define SWIGPYTHON +#endif + #define SWIG_PYTHON_DIRECTOR_NO_VTABLE @@ -71,28 +75,28 @@ template T SwigValueInit() { #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else -# define SWIGUNUSED +# define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif +# endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif @@ -135,7 +139,7 @@ template T SwigValueInit() { # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL -# endif +# endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ @@ -148,10 +152,29 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif -/* Python.h has to appear first */ -#include +#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) +/* Use debug wrappers with the Python release dll */ +# undef _DEBUG +# include +# define _DEBUG +#else +# include +#endif /* ----------------------------------------------------------------------------- * swigrun.swg @@ -177,7 +200,7 @@ template T SwigValueInit() { You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. - + But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ @@ -203,16 +226,16 @@ template T SwigValueInit() { #define SWIG_POINTER_OWN 0x1 -/* +/* Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer + + The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). - + Use the following macros/flags to set or process the returning states. - + In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { @@ -245,23 +268,23 @@ template T SwigValueInit() { } else { // fail code } - + I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be @@ -275,17 +298,17 @@ template T SwigValueInit() { int fooi(int); and you call - + food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ -#define SWIG_OK (0) +#define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) @@ -316,14 +339,14 @@ template T SwigValueInit() { # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { +SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ -# define SWIG_AddCast +# define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif @@ -367,7 +390,7 @@ typedef struct swig_module_info { void *clientdata; /* Language specific module data */ } swig_module_info; -/* +/* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. @@ -387,18 +410,18 @@ SWIG_TypeNameComp(const char *f1, const char *l1, /* Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal + Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - int equiv = 0; +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; - while (!equiv && *ne) { + while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; @@ -406,24 +429,13 @@ SWIG_TypeEquiv(const char *nb, const char *tb) { /* Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb + Return 0 if not equal, 1 if equal */ SWIGRUNTIME int -SWIG_TypeCompare(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; +SWIG_TypeEquiv(const char *nb, const char *tb) { + return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } - /* Check the typename */ @@ -451,7 +463,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) { return 0; } -/* +/* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * @@ -486,7 +498,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } -/* +/* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * @@ -530,7 +542,7 @@ SWIG_TypePrettyName(const swig_type_info *type) { return type->name; } -/* +/* Set the clientdata field for a type */ SWIGRUNTIME void @@ -538,14 +550,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; - + while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } - } + } cast = cast->next; } } @@ -554,31 +566,31 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } - + /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { + int compare = strcmp(name, iname); + if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { @@ -603,14 +615,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); @@ -621,7 +633,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -629,56 +641,56 @@ SWIG_TypeQueryModule(swig_module_info *start, iter = iter->next; } while (iter != end); } - + /* neither found a match */ return 0; } -/* +/* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } -/* +/* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); - else + else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); - else + else return (char *) 0; *u = uu; } return c; } -/* +/* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * @@ -738,18 +750,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #endif /* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 +#define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 @@ -931,6 +943,10 @@ static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) } #endif +#if PY_VERSION_HEX < 0x02050000 +#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) +#endif + #if PY_VERSION_HEX < 0x02040000 #define Py_VISIT(op) \ do { \ @@ -1202,7 +1218,7 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), /* Runtime API */ -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule() +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) @@ -1318,7 +1334,7 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { /* Unpack the argument tuple */ -SWIGINTERN int +SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { @@ -1332,7 +1348,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { - register int i; + Py_ssize_t i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; @@ -1342,7 +1358,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); + Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); @@ -1352,7 +1368,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { - register int i; + Py_ssize_t i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } @@ -1538,6 +1554,23 @@ typedef struct { #endif } SwigPyObject; + +#ifdef SWIGPYTHON_BUILTIN + +SWIGRUNTIME PyObject * +SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) +{ + SwigPyObject *sobj = (SwigPyObject *)v; + + if (!sobj->dict) + sobj->dict = PyDict_New(); + + Py_INCREF(sobj->dict); + return sobj->dict; +} + +#endif + SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { @@ -1605,34 +1638,6 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args) return repr; } -SWIGRUNTIME int -SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char *str; -#ifdef METH_NOARGS - PyObject *repr = SwigPyObject_repr(v); -#else - PyObject *repr = SwigPyObject_repr(v, NULL); -#endif - if (repr) { - str = SWIG_Python_str_AsChar(repr); - fputs(str, fp); - SWIG_Python_str_DelForPy3(str); - Py_DECREF(repr); - return 0; - } else { - return 1; - } -} - -SWIGRUNTIME PyObject * -SwigPyObject_str(SwigPyObject *v) -{ - char result[SWIG_BUFFER_SIZE]; - return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? - SWIG_Python_str_FromChar(result) : 0; -} - SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { @@ -1704,16 +1709,32 @@ SwigPyObject_dealloc(PyObject *v) if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; + + /* PyObject_CallFunction() has the potential to silently drop + the active active exception. In cases of unnamed temporary + variable or where we just finished iterating over a generator + StopIteration will be active right now, and this needs to + remain true upon return from SwigPyObject_dealloc. So save + and restore. */ + + PyObject *val = NULL, *type = NULL, *tb = NULL; + PyErr_Fetch(&val, &type, &tb); + if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); } + if (!res) + PyErr_WriteUnraisable(destroy); + + PyErr_Restore(val, type, tb); + Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) @@ -1737,6 +1758,7 @@ SwigPyObject_append(PyObject* v, PyObject* next) next = tmp; #endif if (!SwigPyObject_Check(next)) { + PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); return NULL; } sobj->next = next; @@ -1825,7 +1847,7 @@ SwigPyObject_own(PyObject *v, PyObject *args) static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, @@ -1836,7 +1858,7 @@ swigobject_methods[] = { static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, @@ -1892,7 +1914,9 @@ SwigPyObject_TypeOnce(void) { (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ +#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ +#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ @@ -1918,7 +1942,7 @@ SwigPyObject_TypeOnce(void) { sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - (printfunc)SwigPyObject_print, /* tp_print */ + 0, /* tp_print */ #if PY_VERSION_HEX < 0x02020000 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ #else @@ -1936,7 +1960,7 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyObject_str, /* tp_str */ + 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ @@ -1972,10 +1996,19 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpyobject_type = tmp; @@ -2151,10 +2184,19 @@ SwigPyPacked_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpypacked_type = tmp; @@ -2313,10 +2355,11 @@ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; + int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; if (!obj) return SWIG_ERROR; - if (obj == Py_None) { + if (obj == Py_None && !implicit_conv) { if (ptr) *ptr = 0; return SWIG_OK; @@ -2365,7 +2408,7 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } res = SWIG_OK; } else { - if (flags & SWIG_POINTER_IMPLICIT_CONV) { + if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; @@ -2400,6 +2443,13 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } } } + if (!SWIG_IsOK(res) && obj == Py_None) { + if (ptr) + *ptr = 0; + if (PyErr_Occurred()) + PyErr_Clear(); + res = SWIG_OK; + } } return res; } @@ -2487,24 +2537,30 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) } } else { #if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + if (inst) { + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + } #else PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } #endif } return inst; #else #if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst; + PyObject *inst = 0; PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } return (PyObject *) inst; #else PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); @@ -2591,18 +2647,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif return (PyObject*) newobj; } return SWIG_Py_Void(); @@ -2611,12 +2670,10 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); - if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - if (inst) { - Py_DECREF(robj); - robj = inst; - } + Py_DECREF(robj); + robj = inst; } return robj; } @@ -2637,7 +2694,7 @@ void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void) { +SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { @@ -2667,13 +2724,11 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o) { PyObject *dict; if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); return SWIG_ERROR; } if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); return SWIG_ERROR; } @@ -2763,7 +2818,7 @@ SWIG_Python_TypeQuery(const char *type) descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); #endif } else { - swig_module_info *swig_module = SWIG_Python_GetModule(); + swig_module_info *swig_module = SWIG_GetModule(0); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { #ifdef SWIGPY_USE_CAPSULE @@ -2895,7 +2950,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyObject *descr; PyObject *encoded_name; descrsetfunc f; - int res; + int res = -1; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { @@ -2918,7 +2973,6 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { goto done; } - res = -1; descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) @@ -2963,42 +3017,42 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { #define SWIGTYPE_p_GLenum swig_types[0] #define SWIGTYPE_p_GLsizei swig_types[1] #define SWIGTYPE_p_GLuint swig_types[2] -#define SWIGTYPE_p_Poco__File swig_types[3] -#define SWIGTYPE_p_Poco__XML__Document swig_types[4] -#define SWIGTYPE_p_Poco__XML__Element swig_types[5] -#define SWIGTYPE_p_allocator_type swig_types[6] -#define SWIGTYPE_p_char swig_types[7] -#define SWIGTYPE_p_difference_type swig_types[8] -#define SWIGTYPE_p_double swig_types[9] -#define SWIGTYPE_p_filebuf swig_types[10] -#define SWIGTYPE_p_float swig_types[11] -#define SWIGTYPE_p_fstream swig_types[12] -#define SWIGTYPE_p_int swig_types[13] -#define SWIGTYPE_p_istream swig_types[14] -#define SWIGTYPE_p_listT_int_t swig_types[15] -#define SWIGTYPE_p_listT_std__string_t swig_types[16] -#define SWIGTYPE_p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t swig_types[17] -#define SWIGTYPE_p_of3dPrimitive swig_types[18] -#define SWIGTYPE_p_ofAbstractImage swig_types[19] -#define SWIGTYPE_p_ofAbstractParameter swig_types[20] -#define SWIGTYPE_p_ofAppBaseWindow swig_types[21] -#define SWIGTYPE_p_ofArduino swig_types[22] -#define SWIGTYPE_p_ofAudioEventArgs swig_types[23] -#define SWIGTYPE_p_ofBaseApp swig_types[24] -#define SWIGTYPE_p_ofBaseDraws swig_types[25] -#define SWIGTYPE_p_ofBaseFileSerializer swig_types[26] -#define SWIGTYPE_p_ofBaseGLRenderer swig_types[27] -#define SWIGTYPE_p_ofBaseHasPixels swig_types[28] -#define SWIGTYPE_p_ofBaseHasTexture swig_types[29] -#define SWIGTYPE_p_ofBaseImage_T_float_t swig_types[30] -#define SWIGTYPE_p_ofBaseImage_T_unsigned_char_t swig_types[31] -#define SWIGTYPE_p_ofBaseImage_T_unsigned_short_t swig_types[32] -#define SWIGTYPE_p_ofBaseLoggerChannel swig_types[33] -#define SWIGTYPE_p_ofBaseRenderer swig_types[34] -#define SWIGTYPE_p_ofBaseSerializer swig_types[35] -#define SWIGTYPE_p_ofBaseSoundInput swig_types[36] -#define SWIGTYPE_p_ofBaseSoundOutput swig_types[37] -#define SWIGTYPE_p_ofBaseSoundPlayer swig_types[38] +#define SWIGTYPE_p_Poco__XML__Document swig_types[3] +#define SWIGTYPE_p_Poco__XML__Element swig_types[4] +#define SWIGTYPE_p_allocator_type swig_types[5] +#define SWIGTYPE_p_char swig_types[6] +#define SWIGTYPE_p_difference_type swig_types[7] +#define SWIGTYPE_p_double swig_types[8] +#define SWIGTYPE_p_float swig_types[9] +#define SWIGTYPE_p_int swig_types[10] +#define SWIGTYPE_p_int64_t swig_types[11] +#define SWIGTYPE_p_listT_int_t swig_types[12] +#define SWIGTYPE_p_listT_std__string_t swig_types[13] +#define SWIGTYPE_p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t swig_types[14] +#define SWIGTYPE_p_of3dGraphics swig_types[15] +#define SWIGTYPE_p_of3dPrimitive swig_types[16] +#define SWIGTYPE_p_ofAbstractImage swig_types[17] +#define SWIGTYPE_p_ofAbstractParameter swig_types[18] +#define SWIGTYPE_p_ofAppBaseWindow swig_types[19] +#define SWIGTYPE_p_ofArduino swig_types[20] +#define SWIGTYPE_p_ofBaseApp swig_types[21] +#define SWIGTYPE_p_ofBaseDraws swig_types[22] +#define SWIGTYPE_p_ofBaseFileSerializer swig_types[23] +#define SWIGTYPE_p_ofBaseGLRenderer swig_types[24] +#define SWIGTYPE_p_ofBaseHasPixels swig_types[25] +#define SWIGTYPE_p_ofBaseHasTexture swig_types[26] +#define SWIGTYPE_p_ofBaseHasTexturePlanes swig_types[27] +#define SWIGTYPE_p_ofBaseImage_T_float_t swig_types[28] +#define SWIGTYPE_p_ofBaseImage_T_unsigned_char_t swig_types[29] +#define SWIGTYPE_p_ofBaseImage_T_unsigned_short_t swig_types[30] +#define SWIGTYPE_p_ofBaseLoggerChannel swig_types[31] +#define SWIGTYPE_p_ofBaseMaterial swig_types[32] +#define SWIGTYPE_p_ofBaseRenderer swig_types[33] +#define SWIGTYPE_p_ofBaseSerializer swig_types[34] +#define SWIGTYPE_p_ofBaseSoundInput swig_types[35] +#define SWIGTYPE_p_ofBaseSoundOutput swig_types[36] +#define SWIGTYPE_p_ofBaseSoundPlayer swig_types[37] +#define SWIGTYPE_p_ofBaseURLFileLoader swig_types[38] #define SWIGTYPE_p_ofBaseUpdates swig_types[39] #define SWIGTYPE_p_ofBaseVideo swig_types[40] #define SWIGTYPE_p_ofBaseVideoDraws swig_types[41] @@ -3006,17 +3060,17 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { #define SWIGTYPE_p_ofBaseVideoPlayer swig_types[43] #define SWIGTYPE_p_ofBoxPrimitive swig_types[44] #define SWIGTYPE_p_ofBuffer swig_types[45] -#define SWIGTYPE_p_ofCamera swig_types[46] -#define SWIGTYPE_p_ofColor_T_float_t swig_types[47] -#define SWIGTYPE_p_ofColor_T_unsigned_char_t swig_types[48] -#define SWIGTYPE_p_ofColor_T_unsigned_short_t swig_types[49] -#define SWIGTYPE_p_ofConePrimitive swig_types[50] -#define SWIGTYPE_p_ofConsoleLoggerChannel swig_types[51] -#define SWIGTYPE_p_ofCylinderPrimitive swig_types[52] -#define SWIGTYPE_p_ofDirectory swig_types[53] -#define SWIGTYPE_p_ofDragInfo swig_types[54] -#define SWIGTYPE_p_ofEasyCam swig_types[55] -#define SWIGTYPE_p_ofEntryEventArgs swig_types[56] +#define SWIGTYPE_p_ofBufferObject swig_types[46] +#define SWIGTYPE_p_ofCamera swig_types[47] +#define SWIGTYPE_p_ofColor_T_float_t swig_types[48] +#define SWIGTYPE_p_ofColor_T_unsigned_char_t swig_types[49] +#define SWIGTYPE_p_ofColor_T_unsigned_short_t swig_types[50] +#define SWIGTYPE_p_ofConePrimitive swig_types[51] +#define SWIGTYPE_p_ofConsoleLoggerChannel swig_types[52] +#define SWIGTYPE_p_ofCoreEvents swig_types[53] +#define SWIGTYPE_p_ofCylinderPrimitive swig_types[54] +#define SWIGTYPE_p_ofDragInfo swig_types[55] +#define SWIGTYPE_p_ofEasyCam swig_types[56] #define SWIGTYPE_p_ofEventArgs swig_types[57] #define SWIGTYPE_p_ofEventT_int_const_t swig_types[58] #define SWIGTYPE_p_ofEventT_ofHttpResponse_t swig_types[59] @@ -3027,7 +3081,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { #define SWIGTYPE_p_ofFile swig_types[64] #define SWIGTYPE_p_ofFileDialogResult swig_types[65] #define SWIGTYPE_p_ofFileLoggerChannel swig_types[66] -#define SWIGTYPE_p_ofFilePath swig_types[67] +#define SWIGTYPE_p_ofGLProgrammableRenderer swig_types[67] #define SWIGTYPE_p_ofHttpRequest swig_types[68] #define SWIGTYPE_p_ofHttpResponse swig_types[69] #define SWIGTYPE_p_ofIcoSpherePrimitive swig_types[70] @@ -3043,87 +3097,112 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { #define SWIGTYPE_p_ofLogVerbose swig_types[80] #define SWIGTYPE_p_ofLogWarning swig_types[81] #define SWIGTYPE_p_ofMaterial swig_types[82] -#define SWIGTYPE_p_ofMatrix3x3 swig_types[83] -#define SWIGTYPE_p_ofMatrix4x4 swig_types[84] -#define SWIGTYPE_p_ofMatrixStack swig_types[85] -#define SWIGTYPE_p_ofMesh swig_types[86] -#define SWIGTYPE_p_ofMeshFace swig_types[87] -#define SWIGTYPE_p_ofMessage swig_types[88] -#define SWIGTYPE_p_ofMouseEventArgs swig_types[89] -#define SWIGTYPE_p_ofNode swig_types[90] -#define SWIGTYPE_p_ofPath swig_types[91] -#define SWIGTYPE_p_ofPixels_T_PixelType_t swig_types[92] -#define SWIGTYPE_p_ofPixels_T_float_t swig_types[93] -#define SWIGTYPE_p_ofPixels_T_unsigned_char_t swig_types[94] -#define SWIGTYPE_p_ofPixels_T_unsigned_short_t swig_types[95] -#define SWIGTYPE_p_ofPlanePrimitive swig_types[96] -#define SWIGTYPE_p_ofPolyRenderMode swig_types[97] -#define SWIGTYPE_p_ofPolyline swig_types[98] -#define SWIGTYPE_p_ofPrimitiveMode swig_types[99] -#define SWIGTYPE_p_ofPtrT_ofAppBaseWindow_t swig_types[100] -#define SWIGTYPE_p_ofPtrT_ofBaseApp_t swig_types[101] -#define SWIGTYPE_p_ofPtrT_ofBaseSoundPlayer_t swig_types[102] -#define SWIGTYPE_p_ofPtrT_ofBaseSoundStream_t swig_types[103] -#define SWIGTYPE_p_ofPtrT_ofBaseVideoGrabber_t swig_types[104] -#define SWIGTYPE_p_ofPtrT_ofBaseVideoPlayer_t swig_types[105] -#define SWIGTYPE_p_ofQuaternion swig_types[106] -#define SWIGTYPE_p_ofRectangle swig_types[107] -#define SWIGTYPE_p_ofResizeEventArgs swig_types[108] -#define SWIGTYPE_p_ofSerial swig_types[109] -#define SWIGTYPE_p_ofSerialDeviceInfo swig_types[110] -#define SWIGTYPE_p_ofShader swig_types[111] -#define SWIGTYPE_p_ofSoundPlayer swig_types[112] -#define SWIGTYPE_p_ofSoundStream swig_types[113] -#define SWIGTYPE_p_ofSpherePrimitive swig_types[114] -#define SWIGTYPE_p_ofStyle swig_types[115] -#define SWIGTYPE_p_ofTTFCharacter swig_types[116] -#define SWIGTYPE_p_ofTexture swig_types[117] -#define SWIGTYPE_p_ofTextureData swig_types[118] -#define SWIGTYPE_p_ofThread swig_types[119] -#define SWIGTYPE_p_ofTouchEventArgs swig_types[120] -#define SWIGTYPE_p_ofTrueTypeFont swig_types[121] -#define SWIGTYPE_p_ofURLFileLoader swig_types[122] -#define SWIGTYPE_p_ofVbo swig_types[123] -#define SWIGTYPE_p_ofVboMesh swig_types[124] -#define SWIGTYPE_p_ofVec2f swig_types[125] -#define SWIGTYPE_p_ofVec3f swig_types[126] -#define SWIGTYPE_p_ofVec4f swig_types[127] -#define SWIGTYPE_p_ofVideoGrabber swig_types[128] -#define SWIGTYPE_p_ofVideoPlayer swig_types[129] -#define SWIGTYPE_p_ofXml swig_types[130] -#define SWIGTYPE_p_ostream swig_types[131] -#define SWIGTYPE_p_p_PyObject swig_types[132] -#define SWIGTYPE_p_size_type swig_types[133] -#define SWIGTYPE_p_std__allocatorT_float_t swig_types[134] -#define SWIGTYPE_p_std__allocatorT_int_t swig_types[135] -#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[136] -#define SWIGTYPE_p_std__invalid_argument swig_types[137] -#define SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t swig_types[138] -#define SWIGTYPE_p_std__string swig_types[139] -#define SWIGTYPE_p_std__vectorT__Tp__Alloc_t swig_types[140] -#define SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t swig_types[141] -#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[142] -#define SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t swig_types[143] -#define SWIGTYPE_p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t swig_types[144] -#define SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t swig_types[145] -#define SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t swig_types[146] -#define SWIGTYPE_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t swig_types[147] -#define SWIGTYPE_p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t swig_types[148] -#define SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t swig_types[149] -#define SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t swig_types[150] -#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t swig_types[151] -#define SWIGTYPE_p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t swig_types[152] -#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[153] -#define SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t swig_types[154] -#define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[155] -#define SWIGTYPE_p_swig__SwigPyIterator swig_types[156] -#define SWIGTYPE_p_uint64_t swig_types[157] -#define SWIGTYPE_p_unsigned_char swig_types[158] -#define SWIGTYPE_p_unsigned_int swig_types[159] -#define SWIGTYPE_p_unsigned_short swig_types[160] -#define SWIGTYPE_p_value_type swig_types[161] -static swig_type_info *swig_types[163]; -static swig_module_info swig_module = {swig_types, 162, 0, 0, 0, 0}; +#define SWIGTYPE_p_ofMaterial__Data swig_types[83] +#define SWIGTYPE_p_ofMatrix3x3 swig_types[84] +#define SWIGTYPE_p_ofMatrix4x4 swig_types[85] +#define SWIGTYPE_p_ofMatrixStack swig_types[86] +#define SWIGTYPE_p_ofMesh swig_types[87] +#define SWIGTYPE_p_ofMeshFace swig_types[88] +#define SWIGTYPE_p_ofMessage swig_types[89] +#define SWIGTYPE_p_ofMouseEventArgs swig_types[90] +#define SWIGTYPE_p_ofNode swig_types[91] +#define SWIGTYPE_p_ofParameterGroup swig_types[92] +#define SWIGTYPE_p_ofPath swig_types[93] +#define SWIGTYPE_p_ofPixels_T_float_t swig_types[94] +#define SWIGTYPE_p_ofPixels_T_float_t__ConstLine swig_types[95] +#define SWIGTYPE_p_ofPixels_T_float_t__ConstLines swig_types[96] +#define SWIGTYPE_p_ofPixels_T_float_t__Line swig_types[97] +#define SWIGTYPE_p_ofPixels_T_float_t__Lines swig_types[98] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t swig_types[99] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLine swig_types[100] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLines swig_types[101] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__Line swig_types[102] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__Lines swig_types[103] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t swig_types[104] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLine swig_types[105] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLines swig_types[106] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__Line swig_types[107] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__Lines swig_types[108] +#define SWIGTYPE_p_ofPlanePrimitive swig_types[109] +#define SWIGTYPE_p_ofPolyRenderMode swig_types[110] +#define SWIGTYPE_p_ofPolyline swig_types[111] +#define SWIGTYPE_p_ofPrimitiveMode swig_types[112] +#define SWIGTYPE_p_ofQuaternion swig_types[113] +#define SWIGTYPE_p_ofRectangle swig_types[114] +#define SWIGTYPE_p_ofResizeEventArgs swig_types[115] +#define SWIGTYPE_p_ofSerial swig_types[116] +#define SWIGTYPE_p_ofSerialDeviceInfo swig_types[117] +#define SWIGTYPE_p_ofShader swig_types[118] +#define SWIGTYPE_p_ofSoundDevice swig_types[119] +#define SWIGTYPE_p_ofSoundPlayer swig_types[120] +#define SWIGTYPE_p_ofSoundStream swig_types[121] +#define SWIGTYPE_p_ofSpherePrimitive swig_types[122] +#define SWIGTYPE_p_ofStyle swig_types[123] +#define SWIGTYPE_p_ofTTFCharacter swig_types[124] +#define SWIGTYPE_p_ofTexture swig_types[125] +#define SWIGTYPE_p_ofTextureData swig_types[126] +#define SWIGTYPE_p_ofTouchEventArgs swig_types[127] +#define SWIGTYPE_p_ofTrueTypeFont swig_types[128] +#define SWIGTYPE_p_ofURLFileLoader swig_types[129] +#define SWIGTYPE_p_ofUTF8Iterator swig_types[130] +#define SWIGTYPE_p_ofVbo swig_types[131] +#define SWIGTYPE_p_ofVboMesh swig_types[132] +#define SWIGTYPE_p_ofVec2f swig_types[133] +#define SWIGTYPE_p_ofVec3f swig_types[134] +#define SWIGTYPE_p_ofVec4f swig_types[135] +#define SWIGTYPE_p_ofVideoGrabber swig_types[136] +#define SWIGTYPE_p_ofVideoPlayer swig_types[137] +#define SWIGTYPE_p_ofWindowSettings swig_types[138] +#define SWIGTYPE_p_ofXml swig_types[139] +#define SWIGTYPE_p_p_PyObject swig_types[140] +#define SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t swig_types[141] +#define SWIGTYPE_p_shared_ptrT_ofAppGLFWWindow_t swig_types[142] +#define SWIGTYPE_p_shared_ptrT_ofBaseApp_t swig_types[143] +#define SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t swig_types[144] +#define SWIGTYPE_p_shared_ptrT_ofBaseSoundPlayer_t swig_types[145] +#define SWIGTYPE_p_shared_ptrT_ofBaseSoundStream_t swig_types[146] +#define SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t swig_types[147] +#define SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t swig_types[148] +#define SWIGTYPE_p_shared_ptrT_ofMainLoop_t swig_types[149] +#define SWIGTYPE_p_size_type swig_types[150] +#define SWIGTYPE_p_std__allocatorT_float_t swig_types[151] +#define SWIGTYPE_p_std__allocatorT_int_t swig_types[152] +#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[153] +#define SWIGTYPE_p_std__invalid_argument swig_types[154] +#define SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t swig_types[155] +#define SWIGTYPE_p_std__string swig_types[156] +#define SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t swig_types[157] +#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[158] +#define SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t swig_types[159] +#define SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t swig_types[160] +#define SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t swig_types[161] +#define SWIGTYPE_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t swig_types[162] +#define SWIGTYPE_p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t swig_types[163] +#define SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t swig_types[164] +#define SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t swig_types[165] +#define SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t swig_types[166] +#define SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t swig_types[167] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t swig_types[168] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator swig_types[169] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator swig_types[170] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator swig_types[171] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator swig_types[172] +#define SWIGTYPE_p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t swig_types[173] +#define SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t swig_types[174] +#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[175] +#define SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t swig_types[176] +#define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[177] +#define SWIGTYPE_p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t swig_types[178] +#define SWIGTYPE_p_swig__SwigPyIterator swig_types[179] +#define SWIGTYPE_p_uint64_t swig_types[180] +#define SWIGTYPE_p_unsigned_char swig_types[181] +#define SWIGTYPE_p_unsigned_int swig_types[182] +#define SWIGTYPE_p_unsigned_short swig_types[183] +#define SWIGTYPE_p_utf8__iteratorT_std__string__const_iterator_t swig_types[184] +#define SWIGTYPE_p_utf8__iteratorT_std__string__const_reverse_iterator_t swig_types[185] +#define SWIGTYPE_p_value_type swig_types[186] +static swig_type_info *swig_types[188]; +static swig_module_info swig_module = {swig_types, 187, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) @@ -3147,7 +3226,7 @@ static swig_module_info swig_module = {swig_types, 162, 0, 0, 0, 0}; #endif #define SWIG_name "_openframeworks" -#define SWIGVERSION 0x020007 +#define SWIGVERSION 0x030008 #define SWIG_VERSION SWIGVERSION @@ -3170,27 +3249,35 @@ namespace swig { SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; } SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) { if (initial_ref) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; } } SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(item._obj); Py_XDECREF(_obj); _obj = item._obj; + SWIG_PYTHON_THREAD_END_BLOCK; return *this; } ~SwigPtr_PyObject() { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XDECREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; } operator PyObject *() const @@ -3220,8 +3307,8 @@ namespace swig { } -#include "ofMain.h" -#undef check + #include "ofMain.h" + #undef check #include @@ -3235,11 +3322,9 @@ namespace swig { #include -#include -#include -#include +#include #include @@ -3251,9 +3336,6 @@ namespace swig { #endif - #include - - namespace swig { struct stop_iteration { }; @@ -3388,9 +3470,11 @@ SWIG_AsVal_double (PyObject *obj, double *val) if (PyFloat_Check(obj)) { if (val) *val = PyFloat_AsDouble(obj); return SWIG_OK; +#if PY_VERSION_HEX < 0x03000000 } else if (PyInt_Check(obj)) { if (val) *val = PyInt_AsLong(obj); return SWIG_OK; +#endif } else if (PyLong_Check(obj)) { double v = PyLong_AsDouble(obj); if (!PyErr_Occurred()) { @@ -3464,6 +3548,7 @@ SWIG_CanCastAsInteger(double *d, double min, double max) { SWIGINTERN int SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) { +#if PY_VERSION_HEX < 0x03000000 if (PyInt_Check(obj)) { long v = PyInt_AsLong(obj); if (v >= 0) { @@ -3472,13 +3557,16 @@ SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) } else { return SWIG_OverflowError; } - } else if (PyLong_Check(obj)) { + } else +#endif + if (PyLong_Check(obj)) { unsigned long v = PyLong_AsUnsignedLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); + return SWIG_OverflowError; } } #ifdef SWIG_PYTHON_CAST_MODE @@ -3535,16 +3623,20 @@ SWIGINTERNINLINE PyObject* SWIGINTERN int SWIG_AsVal_long (PyObject *obj, long* val) { +#if PY_VERSION_HEX < 0x03000000 if (PyInt_Check(obj)) { if (val) *val = PyInt_AsLong(obj); return SWIG_OK; - } else if (PyLong_Check(obj)) { + } else +#endif + if (PyLong_Check(obj)) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); + return SWIG_OverflowError; } } #ifdef SWIG_PYTHON_CAST_MODE @@ -3581,9 +3673,6 @@ SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) } -#include - - #include @@ -3594,11 +3683,12 @@ SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) #include + + #include -#include -namespace swig { +namespace swig { template struct noconst_traits { typedef Type noconst_type; @@ -3612,7 +3702,7 @@ namespace swig { /* type categories */ - struct pointer_category { }; + struct pointer_category { }; struct value_category { }; /* @@ -3625,12 +3715,12 @@ namespace swig { return traits::noconst_type >::type_name(); } - template + template struct traits_info { static swig_type_info *type_query(std::string name) { name += " *"; return SWIG_TypeQuery(name.c_str()); - } + } static swig_type_info *type_info() { static swig_type_info *info = type_query(type_name()); return info; @@ -3651,17 +3741,17 @@ namespace swig { std::string ptrname = name; ptrname += " *"; return ptrname; - } + } static const char* type_name() { static std::string name = make_ptr_name(swig::type_name()); return name.c_str(); } }; - template + template struct traits_as { }; - - template + + template struct traits_check { }; } @@ -4005,6 +4095,12 @@ namespace swig { return pos; } + template + inline void + erase(Sequence* seq, const typename Sequence::iterator& position) { + seq->erase(position); + } + template inline Sequence* getslice(const Sequence* self, Difference i, Difference j, Py_ssize_t step) { @@ -4090,7 +4186,7 @@ namespace swig { std::advance(it,ii); for (size_t rc=0; rcend(); ++c) it++; } } @@ -4108,7 +4204,7 @@ namespace swig { std::advance(it,size-ii-1); for (size_t rc=0; rcrend(); ++c) it++; } } @@ -4134,9 +4230,7 @@ namespace swig { size_t delcount = (jj - ii + step - 1) / step; while (delcount) { it = self->erase(it); - if (it==self->end()) - break; - for (Py_ssize_t c=0; c<(step-1); ++c) + for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c) it++; delcount--; } @@ -4149,10 +4243,8 @@ namespace swig { typename Sequence::reverse_iterator it = sb; size_t delcount = (ii - jj - step - 1) / -step; while (delcount) { - self->erase((++it).base()); - if (it==self->rend()) - break; - for (Py_ssize_t c=0; c<(-step-1); ++c) + it = typename Sequence::reverse_iterator(self->erase((++it).base())); + for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c) it++; delcount--; } @@ -4383,7 +4475,7 @@ namespace swig template struct SwigPySequence_Ref { - SwigPySequence_Ref(PyObject* seq, int index) + SwigPySequence_Ref(PyObject* seq, Py_ssize_t index) : _seq(seq), _index(index) { } @@ -4395,7 +4487,7 @@ namespace swig return swig::as(item, true); } catch (std::exception& e) { char msg[1024]; - sprintf(msg, "in sequence element %d ", _index); + sprintf(msg, "in sequence element %d ", (int)_index); if (!PyErr_Occurred()) { ::SWIG_Error(SWIG_TypeError, swig::type_name()); } @@ -4413,7 +4505,7 @@ namespace swig private: PyObject* _seq; - int _index; + Py_ssize_t _index; }; template @@ -4434,13 +4526,13 @@ namespace swig typedef Reference reference; typedef T value_type; typedef T* pointer; - typedef int difference_type; + typedef Py_ssize_t difference_type; SwigPySequence_InputIterator() { } - SwigPySequence_InputIterator(PyObject* seq, int index) + SwigPySequence_InputIterator(PyObject* seq, Py_ssize_t index) : _seq(seq), _index(index) { } @@ -4520,6 +4612,7 @@ namespace swig difference_type _index; }; + // STL container wrapper around a Python sequence template struct SwigPySequence_Cont { @@ -4527,8 +4620,8 @@ namespace swig typedef const SwigPySequence_Ref const_reference; typedef T value_type; typedef T* pointer; - typedef int difference_type; - typedef int size_type; + typedef Py_ssize_t difference_type; + typedef size_t size_type; typedef const pointer const_pointer; typedef SwigPySequence_InputIterator iterator; typedef SwigPySequence_InputIterator const_iterator; @@ -4589,13 +4682,13 @@ namespace swig bool check(bool set_err = true) const { - int s = size(); - for (int i = 0; i < s; ++i) { + Py_ssize_t s = size(); + for (Py_ssize_t i = 0; i < s; ++i) { swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i); if (!swig::check(item)) { if (set_err) { char msg[1024]; - sprintf(msg, "in sequence element %d", i); + sprintf(msg, "in sequence element %d", (int)i); SWIG_Error(SWIG_RuntimeError, msg); } return false; @@ -4645,17 +4738,17 @@ SWIGINTERNINLINE PyObject* namespace swig { - template <> struct traits { + template <> struct traits< int > { typedef value_category category; static const char* type_name() { return"int"; } - }; - template <> struct traits_asval { + }; + template <> struct traits_asval< int > { typedef int value_type; - static int asval(PyObject *obj, value_type *val) { + static int asval(PyObject *obj, value_type *val) { return SWIG_AsVal_int (obj, val); } }; - template <> struct traits_from { + template <> struct traits_from< int > { typedef int value_type; static PyObject *from(const value_type& val) { return SWIG_From_int (val); @@ -4729,10 +4822,9 @@ namespace swig { #endif size_type size = seq.size(); if (size <= (size_type)INT_MAX) { - PyObject *obj = PyTuple_New((int)size); - int i = 0; - for (const_iterator it = seq.begin(); - it != seq.end(); ++it, ++i) { + PyObject *obj = PyTuple_New((Py_ssize_t)size); + Py_ssize_t i = 0; + for (const_iterator it = seq.begin(); it != seq.end(); ++it, ++i) { PyTuple_SetItem(obj,i,swig::from(*it)); } return obj; @@ -4763,7 +4855,7 @@ namespace swig { namespace swig { - template <> struct traits > > { + template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "int" "," "std::allocator< int >" " >"; @@ -4798,24 +4890,20 @@ SWIG_From_size_t (size_t value) return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); } -SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ return swig::getslice(self, i, j, 1); } -SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v=std::vector< int,std::allocator< int > >()){ +SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ + swig::setslice(self, i, j, 1, std::vector< int,std::allocator< int > >()); + } +SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_1(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i){ - self->erase(swig::getpos(self,i)); + swig::erase(self, swig::getpos(self, i)); } SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getitem____SWIG_0(std::vector< int > *self,PySliceObject *slice){ Py_ssize_t i, j, step; @@ -4824,8 +4912,8 @@ SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____get return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_0(std::vector< int > *self,PySliceObject *slice,std::vector< int,std::allocator< int > > const &v){ @@ -4835,8 +4923,8 @@ SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_0(std::vector< int > *se return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){ @@ -4846,8 +4934,8 @@ SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_1(std::vector< int > *se return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){ @@ -4857,8 +4945,8 @@ SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_1(std::vector< int > *se return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem____SWIG_1(std::vector< int > const *self,std::vector< int >::difference_type i){ @@ -4867,9 +4955,41 @@ SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_2(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){ *(swig::getpos(self,i)) = x; } +SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){ + if (self->size() == 0) + throw std::out_of_range("pop from empty container"); + std::vector< int,std::allocator< int > >::value_type x = self->back(); + self->pop_back(); + return x; + } SWIGINTERN void std_vector_Sl_int_Sg__append(std::vector< int > *self,std::vector< int >::value_type const &x){ self->push_back(x); } +SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos){ return self->erase(pos); } +SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_1(std::vector< int > *self,std::vector< int >::iterator first,std::vector< int >::iterator last){ return self->erase(first, last); } +SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__insert__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::value_type const &x){ return self->insert(pos, x); } +SWIGINTERN void std_vector_Sl_int_Sg__insert__SWIG_1(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::size_type n,std::vector< int >::value_type const &x){ self->insert(pos, n, x); } + +/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ +#ifndef SWIG_isfinite +# if defined(isfinite) +# define SWIG_isfinite(X) (isfinite(X)) +# elif defined(_MSC_VER) +# define SWIG_isfinite(X) (_finite(X)) +# elif defined(__sun) && defined(__SVR4) +# include +# define SWIG_isfinite(X) (finite(X)) +# endif +#endif + + +/* Accept infinite as a valid float value unless we are unable to check if a value is finite */ +#ifdef SWIG_isfinite +# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) +#else +# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) +#endif + SWIGINTERN int SWIG_AsVal_float (PyObject * obj, float *val) @@ -4877,7 +4997,7 @@ SWIG_AsVal_float (PyObject * obj, float *val) double v; int res = SWIG_AsVal_double (obj, &v); if (SWIG_IsOK(res)) { - if ((v < -FLT_MAX || v > FLT_MAX)) { + if (SWIG_Float_Overflow_Check(v)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< float >(v); @@ -4898,17 +5018,17 @@ SWIG_From_float (float value) namespace swig { - template <> struct traits { + template <> struct traits< float > { typedef value_category category; static const char* type_name() { return"float"; } - }; - template <> struct traits_asval { + }; + template <> struct traits_asval< float > { typedef float value_type; - static int asval(PyObject *obj, value_type *val) { + static int asval(PyObject *obj, value_type *val) { return SWIG_AsVal_float (obj, val); } }; - template <> struct traits_from { + template <> struct traits_from< float > { typedef float value_type; static PyObject *from(const value_type& val) { return SWIG_From_float (val); @@ -4918,7 +5038,7 @@ namespace swig { namespace swig { - template <> struct traits > > { + template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "float" "," "std::allocator< float >" " >"; @@ -4938,24 +5058,20 @@ SWIGINTERN bool std_vector_Sl_float_Sg____bool__(std::vector< float > const *sel SWIGINTERN std::vector< float >::size_type std_vector_Sl_float_Sg____len__(std::vector< float > const *self){ return self->size(); } -SWIGINTERN std::vector< float >::value_type std_vector_Sl_float_Sg__pop(std::vector< float > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ return swig::getslice(self, i, j, 1); } -SWIGINTERN void std_vector_Sl_float_Sg____setslice____SWIG_0(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j,std::vector< float,std::allocator< float > > const &v=std::vector< float,std::allocator< float > >()){ +SWIGINTERN void std_vector_Sl_float_Sg____setslice____SWIG_0(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ + swig::setslice(self, i, j, 1, std::vector< float,std::allocator< float > >()); + } +SWIGINTERN void std_vector_Sl_float_Sg____setslice____SWIG_1(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j,std::vector< float,std::allocator< float > > const &v){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_float_Sg____delslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_0(std::vector< float > *self,std::vector< float >::difference_type i){ - self->erase(swig::getpos(self,i)); + swig::erase(self, swig::getpos(self, i)); } SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getitem____SWIG_0(std::vector< float > *self,PySliceObject *slice){ Py_ssize_t i, j, step; @@ -4964,8 +5080,8 @@ SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg_ return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_0(std::vector< float > *self,PySliceObject *slice,std::vector< float,std::allocator< float > > const &v){ @@ -4975,8 +5091,8 @@ SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_0(std::vector< float > return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_1(std::vector< float > *self,PySliceObject *slice){ @@ -4986,8 +5102,8 @@ SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_1(std::vector< float > return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_1(std::vector< float > *self,PySliceObject *slice){ @@ -4997,8 +5113,8 @@ SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_1(std::vector< float > return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< float >::value_type const &std_vector_Sl_float_Sg____getitem____SWIG_1(std::vector< float > const *self,std::vector< float >::difference_type i){ @@ -5007,9 +5123,20 @@ SWIGINTERN std::vector< float >::value_type const &std_vector_Sl_float_Sg____get SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_2(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::value_type const &x){ *(swig::getpos(self,i)) = x; } +SWIGINTERN std::vector< float >::value_type std_vector_Sl_float_Sg__pop(std::vector< float > *self){ + if (self->size() == 0) + throw std::out_of_range("pop from empty container"); + std::vector< float,std::allocator< float > >::value_type x = self->back(); + self->pop_back(); + return x; + } SWIGINTERN void std_vector_Sl_float_Sg__append(std::vector< float > *self,std::vector< float >::value_type const &x){ self->push_back(x); } +SWIGINTERN std::vector< float >::iterator std_vector_Sl_float_Sg__erase__SWIG_0(std::vector< float > *self,std::vector< float >::iterator pos){ return self->erase(pos); } +SWIGINTERN std::vector< float >::iterator std_vector_Sl_float_Sg__erase__SWIG_1(std::vector< float > *self,std::vector< float >::iterator first,std::vector< float >::iterator last){ return self->erase(first, last); } +SWIGINTERN std::vector< float >::iterator std_vector_Sl_float_Sg__insert__SWIG_0(std::vector< float > *self,std::vector< float >::iterator pos,std::vector< float >::value_type const &x){ return self->insert(pos, x); } +SWIGINTERN void std_vector_Sl_float_Sg__insert__SWIG_1(std::vector< float > *self,std::vector< float >::iterator pos,std::vector< float >::size_type n,std::vector< float >::value_type const &x){ self->insert(pos, n, x); } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) @@ -5064,18 +5191,17 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) #else if (*alloc == SWIG_NEWOBJ) #endif - { - *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); - *alloc = SWIG_NEWOBJ; - } - else { + { + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + *alloc = SWIG_NEWOBJ; + } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } else { - #if PY_VERSION_HEX>=0x03000000 - assert(0); /* Should never reach here in Python 3 */ - #endif + #if PY_VERSION_HEX>=0x03000000 + assert(0); /* Should never reach here in Python 3 */ + #endif *cptr = SWIG_Python_str_AsChar(obj); } } @@ -5085,6 +5211,30 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) #endif return SWIG_OK; } else { +#if defined(SWIG_PYTHON_2_UNICODE) +#if PY_VERSION_HEX<0x03000000 + if (PyUnicode_Check(obj)) { + char *cstr; Py_ssize_t len; + if (!alloc && cptr) { + return SWIG_RuntimeError; + } + obj = PyUnicode_AsUTF8String(obj); + if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) { + if (cptr) { + if (alloc) *alloc = SWIG_NEWOBJ; + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + } + if (psize) *psize = len + 1; + + Py_XDECREF(obj); + return SWIG_OK; + } else { + Py_XDECREF(obj); + } + } +#endif +#endif + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; @@ -5159,9 +5309,13 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size) SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); } else { #if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); +#if PY_VERSION_HEX >= 0x03010000 + return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape"); +#else + return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); +#endif #else - return PyString_FromStringAndSize(carray, static_cast< int >(size)); + return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); #endif } } else { @@ -5178,17 +5332,17 @@ SWIG_From_std_string (const std::string& s) namespace swig { - template <> struct traits { + template <> struct traits< std::string > { typedef value_category category; static const char* type_name() { return"std::string"; } - }; - template <> struct traits_asval { + }; + template <> struct traits_asval< std::string > { typedef std::string value_type; - static int asval(PyObject *obj, value_type *val) { + static int asval(PyObject *obj, value_type *val) { return SWIG_AsVal_std_string (obj, val); } }; - template <> struct traits_from { + template <> struct traits_from< std::string > { typedef std::string value_type; static PyObject *from(const value_type& val) { return SWIG_From_std_string (val); @@ -5198,7 +5352,7 @@ namespace swig { namespace swig { - template <> struct traits > > { + template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "std::string" "," "std::allocator< std::string >" " >"; @@ -5218,24 +5372,20 @@ SWIGINTERN bool std_vector_Sl_std_string_Sg____bool__(std::vector< std::string > SWIGINTERN std::vector< std::string >::size_type std_vector_Sl_std_string_Sg____len__(std::vector< std::string > const *self){ return self->size(); } -SWIGINTERN std::vector< std::string >::value_type std_vector_Sl_std_string_Sg__pop(std::vector< std::string > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ return swig::getslice(self, i, j, 1); } -SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j,std::vector< std::string,std::allocator< std::string > > const &v=std::vector< std::string,std::allocator< std::string > >()){ +SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ + swig::setslice(self, i, j, 1, std::vector< std::string,std::allocator< std::string > >()); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_1(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j,std::vector< std::string,std::allocator< std::string > > const &v){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_std_string_Sg____delslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i){ - self->erase(swig::getpos(self,i)); + swig::erase(self, swig::getpos(self, i)); } SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice){ Py_ssize_t i, j, step; @@ -5244,8 +5394,8 @@ SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_ return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice,std::vector< std::string,std::allocator< std::string > > const &v){ @@ -5255,8 +5405,8 @@ SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_0(std::vector< st return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){ @@ -5266,8 +5416,8 @@ SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_1(std::vector< st return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){ @@ -5277,8 +5427,8 @@ SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_1(std::vector< st return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); - std::vector >::difference_type id = i; - std::vector >::difference_type jd = j; + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< std::string >::value_type const &std_vector_Sl_std_string_Sg____getitem____SWIG_1(std::vector< std::string > const *self,std::vector< std::string >::difference_type i){ @@ -5287,14 +5437,35 @@ SWIGINTERN std::vector< std::string >::value_type const &std_vector_Sl_std_strin SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_2(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::value_type const &x){ *(swig::getpos(self,i)) = x; } +SWIGINTERN std::vector< std::string >::value_type std_vector_Sl_std_string_Sg__pop(std::vector< std::string > *self){ + if (self->size() == 0) + throw std::out_of_range("pop from empty container"); + std::vector< std::string,std::allocator< std::string > >::value_type x = self->back(); + self->pop_back(); + return x; + } SWIGINTERN void std_vector_Sl_std_string_Sg__append(std::vector< std::string > *self,std::vector< std::string >::value_type const &x){ self->push_back(x); } +SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos){ return self->erase(pos); } +SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator first,std::vector< std::string >::iterator last){ return self->erase(first, last); } +SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__insert__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::value_type const &x){ return self->insert(pos, x); } +SWIGINTERN void std_vector_Sl_std_string_Sg__insert__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::size_type n,std::vector< std::string >::value_type const &x){ self->insert(pos, n, x); } + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + SWIGINTERN int SWIG_AsVal_bool (PyObject *obj, bool *val) { - int r = PyObject_IsTrue(obj); + int r; + if (!PyBool_Check(obj)) + return SWIG_ERROR; + r = PyObject_IsTrue(obj); if (r == -1) return SWIG_ERROR; if (val) *val = r ? true : false; @@ -5424,13 +5595,6 @@ SWIGINTERN char const *ofColor__Sl_unsigned_SS_char_Sg____str__(ofColor_< unsign str << (*self); return str.str().c_str(); } - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - SWIGINTERN float ofColor__Sl_float_Sg__getR(ofColor_< float > *self){return self->r;} SWIGINTERN float ofColor__Sl_float_Sg__getG(ofColor_< float > *self){return self->g;} SWIGINTERN float ofColor__Sl_float_Sg__getB(ofColor_< float > *self){return self->b;} @@ -5515,7 +5679,8 @@ SWIG_AsCharArray(PyObject * obj, char *val, size_t size) char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); if (SWIG_IsOK(res)) { - if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; + /* special case of single char conversion when we don't need space for NUL */ + if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize; if (csize <= size) { if (val) { if (csize) memcpy(val, cptr, csize*sizeof(char)); @@ -5650,8 +5815,8 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM( catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator_incr__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -5683,8 +5848,8 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM( catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator_decr__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -5868,8 +6033,8 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPA arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { @@ -5919,15 +6084,6 @@ SWIGINTERN PyObject *_wrap_IntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyO arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::vector< int >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop" "', argument " "1"" of type '" "std::vector< int > *""'"); } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); try { - result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1);} catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; @@ -5948,6 +6104,22 @@ SWIGINTERN PyObject *_wrap_IntVector___getslice__(PyObject *SWIGUNUSEDPARM(self) resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); } + arg3 = static_cast< std::vector< int >::difference_type >(val3); try { + std_vector_Sl_int_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; std::vector< int >::difference_type arg3 ; std::vector< int,std::allocator< int > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; @@ -5961,48 +6133,33 @@ SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPA if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); } arg3 = static_cast< std::vector< int >::difference_type >(val3); { - std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } arg4 = ptr; } try { - std_vector_Sl_int_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);} + std_vector_Sl_int_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; - std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } - arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); } - arg3 = static_cast< std::vector< int >::difference_type >(val3); try { - std_vector_Sl_int_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_IntVector___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_IntVector___setslice____SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_IntVector___setslice____SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_IntVector___setslice____SWIG_0(self, args);} } } } } fail: + int res = swig::asptr(argv[3], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_IntVector___setslice____SWIG_1(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___setslice__'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type,std::vector< int,std::allocator< int > > const &)\n" - " std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type)\n"); return 0; } + " std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type)\n" + " std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type,std::vector< int,std::allocator< int > > const &)\n"); + return 0; } SWIGINTERN PyObject *_wrap_IntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; @@ -6027,8 +6184,8 @@ SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPAR arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } arg2 = static_cast< std::vector< int >::difference_type >(val2); try { std_vector_Sl_int_Sg____delitem____SWIG_0(arg1,arg2);} - catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -6054,8 +6211,8 @@ SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPAR arg1 = reinterpret_cast< std::vector< int > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { - std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } @@ -6086,12 +6243,12 @@ SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPAR arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_int_Sg____delitem____SWIG_1(arg1,arg2);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_IntVector___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_IntVector___delitem____SWIG_1(self, args);} } } - if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_IntVector___delitem____SWIG_0(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___delitem__'.\n" @@ -6110,12 +6267,12 @@ SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPAR result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg____getitem____SWIG_1((std::vector< int > const *)arg1,arg2);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_int(static_cast< int >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_IntVector___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_IntVector___getitem____SWIG_0(self, args);} } } - if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_IntVector___getitem____SWIG_1(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___getitem__'.\n" @@ -6136,16 +6293,16 @@ SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPAR temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; try { std_vector_Sl_int_Sg____setitem____SWIG_2(arg1,arg2,(int const &)*arg3);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_IntVector___setitem____SWIG_1(self, args);} } } - if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[2], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_IntVector___setitem____SWIG_0(self, args);} } } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_IntVector___setitem____SWIG_2(self, args);} } } } fail: @@ -6155,6 +6312,15 @@ SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *self, PyObject *args) " std::vector< int >::__setitem__(PySliceObject *)\n" " std::vector< int >::__setitem__(std::vector< int >::difference_type,std::vector< int >::value_type const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_IntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); try { + result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::vector< int >::value_type temp2 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -6173,8 +6339,8 @@ SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< int > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail; { - std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'"); } @@ -6195,13 +6361,6 @@ SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObje SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > const *""'"); } arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = ((std::vector< int > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:IntVector_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'"); } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -6215,15 +6374,6 @@ SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObje SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'"); } arg2 = reinterpret_cast< std::vector< int > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< int > > result; - if (!PyArg_ParseTuple(args,(char *)"O:IntVector_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'"); } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = ((std::vector< int > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_int_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< int >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_begin",&obj0)) SWIG_fail; @@ -6256,6 +6406,22 @@ SWIGINTERN PyObject *_wrap_IntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObje arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::allocator< int > > result; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector_get_allocator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = ((std::vector< int > const *)arg1)->get_allocator(); + resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_int_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< int >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< int > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); @@ -6295,7 +6461,7 @@ SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } - } result = (arg1)->erase(arg2); + } result = std_vector_Sl_int_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -6320,18 +6486,18 @@ SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'"); } - } result = (arg1)->erase(arg2,arg3); + } result = std_vector_Sl_int_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_IntVector_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_IntVector_erase__SWIG_0(self, args);} } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); @@ -6354,12 +6520,12 @@ SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_IntVector__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_IntVector__SWIG_2(self, args);} } if (argc == 1) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_IntVector__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -6424,13 +6590,13 @@ SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(sel temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; (arg1)->resize(arg2,(std::vector< int >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_IntVector_resize__SWIG_0(self, args);} } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_IntVector_resize__SWIG_1(self, args);} } } } fail: @@ -6456,7 +6622,7 @@ SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(sel } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); } temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; - result = (arg1)->insert(arg2,(std::vector< int >::value_type const &)*arg3); + result = std_vector_Sl_int_Sg__insert__SWIG_0(arg1,arg2,(int const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -6480,18 +6646,18 @@ SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg3 = static_cast< std::vector< int >::size_type >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IntVector_insert" "', argument " "4"" of type '" "std::vector< int >::value_type""'"); } temp4 = static_cast< std::vector< int >::value_type >(val4); arg4 = &temp4; - (arg1)->insert(arg2,arg3,(std::vector< int >::value_type const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + std_vector_Sl_int_Sg__insert__SWIG_1(arg1,arg2,arg3,(int const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IntVector_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_IntVector_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_IntVector_insert__SWIG_0(self, args);} } } } if (argc == 4) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); @@ -6569,15 +6735,6 @@ SWIGINTERN PyObject *_wrap_FloatVector___len__(PyObject *SWIGUNUSEDPARM(self), P arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = std_vector_Sl_float_Sg____len__((std::vector< float > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::vector< float >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_pop" "', argument " "1"" of type '" "std::vector< float > *""'"); } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); try { - result = (std::vector< float >::value_type)std_vector_Sl_float_Sg__pop(arg1);} catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::difference_type arg2 ; std::vector< float >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; @@ -6599,6 +6756,23 @@ SWIGINTERN PyObject *_wrap_FloatVector___getslice__(PyObject *SWIGUNUSEDPARM(sel resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; + std::vector< float >::difference_type arg2 ; std::vector< float >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; + ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___setslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); } + arg3 = static_cast< std::vector< float >::difference_type >(val3); try { + std_vector_Sl_float_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::difference_type arg2 ; std::vector< float >::difference_type arg3 ; std::vector< float,std::allocator< float > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; @@ -6613,49 +6787,32 @@ SWIGINTERN PyObject *_wrap_FloatVector___setslice____SWIG_0(PyObject *SWIGUNUSED if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); } arg3 = static_cast< std::vector< float >::difference_type >(val3); { - std::vector > *ptr = (std::vector > *)0; + std::vector< float,std::allocator< float > > *ptr = (std::vector< float,std::allocator< float > > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FloatVector___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'"); } arg4 = ptr; } try { - std_vector_Sl_float_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< float,std::allocator< float > > const &)*arg4);} + std_vector_Sl_float_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< float,std::allocator< float > > const &)*arg4);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::difference_type arg2 ; std::vector< float >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; - ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___setslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } - arg2 = static_cast< std::vector< float >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); } - arg3 = static_cast< std::vector< float >::difference_type >(val3); try { - std_vector_Sl_float_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_FloatVector___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_FloatVector___setslice____SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_FloatVector___setslice____SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); - if (_v) { return _wrap_FloatVector___setslice____SWIG_0(self, args);} } } } } fail: + int res = swig::asptr(argv[3], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_FloatVector___setslice____SWIG_1(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector___setslice__'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< float >::__setslice__(std::vector< float >::difference_type,std::vector< float >::difference_type,std::vector< float,std::allocator< float > > const &)\n" - " std::vector< float >::__setslice__(std::vector< float >::difference_type,std::vector< float >::difference_type)\n"); + " std::vector< float >::__setslice__(std::vector< float >::difference_type,std::vector< float >::difference_type)\n" + " std::vector< float >::__setslice__(std::vector< float >::difference_type,std::vector< float >::difference_type,std::vector< float,std::allocator< float > > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_FloatVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::difference_type arg2 ; @@ -6686,7 +6843,8 @@ SWIGINTERN PyObject *_wrap_FloatVector___delitem____SWIG_0(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___delitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } arg2 = static_cast< std::vector< float >::difference_type >(val2); try { std_vector_Sl_float_Sg____delitem____SWIG_0(arg1,arg2);} catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -6712,7 +6870,7 @@ SWIGINTERN PyObject *_wrap_FloatVector___setitem____SWIG_0(PyObject *SWIGUNUSEDP arg1 = reinterpret_cast< std::vector< float > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { - std::vector > *ptr = (std::vector > *)0; + std::vector< float,std::allocator< float > > *ptr = (std::vector< float,std::allocator< float > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FloatVector___setitem__" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > > const &""'"); } if (!ptr) { @@ -6744,12 +6902,12 @@ SWIGINTERN PyObject *_wrap_FloatVector___delitem____SWIG_1(PyObject *SWIGUNUSEDP arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_float_Sg____delitem____SWIG_1(arg1,arg2);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_FloatVector___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_FloatVector___delitem____SWIG_1(self, args);} } } - if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FloatVector___delitem____SWIG_0(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector___delitem__'.\n" @@ -6769,12 +6927,12 @@ SWIGINTERN PyObject *_wrap_FloatVector___getitem____SWIG_1(PyObject *SWIGUNUSEDP result = (std::vector< float >::value_type *) &std_vector_Sl_float_Sg____getitem____SWIG_1((std::vector< float > const *)arg1,arg2);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_FloatVector___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_FloatVector___getitem____SWIG_0(self, args);} } } - if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FloatVector___getitem____SWIG_1(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector___getitem__'.\n" @@ -6797,16 +6955,16 @@ SWIGINTERN PyObject *_wrap_FloatVector___setitem____SWIG_2(PyObject *SWIGUNUSEDP temp3 = static_cast< std::vector< float >::value_type >(val3); arg3 = &temp3; try { std_vector_Sl_float_Sg____setitem____SWIG_2(arg1,arg2,(float const &)*arg3);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_FloatVector___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_FloatVector___setitem____SWIG_1(self, args);} } } - if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_FloatVector___setitem____SWIG_0(self, args);} } } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[2], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_FloatVector___setitem____SWIG_0(self, args);} } } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FloatVector___setitem____SWIG_2(self, args);} } } } fail: @@ -6816,6 +6974,15 @@ SWIGINTERN PyObject *_wrap_FloatVector___setitem__(PyObject *self, PyObject *arg " std::vector< float >::__setitem__(PySliceObject *)\n" " std::vector< float >::__setitem__(std::vector< float >::difference_type,std::vector< float >::value_type const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_FloatVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_pop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_pop" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); try { + result = (std::vector< float >::value_type)std_vector_Sl_float_Sg__pop(arg1);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_float(static_cast< float >(result)); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::vector< float >::value_type temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; @@ -6834,7 +7001,7 @@ SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_FloatVector",&obj0)) SWIG_fail; { - std::vector > *ptr = (std::vector > *)0; + std::vector< float,std::allocator< float > > *ptr = (std::vector< float,std::allocator< float > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float > const &""'"); } if (!ptr) { @@ -6856,13 +7023,6 @@ SWIGINTERN PyObject *_wrap_FloatVector_size(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_size" "', argument " "1"" of type '" "std::vector< float > const *""'"); } arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = ((std::vector< float > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_clear" "', argument " "1"" of type '" "std::vector< float > *""'"); } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -6876,15 +7036,6 @@ SWIGINTERN PyObject *_wrap_FloatVector_swap(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'"); } arg2 = reinterpret_cast< std::vector< float > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< float > > result; - if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_get_allocator" "', argument " "1"" of type '" "std::vector< float > const *""'"); } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = ((std::vector< float > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< float >::allocator_type(static_cast< const std::vector< float >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< float >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_begin",&obj0)) SWIG_fail; @@ -6917,6 +7068,22 @@ SWIGINTERN PyObject *_wrap_FloatVector_rend(PyObject *SWIGUNUSEDPARM(self), PyOb arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_clear" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::allocator< float > > result; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_get_allocator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_get_allocator" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = ((std::vector< float > const *)arg1)->get_allocator(); + resultobj = SWIG_NewPointerObj((new std::vector< float >::allocator_type(static_cast< const std::vector< float >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< float >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_FloatVector",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); @@ -6957,7 +7124,7 @@ SWIGINTERN PyObject *_wrap_FloatVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(se swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } - } result = (arg1)->erase(arg2); + } result = std_vector_Sl_float_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -6983,18 +7150,18 @@ SWIGINTERN PyObject *_wrap_FloatVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(se swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "3"" of type '" "std::vector< float >::iterator""'"); } - } result = (arg1)->erase(arg2,arg3); + } result = std_vector_Sl_float_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_FloatVector_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_FloatVector_erase__SWIG_0(self, args);} } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); @@ -7018,12 +7185,12 @@ SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self result = (std::vector< float > *)new std::vector< float >(arg1,(std::vector< float >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_FloatVector(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_FloatVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_FloatVector__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FloatVector__SWIG_2(self, args);} } if (argc == 1) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FloatVector__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -7090,13 +7257,13 @@ SWIGINTERN PyObject *_wrap_FloatVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(s temp3 = static_cast< std::vector< float >::value_type >(val3); arg3 = &temp3; (arg1)->resize(arg2,(std::vector< float >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_FloatVector_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FloatVector_resize__SWIG_0(self, args);} } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FloatVector_resize__SWIG_1(self, args);} } } } fail: @@ -7122,7 +7289,7 @@ SWIGINTERN PyObject *_wrap_FloatVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(s } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_insert" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); } temp3 = static_cast< std::vector< float >::value_type >(val3); arg3 = &temp3; - result = (arg1)->insert(arg2,(std::vector< float >::value_type const &)*arg3); + result = std_vector_Sl_float_Sg__insert__SWIG_0(arg1,arg2,(float const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_FloatVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -7147,18 +7314,18 @@ SWIGINTERN PyObject *_wrap_FloatVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(s if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FloatVector_insert" "', argument " "4"" of type '" "std::vector< float >::value_type""'"); } temp4 = static_cast< std::vector< float >::value_type >(val4); arg4 = &temp4; - (arg1)->insert(arg2,arg3,(std::vector< float >::value_type const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_FloatVector_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + std_vector_Sl_float_Sg__insert__SWIG_1(arg1,arg2,arg3,(float const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FloatVector_insert__SWIG_0(self, args);} } } } if (argc == 4) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); @@ -7240,15 +7407,6 @@ SWIGINTERN PyObject *_wrap_StringVector___len__(PyObject *SWIGUNUSEDPARM(self), arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = std_vector_Sl_std_string_Sg____len__((std::vector< std::string > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_StringVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::vector< std::string >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_pop" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } - arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); try { result = std_vector_Sl_std_string_Sg__pop(arg1);} - catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StringVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; @@ -7271,6 +7429,24 @@ SWIGINTERN PyObject *_wrap_StringVector___getslice__(PyObject *SWIGUNUSEDPARM(se resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; + int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } + arg3 = static_cast< std::vector< std::string >::difference_type >(val3); try { + std_vector_Sl_std_string_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; std::vector< std::string,std::allocator< std::string > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -7287,50 +7463,32 @@ SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_0(PyObject *SWIGUNUSE if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } arg3 = static_cast< std::vector< std::string >::difference_type >(val3); { - std::vector > *ptr = (std::vector > *)0; + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StringVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } arg4 = ptr; } try { - std_vector_Sl_std_string_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< std::string,std::allocator< std::string > > const &)*arg4);} + std_vector_Sl_std_string_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::string,std::allocator< std::string > > const &)*arg4);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; - std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; - int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } - arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } - arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } - arg3 = static_cast< std::vector< std::string >::difference_type >(val3); try { - std_vector_Sl_std_string_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_StringVector___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_StringVector___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_StringVector___setslice____SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + return _wrap_StringVector___setslice____SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = swig::asptr(argv[3], (std::vector >**)(0)); - _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector___setslice____SWIG_0(self, args);} } } } } fail: + int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector___setslice____SWIG_1(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector___setslice__'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type,std::vector< std::string,std::allocator< std::string > > const &)\n" - " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type)\n"); + " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type)\n" + " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type,std::vector< std::string,std::allocator< std::string > > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_StringVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; @@ -7363,7 +7521,8 @@ SWIGINTERN PyObject *_wrap_StringVector___delitem____SWIG_0(PyObject *SWIGUNUSED SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___delitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); try { std_vector_Sl_std_string_Sg____delitem____SWIG_0(arg1,arg2);} catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StringVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -7391,7 +7550,7 @@ SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_0(PyObject *SWIGUNUSED arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { - std::vector > *ptr = (std::vector > *)0; + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } if (!ptr) { @@ -7425,12 +7584,12 @@ SWIGINTERN PyObject *_wrap_StringVector___delitem____SWIG_1(PyObject *SWIGUNUSED arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_std_string_Sg____delitem____SWIG_1(arg1,arg2);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_StringVector___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_StringVector___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_StringVector___delitem____SWIG_1(self, args);} } } - if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_StringVector___delitem____SWIG_0(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector___delitem__'.\n" @@ -7452,12 +7611,12 @@ SWIGINTERN PyObject *_wrap_StringVector___getitem____SWIG_1(PyObject *SWIGUNUSED result = (std::vector< std::string >::value_type *) &std_vector_Sl_std_string_Sg____getitem____SWIG_1((std::vector< std::string > const *)arg1,arg2);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_StringVector___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_StringVector___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_StringVector___getitem____SWIG_0(self, args);} } } - if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_StringVector___getitem____SWIG_1(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector___getitem__'.\n" @@ -7482,16 +7641,16 @@ SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_2(PyObject *SWIGUNUSED arg3 = ptr; } try { std_vector_Sl_std_string_Sg____setitem____SWIG_2(arg1,arg2,(std::string const &)*arg3);} catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } -SWIGINTERN PyObject *_wrap_StringVector___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_StringVector___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_StringVector___setitem____SWIG_1(self, args);} } } - if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); + int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector___setitem____SWIG_0(self, args);} } } } - if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector___setitem____SWIG_2(self, args);} } } } fail: @@ -7501,6 +7660,15 @@ SWIGINTERN PyObject *_wrap_StringVector___setitem__(PyObject *self, PyObject *ar " std::vector< std::string >::__setitem__(PySliceObject *)\n" " std::vector< std::string >::__setitem__(std::vector< std::string >::difference_type,std::vector< std::string >::value_type const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_StringVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_pop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_pop" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); try { result = std_vector_Sl_std_string_Sg__pop(arg1);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StringVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -7523,7 +7691,7 @@ SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_0(PyObject *SWIGUNUSEDPARM(sel SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_StringVector",&obj0)) SWIG_fail; { - std::vector > *ptr = (std::vector > *)0; + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); } if (!ptr) { @@ -7549,14 +7717,6 @@ SWIGINTERN PyObject *_wrap_StringVector_size(PyObject *SWIGUNUSEDPARM(self), PyO SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_size" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = ((std::vector< std::string > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_StringVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:StringVector_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_clear" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } - arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StringVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -7572,17 +7732,6 @@ SWIGINTERN PyObject *_wrap_StringVector_swap(PyObject *SWIGUNUSEDPARM(self), PyO SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'"); } arg2 = reinterpret_cast< std::vector< std::string > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_StringVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< std::string > > result; - if (!PyArg_ParseTuple(args,(char *)"O:StringVector_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } - arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); - result = ((std::vector< std::string > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< std::string >::allocator_type(static_cast< const std::vector< std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__string_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StringVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_begin",&obj0)) SWIG_fail; @@ -7621,6 +7770,25 @@ SWIGINTERN PyObject *_wrap_StringVector_rend(PyObject *SWIGUNUSEDPARM(self), PyO arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_clear" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::allocator< std::string > > result; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_get_allocator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = ((std::vector< std::string > const *)arg1)->get_allocator(); + resultobj = SWIG_NewPointerObj((new std::vector< std::string >::allocator_type(static_cast< const std::vector< std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__string_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_StringVector",&obj0)) SWIG_fail; @@ -7667,7 +7835,7 @@ SWIGINTERN PyObject *_wrap_StringVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(s swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } - } result = (arg1)->erase(arg2); + } result = std_vector_Sl_std_string_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StringVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -7694,18 +7862,18 @@ SWIGINTERN PyObject *_wrap_StringVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(s swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'"); } - } result = (arg1)->erase(arg2,arg3); + } result = std_vector_Sl_std_string_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_StringVector_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_StringVector_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_StringVector_erase__SWIG_0(self, args);} } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); @@ -7732,12 +7900,12 @@ SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_3(PyObject *SWIGUNUSEDPARM(sel result = (std::vector< std::string > *)new std::vector< std::string >(arg1,(std::vector< std::string >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_new_StringVector(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_StringVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_StringVector__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_StringVector__SWIG_2(self, args);} } if (argc == 1) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_StringVector__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -7818,13 +7986,13 @@ SWIGINTERN PyObject *_wrap_StringVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } arg3 = ptr; } (arg1)->resize(arg2,(std::vector< std::string >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } -SWIGINTERN PyObject *_wrap_StringVector_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_StringVector_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_StringVector_resize__SWIG_0(self, args);} } } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector_resize__SWIG_1(self, args);} } } } fail: @@ -7853,7 +8021,7 @@ SWIGINTERN PyObject *_wrap_StringVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } - arg3 = ptr; } result = (arg1)->insert(arg2,(std::vector< std::string >::value_type const &)*arg3); + arg3 = ptr; } result = std_vector_Sl_std_string_Sg__insert__SWIG_0(arg1,arg2,(std::string const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } @@ -7882,18 +8050,19 @@ SWIGINTERN PyObject *_wrap_StringVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StringVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); } - arg4 = ptr; } (arg1)->insert(arg2,arg3,(std::vector< std::string >::value_type const &)*arg4); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_StringVector_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + arg4 = ptr; } std_vector_Sl_std_string_Sg__insert__SWIG_1(arg1,arg2,arg3,(std::string const &)*arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: + if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector_insert__SWIG_0(self, args);} } } } if (argc == 4) { int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); @@ -7941,10280 +8110,13382 @@ SWIGINTERN PyObject *StringVector_swigregister(PyObject *SWIGUNUSEDPARM(self), P return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFbo")) SWIG_fail; result = (ofFbo *)new ofFbo(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFbo *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFbo",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFbo, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo const &""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofFbo *)new ofFbo((ofFbo const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFbo(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofFbo__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFbo__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFbo'.\n" - " Possible C/C++ prototypes are:\n" " ofFbo::ofFbo()\n" " ofFbo::ofFbo(ofFbo const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_delete_ofFbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFbo",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFbo" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFbo_allocate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFbo_allocate" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->allocate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_allocate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->allocate(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofFbo::Settings arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFbo__Settings, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "ofFbo::Settings""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "ofFbo::Settings""'"); } - else { ofFbo::Settings * temp = reinterpret_cast< ofFbo::Settings * >(argp2); arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->allocate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_allocate",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->allocate(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_allocate(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_allocate__SWIG_4(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFbo__Settings, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_allocate__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_allocate__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_allocate__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_allocate__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_allocate'.\n" - " Possible C/C++ prototypes are:\n" " ofFbo::allocate(int,int,int,int)\n" " ofFbo::allocate(int,int,int)\n" - " ofFbo::allocate(int,int)\n" " ofFbo::allocate(ofFbo::Settings)\n" " ofFbo::allocate()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFbo_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_isAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_isAllocated" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)(arg1)->isAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_draw",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFbo_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFbo_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_draw__SWIG_0_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_draw__SWIG_2(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_draw'.\n" - " Possible C/C++ prototypes are:\n" " draw(ofPoint const &)\n" " draw(ofRectangle const &)\n" - " draw(ofPoint const &,float,float)\n" " ofFbo::draw(float,float)\n" " ofFbo::draw(float,float,float,float)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofFbo_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setAnchorPercent" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setAnchorPoint" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_resetAnchor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_resetAnchor" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_setDefaultTextureIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setDefaultTextureIndex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setDefaultTextureIndex" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setDefaultTextureIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setDefaultTextureIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getDefaultTextureIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDefaultTextureIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDefaultTextureIndex" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (int)(arg1)->getDefaultTextureIndex(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTextureReference",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofTexture *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTextureReference",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTextureReference" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (ofTexture *) &(arg1)->getTextureReference(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_getTextureReference__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_getTextureReference__SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_getTextureReference'.\n" - " Possible C/C++ prototypes are:\n" " ofFbo::getTextureReference()\n" " ofFbo::getTextureReference(int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFbo_getDepthTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthTexture" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getDepthTexture(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setUseTexture",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setUseTexture" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setUseTexture" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_begin",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_begin" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_begin" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->begin(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_begin" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_begin(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_begin__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_begin__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_begin'.\n" - " Possible C/C++ prototypes are:\n" " ofFbo::begin(bool)\n" " ofFbo::begin()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFbo_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_end" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } - arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } - arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofShortPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } - arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } - arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofFloatPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } - arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } - arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_readToPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFbo_readToPixels__SWIG_1(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFbo_readToPixels__SWIG_3(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { return _wrap_ofFbo_readToPixels__SWIG_5(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_readToPixels__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_readToPixels__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFbo_readToPixels__SWIG_2(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_readToPixels'.\n" - " Possible C/C++ prototypes are:\n" " ofFbo::readToPixels(ofPixels &,int)\n" " ofFbo::readToPixels(ofPixels &)\n" - " ofFbo::readToPixels(ofShortPixels &,int)\n" " ofFbo::readToPixels(ofShortPixels &)\n" - " ofFbo::readToPixels(ofFloatPixels &,int)\n" " ofFbo::readToPixels(ofFloatPixels &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFbo_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getWidth" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (float)(arg1)->getWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getHeight" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (float)(arg1)->getHeight(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_bind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_bind" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_unbind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_unbind" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_checkStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_checkStatus",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_checkStatus" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)(arg1)->checkStatus(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_createAndAttachTexture",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachTexture" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachTexture" "', argument " "2"" of type '" "GLenum""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachTexture" "', argument " "2"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_createAndAttachTexture" "', argument " "3"" of type '" "GLenum""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachTexture" "', argument " "3"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } - (arg1)->createAndAttachTexture(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_attachTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; ofTexture *arg2 = 0 ; GLenum arg3 ; GLenum arg4 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_attachTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_attachTexture" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_attachTexture" "', argument " "2"" of type '" "ofTexture &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "2"" of type '" "ofTexture &""'"); } - arg2 = reinterpret_cast< ofTexture * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_attachTexture" "', argument " "3"" of type '" "GLenum""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "3"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_attachTexture" "', argument " "4"" of type '" "GLenum""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "4"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - (arg1)->attachTexture(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachRenderbuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - GLuint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_createAndAttachRenderbuffer",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "2"" of type '" "GLenum""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "2"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "3"" of type '" "GLenum""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "3"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } - result = (arg1)->createAndAttachRenderbuffer(arg2,arg3); - resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLint arg3 ; GLenum arg4 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_createAndAttachDepthStencilTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } - ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "3"" of type '" "GLint""'"); } - arg3 = static_cast< GLint >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - (arg1)->createAndAttachDepthStencilTexture(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLint arg3 ; GLenum arg4 ; GLenum arg5 ; GLenum arg6 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; - void *argp5 ; int res5 = 0 ; void *argp6 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFbo_createAndAttachDepthStencilTexture",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } - ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "3"" of type '" "GLint""'"); } - arg3 = static_cast< GLint >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } { - res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "5"" of type '" "GLenum""'"); } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "5"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } { - res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "6"" of type '" "GLenum""'"); } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "6"" of type '" "GLenum""'"); } - else { GLenum * temp = reinterpret_cast< GLenum * >(argp6); arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } - (arg1)->createAndAttachDepthStencilTexture(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture(PyObject *self, PyObject *args) { int argc; - PyObject *argv[7]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_1(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_createAndAttachDepthStencilTexture'.\n" - " Possible C/C++ prototypes are:\n" " ofFbo::createAndAttachDepthStencilTexture(GLenum,GLint,GLenum)\n" - " ofFbo::createAndAttachDepthStencilTexture(GLenum,GLint,GLenum,GLenum,GLenum)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFbo_getNumTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getNumTextures",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getNumTextures" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (int)(arg1)->getNumTextures(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_setActiveDrawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setActiveDrawBuffer",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setActiveDrawBuffer" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setActiveDrawBuffer" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setActiveDrawBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_setActiveDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; std::vector< int > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setActiveDrawBuffers",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); { - std::vector > *ptr = (std::vector > *)0; res2 = swig::asptr(obj1, &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "2"" of type '" "std::vector< int > const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "2"" of type '" "std::vector< int > const &""'"); } - arg2 = ptr; } (arg1)->setActiveDrawBuffers((std::vector< int > const &)*arg2); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_activateAllDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_activateAllDrawBuffers",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_activateAllDrawBuffers" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->activateAllDrawBuffers(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getFbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getFbo",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getFbo" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (arg1)->getFbo(); - resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_checkGLSupport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - bool result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_checkGLSupport")) SWIG_fail; result = (bool)ofFbo::checkGLSupport(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_maxColorAttachments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxColorAttachments")) SWIG_fail; - result = (int)ofFbo::maxColorAttachments(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_maxDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxDrawBuffers")) SWIG_fail; result = (int)ofFbo::maxDrawBuffers(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_maxSamples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxSamples")) SWIG_fail; result = (int)ofFbo::maxSamples(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getDepthBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthBuffer" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (arg1)->getDepthBuffer(); - resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFbo_getStencilBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getStencilBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getStencilBuffer" "', argument " "1"" of type '" "ofFbo *""'"); } - arg1 = reinterpret_cast< ofFbo * >(argp1); result = (arg1)->getStencilBuffer(); - resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofFbo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofFbo, SWIG_NewClientData(obj)); +SWIGINTERN PyObject *OF_VERSION_MAJOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_MAJOR",SWIG_From_int(static_cast< int >(0))); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_ofGetUsingArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetUsingArbTex")) SWIG_fail; result = (bool)ofGetUsingArbTex(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnableArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEnableArbTex")) SWIG_fail; ofEnableArbTex(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisableArbTex")) SWIG_fail; ofDisableArbTex(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetUsingNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetUsingNormalizedTexCoords")) SWIG_fail; - result = (bool)ofGetUsingNormalizedTexCoords(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnableNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofEnableNormalizedTexCoords")) SWIG_fail; - ofEnableNormalizedTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofDisableNormalizedTexCoords")) SWIG_fail; - ofDisableNormalizedTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofTextureData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTextureData")) SWIG_fail; - result = (ofTextureData *)new ofTextureData(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_textureID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_textureID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureID_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_textureID_set" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); if (arg1) (arg1)->textureID = arg2; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_textureID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_textureID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureID_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (unsigned int) ((arg1)->textureID); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_textureTarget_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_textureTarget_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureTarget_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_textureTarget_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->textureTarget = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_textureTarget_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_textureTarget_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureTarget_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (int) ((arg1)->textureTarget); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_glTypeInternal_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_glTypeInternal_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_glTypeInternal_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_glTypeInternal_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->glTypeInternal = arg2; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_glTypeInternal_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_glTypeInternal_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_glTypeInternal_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (int) ((arg1)->glTypeInternal); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_t_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_t_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_t_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_t = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_t_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_t_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_t_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_t); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_u_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_u_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_u_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_u_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_u = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_u_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_u_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_u_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_u); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_w_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_w_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_w_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_w_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_w = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_w_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_w_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_w_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_w); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_h_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_h_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_h_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_h = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_tex_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_h_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_h_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_h); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_width_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_width_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_width_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_width_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_width_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->width); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_height_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_height_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_height_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_height_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->height); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_bFlipTexture_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bFlipTexture_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bFlipTexture_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bFlipTexture_set" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bFlipTexture = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_bFlipTexture_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bFlipTexture_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bFlipTexture_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->bFlipTexture); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_compressionType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_compressionType_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_compressionType_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_compressionType_set" "', argument " "2"" of type '" "ofTexCompression""'"); } - arg2 = static_cast< ofTexCompression >(val2); if (arg1) (arg1)->compressionType = arg2; resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_compressionType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofTexCompression result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_compressionType_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_compressionType_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (ofTexCompression) ((arg1)->compressionType); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_bAllocated_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bAllocated_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bAllocated_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bAllocated_set" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bAllocated = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_bAllocated_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bAllocated_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bAllocated_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->bAllocated); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_bUseExternalTextureID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bUseExternalTextureID_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bUseExternalTextureID_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bUseExternalTextureID_set" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bUseExternalTextureID = arg2; resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_bUseExternalTextureID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bUseExternalTextureID_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bUseExternalTextureID_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->bUseExternalTextureID); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_textureMatrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; ofMatrix4x4 *arg2 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_textureMatrix_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureMatrix_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTextureData_textureMatrix_set" "', argument " "2"" of type '" "ofMatrix4x4 *""'"); } - arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); if (arg1) (arg1)->textureMatrix = *arg2; resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_textureMatrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_textureMatrix_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureMatrix_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (ofMatrix4x4 *)& ((arg1)->textureMatrix); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_useTextureMatrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_useTextureMatrix_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_useTextureMatrix_set" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_useTextureMatrix_set" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); if (arg1) (arg1)->useTextureMatrix = arg2; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTextureData_useTextureMatrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_useTextureMatrix_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_useTextureMatrix_get" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->useTextureMatrix); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofTextureData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTextureData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTextureData" "', argument " "1"" of type '" "ofTextureData *""'"); } - arg1 = reinterpret_cast< ofTextureData * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *ofTextureData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofTextureData, SWIG_NewClientData(obj)); + +SWIGINTERN PyObject *OF_VERSION_MINOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_MINOR",SWIG_From_int(static_cast< int >(9))); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_ofEnableTextureEdgeHack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEnableTextureEdgeHack")) SWIG_fail; ofEnableTextureEdgeHack(); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableTextureEdgeHack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisableTextureEdgeHack")) SWIG_fail; ofDisableTextureEdgeHack(); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofIsTextureEdgeHackEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - bool result; if (!PyArg_ParseTuple(args,(char *)":ofIsTextureEdgeHackEnabled")) SWIG_fail; - result = (bool)ofIsTextureEdgeHackEnabled(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTexture")) SWIG_fail; - result = (ofTexture *)new ofTexture(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofTexture, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture const &""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTexture *)new ofTexture((ofTexture const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofTexture(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofTexture__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofTexture__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofTexture'.\n" - " Possible C/C++ prototypes are:\n" " ofTexture::ofTexture()\n" " ofTexture::ofTexture(ofTexture const &)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_delete_ofTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTexture" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTextureData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } - arg2 = reinterpret_cast< ofTextureData * >(argp2); (arg1)->allocate((ofTextureData const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTextureData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } - arg2 = reinterpret_cast< ofTextureData * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->allocate((ofTextureData const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; - int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_allocate" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->allocate(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "bool""'"); } - arg5 = static_cast< bool >(val5); (arg1)->allocate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; - int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "bool""'"); } - arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_allocate" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_allocate" "', argument " "7"" of type '" "int""'"); } - arg7 = static_cast< int >(val7); (arg1)->allocate(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } - arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->allocate((ofPixels const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } - arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->allocate((ofPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->allocate((ofShortPixels const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->allocate((ofShortPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->allocate((ofFloatPixels const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->allocate((ofFloatPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_allocate(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofTextureData, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_allocate__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_allocate__SWIG_6(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_allocate__SWIG_8(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_allocate__SWIG_10(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_9(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_7(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_11(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofTextureData, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_4(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_allocate__SWIG_5(self, args);} } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_allocate'.\n" - " Possible C/C++ prototypes are:\n" " ofTexture::allocate(ofTextureData const &)\n" - " ofTexture::allocate(ofTextureData const &,int,int)\n" " ofTexture::allocate(int,int,int)\n" - " ofTexture::allocate(int,int,int,int,int)\n" " ofTexture::allocate(int,int,int,bool)\n" - " ofTexture::allocate(int,int,int,bool,int,int)\n" " ofTexture::allocate(ofPixels const &)\n" - " ofTexture::allocate(ofPixels const &,bool)\n" " ofTexture::allocate(ofShortPixels const &)\n" - " ofTexture::allocate(ofShortPixels const &,bool)\n" " ofTexture::allocate(ofFloatPixels const &)\n" - " ofTexture::allocate(ofFloatPixels const &,bool)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofTexture_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_clear" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_setUseExternalTextureID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; GLuint arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setUseExternalTextureID",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setUseExternalTextureID" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLuint, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setUseExternalTextureID" "', argument " "2"" of type '" "GLuint""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setUseExternalTextureID" "', argument " "2"" of type '" "GLuint""'"); } - else { GLuint * temp = reinterpret_cast< GLuint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } - (arg1)->setUseExternalTextureID(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; unsigned char *arg2 = (unsigned char *) (unsigned char *)0 ; int arg3 ; int arg4 ; - int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "unsigned char const *const""'"); } - arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->loadData((unsigned char const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "unsigned short const *""'"); } - arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->loadData((unsigned short const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; - int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "float const *""'"); } - arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->loadData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } - arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->loadData((ofPixels const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->loadData((ofShortPixels const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->loadData((ofFloatPixels const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } - arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->loadData((ofPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } - arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->loadData((ofShortPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } - arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->loadData((ofFloatPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadData(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_loadData__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_loadData__SWIG_4(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_loadData__SWIG_5(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_loadData__SWIG_6(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_loadData__SWIG_7(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_loadData__SWIG_8(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_loadData__SWIG_0(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_loadData__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_loadData__SWIG_2(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_loadData'.\n" - " Possible C/C++ prototypes are:\n" " ofTexture::loadData(unsigned char const *const,int,int,int)\n" - " ofTexture::loadData(unsigned short const *,int,int,int)\n" " ofTexture::loadData(float const *,int,int,int)\n" - " ofTexture::loadData(ofPixels const &)\n" " ofTexture::loadData(ofShortPixels const &)\n" - " ofTexture::loadData(ofFloatPixels const &)\n" " ofTexture::loadData(ofPixels const &,int)\n" - " ofTexture::loadData(ofShortPixels const &,int)\n" " ofTexture::loadData(ofFloatPixels const &,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofTexture_setRGToRGBASwizzles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setRGToRGBASwizzles",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setRGToRGBASwizzles" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setRGToRGBASwizzles" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setRGToRGBASwizzles(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_loadScreenData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadScreenData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadScreenData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_loadScreenData" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadScreenData" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadScreenData" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadScreenData" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->loadScreenData(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAnchorPercent" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAnchorPoint" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_resetAnchor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_resetAnchor" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; ofPoint *arg5 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; - int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "ofPoint const &""'"); } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "5"" of type '" "ofPoint const &""'"); } - arg5 = reinterpret_cast< ofPoint * >(argp5); - (arg1)->draw((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,(ofPoint const &)*arg5); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_draw",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_draw" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->draw(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_draw__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_draw__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_draw__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_draw__SWIG_4(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_draw__SWIG_5(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_draw'.\n" - " Possible C/C++ prototypes are:\n" " draw(ofPoint const &)\n" " draw(ofRectangle const &)\n" - " draw(ofPoint const &,float,float)\n" - " ofTexture::draw(ofPoint const &,ofPoint const &,ofPoint const &,ofPoint const &)\n" " ofTexture::draw(float,float)\n" - " ofTexture::draw(float,float,float)\n" " ofTexture::draw(float,float,float,float)\n" - " ofTexture::draw(float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; - float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofTexture_drawSubsection" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_drawSubsection__SWIG_2(self, args);} } } } } } } } } } if (argc == 10) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTexture_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_drawSubsection'.\n" - " Possible C/C++ prototypes are:\n" " ofTexture::drawSubsection(float,float,float,float,float,float)\n" - " ofTexture::drawSubsection(float,float,float,float,float,float,float)\n" - " ofTexture::drawSubsection(float,float,float,float,float,float,float,float)\n" - " ofTexture::drawSubsection(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } - arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } - arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } - arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_readToPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_0(self, args);} } } if (argc == 2) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); - if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_1(self, args);} } } if (argc == 2) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); - if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_2(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_readToPixels'.\n" - " Possible C/C++ prototypes are:\n" " ofTexture::readToPixels(ofPixels &)\n" - " ofTexture::readToPixels(ofShortPixels &)\n" " ofTexture::readToPixels(ofFloatPixels &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofTexture_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_bind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bind" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_unbind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_unbind" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_getCoordFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_getCoordFromPoint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getCoordFromPoint" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getCoordFromPoint" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getCoordFromPoint" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (arg1)->getCoordFromPoint(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_getCoordFromPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_getCoordFromPercent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getCoordFromPercent" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getCoordFromPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getCoordFromPercent" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (arg1)->getCoordFromPercent(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_setTextureWrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; GLint arg2 ; GLint arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setTextureWrap",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureWrap" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setTextureWrap" "', argument " "2"" of type '" "GLint""'"); } - arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setTextureWrap" "', argument " "3"" of type '" "GLint""'"); } - arg3 = static_cast< GLint >(val3); (arg1)->setTextureWrap(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_setTextureMinMagFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; GLint arg2 ; GLint arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setTextureMinMagFilter",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "2"" of type '" "GLint""'"); } - arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "3"" of type '" "GLint""'"); } - arg3 = static_cast< GLint >(val3); (arg1)->setTextureMinMagFilter(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setCompression",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setCompression" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } - arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_bAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bAllocated" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)(arg1)->bAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_isAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_isAllocated" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)(arg1)->isAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_getTextureData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureData" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *) &(arg1)->getTextureData(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_getTextureData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureData" "', argument " "1"" of type '" "ofTexture const *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *) &((ofTexture const *)arg1)->getTextureData(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_getTextureData(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_getTextureData__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTexture_getTextureData__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_getTextureData'.\n" - " Possible C/C++ prototypes are:\n" " ofTexture::getTextureData()\n" " ofTexture::getTextureData() const\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofTexture_texData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_texData_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_texData_set" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofTextureData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_texData_set" "', argument " "2"" of type '" "ofTextureData *""'"); } - arg2 = reinterpret_cast< ofTextureData * >(argp2); if (arg1) (arg1)->texData = *arg2; resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_texData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTextureData *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_texData_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_texData_get" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *)& ((arg1)->texData); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getHeight" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (float)(arg1)->getHeight(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTexture_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getWidth" "', argument " "1"" of type '" "ofTexture *""'"); } - arg1 = reinterpret_cast< ofTexture * >(argp1); result = (float)(arg1)->getWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofTexture_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofTexture, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofImage")) SWIG_fail; - result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofPixels_< unsigned char > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofFile const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofFile const &""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); - result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofFile const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_allocate" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } - arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofImage_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_clear" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > const &""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofImage_< unsigned char > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofImage__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofImage__SWIG_1(self, args);} } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofImage__SWIG_2(self, args);} } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofImage__SWIG_4(self, args);} } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofImage__SWIG_3(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::ofImage_()\n" - " ofImage_< unsigned char >::ofImage_(ofPixels_< unsigned char > const &)\n" - " ofImage_< unsigned char >::ofImage_(ofFile const &)\n" " ofImage_< unsigned char >::ofImage_(std::string const &)\n" - " ofImage_< unsigned char >::ofImage_(ofImage_< unsigned char > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setUseTexture",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_isUsingTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (bool)(arg1)->isUsingTexture(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_getTextureReference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; ofTexture *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTextureReference",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofImage_bind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofImage_unbind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->unbind(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_loadImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); - if (_v) { return _wrap_ofImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofImage_loadImage__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_loadImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::loadImage(std::string)\n" - " ofImage_< unsigned char >::loadImage(ofBuffer const &)\n" " ofImage_< unsigned char >::loadImage(ofFile const &)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; - void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_saveImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); - if (_v) { return _wrap_ofImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_saveImage__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_saveImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::saveImage(std::string,ofImageQualityType)\n" - " ofImage_< unsigned char >::saveImage(std::string)\n" - " ofImage_< unsigned char >::saveImage(ofBuffer &,ofImageQualityType)\n" - " ofImage_< unsigned char >::saveImage(ofBuffer &)\n" - " ofImage_< unsigned char >::saveImage(ofFile const &,ofImageQualityType)\n" - " ofImage_< unsigned char >::saveImage(ofFile const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setCompression",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setCompression" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } - arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_getPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (unsigned char *)(arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_getPixelsRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixelsRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - result = (ofPixels_< unsigned char > *) &(arg1)->getPixelsRef(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_getColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_getColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ((ofImage_< unsigned char > const *)arg1)->getColor(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; - ofColor_< unsigned char > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } - arg4 = reinterpret_cast< ofColor_< unsigned char > * >(argp4); - (arg1)->setColor(arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; ofColor_< unsigned char > *arg3 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } - arg3 = reinterpret_cast< ofColor_< unsigned char > * >(argp3); - (arg1)->setColor(arg2,(ofColor_< unsigned char > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->setColor((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofImage_setColor__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_setColor'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::setColor(int,int,ofColor_< unsigned char > const &)\n" - " ofImage_< unsigned char >::setColor(int,ofColor_< unsigned char > const &)\n" - " ofImage_< unsigned char >::setColor(ofColor_< unsigned char > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; - int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } - arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } - arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } - arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; - ofPixels_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setFromPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); - (arg1)->setFromPixels((ofPixels_< unsigned char > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setFromPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_setFromPixels'.\n" - " Possible C/C++ prototypes are:\n" - " ofImage_< unsigned char >::setFromPixels(unsigned char const *,int,int,ofImageType,bool)\n" - " ofImage_< unsigned char >::setFromPixels(unsigned char const *,int,int,ofImageType)\n" - " ofImage_< unsigned char >::setFromPixels(ofPixels_< unsigned char > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setImageType",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setImageType" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } - arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_resize" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_grabScreen" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_grabScreen" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_grabScreen" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_grabScreen" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_grabScreen" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_crop" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_crop" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_crop" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_crop" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_crop" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofImage_< unsigned char > *arg2 = 0 ; int arg3 ; - int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_cropFrom" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned char > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned char > &""'"); } - arg2 = reinterpret_cast< ofImage_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_cropFrom" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_cropFrom" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_cropFrom" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_cropFrom" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_rotate90",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_rotate90" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_rotate90" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; - bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_mirror" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_mirror" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_mirror" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofImage_update",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_update" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofImage_resetAnchor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_draw" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->draw(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_draw__SWIG_4(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_draw'.\n" - " Possible C/C++ prototypes are:\n" " draw(ofPoint const &)\n" " draw(ofRectangle const &)\n" - " draw(ofPoint const &,float,float)\n" " ofImage_< unsigned char >::draw(float,float)\n" - " ofImage_< unsigned char >::draw(float,float,float)\n" " ofImage_< unsigned char >::draw(float,float,float,float)\n" - " ofImage_< unsigned char >::draw(float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; - float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; - float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_drawSubsection(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } if (argc == 10) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_drawSubsection'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float)\n" - " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float)\n" - " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float,float)\n" - " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getHeight" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (float)(arg1)->getHeight(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getWidth" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (float)(arg1)->getWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_bAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bAllocated" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (bool)(arg1)->bAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_isAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_isAllocated" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (bool)(arg1)->isAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_reloadTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofImage_reloadTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_reloadTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->reloadTexture(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_width_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_width_set" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_width_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_width_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_width_get" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (int) ((arg1)->width); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_height_set" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_height_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_height_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_height_get" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (int) ((arg1)->height); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_bpp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_bpp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bpp_set" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_bpp_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->bpp = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_bpp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_bpp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bpp_get" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (int) ((arg1)->bpp); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_type_set" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_type_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->type = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofImage_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_type_get" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (int) ((arg1)->type); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFloatImage")) SWIG_fail; - result = (ofImage_< float > *)new ofImage_< float >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofFloatImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFloatImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - result = (ofImage_< float > *)new ofImage_< float >((ofPixels_< float > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofFile const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofFile const &""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (ofImage_< float > *)new ofImage_< float >((ofFile const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (ofImage_< float > *)new ofImage_< float >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_allocate" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } - arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_clear" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > const &""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); - result = (ofImage_< float > *)new ofImage_< float >((ofImage_< float > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofFloatImage__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFloatImage__SWIG_1(self, args);} } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFloatImage__SWIG_2(self, args);} } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFloatImage__SWIG_4(self, args);} } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFloatImage__SWIG_3(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< float >::ofImage_()\n" - " ofImage_< float >::ofImage_(ofPixels_< float > const &)\n" " ofImage_< float >::ofImage_(ofFile const &)\n" - " ofImage_< float >::ofImage_(std::string const &)\n" " ofImage_< float >::ofImage_(ofImage_< float > const &)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setUseTexture",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_isUsingTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)(arg1)->isUsingTexture(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_getTextureReference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; ofTexture *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTextureReference",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_bind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bind" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_unbind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_unbind" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_loadImage__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_loadImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< float >::loadImage(std::string)\n" - " ofImage_< float >::loadImage(ofBuffer const &)\n" " ofImage_< float >::loadImage(ofFile const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; - void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); - if (_v) { return _wrap_ofFloatImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_saveImage__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_saveImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< float >::saveImage(std::string,ofImageQualityType)\n" - " ofImage_< float >::saveImage(std::string)\n" " ofImage_< float >::saveImage(ofBuffer &,ofImageQualityType)\n" - " ofImage_< float >::saveImage(ofBuffer &)\n" " ofImage_< float >::saveImage(ofFile const &,ofImageQualityType)\n" - " ofImage_< float >::saveImage(ofFile const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setCompression",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setCompression" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } - arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_getPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (float *)(arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_getPixelsRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofPixels_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixelsRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofPixels_< float > *) &(arg1)->getPixelsRef(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getColor" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_getColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_getColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ((ofImage_< float > const *)arg1)->getColor(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; - ofColor_< float > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatImage_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } - arg4 = reinterpret_cast< ofColor_< float > * >(argp4); (arg1)->setColor(arg2,arg3,(ofColor_< float > const &)*arg4); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; ofColor_< float > *arg3 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } - arg3 = reinterpret_cast< ofColor_< float > * >(argp3); (arg1)->setColor(arg2,(ofColor_< float > const &)*arg3); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->setColor((ofColor_< float > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_setColor__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_setColor'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< float >::setColor(int,int,ofColor_< float > const &)\n" - " ofImage_< float >::setColor(int,ofColor_< float > const &)\n" - " ofImage_< float >::setColor(ofColor_< float > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; - ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } - arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } - arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; - ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } - arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setFromPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< float > const &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); (arg1)->setFromPixels((ofPixels_< float > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_setFromPixels'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< float >::setFromPixels(float const *,int,int,ofImageType,bool)\n" - " ofImage_< float >::setFromPixels(float const *,int,int,ofImageType)\n" - " ofImage_< float >::setFromPixels(ofPixels_< float > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setImageType",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setImageType" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } - arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_resize" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_grabScreen" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_grabScreen" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_grabScreen" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_grabScreen" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_grabScreen" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_crop" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_crop" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_crop" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_crop" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_crop" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofImage_< float > *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_cropFrom" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_cropFrom" "', argument " "2"" of type '" "ofImage_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_cropFrom" "', argument " "2"" of type '" "ofImage_< float > &""'"); } - arg2 = reinterpret_cast< ofImage_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_cropFrom" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_cropFrom" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_cropFrom" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_cropFrom" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_rotate90",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_rotate90" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_rotate90" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_mirror" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_mirror" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_mirror" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_update",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_update" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_resetAnchor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_draw" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->draw(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_draw__SWIG_4(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_draw'.\n" - " Possible C/C++ prototypes are:\n" " draw(ofPoint const &)\n" " draw(ofRectangle const &)\n" - " draw(ofPoint const &,float,float)\n" " ofImage_< float >::draw(float,float)\n" - " ofImage_< float >::draw(float,float,float)\n" " ofImage_< float >::draw(float,float,float,float)\n" - " ofImage_< float >::draw(float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; - float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; - float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; - float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; - float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofFloatImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; - float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; - int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofFloatImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofFloatImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } - if (argc == 10) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_drawSubsection'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< float >::drawSubsection(float,float,float,float,float,float)\n" - " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float)\n" - " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float,float)\n" - " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getHeight" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (float)(arg1)->getHeight(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getWidth" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (float)(arg1)->getWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_bAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bAllocated" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)(arg1)->bAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_isAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_isAllocated" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)(arg1)->isAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_reloadTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_reloadTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_reloadTexture" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->reloadTexture(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_width_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_width_set" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_width_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_width_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_width_get" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (int) ((arg1)->width); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_height_set" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_height_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_height_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_height_get" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (int) ((arg1)->height); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_bpp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_bpp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bpp_set" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_bpp_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->bpp = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_bpp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_bpp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bpp_get" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (int) ((arg1)->bpp); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_type_set" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_type_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->type = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatImage_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_type_get" "', argument " "1"" of type '" "ofImage_< float > *""'"); } - arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (int) ((arg1)->type); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofFloatImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_float_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortImage")) SWIG_fail; - result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofShortImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofPixels_< unsigned short > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< unsigned short > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofFile const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofFile const &""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); - result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofFile const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< unsigned short > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_allocate" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } - arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_clear" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > const &""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofImage_< unsigned short > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofShortImage__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofShortImage__SWIG_1(self, args);} } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofShortImage__SWIG_2(self, args);} } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofShortImage__SWIG_4(self, args);} } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofShortImage__SWIG_3(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::ofImage_()\n" - " ofImage_< unsigned short >::ofImage_(ofPixels_< unsigned short > const &)\n" - " ofImage_< unsigned short >::ofImage_(ofFile const &)\n" " ofImage_< unsigned short >::ofImage_(std::string const &)\n" - " ofImage_< unsigned short >::ofImage_(ofImage_< unsigned short > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setUseTexture",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_isUsingTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (bool)(arg1)->isUsingTexture(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_getTextureReference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTextureReference",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_bind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_unbind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->unbind(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; - void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_loadImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); - if (_v) { return _wrap_ofShortImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofShortImage_loadImage__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_loadImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::loadImage(std::string)\n" - " ofImage_< unsigned short >::loadImage(ofBuffer const &)\n" - " ofImage_< unsigned short >::loadImage(ofFile const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; - ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; - void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; - ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; - ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } - arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_saveImage(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); - if (_v) { return _wrap_ofShortImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofShortImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_saveImage__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_saveImage'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::saveImage(std::string,ofImageQualityType)\n" - " ofImage_< unsigned short >::saveImage(std::string)\n" - " ofImage_< unsigned short >::saveImage(ofBuffer &,ofImageQualityType)\n" - " ofImage_< unsigned short >::saveImage(ofBuffer &)\n" - " ofImage_< unsigned short >::saveImage(ofFile const &,ofImageQualityType)\n" - " ofImage_< unsigned short >::saveImage(ofFile const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofTexCompression arg2 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setCompression",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setCompression" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } - arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_getPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (unsigned short *)(arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_getPixelsRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixelsRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - result = (ofPixels_< unsigned short > *) &(arg1)->getPixelsRef(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofColor_< unsigned short > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_getColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_getColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ((ofImage_< unsigned short > const *)arg1)->getColor(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; - ofColor_< unsigned short > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShortImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } - arg4 = reinterpret_cast< ofColor_< unsigned short > * >(argp4); - (arg1)->setColor(arg2,arg3,(ofColor_< unsigned short > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; - ofColor_< unsigned short > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; - int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } - arg3 = reinterpret_cast< ofColor_< unsigned short > * >(argp3); - (arg1)->setColor(arg2,(ofColor_< unsigned short > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; - ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->setColor((ofColor_< unsigned short > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofShortImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofShortImage_setColor__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_setColor'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::setColor(int,int,ofColor_< unsigned short > const &)\n" - " ofImage_< unsigned short >::setColor(int,ofColor_< unsigned short > const &)\n" - " ofImage_< unsigned short >::setColor(ofColor_< unsigned short > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; - unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; - int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } - arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } - arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; - unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } - arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; - ofPixels_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setFromPixels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned short > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned short > const &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); - (arg1)->setFromPixels((ofPixels_< unsigned short > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_setFromPixels'.\n" - " Possible C/C++ prototypes are:\n" - " ofImage_< unsigned short >::setFromPixels(unsigned short const *,int,int,ofImageType,bool)\n" - " ofImage_< unsigned short >::setFromPixels(unsigned short const *,int,int,ofImageType)\n" - " ofImage_< unsigned short >::setFromPixels(ofPixels_< unsigned short > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setImageType",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setImageType" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } - arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_resize" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_grabScreen" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_grabScreen" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_grabScreen" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_grabScreen" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_grabScreen" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_crop" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_crop" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_crop" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_crop" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_crop" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofImage_< unsigned short > *arg2 = 0 ; int arg3 ; - int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_cropFrom" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned short > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofImage_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_cropFrom" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_cropFrom" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_cropFrom" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_cropFrom" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_rotate90",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_rotate90" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_rotate90" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; - bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_mirror" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_mirror" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_mirror" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_update",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_update" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_resetAnchor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofPoint *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofRectangle *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_draw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofPoint *arg2 = 0 ; - float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_draw" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->draw(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_draw__SWIG_4(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_draw'.\n" - " Possible C/C++ prototypes are:\n" " draw(ofPoint const &)\n" " draw(ofRectangle const &)\n" - " draw(ofPoint const &,float,float)\n" " ofImage_< unsigned short >::draw(float,float)\n" - " ofImage_< unsigned short >::draw(float,float,float)\n" " ofImage_< unsigned short >::draw(float,float,float,float)\n" - " ofImage_< unsigned short >::draw(float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; - float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofShortImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; - float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofShortImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofShortImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } - if (argc == 10) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_drawSubsection'.\n" - " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float)\n" - " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float)\n" - " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float,float)\n" - " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getHeight" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (float)(arg1)->getHeight(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getWidth" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (float)(arg1)->getWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_bAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bAllocated" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (bool)(arg1)->bAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_isAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_isAllocated" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (bool)(arg1)->isAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_reloadTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_reloadTexture",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_reloadTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->reloadTexture(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_width_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_width_set" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_width_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_width_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_width_get" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (int) ((arg1)->width); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_height_set" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_height_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_height_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_height_get" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (int) ((arg1)->height); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_bpp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_bpp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bpp_set" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_bpp_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->bpp = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_bpp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_bpp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bpp_get" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (int) ((arg1)->bpp); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_type_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_type_set" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_type_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->type = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortImage_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_type_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_type_get" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (int) ((arg1)->type); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofShortImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int arg2 ; ofBaseApp *arg3 = (ofBaseApp *) 0 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; - void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundStreamSetup",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ofBaseApp, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "ofBaseApp *""'"); } - arg3 = reinterpret_cast< ofBaseApp * >(argp3); ofSoundStreamSetup(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStreamSetup",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ofSoundStreamSetup(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofSoundStreamSetup",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStreamSetup" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStreamSetup" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ofSoundStreamSetup(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int arg2 ; ofBaseApp *arg3 = (ofBaseApp *) 0 ; int arg4 ; int arg5 ; int arg6 ; int val1 ; int ecode1 = 0 ; - int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofSoundStreamSetup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ofBaseApp, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "ofBaseApp *""'"); } - arg3 = reinterpret_cast< ofBaseApp * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStreamSetup" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStreamSetup" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStreamSetup" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); ofSoundStreamSetup(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStreamSetup(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSoundStreamSetup__SWIG_1(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofSoundStreamSetup__SWIG_0(self, args);} } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSoundStreamSetup__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSoundStreamSetup__SWIG_3(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStreamSetup'.\n" - " Possible C/C++ prototypes are:\n" " ofSoundStreamSetup(int,int,ofBaseApp *)\n" " ofSoundStreamSetup(int,int)\n" - " ofSoundStreamSetup(int,int,int,int,int)\n" " ofSoundStreamSetup(int,int,ofBaseApp *,int,int,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSoundStreamStop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamStop")) SWIG_fail; ofSoundStreamStop(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStreamStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamStart")) SWIG_fail; ofSoundStreamStart(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStreamClose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamClose")) SWIG_fail; ofSoundStreamClose(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStreamListDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamListDevices")) SWIG_fail; ofSoundStreamListDevices(); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofSoundStream")) SWIG_fail; - result = (ofSoundStream *)new ofSoundStream(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSoundStream, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_setSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; SwigValueWrapper< ofPtr< ofBaseSoundStream > > arg2 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setSoundStream",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPtrT_ofBaseSoundStream_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setSoundStream" "', argument " "2"" of type '" "ofPtr< ofBaseSoundStream >""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setSoundStream" "', argument " "2"" of type '" "ofPtr< ofBaseSoundStream >""'"); } - else { ofPtr< ofBaseSoundStream > * temp = reinterpret_cast< ofPtr< ofBaseSoundStream > * >(argp2); arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setSoundStream(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_getSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< ofPtr< ofBaseSoundStream > > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getSoundStream",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (arg1)->getSoundStream(); - resultobj = SWIG_NewPointerObj((new ofPtr< ofBaseSoundStream >(static_cast< const ofPtr< ofBaseSoundStream >& >(result))), SWIGTYPE_p_ofPtrT_ofBaseSoundStream_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_listDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_listDevices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_listDevices" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->listDevices(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_setDeviceID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setDeviceID",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setDeviceID" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStream_setDeviceID" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setDeviceID(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_setup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseApp *arg2 = (ofBaseApp *) 0 ; int arg3 ; int arg4 ; - int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofSoundStream_setup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setup" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseApp, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setup" "', argument " "2"" of type '" "ofBaseApp *""'"); } - arg2 = reinterpret_cast< ofBaseApp * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_setup" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_setup" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStream_setup" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStream_setup" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofSoundStream_setup" "', argument " "7"" of type '" "int""'"); } - arg7 = static_cast< int >(val7); result = (bool)(arg1)->setup(arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_setup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofSoundStream_setup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setup" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStream_setup" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_setup" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_setup" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStream_setup" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStream_setup" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); result = (bool)(arg1)->setup(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_setup(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { - { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSoundStream_setup__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSoundStream_setup__SWIG_0(self, args);} } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_setup'.\n" - " Possible C/C++ prototypes are:\n" " ofSoundStream::setup(ofBaseApp *,int,int,int,int,int)\n" - " ofSoundStream::setup(int,int,int,int,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSoundStream_setInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundInput *arg2 = (ofBaseSoundInput *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setInput",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setInput" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseSoundInput, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setInput" "', argument " "2"" of type '" "ofBaseSoundInput *""'"); } - arg2 = reinterpret_cast< ofBaseSoundInput * >(argp2); (arg1)->setInput(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_setOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundOutput *arg2 = (ofBaseSoundOutput *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setOutput",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setOutput" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseSoundOutput, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setOutput" "', argument " "2"" of type '" "ofBaseSoundOutput *""'"); } - arg2 = reinterpret_cast< ofBaseSoundOutput * >(argp2); (arg1)->setOutput(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_start",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_start" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->start(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_stop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_stop" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_close" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_getTickCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long long result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getTickCount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getTickCount" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (unsigned long long)(arg1)->getTickCount(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_getNumInputChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getNumInputChannels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getNumInputChannels" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)(arg1)->getNumInputChannels(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_getNumOutputChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getNumOutputChannels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getNumOutputChannels" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)(arg1)->getNumOutputChannels(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_getSampleRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getSampleRate",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getSampleRate" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)(arg1)->getSampleRate(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundStream_getBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getBufferSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getBufferSize" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)(arg1)->getBufferSize(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSoundStream",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } - arg1 = reinterpret_cast< ofSoundStream * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *ofSoundStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofSoundStream, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofSoundPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofSoundPlayer")) SWIG_fail; - result = (ofSoundPlayer *)new ofSoundPlayer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSoundPlayer, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; SwigValueWrapper< ofPtr< ofBaseSoundPlayer > > arg2 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPlayer",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPtrT_ofBaseSoundPlayer_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundPlayer_setPlayer" "', argument " "2"" of type '" "ofPtr< ofBaseSoundPlayer >""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundPlayer_setPlayer" "', argument " "2"" of type '" "ofPtr< ofBaseSoundPlayer >""'"); } - else { ofPtr< ofBaseSoundPlayer > * temp = reinterpret_cast< ofPtr< ofBaseSoundPlayer > * >(argp2); arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setPlayer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< ofPtr< ofBaseSoundPlayer > > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPlayer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (arg1)->getPlayer(); - resultobj = SWIG_NewPointerObj((new ofPtr< ofBaseSoundPlayer >(static_cast< const ofPtr< ofBaseSoundPlayer >& >(result))), SWIGTYPE_p_ofPtrT_ofBaseSoundPlayer_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; - int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundPlayer_loadSound",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_loadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_loadSound" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundPlayer_loadSound" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->loadSound(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_loadSound",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_loadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_loadSound" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadSound(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofSoundPlayer_loadSound__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSoundPlayer_loadSound__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundPlayer_loadSound'.\n" - " Possible C/C++ prototypes are:\n" " ofSoundPlayer::loadSound(std::string,bool)\n" - " ofSoundPlayer::loadSound(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_unloadSound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_unloadSound",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_unloadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->unloadSound(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_play(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_play",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_play" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->play(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_stop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_stop" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setVolume",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setVolume" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setVolume" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setVolume(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPan",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPan" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPan" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setPan(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setSpeed",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setSpeed" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setSpeed" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setSpeed(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPaused",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPaused" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPaused" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setPaused(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setLoop",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setLoop" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setLoop" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setLoop(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setMultiPlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setMultiPlay",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setMultiPlay" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setMultiPlay" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setMultiPlay(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPosition",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPosition" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPosition" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setPosition(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPositionMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPositionMS",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPositionMS" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPositionMS" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setPositionMS(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPositionMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPositionMS",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPositionMS" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (int)(arg1)->getPositionMS(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPosition",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPosition" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)(arg1)->getPosition(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_getIsPlaying(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getIsPlaying",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getIsPlaying" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)(arg1)->getIsPlaying(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_getSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getSpeed",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getSpeed" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)(arg1)->getSpeed(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPan",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPan" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)(arg1)->getPan(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_getVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getVolume",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getVolume" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)(arg1)->getVolume(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSoundPlayer_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_isLoaded",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_isLoaded" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)(arg1)->isLoaded(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofSoundPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSoundPlayer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSoundPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } - arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *ofSoundPlayer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofSoundPlayer, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofColor")) SWIG_fail; - result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofColor_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofColor" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofColor" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofColor",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofColor" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >((ofColor_< unsigned char > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:new_ofColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); - result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >((ofColor_< unsigned char > const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofColor_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:new_ofColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofColor__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofColor__SWIG_3(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofColor__SWIG_6(self, args);} } if (argc == 2) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofColor__SWIG_4(self, args);} } } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofColor__SWIG_5(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofColor__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofColor'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::ofColor_()\n" - " ofColor_< unsigned char >::ofColor_(float,float,float,float)\n" - " ofColor_< unsigned char >::ofColor_(float,float,float)\n" - " ofColor_< unsigned char >::ofColor_(ofColor_< unsigned char > const &)\n" - " ofColor_< unsigned char >::ofColor_(ofColor_< unsigned char > const &,float)\n" - " ofColor_< unsigned char >::ofColor_(float,float)\n" " ofColor_< unsigned char >::ofColor_(float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHsb" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_fromHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_fromHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHsb" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_fromHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_fromHsb(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_fromHsb__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_fromHsb'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::fromHsb(float,float,float,float)\n" - " ofColor_< unsigned char >::fromHsb(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_fromHex",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHex" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHex" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_fromHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofColor_fromHex__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_fromHex'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::fromHex(int,float)\n" - " ofColor_< unsigned char >::fromHex(int)\n"); return 0; } -SWIGINTERN int Swig_var_ofColor_white_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_white is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_white_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::white), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_gray_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_gray is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_gray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_black_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_black is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_black_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::black), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_red_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_red is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_red_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::red), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_green_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_green is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_green_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::green), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_blue_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_blue is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_blue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_cyan_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_cyan is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_cyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_magenta_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_magenta is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_magenta_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::magenta), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_yellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_yellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_yellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::yellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_aliceBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_aliceBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_aliceBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aliceBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_antiqueWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_antiqueWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_antiqueWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::antiqueWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_aqua_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_aqua is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_aqua_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aqua), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_aquamarine_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_aquamarine is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_aquamarine_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aquamarine), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_azure_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_azure is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_azure_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::azure), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_beige_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_beige is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_beige_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::beige), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_bisque_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_bisque is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_bisque_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::bisque), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_blanchedAlmond_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_blanchedAlmond is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blanchedAlmond), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_blueViolet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_blueViolet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_blueViolet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blueViolet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_brown_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_brown is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_brown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::brown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_burlyWood_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_burlyWood is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_burlyWood_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::burlyWood), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_cadetBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_cadetBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_cadetBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cadetBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_chartreuse_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_chartreuse is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_chartreuse_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::chartreuse), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_chocolate_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_chocolate is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_chocolate_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::chocolate), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_coral_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_coral is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_coral_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::coral), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_cornflowerBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_cornflowerBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cornflowerBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_cornsilk_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_cornsilk is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_cornsilk_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cornsilk), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_crimson_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_crimson is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_crimson_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::crimson), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkCyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkCyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkCyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkCyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkGoldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGoldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkKhaki_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkKhaki is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkKhaki_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkKhaki), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkMagenta_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkMagenta is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkMagenta_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkMagenta), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkOliveGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkOliveGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkOliveGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkorange_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkorange is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkorange_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkorange), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkOrchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkOrchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkOrchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkOrchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkSalmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSalmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkSalmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSalmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkSlateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkSlateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkSlateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkSlateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_darkViolet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkViolet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_darkViolet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkViolet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_deepPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_deepPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_deepPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::deepPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_deepSkyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_deepSkyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::deepSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_dimGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_dimGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_dimGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dimGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_dimGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_dimGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_dimGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dimGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_dodgerBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_dodgerBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_dodgerBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dodgerBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_fireBrick_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_fireBrick is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_fireBrick_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::fireBrick), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_floralWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_floralWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_floralWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::floralWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_forestGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_forestGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_forestGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::forestGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_fuchsia_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_fuchsia is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_fuchsia_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::fuchsia), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_gainsboro_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_gainsboro is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_gainsboro_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gainsboro), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_ghostWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_ghostWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_ghostWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::ghostWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_gold_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_gold is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_gold_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gold), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_goldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_goldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_goldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::goldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_grey_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_grey is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_grey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::grey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_greenYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_greenYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_greenYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::greenYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_honeyDew_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_honeyDew is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_honeyDew_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::honeyDew), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_hotPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_hotPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_hotPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::hotPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_indianRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_indianRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_indianRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::indianRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_indigo_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_indigo is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_indigo_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::indigo), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_ivory_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_ivory is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_ivory_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::ivory), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_khaki_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_khaki is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_khaki_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::khaki), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lavender_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lavender is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lavender_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lavender), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lavenderBlush_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lavenderBlush is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lavenderBlush_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lavenderBlush), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lawnGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lawnGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lawnGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lawnGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lemonChiffon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lemonChiffon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lemonChiffon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lemonChiffon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightCoral_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightCoral is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightCoral_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightCoral), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightCyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightCyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightCyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightCyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightGoldenRodYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGoldenRodYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightSalmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSalmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightSalmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSalmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightSkyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSkyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightSlateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSlateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightSlateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSlateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightSlateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSlateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightSteelBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSteelBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSteelBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lightYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lightYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_lime_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_lime is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_lime_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lime), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_limeGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_limeGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_limeGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::limeGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_linen_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_linen is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_linen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::linen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_maroon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_maroon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_maroon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::maroon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumAquaMarine_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumAquaMarine is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumOrchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumOrchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumOrchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumOrchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumPurple_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumPurple is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumPurple_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumPurple), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumSlateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSlateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumSpringGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSpringGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mediumVioletRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumVioletRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumVioletRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_midnightBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_midnightBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_midnightBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::midnightBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mintCream_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mintCream is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mintCream_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mintCream), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_mistyRose_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_mistyRose is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_mistyRose_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mistyRose), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_moccasin_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_moccasin is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_moccasin_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::moccasin), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_navajoWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_navajoWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_navajoWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::navajoWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_navy_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_navy is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_navy_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::navy), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_oldLace_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_oldLace is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_oldLace_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::oldLace), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_olive_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_olive is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_olive_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::olive), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_oliveDrab_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_oliveDrab is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_oliveDrab_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::oliveDrab), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_orange_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_orange is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_orange_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orange), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_orangeRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_orangeRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_orangeRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orangeRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_orchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_orchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_orchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_paleGoldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleGoldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_paleGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_paleGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_paleTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_paleTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_paleVioletRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleVioletRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_paleVioletRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleVioletRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_papayaWhip_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_papayaWhip is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_papayaWhip_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::papayaWhip), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_peachPuff_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_peachPuff is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_peachPuff_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::peachPuff), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_peru_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_peru is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_peru_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::peru), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_pink_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_pink is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_pink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::pink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_plum_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_plum is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_plum_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::plum), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_powderBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_powderBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_powderBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::powderBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_purple_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_purple is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_purple_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::purple), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_rosyBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_rosyBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_rosyBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::rosyBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_royalBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_royalBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_royalBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::royalBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_saddleBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_saddleBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_saddleBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::saddleBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_salmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_salmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_salmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::salmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_sandyBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_sandyBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_sandyBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::sandyBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_seaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_seaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_seaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::seaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_seaShell_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_seaShell is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_seaShell_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::seaShell), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_sienna_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_sienna is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_sienna_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::sienna), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_silver_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_silver is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_silver_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::silver), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_skyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_skyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_skyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::skyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_slateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_slateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_slateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_slateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_slateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_slateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_snow_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_snow is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_snow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::snow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_springGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_springGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_springGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::springGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_steelBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_steelBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_steelBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::steelBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_blueSteel_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_blueSteel is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_blueSteel_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blueSteel), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_tan_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_tan is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_tan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::tan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_teal_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_teal is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_teal_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::teal), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_thistle_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_thistle is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_thistle_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::thistle), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_tomato_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_tomato is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_tomato_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::tomato), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_turquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_turquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_turquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::turquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_violet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_violet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_violet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::violet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_wheat_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_wheat is read-only."); - return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_wheat_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::wheat), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_whiteSmoke_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_whiteSmoke is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_whiteSmoke_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::whiteSmoke), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofColor_yellowGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofColor_yellowGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofColor_yellowGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::yellowGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); - return pyobj; } -SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofColor_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_set" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofColor_set" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_set" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_set",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_set" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_set" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->set((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor_set__SWIG_4(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_set__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_set__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_set'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::set(float,float,float,float)\n" - " ofColor_< unsigned char >::set(float,float,float)\n" " ofColor_< unsigned char >::set(float,float)\n" - " ofColor_< unsigned char >::set(float)\n" " ofColor_< unsigned char >::set(ofColor_< unsigned char > const &)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofColor_setHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_setHex",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setHex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_setHex__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_setHex__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_setHex'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::setHex(int,float)\n" - " ofColor_< unsigned char >::setHex(int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHex" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (int)((ofColor_< unsigned char > const *)arg1)->getHex(); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_clamp",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_clamp" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->clamp(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_invert",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_invert" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->invert(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_normalize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_normalize" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->normalize(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_lerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; float arg3 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_lerp",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_lerp" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_lerp" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); - result = (ofColor_< unsigned char > *) &(arg1)->lerp((ofColor_< unsigned char > const &)*arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getClamped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getClamped",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getClamped" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = ((ofColor_< unsigned char > const *)arg1)->getClamped(); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getInverted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getInverted",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getInverted" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = ((ofColor_< unsigned char > const *)arg1)->getInverted(); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getNormalized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getNormalized" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = ((ofColor_< unsigned char > const *)arg1)->getNormalized(); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getLerped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; float arg3 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_getLerped",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getLerped" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_getLerped" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); - result = ((ofColor_< unsigned char > const *)arg1)->getLerped((ofColor_< unsigned char > const &)*arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHue" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (float)((ofColor_< unsigned char > const *)arg1)->getHue(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHueAngle",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (float)((ofColor_< unsigned char > const *)arg1)->getHueAngle(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getSaturation",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getSaturation" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (float)((ofColor_< unsigned char > const *)arg1)->getSaturation(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getBrightness",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getBrightness" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (float)((ofColor_< unsigned char > const *)arg1)->getBrightness(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getLightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getLightness",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getLightness" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (float)((ofColor_< unsigned char > const *)arg1)->getLightness(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getHsb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; - int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_getHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_getHsb" "', argument " "2"" of type '" "float &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "2"" of type '" "float &""'"); } - arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofColor_getHsb" "', argument " "3"" of type '" "float &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "3"" of type '" "float &""'"); } - arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofColor_getHsb" "', argument " "4"" of type '" "float &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "4"" of type '" "float &""'"); } - arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< unsigned char > const *)arg1)->getHsb(*arg2,*arg3,*arg4); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHue" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHue" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHueAngle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setSaturation",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setSaturation" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setSaturation" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setBrightness",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setBrightness" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setBrightness" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_setHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofColor_setHsb" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_setHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setHsb(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor_setHsb__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_setHsb'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::setHsb(float,float,float,float)\n" - " ofColor_< unsigned char >::setHsb(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___eq__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = (bool)(arg1)->operator ==((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___ne__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = (bool)(arg1)->operator !=((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = ((ofColor_< unsigned char > const *)arg1)->operator +((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___add__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< unsigned char > const *)arg1)->operator +((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___add__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofColor___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = (ofColor_< unsigned char > *) &(arg1)->operator +=((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< unsigned char > *) &(arg1)->operator +=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___iadd__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___iadd____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___iadd__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator +=(ofColor_< unsigned char > const &)\n" - " ofColor_< unsigned char >::operator +=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = ((ofColor_< unsigned char > const *)arg1)->operator -((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___sub__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< unsigned char > const *)arg1)->operator -((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofColor___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = (ofColor_< unsigned char > *) &(arg1)->operator -=((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___isub__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< unsigned char > *) &(arg1)->operator -=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___isub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___isub____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___isub__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator -=(ofColor_< unsigned char > const &)\n" - " ofColor_< unsigned char >::operator -=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = ((ofColor_< unsigned char > const *)arg1)->operator *((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___mul__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< unsigned char > const *)arg1)->operator *((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofColor___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = (ofColor_< unsigned char > *) &(arg1)->operator *=((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___imul__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< unsigned char > *) &(arg1)->operator *=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___imul____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___imul__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator *=(ofColor_< unsigned char > const &)\n" - " ofColor_< unsigned char >::operator *=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = ((ofColor_< unsigned char > const *)arg1)->operator /((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___div__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< unsigned char > const *)arg1)->operator /((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___div__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofColor___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); - result = (ofColor_< unsigned char > *) &(arg1)->operator /=((ofColor_< unsigned char > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< unsigned char > *) &(arg1)->operator /=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___idiv____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___idiv__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator /=(ofColor_< unsigned char > const &)\n" - " ofColor_< unsigned char >::operator /=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (unsigned char *) &((ofColor_< unsigned char > const *)arg1)->operator [](arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (unsigned char *) &(arg1)->operator [](arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofColor___getitem____SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___getitem__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator [](int) const\n" - " ofColor_< unsigned char >::operator [](int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float result; if (!PyArg_ParseTuple(args,(char *)":ofColor_limit")) SWIG_fail; - result = (float)ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR limit(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getR",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getR" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getR(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getG",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getG" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getG(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getB",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getB" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getB(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_getA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getA",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getA" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getA(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setR",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setR" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setR" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setR(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setG" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setG" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setG(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setB",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setB" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setB" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setB(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_setA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setA",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setA" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setA" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setA(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor___str__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___str__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (char *)ofColor__Sl_unsigned_SS_char_Sg____str__(arg1); resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_r_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_r_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_r_set" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__r_set(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_r_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_r_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__r_get(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_g_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_g_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_g_set" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__g_set(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_g_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_g_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__g_get(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_b_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_b_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_b_set" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__b_set(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_b_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_b_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__b_get(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_a_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_a_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_a_set" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__a_set(arg1,arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofColor_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_a_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_a_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); - result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__a_get(arg1); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFloatColor")) SWIG_fail; - result = (ofColor_< float > *)new ofColor_< float >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofFloatColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFloatColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofFloatColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofFloatColor" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofFloatColor" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofFloatColor",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofFloatColor" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - result = (ofColor_< float > *)new ofColor_< float >((ofColor_< float > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:new_ofFloatColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofColor_< float > *)new ofColor_< float >((ofColor_< float > const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:new_ofFloatColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = (ofColor_< float > *)new ofColor_< float >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofFloatColor__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFloatColor__SWIG_3(self, args);} } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofFloatColor__SWIG_6(self, args);} } if (argc == 2) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofFloatColor__SWIG_4(self, args);} } } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofFloatColor__SWIG_5(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofFloatColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofFloatColor__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatColor'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::ofColor_()\n" - " ofColor_< float >::ofColor_(float,float,float,float)\n" " ofColor_< float >::ofColor_(float,float,float)\n" - " ofColor_< float >::ofColor_(ofColor_< float > const &)\n" - " ofColor_< float >::ofColor_(ofColor_< float > const &,float)\n" " ofColor_< float >::ofColor_(float,float)\n" - " ofColor_< float >::ofColor_(float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHsb" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_fromHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_fromHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHsb" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_fromHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_fromHsb__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_fromHsb'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::fromHsb(float,float,float,float)\n" - " ofColor_< float >::fromHsb(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_fromHex",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHex" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHex" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_fromHex__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_fromHex'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::fromHex(int,float)\n" " ofColor_< float >::fromHex(int)\n"); - return 0; } -SWIGINTERN int Swig_var_ofFloatColor_white_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_white is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_white_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::white), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_gray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_gray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_black_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_black is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_black_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::black), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_red_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_red is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_red_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::red), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_green_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_green is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_green_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::green), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_blue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_blue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_cyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_cyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_magenta_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_magenta is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_magenta_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::magenta), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_yellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_yellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_yellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::yellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_aliceBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aliceBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_aliceBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aliceBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_antiqueWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_antiqueWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_antiqueWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::antiqueWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_aqua_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aqua is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_aqua_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aqua), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_aquamarine_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aquamarine is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_aquamarine_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aquamarine), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_azure_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_azure is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_azure_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::azure), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_beige_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_beige is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_beige_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::beige), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_bisque_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_bisque is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_bisque_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::bisque), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_blanchedAlmond_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blanchedAlmond is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blanchedAlmond), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_blueViolet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blueViolet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_blueViolet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blueViolet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_brown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_brown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_brown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::brown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_burlyWood_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_burlyWood is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_burlyWood_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::burlyWood), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_cadetBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cadetBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_cadetBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cadetBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_chartreuse_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_chartreuse is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_chartreuse_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::chartreuse), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_chocolate_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_chocolate is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_chocolate_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::chocolate), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_coral_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_coral is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_coral_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::coral), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_cornflowerBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cornflowerBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cornflowerBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_cornsilk_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cornsilk is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_cornsilk_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cornsilk), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_crimson_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_crimson is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_crimson_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::crimson), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkCyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkCyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkCyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkCyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkGoldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGoldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGoldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkKhaki_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkKhaki is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkKhaki_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkKhaki), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkMagenta_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkMagenta is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkMagenta_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkMagenta), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkOliveGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkOliveGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkOliveGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkorange_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkorange is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkorange_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkorange), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkOrchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkOrchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkOrchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkOrchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkSalmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSalmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSalmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSalmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkSlateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkSlateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkSlateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_darkViolet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkViolet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_darkViolet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkViolet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_deepPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_deepPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_deepPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::deepPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_deepSkyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_deepSkyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::deepSkyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_dimGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dimGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_dimGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dimGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_dimGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dimGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_dimGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dimGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_dodgerBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dodgerBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_dodgerBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dodgerBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_fireBrick_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_fireBrick is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_fireBrick_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::fireBrick), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_floralWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_floralWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_floralWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::floralWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_forestGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_forestGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_forestGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::forestGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_fuchsia_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_fuchsia is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_fuchsia_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::fuchsia), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_gainsboro_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gainsboro is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_gainsboro_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gainsboro), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_ghostWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_ghostWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_ghostWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::ghostWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_gold_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gold is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_gold_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gold), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_goldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_goldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_goldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::goldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_grey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_grey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_grey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::grey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_greenYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_greenYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_greenYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::greenYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_honeyDew_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_honeyDew is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_honeyDew_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::honeyDew), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_hotPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_hotPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_hotPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::hotPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_indianRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_indianRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_indianRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::indianRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_indigo_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_indigo is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_indigo_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::indigo), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_ivory_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_ivory is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_ivory_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::ivory), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_khaki_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_khaki is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_khaki_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::khaki), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lavender_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lavender is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lavender_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lavender), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lavenderBlush_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lavenderBlush is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lavenderBlush_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lavenderBlush), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lawnGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lawnGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lawnGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lawnGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lemonChiffon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lemonChiffon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lemonChiffon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lemonChiffon), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightCoral_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightCoral is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightCoral_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightCoral), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightCyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightCyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightCyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightCyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightGoldenRodYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGoldenRodYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightSalmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSalmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSalmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSalmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightSkyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSkyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSkyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightSlateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSlateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSlateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSlateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightSlateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSlateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSlateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightSteelBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSteelBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSteelBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lightYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lightYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_lime_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lime is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_lime_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lime), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_limeGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_limeGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_limeGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::limeGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_linen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_linen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_linen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::linen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_maroon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_maroon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_maroon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::maroon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumAquaMarine_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumAquaMarine is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumOrchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumOrchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumOrchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumOrchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumPurple_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumPurple is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumPurple_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumPurple), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumSlateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSlateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumSpringGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSpringGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mediumVioletRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumVioletRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumVioletRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_midnightBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_midnightBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_midnightBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::midnightBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mintCream_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mintCream is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mintCream_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mintCream), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_mistyRose_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mistyRose is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_mistyRose_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mistyRose), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_moccasin_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_moccasin is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_moccasin_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::moccasin), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_navajoWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_navajoWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_navajoWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::navajoWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_navy_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_navy is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_navy_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::navy), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_oldLace_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_oldLace is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_oldLace_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::oldLace), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_olive_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_olive is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_olive_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::olive), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_oliveDrab_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_oliveDrab is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_oliveDrab_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::oliveDrab), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_orange_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orange is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_orange_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orange), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_orangeRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orangeRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_orangeRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orangeRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_orchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_orchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_paleGoldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleGoldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleGoldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_paleGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_paleGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_paleTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_paleTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_paleVioletRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleVioletRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_paleVioletRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleVioletRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_papayaWhip_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_papayaWhip is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_papayaWhip_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::papayaWhip), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_peachPuff_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_peachPuff is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_peachPuff_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::peachPuff), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_peru_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_peru is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_peru_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::peru), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_pink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_pink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_pink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::pink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_plum_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_plum is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_plum_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::plum), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_powderBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_powderBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_powderBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::powderBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_purple_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_purple is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_purple_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::purple), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_rosyBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_rosyBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_rosyBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::rosyBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_royalBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_royalBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_royalBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::royalBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_saddleBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_saddleBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_saddleBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::saddleBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_salmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_salmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_salmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::salmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_sandyBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_sandyBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_sandyBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::sandyBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_seaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_seaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_seaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::seaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_seaShell_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_seaShell is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_seaShell_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::seaShell), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_sienna_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_sienna is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_sienna_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::sienna), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_silver_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_silver is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_silver_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::silver), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_skyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_skyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_skyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::skyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_slateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_slateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_slateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_slateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_slateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_slateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_snow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_snow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_snow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::snow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_springGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_springGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_springGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::springGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_steelBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_steelBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_steelBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::steelBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_blueSteel_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blueSteel is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_blueSteel_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blueSteel), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_tan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_tan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_tan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::tan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_teal_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_teal is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_teal_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::teal), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_thistle_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_thistle is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_thistle_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::thistle), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_tomato_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_tomato is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_tomato_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::tomato), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_turquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_turquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_turquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::turquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_violet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_violet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_violet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::violet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_wheat_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_wheat is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_wheat_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::wheat), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_whiteSmoke_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_whiteSmoke is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_whiteSmoke_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::whiteSmoke), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofFloatColor_yellowGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_yellowGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofFloatColor_yellowGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::yellowGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); - return pyobj; } -SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; + +SWIGINTERN PyObject *OF_VERSION_PATCH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_PATCH",SWIG_From_int(static_cast< int >(8))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_VERSION_PRE_RELEASE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_PRE_RELEASE",SWIG_FromCharPtr("stable")); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOOP_NONE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOOP_NONE",SWIG_From_int(static_cast< int >(OF_LOOP_NONE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOOP_PALINDROME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOOP_PALINDROME",SWIG_From_int(static_cast< int >(OF_LOOP_PALINDROME))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOOP_NORMAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOOP_NORMAL",SWIG_From_int(static_cast< int >(OF_LOOP_NORMAL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_OSX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_OSX",SWIG_From_int(static_cast< int >(OF_TARGET_OSX))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_MINGW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_MINGW",SWIG_From_int(static_cast< int >(OF_TARGET_MINGW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_WINVS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_WINVS",SWIG_From_int(static_cast< int >(OF_TARGET_WINVS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_IOS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_IOS",SWIG_From_int(static_cast< int >(OF_TARGET_IOS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_ANDROID_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_ANDROID",SWIG_From_int(static_cast< int >(OF_TARGET_ANDROID))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUX",SWIG_From_int(static_cast< int >(OF_TARGET_LINUX))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUX64_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUX64",SWIG_From_int(static_cast< int >(OF_TARGET_LINUX64))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUXARMV6L_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUXARMV6L",SWIG_From_int(static_cast< int >(OF_TARGET_LINUXARMV6L))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUXARMV7L_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUXARMV7L",SWIG_From_int(static_cast< int >(OF_TARGET_LINUXARMV7L))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_EMSCRIPTEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_EMSCRIPTEN",SWIG_From_int(static_cast< int >(OF_TARGET_EMSCRIPTEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *B14400_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "B14400",SWIG_From_int(static_cast< int >(14400))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *B28800_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "B28800",SWIG_From_int(static_cast< int >(28800))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *HAS_TLS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "HAS_TLS",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SERIAL_NO_DATA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SERIAL_NO_DATA",SWIG_From_int(static_cast< int >(-2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SERIAL_ERROR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SERIAL_ERROR",SWIG_From_int(static_cast< int >(-1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "PI",SWIG_From_double(static_cast< double >(3.14159265358979323846))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *TWO_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "TWO_PI",SWIG_From_double(static_cast< double >(6.28318530717958647693))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *M_TWO_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "M_TWO_PI",SWIG_From_double(static_cast< double >(6.28318530717958647693))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FOUR_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FOUR_PI",SWIG_From_double(static_cast< double >(12.56637061435917295385))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *HALF_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "HALF_PI",SWIG_From_double(static_cast< double >(1.57079632679489661923))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *DEG_TO_RAD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "DEG_TO_RAD",SWIG_From_double(static_cast< double >((3.14159265358979323846/180.0)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *RAD_TO_DEG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "RAD_TO_DEG",SWIG_From_double(static_cast< double >((180.0/3.14159265358979323846)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_OUTLINE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_OUTLINE",SWIG_From_int(static_cast< int >(OF_OUTLINE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_FILLED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_FILLED",SWIG_From_int(static_cast< int >(OF_FILLED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_WINDOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_WINDOW",SWIG_From_int(static_cast< int >(OF_WINDOW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_FULLSCREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_FULLSCREEN",SWIG_From_int(static_cast< int >(OF_FULLSCREEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GAME_MODE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GAME_MODE",SWIG_From_int(static_cast< int >(OF_GAME_MODE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ASPECT_RATIO_IGNORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_IGNORE",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_IGNORE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ASPECT_RATIO_KEEP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_KEEP",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_KEEP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_KEEP_BY_EXPANDING",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_KEEP_BY_EXPANDING))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_IGNORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_IGNORE",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_IGNORE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_TOP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_TOP",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_TOP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_BOTTOM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_BOTTOM",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_BOTTOM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_CENTER",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_IGNORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_IGNORE",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_IGNORE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_LEFT",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_LEFT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_RIGHT",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_RIGHT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_CENTER",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_RECTMODE_CORNER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_RECTMODE_CORNER",SWIG_From_int(static_cast< int >(OF_RECTMODE_CORNER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_RECTMODE_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_RECTMODE_CENTER",SWIG_From_int(static_cast< int >(OF_RECTMODE_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_FIT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_FIT",SWIG_From_int(static_cast< int >(OF_SCALEMODE_FIT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_FILL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_FILL",SWIG_From_int(static_cast< int >(OF_SCALEMODE_FILL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_CENTER",SWIG_From_int(static_cast< int >(OF_SCALEMODE_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_STRETCH_TO_FILL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_STRETCH_TO_FILL",SWIG_From_int(static_cast< int >(OF_SCALEMODE_STRETCH_TO_FILL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_GRAYSCALE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_GRAYSCALE",SWIG_From_int(static_cast< int >(OF_IMAGE_GRAYSCALE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_COLOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_COLOR",SWIG_From_int(static_cast< int >(OF_IMAGE_COLOR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_COLOR_ALPHA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_COLOR_ALPHA",SWIG_From_int(static_cast< int >(OF_IMAGE_COLOR_ALPHA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_UNDEFINED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_UNDEFINED",SWIG_From_int(static_cast< int >(OF_IMAGE_UNDEFINED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MAX_STYLE_HISTORY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MAX_STYLE_HISTORY",SWIG_From_int(static_cast< int >(32))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MAX_VIEWPORT_HISTORY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MAX_VIEWPORT_HISTORY",SWIG_From_int(static_cast< int >(32))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MAX_CIRCLE_PTS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MAX_CIRCLE_PTS",SWIG_From_int(static_cast< int >(1024))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_DISABLED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_DISABLED",SWIG_From_int(static_cast< int >(OF_BLENDMODE_DISABLED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_ALPHA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_ALPHA",SWIG_From_int(static_cast< int >(OF_BLENDMODE_ALPHA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_ADD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_ADD",SWIG_From_int(static_cast< int >(OF_BLENDMODE_ADD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_SUBTRACT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_SUBTRACT",SWIG_From_int(static_cast< int >(OF_BLENDMODE_SUBTRACT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_MULTIPLY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_MULTIPLY",SWIG_From_int(static_cast< int >(OF_BLENDMODE_MULTIPLY))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_SCREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_SCREEN",SWIG_From_int(static_cast< int >(OF_BLENDMODE_SCREEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_DEFAULT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_DEFAULT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_DEFAULT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_180_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_180",SWIG_From_int(static_cast< int >(OF_ORIENTATION_180))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_90_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_90_LEFT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_90_LEFT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_90_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_90_RIGHT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_90_RIGHT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_UNKNOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_UNKNOWN",SWIG_From_int(static_cast< int >(OF_ORIENTATION_UNKNOWN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GRADIENT_LINEAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GRADIENT_LINEAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_LINEAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GRADIENT_CIRCULAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GRADIENT_CIRCULAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_CIRCULAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GRADIENT_BAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GRADIENT_BAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_BAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_ODD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_ODD",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_ODD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_NONZERO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_NONZERO",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_NONZERO))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_POSITIVE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_POSITIVE",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_POSITIVE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_NEGATIVE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_NEGATIVE",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_NEGATIVE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_ABS_GEQ_TWO",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_ABS_GEQ_TWO))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CLOSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CLOSE",SWIG_From_bool(static_cast< bool >((true)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LEFT_HANDED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LEFT_HANDED",SWIG_From_int(static_cast< int >(OF_LEFT_HANDED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_RIGHT_HANDED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_RIGHT_HANDED",SWIG_From_int(static_cast< int >(OF_RIGHT_HANDED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MATRIX_MODELVIEW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MATRIX_MODELVIEW",SWIG_From_int(static_cast< int >(OF_MATRIX_MODELVIEW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MATRIX_PROJECTION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MATRIX_PROJECTION",SWIG_From_int(static_cast< int >(OF_MATRIX_PROJECTION))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MATRIX_TEXTURE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MATRIX_TEXTURE",SWIG_From_int(static_cast< int >(OF_MATRIX_TEXTURE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_MODIFIER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_MODIFIER",SWIG_From_int(static_cast< int >(0x0100))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RETURN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RETURN",SWIG_From_int(static_cast< int >(13))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_ESC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_ESC",SWIG_From_int(static_cast< int >(27))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_TAB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_TAB",SWIG_From_int(static_cast< int >(9))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_BACKSPACE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_BACKSPACE",SWIG_From_int(static_cast< int >(127))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_DEL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_DEL",SWIG_From_int(static_cast< int >(8))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F1",SWIG_From_int(static_cast< int >((1|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F2",SWIG_From_int(static_cast< int >((2|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F3",SWIG_From_int(static_cast< int >((3|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F4_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F4",SWIG_From_int(static_cast< int >((4|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F5_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F5",SWIG_From_int(static_cast< int >((5|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F6_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F6",SWIG_From_int(static_cast< int >((6|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F7_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F7",SWIG_From_int(static_cast< int >((7|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F8_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F8",SWIG_From_int(static_cast< int >((8|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F9_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F9",SWIG_From_int(static_cast< int >((9|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F10_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F10",SWIG_From_int(static_cast< int >((10|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F11_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F11",SWIG_From_int(static_cast< int >((11|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F12_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F12",SWIG_From_int(static_cast< int >((12|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT",SWIG_From_int(static_cast< int >((100|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_UP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_UP",SWIG_From_int(static_cast< int >((101|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT",SWIG_From_int(static_cast< int >((102|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_DOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_DOWN",SWIG_From_int(static_cast< int >((103|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_PAGE_UP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_PAGE_UP",SWIG_From_int(static_cast< int >((104|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_PAGE_DOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_PAGE_DOWN",SWIG_From_int(static_cast< int >((105|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_HOME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_HOME",SWIG_From_int(static_cast< int >((106|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_END_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_END",SWIG_From_int(static_cast< int >((107|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_INSERT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_INSERT",SWIG_From_int(static_cast< int >((108|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_CONTROL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_CONTROL",SWIG_From_int(static_cast< int >((0x200|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_ALT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_ALT",SWIG_From_int(static_cast< int >((0x400|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_SHIFT",SWIG_From_int(static_cast< int >((0x800|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_SUPER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_SUPER",SWIG_From_int(static_cast< int >((0x1000|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_SHIFT",SWIG_From_int(static_cast< int >((0x1|(0x800|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_SHIFT",SWIG_From_int(static_cast< int >((0x2|(0x800|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_CONTROL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_CONTROL",SWIG_From_int(static_cast< int >((0x1|(0x200|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_CONTROL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_CONTROL",SWIG_From_int(static_cast< int >((0x2|(0x200|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_ALT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_ALT",SWIG_From_int(static_cast< int >((0x1|(0x400|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_ALT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_ALT",SWIG_From_int(static_cast< int >((0x2|(0x400|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_SUPER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_SUPER",SWIG_From_int(static_cast< int >((0x1|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_SUPER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_SUPER",SWIG_From_int(static_cast< int >((0x2|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_COMMAND_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_COMMAND",SWIG_From_int(static_cast< int >((0x1|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_COMMAND_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_COMMAND",SWIG_From_int(static_cast< int >((0x2|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_1",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_2",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_3",SWIG_From_int(static_cast< int >(2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_4_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_4",SWIG_From_int(static_cast< int >(3))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_5_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_5",SWIG_From_int(static_cast< int >(4))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_6_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_6",SWIG_From_int(static_cast< int >(5))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_7_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_7",SWIG_From_int(static_cast< int >(6))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_8_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_8",SWIG_From_int(static_cast< int >(7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_LAST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_LAST",SWIG_From_int(static_cast< int >(7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_LEFT",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_MIDDLE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_MIDDLE",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_RIGHT",SWIG_From_int(static_cast< int >(2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_RESTORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_RESTORE",SWIG_From_int(static_cast< int >((0)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_BLACK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_BLACK",SWIG_From_int(static_cast< int >((30)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_RED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_RED",SWIG_From_int(static_cast< int >((31)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_GREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_GREEN",SWIG_From_int(static_cast< int >((32)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_YELLOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_YELLOW",SWIG_From_int(static_cast< int >((33)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_BLUE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_BLUE",SWIG_From_int(static_cast< int >((34)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_PURPLE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_PURPLE",SWIG_From_int(static_cast< int >((35)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_CYAN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_CYAN",SWIG_From_int(static_cast< int >((36)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_WHITE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_WHITE",SWIG_From_int(static_cast< int >((37)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_GRAY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_GRAY",SWIG_From_int(static_cast< int >(OF_PIXELS_GRAY))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_GRAY_ALPHA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_GRAY_ALPHA",SWIG_From_int(static_cast< int >(OF_PIXELS_GRAY_ALPHA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_RGB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_RGB",SWIG_From_int(static_cast< int >(OF_PIXELS_RGB))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_BGR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_BGR",SWIG_From_int(static_cast< int >(OF_PIXELS_BGR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_RGBA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_RGBA",SWIG_From_int(static_cast< int >(OF_PIXELS_RGBA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_BGRA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_BGRA",SWIG_From_int(static_cast< int >(OF_PIXELS_BGRA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_RGB565_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_RGB565",SWIG_From_int(static_cast< int >(OF_PIXELS_RGB565))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NV12_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NV12",SWIG_From_int(static_cast< int >(OF_PIXELS_NV12))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NV21_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NV21",SWIG_From_int(static_cast< int >(OF_PIXELS_NV21))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_YV12_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_YV12",SWIG_From_int(static_cast< int >(OF_PIXELS_YV12))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_I420_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_I420",SWIG_From_int(static_cast< int >(OF_PIXELS_I420))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_YUY2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_YUY2",SWIG_From_int(static_cast< int >(OF_PIXELS_YUY2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_UYVY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_UYVY",SWIG_From_int(static_cast< int >(OF_PIXELS_UYVY))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_Y_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_Y",SWIG_From_int(static_cast< int >(OF_PIXELS_Y))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_U_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_U",SWIG_From_int(static_cast< int >(OF_PIXELS_U))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_V_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_V",SWIG_From_int(static_cast< int >(OF_PIXELS_V))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_UV_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_UV",SWIG_From_int(static_cast< int >(OF_PIXELS_UV))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_VU_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_VU",SWIG_From_int(static_cast< int >(OF_PIXELS_VU))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NUM_FORMATS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NUM_FORMATS",SWIG_From_int(static_cast< int >(OF_PIXELS_NUM_FORMATS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_UNKNOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_UNKNOWN",SWIG_From_int(static_cast< int >(OF_PIXELS_UNKNOWN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NATIVE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NATIVE",SWIG_From_int(static_cast< int >(OF_PIXELS_NATIVE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_SIMPLE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_SIMPLE",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_SIMPLE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_SCREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_SCREEN",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_SCREEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_VIEWPORT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_VIEWPORT",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_VIEWPORT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_MODEL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_MODEL",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_MODEL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_MODEL_BILLBOARD",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_MODEL_BILLBOARD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ENCODING_UTF8_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ENCODING_UTF8",SWIG_From_int(static_cast< int >(OF_ENCODING_UTF8))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ENCODING_ISO_8859_15_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ENCODING_ISO_8859_15",SWIG_From_int(static_cast< int >(OF_ENCODING_ISO_8859_15))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFbo")) SWIG_fail; result = (ofFbo *)new ofFbo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFbo, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo const &""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofFbo *)new ofFbo((ofFbo const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFbo, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo &&""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofFbo *)new ofFbo((ofFbo &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFbo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFbo__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFbo__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFbo__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFbo'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::ofFbo()\n" " ofFbo::ofFbo(ofFbo const &)\n" + " ofFbo::ofFbo(ofFbo &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofFbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFbo" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFbo_allocate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFbo_allocate" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->allocate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->allocate(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofFbo::Settings arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFbo__Settings, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "ofFbo::Settings""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "ofFbo::Settings""'"); } + else { ofFbo::Settings * temp = reinterpret_cast< ofFbo::Settings * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->allocate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_allocate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->allocate(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_allocate__SWIG_4(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFbo__Settings, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_allocate__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_allocate__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_allocate__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_allocate__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::allocate(int,int,int,int)\n" " ofFbo::allocate(int,int,int)\n" + " ofFbo::allocate(int,int)\n" " ofFbo::allocate(ofFbo::Settings)\n" " ofFbo::allocate()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_isAllocated" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)((ofFbo const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_destroy",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_destroy" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->destroy(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_clear" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofFbo const *)arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofFbo const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofFbo const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofFbo const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFbo_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFbo_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofFbo const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_draw__SWIG_0_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_draw__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofFbo::draw(float,float) const\n" + " ofFbo::draw(float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setAnchorPercent" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setAnchorPoint" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_resetAnchor" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setDefaultTextureIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setDefaultTextureIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setDefaultTextureIndex" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setDefaultTextureIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setDefaultTextureIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDefaultTextureIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDefaultTextureIndex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDefaultTextureIndex" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (int)((ofFbo const *)arg1)->getDefaultTextureIndex(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTextureReference",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTextureReference" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &(arg1)->getTextureReference(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTexture" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &(arg1)->getTexture(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getDepthTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &((ofFbo const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTextureReference",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTextureReference" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &((ofFbo const *)arg1)->getTextureReference(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::getTextureReference()\n" " ofFbo::getTextureReference(int)\n" + " ofFbo::getTextureReference() const\n" " ofFbo::getTextureReference(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &((ofFbo const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTexture" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &((ofFbo const *)arg1)->getTexture(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTexture__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTexture__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTexture__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::getTexture()\n" " ofFbo::getTexture(int)\n" + " ofFbo::getTexture() const\n" " ofFbo::getTexture(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &((ofFbo const *)arg1)->getDepthTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getDepthTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getDepthTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_getDepthTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::getDepthTexture()\n" " ofFbo::getDepthTexture() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setUseTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_isUsingTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)((ofFbo const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_begin",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_begin" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_begin" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ((ofFbo const *)arg1)->begin(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_begin" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_begin__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_begin__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::begin(bool) const\n" " ofFbo::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_end" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofFbo const *)arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ((ofFbo const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofShortPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofFbo const *)arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ((ofFbo const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofFloatPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofFbo const *)arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ((ofFbo const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFbo_readToPixels__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFbo_readToPixels__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFbo_readToPixels__SWIG_5(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_readToPixels__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_readToPixels__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_readToPixels__SWIG_2(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_readToPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::readToPixels(ofPixels &,int) const\n" + " ofFbo::readToPixels(ofPixels &) const\n" " ofFbo::readToPixels(ofShortPixels &,int) const\n" + " ofFbo::readToPixels(ofShortPixels &) const\n" " ofFbo::readToPixels(ofFloatPixels &,int) const\n" + " ofFbo::readToPixels(ofFloatPixels &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getWidth" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (float)((ofFbo const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getHeight" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (float)((ofFbo const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_bind" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_unbind" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_flagDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_flagDirty",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_flagDirty" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->flagDirty(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_updateTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_updateTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_updateTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_updateTexture" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->updateTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_checkStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_checkStatus",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_checkStatus" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)((ofFbo const *)arg1)->checkStatus(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_createAndAttachTexture",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachTexture" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachTexture" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_createAndAttachTexture" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachTexture" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + (arg1)->createAndAttachTexture(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_attachTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofTexture *arg2 = 0 ; GLenum arg3 ; GLenum arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_attachTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_attachTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_attachTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + arg2 = reinterpret_cast< ofTexture * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_attachTexture" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { + res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_attachTexture" "', argument " "4"" of type '" "GLenum""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "4"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + (arg1)->attachTexture(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachRenderbuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + GLuint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_createAndAttachRenderbuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + result = (arg1)->createAndAttachRenderbuffer(arg2,arg3); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLint arg3 ; GLenum arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_createAndAttachDepthStencilTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + (arg1)->createAndAttachDepthStencilTexture(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLint arg3 ; GLenum arg4 ; GLenum arg5 ; GLenum arg6 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; + void *argp5 ; int res5 = 0 ; void *argp6 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFbo_createAndAttachDepthStencilTexture",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } { + res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "5"" of type '" "GLenum""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "5"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "6"" of type '" "GLenum""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "6"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp6); arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->createAndAttachDepthStencilTexture(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_createAndAttachDepthStencilTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::createAndAttachDepthStencilTexture(GLenum,GLint,GLenum)\n" + " ofFbo::createAndAttachDepthStencilTexture(GLenum,GLint,GLenum,GLenum,GLenum)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getNumTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getNumTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getNumTextures" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (int)((ofFbo const *)arg1)->getNumTextures(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setActiveDrawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setActiveDrawBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setActiveDrawBuffer" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setActiveDrawBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setActiveDrawBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setActiveDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; std::vector< int > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setActiveDrawBuffers",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "2"" of type '" "std::vector< int > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "2"" of type '" "std::vector< int > const &""'"); } + arg2 = ptr; } (arg1)->setActiveDrawBuffers((std::vector< int > const &)*arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_activateAllDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_activateAllDrawBuffers",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_activateAllDrawBuffers" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->activateAllDrawBuffers(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getFbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getFbo" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getFbo(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getId" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getIdDrawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getIdDrawBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getIdDrawBuffer" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getIdDrawBuffer(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_checkGLSupport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_checkGLSupport")) SWIG_fail; result = (bool)ofFbo::checkGLSupport(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_maxColorAttachments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxColorAttachments")) SWIG_fail; + result = (int)ofFbo::maxColorAttachments(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_maxDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxDrawBuffers")) SWIG_fail; result = (int)ofFbo::maxDrawBuffers(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_maxSamples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxSamples")) SWIG_fail; result = (int)ofFbo::maxSamples(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthBuffer" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getDepthBuffer(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getStencilBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getStencilBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getStencilBuffer" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getStencilBuffer(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofFbo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofFbo, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofGetUsingArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetUsingArbTex")) SWIG_fail; result = (bool)ofGetUsingArbTex(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableArbTex")) SWIG_fail; ofEnableArbTex(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableArbTex")) SWIG_fail; ofDisableArbTex(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetUsingNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetUsingNormalizedTexCoords")) SWIG_fail; + result = (bool)ofGetUsingNormalizedTexCoords(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofEnableNormalizedTexCoords")) SWIG_fail; + ofEnableNormalizedTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofDisableNormalizedTexCoords")) SWIG_fail; + ofDisableNormalizedTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *OF_COMPRESS_NONE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_COMPRESS_NONE",SWIG_From_int(static_cast< int >(OF_COMPRESS_NONE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_COMPRESS_SRGB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_COMPRESS_SRGB",SWIG_From_int(static_cast< int >(OF_COMPRESS_SRGB))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_COMPRESS_ARB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_COMPRESS_ARB",SWIG_From_int(static_cast< int >(OF_COMPRESS_ARB))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofTextureData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTextureData")) SWIG_fail; + result = (ofTextureData *)new ofTextureData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_textureID_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureID_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_textureID_set" "', argument " "2"" of type '" "unsigned int""'"); } + arg2 = static_cast< unsigned int >(val2); if (arg1) (arg1)->textureID = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_textureID_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureID_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (unsigned int) ((arg1)->textureID); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureTarget_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_textureTarget_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureTarget_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_textureTarget_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->textureTarget = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureTarget_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_textureTarget_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureTarget_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (int) ((arg1)->textureTarget); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_glInternalFormat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_glInternalFormat_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_glInternalFormat_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_glInternalFormat_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->glInternalFormat = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_glInternalFormat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_glInternalFormat_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_glInternalFormat_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (int) ((arg1)->glInternalFormat); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_t_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_t_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_t_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_t = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_t_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_t_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_t_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_t); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_u_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_u_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_u_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_u_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_u = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_u_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_u_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_u_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_u); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_w_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_w_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_w_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_w_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_w = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_w_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_w_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_w_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_w); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_h_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_h_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_h_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_h = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_h_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_h_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_h); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_width_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_width_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_width_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_width_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_width_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->width); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_height_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_height_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_height_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_height_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_height_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->height); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bFlipTexture_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bFlipTexture_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bFlipTexture_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bFlipTexture_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bFlipTexture = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bFlipTexture_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bFlipTexture_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bFlipTexture_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->bFlipTexture); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_compressionType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_compressionType_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_compressionType_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_compressionType_set" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); if (arg1) (arg1)->compressionType = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_compressionType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexCompression result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_compressionType_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_compressionType_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (ofTexCompression) ((arg1)->compressionType); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bAllocated_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bAllocated_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bAllocated_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bAllocated_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bAllocated = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bAllocated_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bAllocated_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bAllocated_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->bAllocated); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_minFilter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_minFilter_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_minFilter_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_minFilter_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->minFilter = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_minFilter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_minFilter_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_minFilter_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->minFilter); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_magFilter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_magFilter_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_magFilter_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_magFilter_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->magFilter = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_magFilter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_magFilter_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_magFilter_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->magFilter); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeHorizontal_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_wrapModeHorizontal_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeHorizontal_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_wrapModeHorizontal_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->wrapModeHorizontal = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeHorizontal_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_wrapModeHorizontal_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeHorizontal_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->wrapModeHorizontal); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeVertical_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_wrapModeVertical_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeVertical_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_wrapModeVertical_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->wrapModeVertical = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeVertical_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_wrapModeVertical_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeVertical_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->wrapModeVertical); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bufferId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bufferId_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bufferId_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bufferId_set" "', argument " "2"" of type '" "unsigned int""'"); } + arg2 = static_cast< unsigned int >(val2); if (arg1) (arg1)->bufferId = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bufferId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bufferId_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bufferId_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (unsigned int) ((arg1)->bufferId); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofTextureData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTextureData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTextureData" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofTextureData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofTextureData, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofEnableTextureEdgeHack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableTextureEdgeHack")) SWIG_fail; ofEnableTextureEdgeHack(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableTextureEdgeHack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableTextureEdgeHack")) SWIG_fail; ofDisableTextureEdgeHack(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofIsTextureEdgeHackEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofIsTextureEdgeHackEnabled")) SWIG_fail; + result = (bool)ofIsTextureEdgeHackEnabled(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTexture")) SWIG_fail; + result = (ofTexture *)new ofTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofTexture, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture const &""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTexture *)new ofTexture((ofTexture const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofTexture, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture &&""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTexture *)new ofTexture((ofTexture &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofTexture__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofTexture__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofTexture__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::ofTexture()\n" " ofTexture::ofTexture(ofTexture const &)\n" + " ofTexture::ofTexture(ofTexture &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTextureData, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + arg2 = reinterpret_cast< ofTextureData * >(argp2); (arg1)->allocate((ofTextureData const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTextureData, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + arg2 = reinterpret_cast< ofTextureData * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->allocate((ofTextureData const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_allocate" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->allocate(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); (arg1)->allocate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; + int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_allocate" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_allocate" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->allocate(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->allocate((ofPixels const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->allocate((ofPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->allocate((ofShortPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->allocate((ofShortPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->allocate((ofFloatPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->allocate((ofFloatPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofTextureData, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_6(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_8(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_10(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_9(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_7(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_11(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofTextureData, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_4(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_5(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::allocate(ofTextureData const &)\n" + " ofTexture::allocate(ofTextureData const &,int,int)\n" " ofTexture::allocate(int,int,int)\n" + " ofTexture::allocate(int,int,int,int,int)\n" " ofTexture::allocate(int,int,int,bool)\n" + " ofTexture::allocate(int,int,int,bool,int,int)\n" " ofTexture::allocate(ofPixels const &)\n" + " ofTexture::allocate(ofPixels const &,bool)\n" " ofTexture::allocate(ofShortPixels const &)\n" + " ofTexture::allocate(ofShortPixels const &,bool)\n" " ofTexture::allocate(ofFloatPixels const &)\n" + " ofTexture::allocate(ofFloatPixels const &,bool)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_allocateAsBufferTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocateAsBufferTexture",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocateAsBufferTexture" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocateAsBufferTexture" "', argument " "2"" of type '" "ofBufferObject const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocateAsBufferTexture" "', argument " "2"" of type '" "ofBufferObject const &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocateAsBufferTexture" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->allocateAsBufferTexture((ofBufferObject const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_isAllocated" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bAllocated" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTexture" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_clear" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setUseExternalTextureID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; GLuint arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setUseExternalTextureID",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setUseExternalTextureID" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLuint, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setUseExternalTextureID" "', argument " "2"" of type '" "GLuint""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setUseExternalTextureID" "', argument " "2"" of type '" "GLuint""'"); } + else { GLuint * temp = reinterpret_cast< GLuint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setUseExternalTextureID(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; unsigned char *arg2 = (unsigned char *) (unsigned char *)0 ; int arg3 ; int arg4 ; + int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "unsigned char const *const""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadData((unsigned char const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadData((unsigned short const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->loadData((ofPixels const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->loadData((ofShortPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->loadData((ofFloatPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->loadData((ofPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->loadData((ofShortPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->loadData((ofFloatPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofBufferObject const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofBufferObject const &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->loadData((ofBufferObject const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_loadData__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_loadData__SWIG_4(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_loadData__SWIG_5(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_6(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_7(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_8(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_9(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_loadData'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::loadData(unsigned char const *const,int,int,int)\n" + " ofTexture::loadData(unsigned short const *,int,int,int)\n" " ofTexture::loadData(float const *,int,int,int)\n" + " ofTexture::loadData(ofPixels const &)\n" " ofTexture::loadData(ofShortPixels const &)\n" + " ofTexture::loadData(ofFloatPixels const &)\n" " ofTexture::loadData(ofPixels const &,int)\n" + " ofTexture::loadData(ofShortPixels const &,int)\n" " ofTexture::loadData(ofFloatPixels const &,int)\n" + " ofTexture::loadData(ofBufferObject const &,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_loadScreenData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadScreenData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadScreenData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_loadScreenData" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadScreenData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadScreenData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadScreenData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadScreenData(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofTexture const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofTexture const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofTexture const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofTexture const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofTexture const *)arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofTexture const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofTexture const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; ofPoint *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "ofPoint const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "5"" of type '" "ofPoint const &""'"); } + arg5 = reinterpret_cast< ofPoint * >(argp5); + ((ofTexture const *)arg1)->draw((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,(ofPoint const &)*arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_draw__SWIG_5(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofTexture::draw(float,float) const\n" + " ofTexture::draw(float,float,float) const\n" " ofTexture::draw(float,float,float,float) const\n" + " ofTexture::draw(float,float,float,float,float) const\n" + " ofTexture::draw(ofPoint const &,ofPoint const &,ofPoint const &,ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofTexture_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_2(self, args);} } } } } } } } } } if (argc == 10) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::drawSubsection(float,float,float,float,float,float) const\n" + " ofTexture::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofTexture::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofTexture::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_getQuad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; ofPoint *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_getQuad",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getQuad" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_getQuad" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTexture_getQuad" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofTexture_getQuad" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofTexture_getQuad" "', argument " "5"" of type '" "ofPoint const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "5"" of type '" "ofPoint const &""'"); } + arg5 = reinterpret_cast< ofPoint * >(argp5); + result = ((ofTexture const *)arg1)->getQuad((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,(ofPoint const &)*arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getMeshForSubsection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; float arg10 ; bool arg11 ; ofRectMode arg12 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + float val10 ; int ecode10 = 0 ; bool val11 ; int ecode11 = 0 ; int val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; + PyObject * obj11 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofTexture_getMeshForSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getMeshForSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getMeshForSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getMeshForSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_getMeshForSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_getMeshForSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_getMeshForSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_getMeshForSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_getMeshForSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_getMeshForSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofTexture_getMeshForSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_bool(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofTexture_getMeshForSubsection" "', argument " "11"" of type '" "bool""'"); } + arg11 = static_cast< bool >(val11); ecode12 = SWIG_AsVal_int(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofTexture_getMeshForSubsection" "', argument " "12"" of type '" "ofRectMode""'"); } + arg12 = static_cast< ofRectMode >(val12); + result = ((ofTexture const *)arg1)->getMeshForSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofTexture const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ((ofTexture const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::bind(int) const\n" " ofTexture::bind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_unbind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofTexture const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_unbind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ((ofTexture const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::unbind(int) const\n" " ofTexture::unbind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_getAlphaMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getAlphaMask",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getAlphaMask" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTexture *)((ofTexture const *)arg1)->getAlphaMask(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getHeight" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (float)((ofTexture const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getWidth" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (float)((ofTexture const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAnchorPercent" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAnchorPoint" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_resetAnchor" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getCoordFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_getCoordFromPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getCoordFromPoint" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getCoordFromPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getCoordFromPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofTexture const *)arg1)->getCoordFromPoint(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getCoordFromPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_getCoordFromPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getCoordFromPercent" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getCoordFromPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getCoordFromPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofTexture const *)arg1)->getCoordFromPercent(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setAlphaMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTexture *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setAlphaMask",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAlphaMask" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setAlphaMask" "', argument " "2"" of type '" "ofTexture &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setAlphaMask" "', argument " "2"" of type '" "ofTexture &""'"); } + arg2 = reinterpret_cast< ofTexture * >(argp2); (arg1)->setAlphaMask(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_disableAlphaMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_disableAlphaMask",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_disableAlphaMask" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->disableAlphaMask(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setTextureWrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; GLint arg2 ; GLint arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setTextureWrap",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureWrap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setTextureWrap" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setTextureWrap" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); (arg1)->setTextureWrap(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setTextureMinMagFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; GLint arg2 ; GLint arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setTextureMinMagFilter",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); (arg1)->setTextureMinMagFilter(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setTextureMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureMatrix" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setTextureMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setTextureMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->setTextureMatrix((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureMatrix" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofMatrix4x4 *) &((ofTexture const *)arg1)->getTextureMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_isUsingTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_isUsingTextureMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_isUsingTextureMatrix" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->isUsingTextureMatrix(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_disableTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_disableTextureMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_disableTextureMatrix" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->disableTextureMatrix(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setCompression" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setRGToRGBASwizzles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setRGToRGBASwizzles",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setRGToRGBASwizzles" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setRGToRGBASwizzles" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setRGToRGBASwizzles(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setSwizzle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setSwizzle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setSwizzle" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setSwizzle" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setSwizzle" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTexture_setSwizzle" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setSwizzle" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + (arg1)->setSwizzle(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ((ofTexture const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ((ofTexture const *)arg1)->readToPixels(*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ((ofTexture const *)arg1)->readToPixels(*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_1(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_readToPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::readToPixels(ofPixels &) const\n" + " ofTexture::readToPixels(ofShortPixels &) const\n" " ofTexture::readToPixels(ofFloatPixels &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_copyTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofBufferObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_copyTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_copyTo" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_copyTo" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_copyTo" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ((ofTexture const *)arg1)->copyTo(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *) &(arg1)->getTextureData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureData" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *) &((ofTexture const *)arg1)->getTextureData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_getTextureData__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_getTextureData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_getTextureData'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::getTextureData()\n" " ofTexture::getTextureData() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_enableMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_enableMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_enableMipmap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->enableMipmap(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_disableMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_disableMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_disableMipmap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->disableMipmap(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_generateMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_generateMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_generateMipmap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->generateMipmap(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_hasMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_hasMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_hasMipmap" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->hasMipmap(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_texData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_texData_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_texData_set" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofTextureData, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_texData_set" "', argument " "2"" of type '" "ofTextureData *""'"); } + arg2 = reinterpret_cast< ofTextureData * >(argp2); if (arg1) (arg1)->texData = *arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_texData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTextureData *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_texData_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_texData_get" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *)& ((arg1)->texData); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofTexture_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofTexture, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_BEST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_BEST",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_BEST))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_HIGH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_HIGH",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_HIGH))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_MEDIUM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_MEDIUM",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_MEDIUM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_LOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_LOW",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_LOW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_WORST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_WORST",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_WORST))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_BMP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_BMP",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_BMP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_ICO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_ICO",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_ICO))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_JPEG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JPEG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JPEG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_JNG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JNG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_KOALA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_KOALA",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_KOALA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_LBM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_LBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_LBM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_IFF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_IFF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_IFF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_MNG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_MNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_MNG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PBM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PBM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PBMRAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PBMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PBMRAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PCD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PCD",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PCD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PCX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PCX",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PCX))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PGM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PGM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PGM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PGMRAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PGMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PGMRAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PNG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PNG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PPM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PPM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PPM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PPMRAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PPMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PPMRAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_RAS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_RAS",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_RAS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_TARGA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_TARGA",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_TARGA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_TIFF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_TIFF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_TIFF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_WBMP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_WBMP",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_WBMP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PSD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PSD",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PSD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_CUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_CUT",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_CUT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_XBM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_XBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_XBM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_XPM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_XPM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_XPM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_DDS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_DDS",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_DDS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_GIF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_GIF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_GIF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_HDR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_HDR",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_HDR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_FAXG3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_FAXG3",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_FAXG3))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_SGI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_SGI",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_SGI))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_EXR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_EXR",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_EXR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_J2K_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_J2K",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_J2K))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_JP2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JP2",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JP2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PFM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PFM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PFM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PICT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PICT",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PICT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_RAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_RAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_RAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofImage")) SWIG_fail; + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofPixels_< unsigned char > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofFile const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofFile const &""'"); } + arg1 = reinterpret_cast< ofFile * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofFile const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > const &""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofImage_< unsigned char > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > &&""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofImage_< unsigned char > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofImage__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_1(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_4(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_5(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_3(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::ofImage_()\n" + " ofImage_< unsigned char >::ofImage_(ofPixels_< unsigned char > const &)\n" + " ofImage_< unsigned char >::ofImage_(ofFile const &)\n" " ofImage_< unsigned char >::ofImage_(std::string const &)\n" + " ofImage_< unsigned char >::ofImage_(ofImage_< unsigned char > const &)\n" + " ofImage_< unsigned char >::ofImage_(ofImage_< unsigned char > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_allocate" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_isAllocated" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (bool)((ofImage_< unsigned char > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bAllocated" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (bool)(arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_clear" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_load" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->load((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_load" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->load((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_load" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->load((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_load__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_load__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_load__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_load'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::load(std::string const &)\n" + " ofImage_< unsigned char >::load(ofBuffer const &)\n" " ofImage_< unsigned char >::load(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_loadImage__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_loadImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::loadImage(std::string)\n" + " ofImage_< unsigned char >::loadImage(ofBuffer const &)\n" " ofImage_< unsigned char >::loadImage(ofFile const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofImage_< unsigned char > const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofImage_< unsigned char > const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned char > const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofImage_< unsigned char >::draw(float,float) const\n" + " ofImage_< unsigned char >::draw(float,float,float) const\n" + " ofImage_< unsigned char >::draw(float,float,float,float) const\n" + " ofImage_< unsigned char >::draw(float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); + ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); + ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } if (argc == 10) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float) const\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_update" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (bool)((ofImage_< unsigned char > const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned char > const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getTexture()\n" + " ofImage_< unsigned char >::getTexture() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned char > const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getTextureReference()\n" + " ofImage_< unsigned char >::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned char > const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ((ofImage_< unsigned char > const *)arg1)->bind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::bind(int) const\n" + " ofImage_< unsigned char >::bind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned char > const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ((ofImage_< unsigned char > const *)arg1)->unbind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::unbind(int) const\n" + " ofImage_< unsigned char >::unbind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setCompression" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (ofPixels_< unsigned char > *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *) &((ofImage_< unsigned char > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getPixels()\n" + " ofImage_< unsigned char >::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *) &((ofImage_< unsigned char > const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getPixelsRef()\n" + " ofImage_< unsigned char >::getPixelsRef() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_getColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ((ofImage_< unsigned char > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofImage_< unsigned char > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getColor(int,int) const\n" + " ofImage_< unsigned char >::getColor(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getHeight" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (float)((ofImage_< unsigned char > const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getWidth" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (float)((ofImage_< unsigned char > const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; + ofColor_< unsigned char > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } + arg4 = reinterpret_cast< ofColor_< unsigned char > * >(argp4); + (arg1)->setColor(arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; ofColor_< unsigned char > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } + arg3 = reinterpret_cast< ofColor_< unsigned char > * >(argp3); + (arg1)->setColor(arg2,(ofColor_< unsigned char > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->setColor((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::setColor(int,int,ofColor_< unsigned char > const &)\n" + " ofImage_< unsigned char >::setColor(int,ofColor_< unsigned char > const &)\n" + " ofImage_< unsigned char >::setColor(ofColor_< unsigned char > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; + ofPixels_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setFromPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); + (arg1)->setFromPixels((ofPixels_< unsigned char > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned char >::setFromPixels(unsigned char const *,int,int,ofImageType,bool)\n" + " ofImage_< unsigned char >::setFromPixels(unsigned char const *,int,int,ofImageType)\n" + " ofImage_< unsigned char >::setFromPixels(ofPixels_< unsigned char > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_grabScreen" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_grabScreen" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_grabScreen" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_grabScreen" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_grabScreen" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setImageType" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getImageType" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofImageType)((ofImage_< unsigned char > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_resize" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_resize" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_resize" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_crop" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_crop" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_crop" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_crop" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_crop" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofImage_< unsigned char > *arg2 = 0 ; int arg3 ; + int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_cropFrom" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofImage_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_cropFrom" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_cropFrom" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_cropFrom" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_cropFrom" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_rotate90" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_mirror" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->save(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->save(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->save((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_save__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_save__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_save__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_save__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_save'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::save(std::string,ofImageQualityType)\n" + " ofImage_< unsigned char >::save(std::string)\n" " ofImage_< unsigned char >::save(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned char >::save(ofBuffer &)\n" " ofImage_< unsigned char >::save(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned char >::save(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_saveImage__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_saveImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::saveImage(std::string,ofImageQualityType)\n" + " ofImage_< unsigned char >::saveImage(std::string)\n" + " ofImage_< unsigned char >::saveImage(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned char >::saveImage(ofBuffer &)\n" + " ofImage_< unsigned char >::saveImage(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned char >::saveImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *ofImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFloatImage")) SWIG_fail; + result = (ofImage_< float > *)new ofImage_< float >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofImage_< float > *)new ofImage_< float >((ofPixels_< float > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofFile const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofFile const &""'"); } + arg1 = reinterpret_cast< ofFile * >(argp1); result = (ofImage_< float > *)new ofImage_< float >((ofFile const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofImage_< float > *)new ofImage_< float >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > const &""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofImage_< float > *)new ofImage_< float >((ofImage_< float > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_float_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > &&""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofImage_< float > *)new ofImage_< float >((ofImage_< float > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFloatImage__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_1(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_4(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_5(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_3(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::ofImage_()\n" + " ofImage_< float >::ofImage_(ofPixels_< float > const &)\n" " ofImage_< float >::ofImage_(ofFile const &)\n" + " ofImage_< float >::ofImage_(std::string const &)\n" " ofImage_< float >::ofImage_(ofImage_< float > const &)\n" + " ofImage_< float >::ofImage_(ofImage_< float > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_allocate" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_isAllocated" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)((ofImage_< float > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bAllocated" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)(arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_clear" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_load" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->load((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_load" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->load((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_load" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->load((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_load__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_load__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_load__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_load'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::load(std::string const &)\n" + " ofImage_< float >::load(ofBuffer const &)\n" " ofImage_< float >::load(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_loadImage__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_loadImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::loadImage(std::string)\n" + " ofImage_< float >::loadImage(ofBuffer const &)\n" " ofImage_< float >::loadImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofFloatImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofImage_< float > const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofImage_< float > const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< float > const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofImage_< float > const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< float > const *)arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatColor_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofImage_< float > const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofImage_< float > const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofImage_< float >::draw(float,float) const\n" + " ofImage_< float >::draw(float,float,float) const\n" " ofImage_< float >::draw(float,float,float,float) const\n" + " ofImage_< float >::draw(float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofFloatImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); + ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofFloatImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofFloatImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } + if (argc == 10) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::drawSubsection(float,float,float,float,float,float) const\n" + " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_update" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)((ofImage_< float > const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTexture" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTexture" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofTexture *) &((ofImage_< float > const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getTexture()\n" " ofImage_< float >::getTexture() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofTexture *) &((ofImage_< float > const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getTextureReference()\n" + " ofImage_< float >::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< float > const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ((ofImage_< float > const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::bind(int) const\n" " ofImage_< float >::bind() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_unbind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< float > const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_unbind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ((ofImage_< float > const *)arg1)->unbind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::unbind(int) const\n" " ofImage_< float >::unbind() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setCompression" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofPixels_< float > *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixels" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofPixels_< float > *) &((ofImage_< float > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getPixels()\n" " ofImage_< float >::getPixels() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofPixels_< float > *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofPixels_< float > *) &((ofImage_< float > const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getPixelsRef()\n" + " ofImage_< float >::getPixelsRef() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getColor" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_getColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ((ofImage_< float > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getColor" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofImage_< float > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getColor(int,int) const\n" + " ofImage_< float >::getColor(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getHeight" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (float)((ofImage_< float > const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getWidth" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (float)((ofImage_< float > const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; + ofColor_< float > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatImage_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } + arg4 = reinterpret_cast< ofColor_< float > * >(argp4); (arg1)->setColor(arg2,arg3,(ofColor_< float > const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; ofColor_< float > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } + arg3 = reinterpret_cast< ofColor_< float > * >(argp3); (arg1)->setColor(arg2,(ofColor_< float > const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->setColor((ofColor_< float > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::setColor(int,int,ofColor_< float > const &)\n" + " ofImage_< float >::setColor(int,ofColor_< float > const &)\n" + " ofImage_< float >::setColor(ofColor_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; + ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; + ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setFromPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< float > const &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); (arg1)->setFromPixels((ofPixels_< float > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::setFromPixels(float const *,int,int,ofImageType,bool)\n" + " ofImage_< float >::setFromPixels(float const *,int,int,ofImageType)\n" + " ofImage_< float >::setFromPixels(ofPixels_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_grabScreen" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_grabScreen" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_grabScreen" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_grabScreen" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_grabScreen" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setImageType" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImageType result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getImageType" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofImageType)((ofImage_< float > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_resize" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_resize" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_resize" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_crop" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_crop" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_crop" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_crop" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_crop" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofImage_< float > *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_cropFrom" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_cropFrom" "', argument " "2"" of type '" "ofImage_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_cropFrom" "', argument " "2"" of type '" "ofImage_< float > &""'"); } + arg2 = reinterpret_cast< ofImage_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_cropFrom" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_cropFrom" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_cropFrom" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_cropFrom" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_rotate90" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_mirror" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->save(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->save(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->save((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_save__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_save__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_save__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_save__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_save'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::save(std::string,ofImageQualityType)\n" + " ofImage_< float >::save(std::string)\n" " ofImage_< float >::save(ofBuffer &,ofImageQualityType)\n" + " ofImage_< float >::save(ofBuffer &)\n" " ofImage_< float >::save(ofFile const &,ofImageQualityType)\n" + " ofImage_< float >::save(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_saveImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::saveImage(std::string,ofImageQualityType)\n" + " ofImage_< float >::saveImage(std::string)\n" " ofImage_< float >::saveImage(ofBuffer &,ofImageQualityType)\n" + " ofImage_< float >::saveImage(ofBuffer &)\n" " ofImage_< float >::saveImage(ofFile const &,ofImageQualityType)\n" + " ofImage_< float >::saveImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *ofFloatImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_float_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortImage")) SWIG_fail; + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofPixels_< unsigned short > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofFile const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofFile const &""'"); } + arg1 = reinterpret_cast< ofFile * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofFile const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofImage_< unsigned short > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > &&""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofImage_< unsigned short > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofShortImage__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_1(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_4(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_5(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_3(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::ofImage_()\n" + " ofImage_< unsigned short >::ofImage_(ofPixels_< unsigned short > const &)\n" + " ofImage_< unsigned short >::ofImage_(ofFile const &)\n" " ofImage_< unsigned short >::ofImage_(std::string const &)\n" + " ofImage_< unsigned short >::ofImage_(ofImage_< unsigned short > const &)\n" + " ofImage_< unsigned short >::ofImage_(ofImage_< unsigned short > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_allocate" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_isAllocated" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (bool)((ofImage_< unsigned short > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bAllocated" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (bool)(arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_clear" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_load" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->load((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_load" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->load((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_load" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->load((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_load__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_load__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_load__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_load'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::load(std::string const &)\n" + " ofImage_< unsigned short >::load(ofBuffer const &)\n" " ofImage_< unsigned short >::load(ofFile const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_loadImage__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_loadImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::loadImage(std::string)\n" + " ofImage_< unsigned short >::loadImage(ofBuffer const &)\n" + " ofImage_< unsigned short >::loadImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofShortImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofPoint *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofImage_< unsigned short > const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofRectangle *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); + ((ofImage_< unsigned short > const *)arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofPoint *arg2 = 0 ; + float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned short > const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_set" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatColor_set" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofImage_< unsigned short >::draw(float,float) const\n" + " ofImage_< unsigned short >::draw(float,float,float) const\n" + " ofImage_< unsigned short >::draw(float,float,float,float) const\n" + " ofImage_< unsigned short >::draw(float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofShortImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofShortImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofShortImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } + if (argc == 10) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float) const\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_update" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (bool)((ofImage_< unsigned short > const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned short > const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getTexture()\n" + " ofImage_< unsigned short >::getTexture() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned short > const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTextureReference__SWIG_0(self, args);} } + if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getTextureReference()\n" + " ofImage_< unsigned short >::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned short > const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ((ofImage_< unsigned short > const *)arg1)->bind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::bind(int) const\n" + " ofImage_< unsigned short >::bind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned short > const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ((ofImage_< unsigned short > const *)arg1)->unbind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::unbind(int) const\n" + " ofImage_< unsigned short >::unbind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofTexCompression arg2 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setCompression" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &((ofImage_< unsigned short > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getPixels()\n" + " ofImage_< unsigned short >::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &((ofImage_< unsigned short > const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getPixelsRef()\n" + " ofImage_< unsigned short >::getPixelsRef() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_getColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ((ofImage_< unsigned short > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofImage_< unsigned short > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getColor(int,int) const\n" + " ofImage_< unsigned short >::getColor(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getHeight" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (float)((ofImage_< unsigned short > const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getWidth" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (float)((ofImage_< unsigned short > const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; + ofColor_< unsigned short > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShortImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + arg4 = reinterpret_cast< ofColor_< unsigned short > * >(argp4); + (arg1)->setColor(arg2,arg3,(ofColor_< unsigned short > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; + ofColor_< unsigned short > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + arg3 = reinterpret_cast< ofColor_< unsigned short > * >(argp3); + (arg1)->setColor(arg2,(ofColor_< unsigned short > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->setColor((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::setColor(int,int,ofColor_< unsigned short > const &)\n" + " ofImage_< unsigned short >::setColor(int,ofColor_< unsigned short > const &)\n" + " ofImage_< unsigned short >::setColor(ofColor_< unsigned short > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + ofPixels_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setFromPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); + (arg1)->setFromPixels((ofPixels_< unsigned short > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned short >::setFromPixels(unsigned short const *,int,int,ofImageType,bool)\n" + " ofImage_< unsigned short >::setFromPixels(unsigned short const *,int,int,ofImageType)\n" + " ofImage_< unsigned short >::setFromPixels(ofPixels_< unsigned short > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_grabScreen" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_grabScreen" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_grabScreen" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_grabScreen" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_grabScreen" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setImageType" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getImageType" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofImageType)((ofImage_< unsigned short > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_resize" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_resize" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_resize" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_crop" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_crop" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_crop" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_crop" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_crop" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofImage_< unsigned short > *arg2 = 0 ; int arg3 ; + int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_cropFrom" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofImage_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_cropFrom" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_cropFrom" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_cropFrom" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_cropFrom" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_rotate90" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_mirror" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_set" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->save(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_set",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->set((ofColor_< float > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor_set__SWIG_4(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_set__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_set__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_set'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::set(float,float,float,float)\n" - " ofColor_< float >::set(float,float,float)\n" " ofColor_< float >::set(float,float)\n" - " ofColor_< float >::set(float)\n" " ofColor_< float >::set(ofColor_< float > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_setHex",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHex" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setHex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->save(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHex" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->save((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_setHex__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_save__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_save__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_save__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_save__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_save'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::save(std::string,ofImageQualityType)\n" + " ofImage_< unsigned short >::save(std::string)\n" " ofImage_< unsigned short >::save(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned short >::save(ofBuffer &)\n" + " ofImage_< unsigned short >::save(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned short >::save(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; + ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; + ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; + ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_saveImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::saveImage(std::string,ofImageQualityType)\n" + " ofImage_< unsigned short >::saveImage(std::string)\n" + " ofImage_< unsigned short >::saveImage(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned short >::saveImage(ofBuffer &)\n" + " ofImage_< unsigned short >::saveImage(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned short >::saveImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *ofShortImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; ofBaseApp *arg3 = (ofBaseApp *) 0 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundStreamSetup",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ofBaseApp, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "ofBaseApp *""'"); } + arg3 = reinterpret_cast< ofBaseApp * >(argp3); ofSoundStreamSetup(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStreamSetup",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSoundStreamSetup(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofSoundStreamSetup",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStreamSetup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStreamSetup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ofSoundStreamSetup(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; ofBaseApp *arg3 = (ofBaseApp *) 0 ; int arg4 ; int arg5 ; int arg6 ; int val1 ; int ecode1 = 0 ; + int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofSoundStreamSetup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ofBaseApp, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "ofBaseApp *""'"); } + arg3 = reinterpret_cast< ofBaseApp * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStreamSetup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStreamSetup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStreamSetup" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ofSoundStreamSetup(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_0(self, args);} } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_setHex__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_setHex'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::setHex(int,float)\n" " ofColor_< float >::setHex(int)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHex" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (int)((ofColor_< float > const *)arg1)->getHex(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_clamp",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_clamp" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->clamp(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_3(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStreamSetup'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStreamSetup(int,int,ofBaseApp *)\n" " ofSoundStreamSetup(int,int)\n" + " ofSoundStreamSetup(int,int,int,int,int)\n" " ofSoundStreamSetup(int,int,ofBaseApp *,int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStreamStop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamStop")) SWIG_fail; ofSoundStreamStop(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamStart")) SWIG_fail; ofSoundStreamStart(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamClose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamClose")) SWIG_fail; ofSoundStreamClose(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamListDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamListDevices")) SWIG_fail; result = ofSoundStreamListDevices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofSoundStream")) SWIG_fail; + result = (ofSoundStream *)new ofSoundStream(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSoundStream, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; shared_ptr< ofBaseSoundStream > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setSoundStream",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseSoundStream_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setSoundStream" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundStream >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setSoundStream" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundStream >""'"); } + else { shared_ptr< ofBaseSoundStream > * temp = reinterpret_cast< shared_ptr< ofBaseSoundStream > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setSoundStream(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + shared_ptr< ofBaseSoundStream > result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getSoundStream",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (arg1)->getSoundStream(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseSoundStream >(static_cast< const shared_ptr< ofBaseSoundStream >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseSoundStream_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_printDeviceList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_printDeviceList",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_printDeviceList" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); ((ofSoundStream const *)arg1)->printDeviceList(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getDeviceList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getDeviceList",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getDeviceList" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = ((ofSoundStream const *)arg1)->getDeviceList(); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; + unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; + unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSoundStream_getMatchingDevices",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "3"" of type '" "unsigned int""'"); } + arg3 = static_cast< unsigned int >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "4"" of type '" "unsigned int""'"); } + arg4 = static_cast< unsigned int >(val4); + result = ((ofSoundStream const *)arg1)->getMatchingDevices((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundStream_getMatchingDevices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "3"" of type '" "unsigned int""'"); } + arg3 = static_cast< unsigned int >(val3); + result = ((ofSoundStream const *)arg1)->getMatchingDevices((std::string const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_getMatchingDevices",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofSoundStream const *)arg1)->getMatchingDevices((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStream_getMatchingDevices__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_getMatchingDevices__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_getMatchingDevices__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_getMatchingDevices'.\n" + " Possible C/C++ prototypes are:\n" + " ofSoundStream::getMatchingDevices(std::string const &,unsigned int,unsigned int) const\n" + " ofSoundStream::getMatchingDevices(std::string const &,unsigned int) const\n" + " ofSoundStream::getMatchingDevices(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setDeviceID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setDeviceID",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setDeviceID" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStream_setDeviceID" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setDeviceID(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofSoundDevice *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setDevice",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setDevice" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofSoundDevice, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setDevice" "', argument " "2"" of type '" "ofSoundDevice const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setDevice" "', argument " "2"" of type '" "ofSoundDevice const &""'"); } + arg2 = reinterpret_cast< ofSoundDevice * >(argp2); (arg1)->setDevice((ofSoundDevice const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseApp *arg2 = (ofBaseApp *) 0 ; int arg3 ; int arg4 ; + int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofSoundStream_setup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setup" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseApp, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setup" "', argument " "2"" of type '" "ofBaseApp *""'"); } + arg2 = reinterpret_cast< ofBaseApp * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_setup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStream_setup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStream_setup" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofSoundStream_setup" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); result = (bool)(arg1)->setup(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofSoundStream_setup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setup" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStream_setup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_setup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStream_setup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStream_setup" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); result = (bool)(arg1)->setup(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_setup__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_setup__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_setup'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStream::setup(ofBaseApp *,int,int,int,int,int)\n" + " ofSoundStream::setup(int,int,int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setInput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundInput *arg2 = (ofBaseSoundInput *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setInput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setInput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseSoundInput, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setInput" "', argument " "2"" of type '" "ofBaseSoundInput *""'"); } + arg2 = reinterpret_cast< ofBaseSoundInput * >(argp2); (arg1)->setInput(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundInput *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setInput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setInput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBaseSoundInput, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setInput" "', argument " "2"" of type '" "ofBaseSoundInput &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setInput" "', argument " "2"" of type '" "ofBaseSoundInput &""'"); } + arg2 = reinterpret_cast< ofBaseSoundInput * >(argp2); (arg1)->setInput(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setInput(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundInput, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofSoundStream_setInput__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundInput, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStream_setInput__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_setInput'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStream::setInput(ofBaseSoundInput *)\n" + " ofSoundStream::setInput(ofBaseSoundInput &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setOutput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundOutput *arg2 = (ofBaseSoundOutput *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setOutput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setOutput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseSoundOutput, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setOutput" "', argument " "2"" of type '" "ofBaseSoundOutput *""'"); } + arg2 = reinterpret_cast< ofBaseSoundOutput * >(argp2); (arg1)->setOutput(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setOutput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundOutput *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setOutput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setOutput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBaseSoundOutput, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setOutput" "', argument " "2"" of type '" "ofBaseSoundOutput &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setOutput" "', argument " "2"" of type '" "ofBaseSoundOutput &""'"); } + arg2 = reinterpret_cast< ofBaseSoundOutput * >(argp2); (arg1)->setOutput(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setOutput(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundOutput, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofSoundStream_setOutput__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundOutput, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStream_setOutput__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_setOutput'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStream::setOutput(ofBaseSoundOutput *)\n" + " ofSoundStream::setOutput(ofBaseSoundOutput &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_start" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->start(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_invert",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_invert" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->invert(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundStream_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_stop" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_normalize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_normalize" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->normalize(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundStream_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_close" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_lerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_lerp",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_lerp" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_lerp" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_lerp" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_lerp" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (ofColor_< float > *) &(arg1)->lerp((ofColor_< float > const &)*arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundStream_getTickCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long long result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getTickCount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getTickCount" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); + result = (unsigned long long)((ofSoundStream const *)arg1)->getTickCount(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getClamped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getClamped",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getClamped" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getClamped(); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getInverted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getInverted",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getInverted" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getInverted(); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getNormalized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getNormalized" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getNormalized(); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofSoundStream_getNumInputChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getNumInputChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getNumInputChannels" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getNumInputChannels(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getNumOutputChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getNumOutputChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getNumOutputChannels" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getNumOutputChannels(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getSampleRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getSampleRate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getSampleRate" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getSampleRate(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getBufferSize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getBufferSize" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getBufferSize(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_listDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_listDevices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_listDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = ((ofSoundStream const *)arg1)->listDevices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getLerped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_getLerped",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getLerped" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_getLerped" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getLerped" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_getLerped" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); - result = ((ofColor_< float > const *)arg1)->getLerped((ofColor_< float > const &)*arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_delete_ofSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSoundStream",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofSoundStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofSoundStream, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofSoundPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofSoundPlayer")) SWIG_fail; + result = (ofSoundPlayer *)new ofSoundPlayer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSoundPlayer, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; SwigValueWrapper< shared_ptr< ofBaseSoundPlayer > > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPlayer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseSoundPlayer_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundPlayer >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundPlayer >""'"); } + else { shared_ptr< ofBaseSoundPlayer > * temp = reinterpret_cast< shared_ptr< ofBaseSoundPlayer > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setPlayer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseSoundPlayer > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (arg1)->getPlayer(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseSoundPlayer >(static_cast< const shared_ptr< ofBaseSoundPlayer >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseSoundPlayer_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHue" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getHue(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHueAngle",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHueAngle" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getHueAngle(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getSaturation",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getSaturation" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getSaturation(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getBrightness",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getBrightness" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getBrightness(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getLightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getLightness",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getLightness" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getLightness(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getHsb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_getHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHsb" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_getHsb" "', argument " "2"" of type '" "float &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "2"" of type '" "float &""'"); } - arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatColor_getHsb" "', argument " "3"" of type '" "float &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "3"" of type '" "float &""'"); } - arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatColor_getHsb" "', argument " "4"" of type '" "float &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "4"" of type '" "float &""'"); } - arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< float > const *)arg1)->getHsb(*arg2,*arg3,*arg4); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHue" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHue" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHueAngle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundPlayer_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundPlayer_load",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_load" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundPlayer_load" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); result = (bool)(arg1)->load(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_load" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundPlayer_load__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundPlayer_load__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundPlayer_load'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundPlayer::load(std::string,bool)\n" " ofSoundPlayer::load(std::string)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundPlayer_loadSound",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_loadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_loadSound" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundPlayer_loadSound" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); result = (bool)(arg1)->loadSound(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_loadSound",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_loadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_loadSound" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadSound(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundPlayer_loadSound__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundPlayer_loadSound__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundPlayer_loadSound'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundPlayer::loadSound(std::string,bool)\n" + " ofSoundPlayer::loadSound(std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_unload",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_unload" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->unload(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setSaturation",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setSaturation" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setSaturation" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundPlayer_unloadSound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_unloadSound",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_unloadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->unloadSound(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setBrightness",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setBrightness" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setBrightness" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundPlayer_play(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_play",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_play" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->play(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; - float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHsb" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_setHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatColor_setHsb" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundPlayer_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_stop" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHsb" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_setHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setVolume",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setVolume" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setVolume" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setVolume(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor_setHsb__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_setHsb'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::setHsb(float,float,float,float)\n" - " ofColor_< float >::setHsb(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___eq__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___eq__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___eq__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); result = (bool)(arg1)->operator ==((ofColor_< float > const &)*arg2); +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPan",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPan" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPan" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setPan(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setSpeed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setSpeed" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setSpeed" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSpeed(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPaused",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPaused" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPaused" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setPaused(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setLoop",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setLoop" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setLoop" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setLoop(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setMultiPlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setMultiPlay",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setMultiPlay" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setMultiPlay" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setMultiPlay(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPosition",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPosition" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPosition" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setPosition(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPositionMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPositionMS",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPositionMS" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPositionMS" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setPositionMS(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPositionMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPositionMS",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPositionMS" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (int)((ofSoundPlayer const *)arg1)->getPositionMS(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPosition",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPosition" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getPosition(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_isPlaying(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_isPlaying",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_isPlaying" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)((ofSoundPlayer const *)arg1)->isPlaying(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___ne__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___ne__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___ne__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); result = (bool)(arg1)->operator !=((ofColor_< float > const &)*arg2); +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getIsPlaying(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getIsPlaying",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getIsPlaying" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)((ofSoundPlayer const *)arg1)->getIsPlaying(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getSpeed",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getSpeed" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getSpeed(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPan",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPan" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getPan(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getVolume",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getVolume" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getVolume(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_isLoaded",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_isLoaded" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)((ofSoundPlayer const *)arg1)->isLoaded(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___add__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = ((ofColor_< float > const *)arg1)->operator +((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___add__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< float > const *)arg1)->operator +((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___add__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofFloatColor___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___iadd__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = (ofColor_< float > *) &(arg1)->operator +=((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___iadd__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< float > *) &(arg1)->operator +=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___iadd__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___iadd____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___iadd__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator +=(ofColor_< float > const &)\n" - " ofColor_< float >::operator +=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___sub__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = ((ofColor_< float > const *)arg1)->operator -((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_delete_ofSoundPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSoundPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSoundPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofSoundPlayer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofSoundPlayer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofColor")) SWIG_fail; + result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___sub__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< float > const *)arg1)->operator -((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofColor" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofFloatColor___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___isub__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = (ofColor_< float > *) &(arg1)->operator -=((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofColor",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___isub__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< float > *) &(arg1)->operator -=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___isub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___isub____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___isub__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator -=(ofColor_< float > const &)\n" - " ofColor_< float >::operator -=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___mul__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = ((ofColor_< float > const *)arg1)->operator *((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___mul__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< float > const *)arg1)->operator *((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); + result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >((ofColor_< unsigned char > const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { +SWIGINTERN PyObject *_wrap_new_ofColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofColor__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofColor__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofFloatColor___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___imul__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = (ofColor_< float > *) &(arg1)->operator *=((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___imul__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< float > *) &(arg1)->operator *=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_new_ofColor__SWIG_5(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___imul____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___imul__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator *=(ofColor_< float > const &)\n" - " ofColor_< float >::operator *=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___div__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = ((ofColor_< float > const *)arg1)->operator /((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return _wrap_new_ofColor__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofColor__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofColor'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::ofColor_()\n" + " ofColor_< unsigned char >::ofColor_(float,float,float,float)\n" + " ofColor_< unsigned char >::ofColor_(float,float,float)\n" " ofColor_< unsigned char >::ofColor_(float,float)\n" + " ofColor_< unsigned char >::ofColor_(float)\n" + " ofColor_< unsigned char >::ofColor_(ofColor_< unsigned char > const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_fromHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___div__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = ((ofColor_< float > const *)arg1)->operator /((float const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___div__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofFloatColor___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___idiv__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); - result = (ofColor_< float > *) &(arg1)->operator /=((ofColor_< float > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofColor_fromHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_fromHsb__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_fromHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::fromHsb(float,float,float,float)\n" + " ofColor_< unsigned char >::fromHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_fromHex",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___idiv__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "float""'"); } - temp2 = static_cast< float >(val2); arg2 = &temp2; - result = (ofColor_< float > *) &(arg1)->operator /=((float const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatColor___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___idiv____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___idiv__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator /=(ofColor_< float > const &)\n" - " ofColor_< float >::operator /=(float const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___getitem__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (float *) &((ofColor_< float > const *)arg1)->operator [](arg2); - resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___getitem__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (float *) &(arg1)->operator [](arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatColor___getitem____SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___getitem__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator [](int) const\n" - " ofColor_< float >::operator [](int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float result; if (!PyArg_ParseTuple(args,(char *)":ofFloatColor_limit")) SWIG_fail; - result = (float)ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR limit(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getR",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getR" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getR(arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getG",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getG" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getG(arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getB",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getB" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getB(arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_getA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getA",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getA" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getA(arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setR",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setR" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setR" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setR(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofColor_fromHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofColor_fromHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_fromHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::fromHex(int,float)\n" + " ofColor_< unsigned char >::fromHex(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofColor_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofColor_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setG" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setG" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setG(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_set" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_set" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->set((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor_set__SWIG_4(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_set'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::set(float,float,float,float)\n" + " ofColor_< unsigned char >::set(float,float,float)\n" " ofColor_< unsigned char >::set(float,float)\n" + " ofColor_< unsigned char >::set(float)\n" " ofColor_< unsigned char >::set(ofColor_< unsigned char > const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofColor_setHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_setHex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setHex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; +SWIGINTERN PyObject *_wrap_ofColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setB",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setB" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setB" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setB(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHex__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHex__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_setHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::setHex(int,float)\n" + " ofColor_< unsigned char >::setHex(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHue" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHue" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHueAngle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_setA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; +SWIGINTERN PyObject *_wrap_ofColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setA",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setA" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setA" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setA(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setSaturation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setSaturation" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setSaturation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor___str__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___str__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (char *)ofColor__Sl_float_Sg____str__(arg1); - resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; +SWIGINTERN PyObject *_wrap_ofColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_r_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_r_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_r_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__r_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setBrightness",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setBrightness" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setBrightness" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofColor_setHsb" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHsb__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_setHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::setHsb(float,float,float,float)\n" + " ofColor_< unsigned char >::setHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_clamp",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_clamp" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->clamp(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_r_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_r_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__r_get(arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_g_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_g_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_g_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__g_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; +SWIGINTERN PyObject *_wrap_ofColor_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_invert",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_invert" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->invert(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_g_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_g_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__g_get(arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_b_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_b_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_b_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__b_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; +SWIGINTERN PyObject *_wrap_ofColor_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_normalize" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_b_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_b_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__b_get(arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_a_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_a_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_a_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__a_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; +SWIGINTERN PyObject *_wrap_ofColor_lerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_lerp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_lerp" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_lerp" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = (ofColor_< unsigned char > *) &(arg1)->lerp((ofColor_< unsigned char > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatColor_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_a_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_a_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } - arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__a_get(arg1); +SWIGINTERN PyObject *_wrap_ofColor_getClamped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getClamped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getClamped" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = ((ofColor_< unsigned char > const *)arg1)->getClamped(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getInverted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getInverted",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getInverted" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = ((ofColor_< unsigned char > const *)arg1)->getInverted(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getNormalized" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = ((ofColor_< unsigned char > const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getLerped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_getLerped",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getLerped" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_getLerped" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = ((ofColor_< unsigned char > const *)arg1)->getLerped((ofColor_< unsigned char > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHex" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (int)((ofColor_< unsigned char > const *)arg1)->getHex(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHue" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getHue(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofFloatColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofColor_T_float_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortColor")) SWIG_fail; - result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); +SWIGINTERN PyObject *_wrap_ofColor_getHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHueAngle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getHueAngle(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getSaturation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getSaturation" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getSaturation(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getBrightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getBrightness" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getBrightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getLightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getLightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getLightness" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getLightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getHsb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_getHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< unsigned char > const *)arg1)->getHsb(*arg2,*arg3,*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofColor_limit")) SWIG_fail; + result = (float)ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR limit(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___eq__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (bool)((ofColor_< unsigned char > const *)arg1)->operator ==((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___ne__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (bool)((ofColor_< unsigned char > const *)arg1)->operator !=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator +((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___add__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator +((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofShortColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofColor_< unsigned short > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofShortColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofShortColor" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofShortColor" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator +=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofShortColor",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofShortColor" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator +=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); - result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >((ofColor_< unsigned short > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator +=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator +=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator -((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:new_ofShortColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); +SWIGINTERN PyObject *_wrap_ofColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); - result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >((ofColor_< unsigned short > const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___sub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator -((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:new_ofShortColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator -=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned short > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___isub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator -=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofShortColor__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofShortColor__SWIG_3(self, args);} } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofShortColor__SWIG_6(self, args);} } if (argc == 2) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofShortColor__SWIG_4(self, args);} } } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofShortColor__SWIG_5(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofShortColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofShortColor__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortColor'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::ofColor_()\n" - " ofColor_< unsigned short >::ofColor_(float,float,float,float)\n" - " ofColor_< unsigned short >::ofColor_(float,float,float)\n" - " ofColor_< unsigned short >::ofColor_(ofColor_< unsigned short > const &)\n" - " ofColor_< unsigned short >::ofColor_(ofColor_< unsigned short > const &,float)\n" - " ofColor_< unsigned short >::ofColor_(float,float)\n" " ofColor_< unsigned short >::ofColor_(float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofColor_< unsigned short > result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHsb" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_fromHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_fromHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); - result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___isub____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator -=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator -=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator *((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofColor_< unsigned short > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHsb" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_fromHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___mul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator *((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortColor_fromHsb__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_fromHsb'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::fromHsb(float,float,float,float)\n" - " ofColor_< unsigned short >::fromHsb(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_fromHex",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHex" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator *=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned short > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHex" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofColor___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___imul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator *=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_fromHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { - int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortColor_fromHex__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_fromHex'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::fromHex(int,float)\n" - " ofColor_< unsigned short >::fromHex(int)\n"); return 0; } -SWIGINTERN int Swig_var_ofShortColor_white_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_white is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_white_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::white), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN PyObject *_wrap_ofColor___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator *=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator *=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator /((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___div__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator /((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator /=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator /=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator /=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator /=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); + result = (unsigned char *) &((ofColor_< unsigned char > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (unsigned char *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator [](std::size_t) const\n" + " ofColor_< unsigned char >::operator [](std::size_t)\n"); return 0; } +SWIGINTERN int Swig_var_ofColor_white_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_white is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_white_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::white), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_gray_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_gray is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_gray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_black_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_black is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_black_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::black), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_red_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_red is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_red_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::red), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_green_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_green is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_green_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::green), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_blue_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_blue is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_cyan_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_cyan is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_magenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_magenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_magenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::magenta), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_yellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_yellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_yellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::yellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_aliceBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_aliceBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_aliceBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aliceBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_antiqueWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_antiqueWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_antiqueWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::antiqueWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_aqua_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_aqua is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_aqua_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aqua), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_aquamarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_aquamarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_aquamarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aquamarine), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_azure_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_azure is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_azure_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::azure), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_beige_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_beige is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_beige_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::beige), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_bisque_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_bisque is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_bisque_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::bisque), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_gray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_gray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_blanchedAlmond_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_blanchedAlmond is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blanchedAlmond), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_black_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_black is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_black_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::black), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_blueViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_blueViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blueViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blueViolet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_red_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_red is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_red_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::red), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_brown_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_brown is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_brown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::brown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_green_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_green is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_green_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::green), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_burlyWood_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_burlyWood is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_burlyWood_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::burlyWood), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_blue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_blue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_cadetBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_cadetBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cadetBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cadetBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_cyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_cyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_chartreuse_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_chartreuse is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_chartreuse_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::chartreuse), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_magenta_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_magenta is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_magenta_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::magenta), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_chocolate_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_chocolate is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_chocolate_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::chocolate), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_yellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_yellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_yellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::yellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_coral_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_coral is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_coral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::coral), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_aliceBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aliceBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_aliceBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aliceBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_cornflowerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_cornflowerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cornflowerBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_antiqueWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_antiqueWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_antiqueWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::antiqueWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_cornsilk_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_cornsilk is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cornsilk_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cornsilk), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_aqua_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aqua is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_aqua_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aqua), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_crimson_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_crimson is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_crimson_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::crimson), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_aquamarine_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aquamarine is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_aquamarine_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aquamarine), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_azure_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_azure is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_azure_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::azure), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkCyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_beige_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_beige is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_beige_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::beige), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_bisque_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_bisque is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_bisque_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::bisque), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_blanchedAlmond_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blanchedAlmond is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blanchedAlmond), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_blueViolet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blueViolet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_blueViolet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blueViolet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_brown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_brown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_brown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::brown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkKhaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkKhaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkKhaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkKhaki), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_burlyWood_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_burlyWood is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_burlyWood_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::burlyWood), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkMagenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkMagenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkMagenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkMagenta), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_cadetBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cadetBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_cadetBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cadetBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkOliveGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkOliveGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkOliveGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_chartreuse_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_chartreuse is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_chartreuse_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::chartreuse), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkorange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkorange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkorange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkorange), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_chocolate_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_chocolate is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_chocolate_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::chocolate), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkOrchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_coral_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_coral is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_coral_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::coral), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_cornflowerBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cornflowerBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cornflowerBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSalmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_cornsilk_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cornsilk is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_cornsilk_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cornsilk), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_crimson_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_crimson is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_crimson_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::crimson), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkCyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkCyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkCyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkCyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkGoldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGoldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_darkViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkViolet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_deepPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_deepPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_deepPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::deepPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_deepSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_deepSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::deepSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkKhaki_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkKhaki is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkKhaki_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkKhaki), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_dimGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_dimGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_dimGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dimGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkMagenta_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkMagenta is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkMagenta_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkMagenta), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_dimGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_dimGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_dimGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dimGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkOliveGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkOliveGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkOliveGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_dodgerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_dodgerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_dodgerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dodgerBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkorange_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkorange is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkorange_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkorange), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_fireBrick_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_fireBrick is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_fireBrick_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::fireBrick), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkOrchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkOrchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkOrchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkOrchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_floralWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_floralWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_floralWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::floralWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_forestGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_forestGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_forestGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::forestGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkSalmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSalmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkSalmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSalmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_fuchsia_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_fuchsia is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_fuchsia_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::fuchsia), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_gainsboro_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_gainsboro is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_gainsboro_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gainsboro), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkSlateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_ghostWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_ghostWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_ghostWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::ghostWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkSlateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_gold_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_gold is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_gold_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gold), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkSlateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_goldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_goldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_goldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::goldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_grey_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_grey is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_grey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::grey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_darkViolet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkViolet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_darkViolet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkViolet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_greenYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_greenYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_greenYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::greenYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_deepPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_deepPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_deepPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::deepPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_honeyDew_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_honeyDew is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_honeyDew_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::honeyDew), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_deepSkyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_deepSkyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::deepSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_hotPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_hotPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_hotPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::hotPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_dimGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dimGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_dimGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dimGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_indianRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_indianRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_indianRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::indianRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_indigo_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_indigo is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_indigo_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::indigo), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_ivory_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_ivory is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_ivory_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::ivory), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_khaki_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_khaki is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_khaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::khaki), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lavender_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lavender is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lavender_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lavender), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lavenderBlush_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lavenderBlush is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lavenderBlush_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lavenderBlush), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lawnGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lawnGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lawnGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lawnGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lemonChiffon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lemonChiffon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lemonChiffon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lemonChiffon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightCoral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightCoral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightCoral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightCoral), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightCyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGoldenRodYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGoldenRodYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSalmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSlateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSteelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSteelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSteelBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lime_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_lime is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lime_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lime), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_limeGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_limeGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_limeGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::limeGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_linen_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_linen is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_linen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::linen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_dimGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dimGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_dimGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dimGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_maroon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_maroon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_maroon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::maroon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_dodgerBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dodgerBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_dodgerBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dodgerBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumAquaMarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumAquaMarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_fireBrick_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_fireBrick is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_fireBrick_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::fireBrick), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_floralWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_floralWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_floralWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::floralWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumOrchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_forestGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_forestGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_forestGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::forestGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumPurple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumPurple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumPurple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumPurple), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_fuchsia_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_fuchsia is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_fuchsia_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::fuchsia), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_gainsboro_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gainsboro is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_gainsboro_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gainsboro), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_ghostWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_ghostWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_ghostWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::ghostWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumSpringGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSpringGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_gold_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gold is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_gold_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gold), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_goldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_goldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_goldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::goldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mediumVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumVioletRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_grey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_grey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_grey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::grey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_midnightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_midnightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_midnightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::midnightBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_greenYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_greenYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_greenYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::greenYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mintCream_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mintCream is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mintCream_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mintCream), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_honeyDew_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_honeyDew is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_honeyDew_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::honeyDew), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_mistyRose_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mistyRose is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mistyRose_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mistyRose), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_hotPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_hotPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_hotPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::hotPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_moccasin_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_moccasin is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_moccasin_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::moccasin), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_indianRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_indianRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_indianRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::indianRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_navajoWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_navajoWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_navajoWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::navajoWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_indigo_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_indigo is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_indigo_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::indigo), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_navy_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_navy is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_navy_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::navy), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_ivory_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_ivory is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_ivory_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::ivory), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_oldLace_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_oldLace is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_oldLace_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::oldLace), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_khaki_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_khaki is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_khaki_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::khaki), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_olive_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_olive is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_olive_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::olive), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lavender_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lavender is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lavender_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lavender), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_oliveDrab_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_oliveDrab is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_oliveDrab_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::oliveDrab), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lavenderBlush_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lavenderBlush is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lavenderBlush_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lavenderBlush), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_orange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_orange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_orange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orange), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lawnGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lawnGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lawnGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lawnGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_orangeRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_orangeRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_orangeRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orangeRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lemonChiffon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lemonChiffon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lemonChiffon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lemonChiffon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_orchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_orchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_orchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_paleGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightCoral_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightCoral is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightCoral_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightCoral), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_paleGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightCyan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightCyan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightCyan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightCyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_paleTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightGoldenRodYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGoldenRodYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_paleVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleVioletRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_papayaWhip_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_papayaWhip is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_papayaWhip_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::papayaWhip), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_peachPuff_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_peachPuff is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_peachPuff_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::peachPuff), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_peru_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_peru is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_peru_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::peru), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightPink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightPink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightPink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_pink_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_pink is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_pink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::pink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightSalmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSalmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightSalmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSalmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_plum_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_plum is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_plum_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::plum), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_powderBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_powderBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_powderBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::powderBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightSkyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSkyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_purple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_purple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_purple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::purple), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightSlateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSlateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightSlateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSlateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_rosyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_rosyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_rosyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::rosyBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightSlateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSlateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_royalBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_royalBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_royalBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::royalBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightSteelBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSteelBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSteelBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_saddleBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_saddleBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_saddleBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::saddleBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lightYellow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightYellow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lightYellow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_salmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_salmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_salmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::salmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_lime_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lime is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_lime_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lime), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_sandyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_sandyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_sandyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::sandyBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_limeGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_limeGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_limeGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::limeGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_seaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_seaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_seaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::seaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_linen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_linen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_linen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::linen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_seaShell_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_seaShell is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_seaShell_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::seaShell), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_maroon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_maroon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_maroon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::maroon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_sienna_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_sienna is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_sienna_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::sienna), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumAquaMarine_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumAquaMarine is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_silver_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_silver is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_silver_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::silver), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_skyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_skyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_skyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::skyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumOrchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumOrchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumOrchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumOrchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_slateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_slateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumPurple_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumPurple is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumPurple_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumPurple), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_slateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_slateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumSeaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSeaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_slateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_slateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumSlateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSlateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_snow_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_snow is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_snow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::snow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumSpringGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSpringGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_springGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_springGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_springGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::springGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_steelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_steelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_steelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::steelBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mediumVioletRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumVioletRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumVioletRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_blueSteel_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_blueSteel is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blueSteel_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blueSteel), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_midnightBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_midnightBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_midnightBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::midnightBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_tan_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_tan is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_tan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::tan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mintCream_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mintCream is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mintCream_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mintCream), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_teal_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_teal is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_teal_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::teal), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_mistyRose_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mistyRose is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_mistyRose_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mistyRose), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_thistle_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_thistle is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_thistle_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::thistle), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_moccasin_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_moccasin is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_moccasin_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::moccasin), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_tomato_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_tomato is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_tomato_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::tomato), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_navajoWhite_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_navajoWhite is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_navajoWhite_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::navajoWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_turquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_turquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_turquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::turquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_navy_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_navy is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_navy_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::navy), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_violet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_violet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_violet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::violet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_oldLace_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_oldLace is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_oldLace_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::oldLace), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_wheat_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_wheat is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_wheat_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::wheat), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_olive_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_olive is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_olive_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::olive), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_whiteSmoke_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_whiteSmoke is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_whiteSmoke_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::whiteSmoke), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_oliveDrab_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_oliveDrab is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_oliveDrab_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::oliveDrab), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofColor_yellowGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_yellowGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_yellowGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::yellowGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_orange_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orange is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_orange_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orange), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN PyObject *_wrap_ofColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getR",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getR" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getR(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getG",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getG" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getG(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getB",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getB" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getB(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getA" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getA(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setR",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setR" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setR" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setR(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setG",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setG" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setG" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setG(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setB",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setB" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setB" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setB(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setA",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setA" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setA" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setA(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___str__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (char *)ofColor__Sl_unsigned_SS_char_Sg____str__(arg1); resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_r_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_r_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_r_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__r_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_r_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_r_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__r_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_g_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_g_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_g_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__g_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_g_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_g_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__g_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_b_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_b_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__b_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_b_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__b_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_a_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_a_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__a_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_a_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__a_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *ofColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFloatColor")) SWIG_fail; + result = (ofColor_< float > *)new ofColor_< float >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofFloatColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofFloatColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofFloatColor" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofFloatColor",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofFloatColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofFloatColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofColor_< float > *)new ofColor_< float >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofFloatColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< float > *)new ofColor_< float >((ofColor_< float > const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFloatColor__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofFloatColor__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_5(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatColor'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::ofColor_()\n" + " ofColor_< float >::ofColor_(float,float,float,float)\n" " ofColor_< float >::ofColor_(float,float,float)\n" + " ofColor_< float >::ofColor_(float,float)\n" " ofColor_< float >::ofColor_(float)\n" + " ofColor_< float >::ofColor_(ofColor_< float > const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_fromHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHsb__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_fromHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::fromHsb(float,float,float,float)\n" + " ofColor_< float >::fromHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_fromHex",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_fromHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::fromHex(int,float)\n" " ofColor_< float >::fromHex(int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatColor_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatColor_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->set((ofColor_< float > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor_set__SWIG_4(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_set'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::set(float,float,float,float)\n" + " ofColor_< float >::set(float,float,float)\n" " ofColor_< float >::set(float,float)\n" + " ofColor_< float >::set(float)\n" " ofColor_< float >::set(ofColor_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_setHex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHex" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setHex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHex" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHex__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHex__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_setHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::setHex(int,float)\n" " ofColor_< float >::setHex(int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHue" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHue" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHueAngle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setSaturation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setSaturation" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setSaturation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setBrightness",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setBrightness" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setBrightness" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHsb" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatColor_setHsb" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHsb" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHsb__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_setHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::setHsb(float,float,float,float)\n" + " ofColor_< float >::setHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_clamp",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_clamp" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->clamp(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_invert",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_invert" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->invert(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_normalize" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_lerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_lerp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_lerp" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_lerp" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_lerp" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_lerp" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< float > *) &(arg1)->lerp((ofColor_< float > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getClamped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getClamped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getClamped" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getClamped(); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getInverted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getInverted",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getInverted" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getInverted(); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getNormalized" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getLerped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_getLerped",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getLerped" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_getLerped" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getLerped" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_getLerped" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = ((ofColor_< float > const *)arg1)->getLerped((ofColor_< float > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHex" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (int)((ofColor_< float > const *)arg1)->getHex(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHue" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getHue(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHueAngle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHueAngle" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getHueAngle(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getSaturation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getSaturation" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getSaturation(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getBrightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getBrightness" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getBrightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getLightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getLightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getLightness" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getLightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHsb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_getHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHsb" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< float > const *)arg1)->getHsb(*arg2,*arg3,*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofFloatColor_limit")) SWIG_fail; + result = (float)ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR limit(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___eq__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___eq__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___eq__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (bool)((ofColor_< float > const *)arg1)->operator ==((ofColor_< float > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___ne__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___ne__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___ne__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (bool)((ofColor_< float > const *)arg1)->operator !=((ofColor_< float > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___add__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator +((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___add__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator +((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___iadd__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator +=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___iadd__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator +=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator +=(ofColor_< float > const &)\n" + " ofColor_< float >::operator +=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___sub__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator -((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___sub__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator -((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___isub__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator -=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___isub__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator -=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___isub____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator -=(ofColor_< float > const &)\n" + " ofColor_< float >::operator -=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___mul__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator *((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___mul__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator *((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___imul__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator *=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___imul__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator *=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator *=(ofColor_< float > const &)\n" + " ofColor_< float >::operator *=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___div__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator /((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___div__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator /((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___idiv__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator /=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___idiv__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator /=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator /=(ofColor_< float > const &)\n" + " ofColor_< float >::operator /=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___getitem__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (float *) &((ofColor_< float > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___getitem__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator [](std::size_t) const\n" + " ofColor_< float >::operator [](std::size_t)\n"); return 0; } +SWIGINTERN int Swig_var_ofFloatColor_white_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_white is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_white_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::white), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_gray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_gray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_black_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_black is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_black_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::black), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_red_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_red is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_red_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::red), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_green_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_green is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_green_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::green), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_blue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_cyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_magenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_magenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_magenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::magenta), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_yellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_yellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_yellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::yellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_aliceBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aliceBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_aliceBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aliceBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_antiqueWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_antiqueWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_antiqueWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::antiqueWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_orangeRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orangeRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_orangeRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orangeRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_aqua_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aqua is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_aqua_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aqua), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_aquamarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aquamarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_aquamarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aquamarine), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_azure_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_azure is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_azure_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::azure), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_beige_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_beige is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_beige_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::beige), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_bisque_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_bisque is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_bisque_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::bisque), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_blanchedAlmond_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blanchedAlmond is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blanchedAlmond), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_orchid_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orchid is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_orchid_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_blueViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blueViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blueViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blueViolet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_brown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_brown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_brown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::brown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_burlyWood_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_burlyWood is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_burlyWood_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::burlyWood), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_cadetBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cadetBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cadetBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cadetBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_chartreuse_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_chartreuse is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_chartreuse_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::chartreuse), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_chocolate_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_chocolate is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_chocolate_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::chocolate), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_coral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_coral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_coral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::coral), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_cornflowerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cornflowerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cornflowerBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_paleGoldenRod_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleGoldenRod is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_cornsilk_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cornsilk is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cornsilk_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cornsilk), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_crimson_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_crimson is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_crimson_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::crimson), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkCyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGoldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_paleGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_paleGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkKhaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkKhaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkKhaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkKhaki), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkMagenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkMagenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkMagenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkMagenta), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_paleTurquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleTurquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_paleTurquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkOliveGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkOliveGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkOliveGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_paleVioletRed_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleVioletRed is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_paleVioletRed_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleVioletRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkorange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkorange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkorange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkorange), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkOrchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSalmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_papayaWhip_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_papayaWhip is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_papayaWhip_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::papayaWhip), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_peachPuff_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_peachPuff is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_peachPuff_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::peachPuff), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_peru_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_peru is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_peru_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::peru), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_pink_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_pink is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_pink_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::pink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_plum_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_plum is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_plum_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::plum), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_darkViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkViolet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_deepPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_deepPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_deepPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::deepPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_deepSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_deepSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::deepSkyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_powderBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_powderBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_powderBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::powderBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_dimGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dimGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_dimGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dimGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_dimGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dimGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_dimGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dimGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_dodgerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dodgerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_dodgerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dodgerBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_fireBrick_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_fireBrick is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_fireBrick_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::fireBrick), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_floralWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_floralWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_floralWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::floralWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_purple_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_purple is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_purple_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::purple), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_forestGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_forestGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_forestGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::forestGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_rosyBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_rosyBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_rosyBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::rosyBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_fuchsia_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_fuchsia is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_fuchsia_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::fuchsia), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_gainsboro_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gainsboro is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_gainsboro_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gainsboro), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_ghostWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_ghostWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_ghostWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::ghostWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_gold_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gold is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_gold_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gold), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_goldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_goldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_goldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::goldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_grey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_grey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_grey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::grey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_greenYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_greenYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_greenYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::greenYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_royalBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_royalBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_royalBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::royalBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_honeyDew_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_honeyDew is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_honeyDew_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::honeyDew), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_hotPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_hotPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_hotPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::hotPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_indianRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_indianRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_indianRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::indianRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_indigo_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_indigo is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_indigo_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::indigo), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_ivory_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_ivory is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_ivory_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::ivory), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_khaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_khaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_khaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::khaki), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lavender_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lavender is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lavender_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lavender), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lavenderBlush_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lavenderBlush is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lavenderBlush_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lavenderBlush), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_saddleBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_saddleBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_saddleBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::saddleBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lawnGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lawnGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lawnGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lawnGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lemonChiffon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lemonChiffon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lemonChiffon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lemonChiffon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_salmon_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_salmon is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_salmon_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::salmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightCoral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightCoral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightCoral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightCoral), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightCyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightGoldenRodYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGoldenRodYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_sandyBrown_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_sandyBrown is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_sandyBrown_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::sandyBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSalmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_seaGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_seaGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_seaGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::seaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_seaShell_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_seaShell is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_seaShell_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::seaShell), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSkyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_sienna_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_sienna is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_sienna_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::sienna), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSlateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_silver_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_silver is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_silver_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::silver), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSlateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_skyBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_skyBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_skyBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::skyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightSteelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSteelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSteelBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_slateBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_slateBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lightYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_slateGray_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateGray is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_slateGray_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_lime_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lime is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lime_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lime), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_limeGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_limeGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_limeGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::limeGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_linen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_linen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_linen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::linen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_maroon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_maroon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_maroon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::maroon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumAquaMarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumAquaMarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_slateGrey_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateGrey is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_slateGrey_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mediumBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumOrchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_snow_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_snow is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_snow_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::snow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mediumPurple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumPurple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumPurple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumPurple), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_springGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_springGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_springGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::springGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mediumSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_steelBlue_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_steelBlue is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_steelBlue_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::steelBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mediumSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_blueSteel_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blueSteel is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_blueSteel_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blueSteel), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mediumSpringGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSpringGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_tan_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_tan is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_tan_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::tan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mediumTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_teal_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_teal is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_teal_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::teal), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mediumVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumVioletRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_thistle_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_thistle is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_thistle_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::thistle), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_midnightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_midnightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_midnightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::midnightBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_tomato_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_tomato is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_tomato_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::tomato), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_mintCream_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mintCream is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mintCream_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mintCream), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mistyRose_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mistyRose is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mistyRose_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mistyRose), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_moccasin_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_moccasin is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_moccasin_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::moccasin), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_navajoWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_navajoWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_navajoWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::navajoWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_turquoise_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_turquoise is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_turquoise_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::turquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_navy_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_navy is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_navy_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::navy), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_oldLace_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_oldLace is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_oldLace_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::oldLace), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_olive_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_olive is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_olive_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::olive), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_oliveDrab_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_oliveDrab is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_oliveDrab_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::oliveDrab), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_orange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_orange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orange), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_orangeRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orangeRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_orangeRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orangeRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_orchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_orchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_paleGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleGoldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_violet_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_violet is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_violet_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::violet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_paleGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_paleTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_wheat_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_wheat is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_wheat_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::wheat), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_paleVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleVioletRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_whiteSmoke_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_whiteSmoke is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_whiteSmoke_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::whiteSmoke), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_papayaWhip_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_papayaWhip is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_papayaWhip_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::papayaWhip), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_peachPuff_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_peachPuff is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_peachPuff_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::peachPuff), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_peru_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_peru is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_peru_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::peru), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_pink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_pink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_pink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::pink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_plum_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_plum is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_plum_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::plum), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_powderBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_powderBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_powderBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::powderBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_purple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_purple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_purple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::purple), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_rosyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_rosyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_rosyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::rosyBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_royalBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_royalBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_royalBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::royalBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_saddleBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_saddleBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_saddleBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::saddleBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } -SWIGINTERN int Swig_var_ofShortColor_yellowGreen_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_yellowGreen is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_ofShortColor_yellowGreen_get(void) { PyObject *pyobj = 0; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::yellowGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); +SWIGINTERN int Swig_var_ofFloatColor_salmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_salmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_salmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::salmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_sandyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_sandyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_sandyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::sandyBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_seaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_seaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_seaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::seaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_seaShell_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_seaShell is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_seaShell_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::seaShell), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_sienna_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_sienna is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_sienna_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::sienna), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_silver_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_silver is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_silver_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::silver), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_skyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_skyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_skyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::skyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_slateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_slateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_slateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_slateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_slateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_slateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_snow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_snow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_snow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::snow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_springGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_springGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_springGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::springGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_steelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_steelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_steelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::steelBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_blueSteel_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blueSteel is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blueSteel_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blueSteel), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_tan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_tan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_tan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::tan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_teal_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_teal is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_teal_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::teal), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_thistle_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_thistle is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_thistle_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::thistle), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_tomato_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_tomato is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_tomato_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::tomato), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_turquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_turquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_turquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::turquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_violet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_violet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_violet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::violet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_wheat_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_wheat is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_wheat_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::wheat), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_whiteSmoke_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_whiteSmoke is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_whiteSmoke_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::whiteSmoke), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_yellowGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_yellowGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_yellowGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::yellowGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getR",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getR" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getR(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getG",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getG" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getG(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getB",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getB" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getB(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getA" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getA(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setR",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setR" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setR" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setR(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setG",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setG" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setG" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setG(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setB",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setB" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setB" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setB(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setA",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setA" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setA" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setA(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___str__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (char *)ofColor__Sl_float_Sg____str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_r_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_r_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_r_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__r_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_r_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_r_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__r_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_g_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_g_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_g_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__g_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_g_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_g_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__g_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_b_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_b_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__b_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_b_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__b_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_a_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_a_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__a_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_a_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__a_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofFloatColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFloatColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofFloatColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofColor_T_float_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortColor")) SWIG_fail; + result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofShortColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofShortColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofShortColor" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofShortColor",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofShortColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofShortColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofShortColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); + result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >((ofColor_< unsigned short > const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofShortColor__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofShortColor__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_5(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortColor'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::ofColor_()\n" + " ofColor_< unsigned short >::ofColor_(float,float,float,float)\n" + " ofColor_< unsigned short >::ofColor_(float,float,float)\n" " ofColor_< unsigned short >::ofColor_(float,float)\n" + " ofColor_< unsigned short >::ofColor_(float)\n" + " ofColor_< unsigned short >::ofColor_(ofColor_< unsigned short > const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_fromHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); + result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHsb__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_fromHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::fromHsb(float,float,float,float)\n" + " ofColor_< unsigned short >::fromHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_fromHex",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_fromHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::fromHex(int,float)\n" + " ofColor_< unsigned short >::fromHex(int)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShortColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; @@ -18284,8 +21555,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_set" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->set((ofColor_< unsigned short > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18337,8 +21608,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM( if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHex" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor_setHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -18350,14 +21621,101 @@ SWIGINTERN PyObject *_wrap_ofShortColor_setHex(PyObject *self, PyObject *args) { SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_setHex'.\n" " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::setHex(int,float)\n" " ofColor_< unsigned short >::setHex(int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getHex",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofShortColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setHue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getHex" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); - result = (int)((ofColor_< unsigned short > const *)arg1)->getHex(); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHue" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHue" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setHueAngle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setSaturation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setSaturation" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setSaturation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setBrightness",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setBrightness" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setBrightness" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortColor_setHsb" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_setHsb__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_setHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::setHsb(float,float,float,float)\n" + " ofColor_< unsigned short >::setHsb(float,float,float)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShortColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_clamp",&obj0)) SWIG_fail; @@ -18447,6 +21805,14 @@ SWIGINTERN PyObject *_wrap_ofShortColor_getLerped(PyObject *SWIGUNUSEDPARM(self) result = ((ofColor_< unsigned short > const *)arg1)->getLerped((ofColor_< unsigned short > const &)*arg2,arg3); resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getHex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getHex" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (int)((ofColor_< unsigned short > const *)arg1)->getHex(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShortColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getHue",&obj0)) SWIG_fail; @@ -18511,128 +21877,37 @@ SWIGINTERN PyObject *_wrap_ofShortColor_getHsb(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_getHsb" "', argument " "4"" of type '" "float &""'"); } arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< unsigned short > const *)arg1)->getHsb(*arg2,*arg3,*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setHue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHue" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHue" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setHueAngle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setSaturation",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setSaturation" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setSaturation" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setBrightness",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setBrightness" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setBrightness" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_setHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_setHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortColor_setHsb" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; - float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHsb" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_setHsb" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_setHsb" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor_setHsb(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortColor_setHsb__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_setHsb'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::setHsb(float,float,float,float)\n" - " ofColor_< unsigned short >::setHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofShortColor_limit")) SWIG_fail; + result = (float)ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR limit(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShortColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___eq__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___eq__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___eq__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); - result = (bool)(arg1)->operator ==((ofColor_< unsigned short > const &)*arg2); + result = (bool)((ofColor_< unsigned short > const *)arg1)->operator ==((ofColor_< unsigned short > const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShortColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___ne__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___ne__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___ne__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); - result = (bool)(arg1)->operator !=((ofColor_< unsigned short > const &)*arg2); + result = (bool)((ofColor_< unsigned short > const *)arg1)->operator !=((ofColor_< unsigned short > const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShortColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; @@ -18663,8 +21938,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM result = ((ofColor_< unsigned short > const *)arg1)->operator +((float const &)*arg2); resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___add__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18703,8 +21978,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPAR result = (ofColor_< unsigned short > *) &(arg1)->operator +=((float const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___iadd__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18744,8 +22019,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM result = ((ofColor_< unsigned short > const *)arg1)->operator -((float const &)*arg2); resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18784,8 +22059,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___isub____SWIG_1(PyObject *SWIGUNUSEDPAR result = (ofColor_< unsigned short > *) &(arg1)->operator -=((float const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___isub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18825,8 +22100,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM result = ((ofColor_< unsigned short > const *)arg1)->operator *((float const &)*arg2); resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18865,8 +22140,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___imul____SWIG_1(PyObject *SWIGUNUSEDPAR result = (ofColor_< unsigned short > *) &(arg1)->operator *=((float const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18906,8 +22181,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM result = ((ofColor_< unsigned short > const *)arg1)->operator /((float const &)*arg2); resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___div__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18946,8 +22221,8 @@ SWIGINTERN PyObject *_wrap_ofShortColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPAR result = (ofColor_< unsigned short > *) &(arg1)->operator /=((float const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); @@ -18959,44 +22234,781 @@ SWIGINTERN PyObject *_wrap_ofShortColor___idiv__(PyObject *self, PyObject *args) " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator /=(ofColor_< unsigned short > const &)\n" " ofColor_< unsigned short >::operator /=(float const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShortColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned short *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___getitem__",&obj0,&obj1)) SWIG_fail; + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (unsigned short *) &((ofColor_< unsigned short > const *)arg1)->operator [](arg2); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); + result = (unsigned short *) &((ofColor_< unsigned short > const *)arg1)->operator [](arg2); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShortColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned short *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___getitem__",&obj0,&obj1)) SWIG_fail; + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (unsigned short *) &(arg1)->operator [](arg2); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (unsigned short *) &(arg1)->operator [](arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortColor___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShortColor___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShortColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShortColor___getitem____SWIG_0(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor___getitem__'.\n" - " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator [](int) const\n" - " ofColor_< unsigned short >::operator [](int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float result; if (!PyArg_ParseTuple(args,(char *)":ofShortColor_limit")) SWIG_fail; - result = (float)ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR limit(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator [](std::size_t) const\n" + " ofColor_< unsigned short >::operator [](std::size_t)\n"); return 0; } +SWIGINTERN int Swig_var_ofShortColor_white_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_white is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_white_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::white), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_gray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_gray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_black_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_black is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_black_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::black), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_red_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_red is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_red_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::red), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_green_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_green is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_green_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::green), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_magenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_magenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_magenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::magenta), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_yellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_yellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_yellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::yellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_aliceBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aliceBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_aliceBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aliceBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_antiqueWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_antiqueWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_antiqueWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::antiqueWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_aqua_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aqua is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_aqua_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aqua), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_aquamarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aquamarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_aquamarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aquamarine), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_azure_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_azure is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_azure_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::azure), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_beige_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_beige is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_beige_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::beige), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_bisque_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_bisque is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_bisque_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::bisque), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blanchedAlmond_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blanchedAlmond is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blanchedAlmond), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blueViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blueViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blueViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blueViolet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_brown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_brown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_brown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::brown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_burlyWood_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_burlyWood is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_burlyWood_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::burlyWood), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cadetBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cadetBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cadetBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cadetBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_chartreuse_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_chartreuse is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_chartreuse_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::chartreuse), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_chocolate_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_chocolate is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_chocolate_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::chocolate), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_coral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_coral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_coral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::coral), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cornflowerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cornflowerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cornflowerBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cornsilk_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cornsilk is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cornsilk_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cornsilk), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_crimson_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_crimson is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_crimson_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::crimson), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkCyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkKhaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkKhaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkKhaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkKhaki), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkMagenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkMagenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkMagenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkMagenta), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkOliveGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkOliveGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkOliveGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkorange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkorange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkorange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkorange), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkOrchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSalmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkViolet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_deepPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_deepPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_deepPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::deepPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_deepSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_deepSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::deepSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_dimGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dimGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_dimGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dimGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_dimGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dimGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_dimGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dimGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_dodgerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dodgerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_dodgerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dodgerBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_fireBrick_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_fireBrick is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_fireBrick_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::fireBrick), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_floralWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_floralWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_floralWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::floralWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_forestGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_forestGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_forestGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::forestGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_fuchsia_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_fuchsia is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_fuchsia_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::fuchsia), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_gainsboro_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gainsboro is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_gainsboro_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gainsboro), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_ghostWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_ghostWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_ghostWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::ghostWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_gold_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gold is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_gold_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gold), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_goldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_goldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_goldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::goldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_grey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_grey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_grey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::grey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_greenYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_greenYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_greenYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::greenYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_honeyDew_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_honeyDew is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_honeyDew_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::honeyDew), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_hotPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_hotPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_hotPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::hotPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_indianRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_indianRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_indianRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::indianRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_indigo_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_indigo is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_indigo_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::indigo), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_ivory_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_ivory is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_ivory_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::ivory), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_khaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_khaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_khaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::khaki), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lavender_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lavender is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lavender_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lavender), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lavenderBlush_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lavenderBlush is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lavenderBlush_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lavenderBlush), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lawnGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lawnGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lawnGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lawnGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lemonChiffon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lemonChiffon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lemonChiffon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lemonChiffon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightCoral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightCoral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightCoral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightCoral), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightCyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGoldenRodYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGoldenRodYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSalmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSlateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSteelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSteelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSteelBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lime_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lime is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lime_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lime), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_limeGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_limeGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_limeGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::limeGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_linen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_linen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_linen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::linen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_maroon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_maroon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_maroon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::maroon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumAquaMarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumAquaMarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumOrchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumPurple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumPurple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumPurple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumPurple), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumSpringGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSpringGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumVioletRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_midnightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_midnightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_midnightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::midnightBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mintCream_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mintCream is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mintCream_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mintCream), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mistyRose_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mistyRose is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mistyRose_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mistyRose), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_moccasin_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_moccasin is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_moccasin_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::moccasin), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_navajoWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_navajoWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_navajoWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::navajoWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_navy_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_navy is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_navy_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::navy), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_oldLace_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_oldLace is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_oldLace_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::oldLace), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_olive_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_olive is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_olive_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::olive), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_oliveDrab_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_oliveDrab is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_oliveDrab_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::oliveDrab), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_orange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_orange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orange), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_orangeRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orangeRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_orangeRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orangeRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_orchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_orchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleVioletRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_papayaWhip_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_papayaWhip is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_papayaWhip_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::papayaWhip), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_peachPuff_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_peachPuff is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_peachPuff_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::peachPuff), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_peru_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_peru is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_peru_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::peru), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_pink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_pink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_pink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::pink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_plum_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_plum is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_plum_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::plum), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_powderBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_powderBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_powderBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::powderBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_purple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_purple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_purple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::purple), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_rosyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_rosyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_rosyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::rosyBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_royalBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_royalBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_royalBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::royalBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_saddleBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_saddleBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_saddleBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::saddleBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_salmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_salmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_salmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::salmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_sandyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_sandyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_sandyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::sandyBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_seaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_seaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_seaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::seaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_seaShell_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_seaShell is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_seaShell_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::seaShell), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_sienna_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_sienna is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_sienna_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::sienna), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_silver_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_silver is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_silver_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::silver), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_skyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_skyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_skyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::skyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_slateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_slateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_slateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_slateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_slateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_slateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_snow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_snow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_snow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::snow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_springGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_springGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_springGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::springGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_steelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_steelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_steelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::steelBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blueSteel_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blueSteel is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blueSteel_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blueSteel), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_tan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_tan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_tan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::tan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_teal_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_teal is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_teal_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::teal), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_thistle_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_thistle is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_thistle_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::thistle), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_tomato_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_tomato is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_tomato_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::tomato), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_turquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_turquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_turquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::turquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_violet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_violet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_violet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::violet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_wheat_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_wheat is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_wheat_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::wheat), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_whiteSmoke_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_whiteSmoke is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_whiteSmoke_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::whiteSmoke), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_yellowGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_yellowGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_yellowGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::yellowGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } SWIGINTERN PyObject *_wrap_ofShortColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getR",&obj0)) SWIG_fail; @@ -19157,6 +23169,13 @@ SWIGINTERN PyObject *_wrap_ofShortColor_a_get(PyObject *SWIGUNUSEDPARM(self), Py arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__a_get(arg1); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofShortColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *ofShortColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -19167,6 +23186,346 @@ SWIGINTERN PyObject *ofShortColor_swigregister(PyObject *SWIGUNUSEDPARM(self), P SWIGINTERN PyObject *_wrap_ofIsVFlipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofIsVFlipped")) SWIG_fail; result = (bool)ofIsVFlipped(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofBaseHasTexturePlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseHasTexturePlanes *arg1 = (ofBaseHasTexturePlanes *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBaseHasTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseHasTexturePlanes, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBaseHasTexturePlanes" "', argument " "1"" of type '" "ofBaseHasTexturePlanes *""'"); } + arg1 = reinterpret_cast< ofBaseHasTexturePlanes * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseHasTexturePlanes *arg1 = (ofBaseHasTexturePlanes *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseHasTexturePlanes_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseHasTexturePlanes, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseHasTexturePlanes_getTexturePlanes" "', argument " "1"" of type '" "ofBaseHasTexturePlanes *""'"); } + arg1 = reinterpret_cast< ofBaseHasTexturePlanes * >(argp1); + result = (std::vector< ofTexture > *) &(arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseHasTexturePlanes *arg1 = (ofBaseHasTexturePlanes *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseHasTexturePlanes_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseHasTexturePlanes, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseHasTexturePlanes_getTexturePlanes" "', argument " "1"" of type '" "ofBaseHasTexturePlanes const *""'"); } + arg1 = reinterpret_cast< ofBaseHasTexturePlanes * >(argp1); + result = (std::vector< ofTexture > *) &((ofBaseHasTexturePlanes const *)arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseHasTexturePlanes_getTexturePlanes(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseHasTexturePlanes, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseHasTexturePlanes, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBaseHasTexturePlanes_getTexturePlanes'.\n" + " Possible C/C++ prototypes are:\n" " ofBaseHasTexturePlanes::getTexturePlanes()\n" + " ofBaseHasTexturePlanes::getTexturePlanes() const\n"); return 0; } +SWIGINTERN PyObject *ofBaseHasTexturePlanes_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofBaseHasTexturePlanes, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ofBaseURLFileLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBaseURLFileLoader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBaseURLFileLoader" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_get",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_get" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (arg1)->get((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_getAsync__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; + std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseURLFileLoader_getAsync",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_getAsync__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_getAsync",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_getAsync(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseURLFileLoader, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBaseURLFileLoader_getAsync__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseURLFileLoader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBaseURLFileLoader_getAsync__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBaseURLFileLoader_getAsync'.\n" + " Possible C/C++ prototypes are:\n" " ofBaseURLFileLoader::getAsync(std::string const &,std::string const &)\n" + " ofBaseURLFileLoader::getAsync(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_saveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseURLFileLoader_saveTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (arg1)->saveTo((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_saveAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; + std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseURLFileLoader_saveAsync",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->saveAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_remove",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_remove" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBaseURLFileLoader_remove" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->remove(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseURLFileLoader_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_clear" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseURLFileLoader_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_stop" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_handleRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; ofHttpRequest arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_handleRequest",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_handleRequest" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest""'"); } + else { ofHttpRequest * temp = reinterpret_cast< ofHttpRequest * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } result = (arg1)->handleRequest(arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofBaseURLFileLoader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofBaseURLFileLoader, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ofBaseMaterial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBaseMaterial",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBaseMaterial" "', argument " "1"" of type '" "ofBaseMaterial *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getDiffuseColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getDiffuseColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getDiffuseColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getDiffuseColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getAmbientColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getAmbientColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getAmbientColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getSpecularColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getSpecularColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getSpecularColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getSpecularColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getEmissiveColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getEmissiveColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getEmissiveColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getEmissiveColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getShininess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getShininess",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getShininess" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = (float)((ofBaseMaterial const *)arg1)->getShininess(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_begin" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); ((ofBaseMaterial const *)arg1)->begin(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_end" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); ((ofBaseMaterial const *)arg1)->end(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getShader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; int arg2 ; ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofShader *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_getShader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getShader" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBaseMaterial_getShader" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_getShader" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_getShader" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + result = (ofShader *) &((ofBaseMaterial const *)arg1)->getShader(arg2,*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofShader, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_uploadMatrices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; ofShader *arg2 = 0 ; + ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_uploadMatrices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + ((ofBaseMaterial const *)arg1)->uploadMatrices((ofShader const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_updateMaterial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; ofShader *arg2 = 0 ; + ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_updateMaterial",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_updateMaterial" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseMaterial_updateMaterial" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateMaterial" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_updateMaterial" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateMaterial" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + ((ofBaseMaterial const *)arg1)->updateMaterial((ofShader const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_updateLights(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; ofShader *arg2 = 0 ; + ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_updateLights",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_updateLights" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseMaterial_updateLights" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateLights" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_updateLights" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateLights" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + ((ofBaseMaterial const *)arg1)->updateLights((ofShader const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *ofBaseMaterial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofBaseMaterial, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + SWIGINTERN PyObject *_wrap_new_ofSerialDeviceInfo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string arg1 ; std::string arg2 ; int arg3 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofSerialDeviceInfo *result = 0 ; @@ -19187,8 +23546,8 @@ SWIGINTERN PyObject *_wrap_new_ofSerialDeviceInfo__SWIG_1(PyObject *SWIGUNUSEDPA result = (ofSerialDeviceInfo *)new ofSerialDeviceInfo(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSerialDeviceInfo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofSerialDeviceInfo(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofSerialDeviceInfo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofSerialDeviceInfo__SWIG_1(self, args);} if (argc == 3) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -19466,18 +23825,17 @@ SWIGINTERN PyObject *_wrap_ofGetElapsedTimef(PyObject *SWIGUNUSEDPARM(self), PyO float result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimef")) SWIG_fail; result = (float)ofGetElapsedTimef(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetElapsedTimeMillis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - unsigned long long result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimeMillis")) SWIG_fail; - result = (unsigned long long)ofGetElapsedTimeMillis(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: - return NULL; } + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimeMillis")) SWIG_fail; result = ofGetElapsedTimeMillis(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetElapsedTimeMicros(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - unsigned long long result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimeMicros")) SWIG_fail; - result = (unsigned long long)ofGetElapsedTimeMicros(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofGetFrameNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; - if (!PyArg_ParseTuple(args,(char *)":ofGetFrameNum")) SWIG_fail; result = (int)ofGetFrameNum(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimeMicros")) SWIG_fail; result = ofGetElapsedTimeMicros(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetFrameNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetFrameNum")) SWIG_fail; result = ofGetFrameNum(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetSeconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":ofGetSeconds")) SWIG_fail; result = (int)ofGetSeconds(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } @@ -19491,15 +23849,18 @@ SWIGINTERN PyObject *_wrap_ofGetUnixTime(PyObject *SWIGUNUSEDPARM(self), PyObjec unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetUnixTime")) SWIG_fail; result = (unsigned int)ofGetUnixTime(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetSystemTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - unsigned long long result; if (!PyArg_ParseTuple(args,(char *)":ofGetSystemTime")) SWIG_fail; - result = (unsigned long long)ofGetSystemTime(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: - return NULL; } + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetSystemTime")) SWIG_fail; result = ofGetSystemTime(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetSystemTimeMicros(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - unsigned long long result; if (!PyArg_ParseTuple(args,(char *)":ofGetSystemTimeMicros")) SWIG_fail; - result = (unsigned long long)ofGetSystemTimeMicros(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: - return NULL; } + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetSystemTimeMicros")) SWIG_fail; result = ofGetSystemTimeMicros(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSleepMillis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; + int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSleepMillis",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSleepMillis" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSleepMillis(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetTimestampString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string result; if (!PyArg_ParseTuple(args,(char *)":ofGetTimestampString")) SWIG_fail; result = ofGetTimestampString(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: @@ -19514,8 +23875,8 @@ SWIGINTERN PyObject *_wrap_ofGetTimestampString__SWIG_1(PyObject *SWIGUNUSEDPARM arg1 = ptr; } result = ofGetTimestampString((std::string const &)*arg1); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofGetTimestampString(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofGetTimestampString(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofGetTimestampString__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -19535,37 +23896,6 @@ SWIGINTERN PyObject *_wrap_ofGetDay(PyObject *SWIGUNUSEDPARM(self), PyObject *ar SWIGINTERN PyObject *_wrap_ofGetWeekday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":ofGetWeekday")) SWIG_fail; result = (int)ofGetWeekday(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLaunchBrowser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofLaunchBrowser",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLaunchBrowser" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ofLaunchBrowser((std::string const &)*arg1,arg2); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofLaunchBrowser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofLaunchBrowser",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } ofLaunchBrowser((std::string const &)*arg1); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofLaunchBrowser(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofLaunchBrowser__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofLaunchBrowser__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLaunchBrowser'.\n" - " Possible C/C++ prototypes are:\n" " ofLaunchBrowser(std::string const &,bool)\n" - " ofLaunchBrowser(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofEnableDataPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofEnableDataPath")) SWIG_fail; ofEnableDataPath(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } @@ -19594,221 +23924,29 @@ SWIGINTERN PyObject *_wrap_ofToDataPath__SWIG_1(PyObject *SWIGUNUSEDPARM(self), arg1 = ptr; } result = ofToDataPath((std::string const &)*arg1); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToDataPath(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofToDataPath(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofToDataPath__SWIG_1(self, args);} } if (argc == 2) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofToDataPath__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofToDataPath'.\n" - " Possible C/C++ prototypes are:\n" " ofToDataPath(std::string const &,bool)\n" - " ofToDataPath(std::string const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSetWorkingDirectoryToDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofSetWorkingDirectoryToDefault")) SWIG_fail; - ofSetWorkingDirectoryToDefault(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetDataPathRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetDataPathRoot",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetDataPathRoot" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetDataPathRoot" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } ofSetDataPathRoot((std::string const &)*arg1); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToHex",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToHex" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< char * >(buf1); result = ofToHex((char const *)arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_ofHexToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofHexToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToInt" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToInt" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (int)ofHexToInt((std::string const &)*arg1); resultobj = SWIG_From_int(static_cast< int >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofHexToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; - if (!PyArg_ParseTuple(args,(char *)"O:ofHexToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToChar" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToChar" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (char)ofHexToChar((std::string const &)*arg1); - resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofHexToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofHexToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToFloat" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToFloat" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (float)ofHexToFloat((std::string const &)*arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofHexToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofHexToString",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToString" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToString" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = ofHexToString((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; - fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToInt" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToInt" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (int)ofToInt((std::string const &)*arg1); resultobj = SWIG_From_int(static_cast< int >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToChar" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToChar" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (char)ofToChar((std::string const &)*arg1); - resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToFloat" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToFloat" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (float)ofToFloat((std::string const &)*arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; double result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToDouble",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToDouble" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToDouble" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (double)ofToDouble((std::string const &)*arg1); - resultobj = SWIG_From_double(static_cast< double >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToBool",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToBool" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToBool" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (bool)ofToBool((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToBinary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToBinary",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToBinary" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< char * >(buf1); result = ofToBinary((char const *)arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBinaryToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToInt" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToInt" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (int)ofBinaryToInt((std::string const &)*arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBinaryToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToChar" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToChar" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (char)ofBinaryToChar((std::string const &)*arg1); - resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBinaryToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToFloat" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToFloat" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (float)ofBinaryToFloat((std::string const &)*arg1); - resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBinaryToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToString",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToString" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToString" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = ofBinaryToString((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; - fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofGetVersionInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionInfo")) SWIG_fail; result = ofGetVersionInfo(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetVersionMajor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionMajor")) SWIG_fail; - result = (unsigned int)ofGetVersionMajor(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetVersionMinor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionMinor")) SWIG_fail; - result = (unsigned int)ofGetVersionMinor(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetVersionPatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionPatch")) SWIG_fail; - result = (unsigned int)ofGetVersionPatch(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSaveScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSaveScreen",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveScreen" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveScreen" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } ofSaveScreen((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofSaveFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSaveFrame",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSaveFrame" "', argument " "1"" of type '" "bool""'"); } - arg1 = static_cast< bool >(val1); ofSaveFrame(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSaveFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSaveFrame")) SWIG_fail; ofSaveFrame(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSaveFrame(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofSaveFrame__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSaveFrame__SWIG_0(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSaveFrame'.\n" - " Possible C/C++ prototypes are:\n" " ofSaveFrame(bool)\n" " ofSaveFrame()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSaveViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + return _wrap_ofToDataPath__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofToDataPath'.\n" + " Possible C/C++ prototypes are:\n" " ofToDataPath(std::string const &,bool)\n" + " ofToDataPath(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRestoreWorkingDirectoryToDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofRestoreWorkingDirectoryToDefault")) SWIG_fail; + result = (bool)ofRestoreWorkingDirectoryToDefault(); resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetDataPathRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSaveViewport",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetDataPathRoot",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveViewport" "', argument " "1"" of type '" "std::string const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetDataPathRoot" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveViewport" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } ofSaveViewport((std::string const &)*arg1); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetDataPathRoot" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofSetDataPathRoot((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; std::string *arg2 = 0 ; bool arg3 ; bool arg4 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; @@ -19828,7 +23966,7 @@ SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSplitString" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = ofSplitString((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4); - resultobj = swig::from(static_cast< std::vector > >(result)); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -19847,7 +23985,7 @@ SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSplitString" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = ofSplitString((std::string const &)*arg1,(std::string const &)*arg2,arg3); - resultobj = swig::from(static_cast< std::vector > >(result)); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -19863,11 +24001,11 @@ SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSplitString" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } result = ofSplitString((std::string const &)*arg1,(std::string const &)*arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofSplitString(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSplitString(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -19889,7 +24027,7 @@ SWIGINTERN PyObject *_wrap_ofJoinString(PyObject *SWIGUNUSEDPARM(self), PyObject std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofJoinString",&obj0,&obj1)) SWIG_fail; { - std::vector > *ptr = (std::vector > *)0; + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofJoinString" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } if (!ptr) { @@ -19940,8 +24078,9 @@ SWIGINTERN PyObject *_wrap_ofIsStringInString(PyObject *SWIGUNUSEDPARM(self), Py if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofStringTimesInString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofStringTimesInString",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + PyObject * obj1 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStringTimesInString",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStringTimesInString" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofStringTimesInString" "', argument " "1"" of type '" "std::string const &""'"); } @@ -19949,2248 +24088,531 @@ SWIGINTERN PyObject *_wrap_ofStringTimesInString(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofStringTimesInString" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofStringTimesInString" "', argument " "2"" of type '" "std::string const &""'"); } - arg2 = ptr; } result = (int)ofStringTimesInString((std::string const &)*arg1,(std::string const &)*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + arg2 = ptr; } result = ofStringTimesInString((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofToLower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToLower",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { +SWIGINTERN PyObject *_wrap_ofToLower__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofToLower",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = ofToLower((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; - fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofToUpper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofToUpper",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofToLower" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = ofToUpper((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; - fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToLower" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofToLower((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofToLower__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSystem",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSystem" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSystem" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = ofSystem((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; - fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofGetTargetPlatform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTargetPlatform result; if (!PyArg_ParseTuple(args,(char *)":ofGetTargetPlatform")) SWIG_fail; - result = (ofTargetPlatform)ofGetTargetPlatform(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofBuffer")) SWIG_fail; result = (ofBuffer *)new ofBuffer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBuffer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; unsigned int arg2 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; unsigned int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofBuffer *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:new_ofBuffer",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofBuffer" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< char * >(buf1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofBuffer" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); result = (ofBuffer *)new ofBuffer((char const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBuffer, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_new_ofBuffer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofBuffer *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofBuffer",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofBuffer" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofBuffer" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = (ofBuffer *)new ofBuffer((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBuffer, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_new_ofBuffer__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - istream *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofBuffer *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_istream, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofBuffer" "', argument " "1"" of type '" "istream &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofBuffer" "', argument " "1"" of type '" "istream &""'"); } - arg1 = reinterpret_cast< istream * >(argp1); result = (ofBuffer *)new ofBuffer(*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBuffer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofBuffer__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofBuffer *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofBuffer" "', argument " "1"" of type '" "ofBuffer const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofBuffer" "', argument " "1"" of type '" "ofBuffer const &""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = (ofBuffer *)new ofBuffer((ofBuffer const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBuffer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofBuffer__SWIG_0(self, args);} if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_istream, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofBuffer__SWIG_3(self, args);} } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofBuffer__SWIG_4(self, args);} } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofBuffer__SWIG_2(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofBuffer__SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofBuffer'.\n" - " Possible C/C++ prototypes are:\n" " ofBuffer::ofBuffer()\n" " ofBuffer::ofBuffer(char const *,unsigned int)\n" - " ofBuffer::ofBuffer(std::string const &)\n" " ofBuffer::ofBuffer(istream &)\n" - " ofBuffer::ofBuffer(ofBuffer const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_delete_ofBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBuffer" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; char *arg2 = (char *) 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; - char *buf2 = 0 ; int alloc2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofBuffer_set",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_set" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBuffer_set" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBuffer_set" "', argument " "3"" of type '" "unsigned int""'"); } - arg3 = static_cast< unsigned int >(val3); (arg1)->set((char const *)arg2,arg3); resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBuffer_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_set" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBuffer_set" "', argument " "2"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBuffer_set" "', argument " "2"" of type '" "std::string const &""'"); } - arg2 = ptr; } (arg1)->set((std::string const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; istream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofBuffer_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_set" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_istream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBuffer_set" "', argument " "2"" of type '" "istream &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBuffer_set" "', argument " "2"" of type '" "istream &""'"); } - arg2 = reinterpret_cast< istream * >(argp2); result = (bool)(arg1)->set(*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_istream, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBuffer_set__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBuffer_set__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBuffer_set__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBuffer_set'.\n" - " Possible C/C++ prototypes are:\n" " ofBuffer::set(char const *,unsigned int)\n" - " ofBuffer::set(std::string const &)\n" " ofBuffer::set(istream &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofBuffer_append__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBuffer_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_append" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); { std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBuffer_append" "', argument " "2"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBuffer_append" "', argument " "2"" of type '" "std::string const &""'"); } - arg2 = ptr; } (arg1)->append((std::string const &)*arg2); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_append__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; char *arg2 = (char *) 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; - char *buf2 = 0 ; int alloc2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofBuffer_append",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_append" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBuffer_append" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBuffer_append" "', argument " "3"" of type '" "unsigned int""'"); } - arg3 = static_cast< unsigned int >(val3); (arg1)->append((char const *)arg2,arg3); resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_append(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBuffer_append__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBuffer_append__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBuffer_append'.\n" - " Possible C/C++ prototypes are:\n" " ofBuffer::append(std::string const &)\n" - " ofBuffer::append(char const *,unsigned int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofBuffer_writeTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; ostream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofBuffer_writeTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_writeTo" "', argument " "1"" of type '" "ofBuffer const *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBuffer_writeTo" "', argument " "2"" of type '" "ostream &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBuffer_writeTo" "', argument " "2"" of type '" "ostream &""'"); } - arg2 = reinterpret_cast< ostream * >(argp2); result = (bool)((ofBuffer const *)arg1)->writeTo(*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_clear" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; long arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBuffer_allocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_allocate" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBuffer_allocate" "', argument " "2"" of type '" "long""'"); } - arg2 = static_cast< long >(val2); (arg1)->allocate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_getBinaryBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_getBinaryBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_getBinaryBuffer" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = (char *)(arg1)->getBinaryBuffer(); - resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_getBinaryBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_getBinaryBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_getBinaryBuffer" "', argument " "1"" of type '" "ofBuffer const *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = (char *)((ofBuffer const *)arg1)->getBinaryBuffer(); - resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_getBinaryBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBuffer_getBinaryBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBuffer_getBinaryBuffer__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBuffer_getBinaryBuffer'.\n" - " Possible C/C++ prototypes are:\n" " ofBuffer::getBinaryBuffer()\n" " ofBuffer::getBinaryBuffer() const\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofBuffer_getText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_getText",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_getText" "', argument " "1"" of type '" "ofBuffer const *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = ((ofBuffer const *)arg1)->getText(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; long result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_size" "', argument " "1"" of type '" "ofBuffer const *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = (long)((ofBuffer const *)arg1)->size(); - resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_getNextLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_getNextLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_getNextLine" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = (arg1)->getNextLine(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_getFirstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_getFirstLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_getFirstLine" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = (arg1)->getFirstLine(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_isLastLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_isLastLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_isLastLine" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); result = (bool)(arg1)->isLastLine(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBuffer_resetLineReader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBuffer *arg1 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofBuffer_resetLineReader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBuffer_resetLineReader" "', argument " "1"" of type '" "ofBuffer *""'"); } - arg1 = reinterpret_cast< ofBuffer * >(argp1); (arg1)->resetLineReader(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *ofBuffer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofBuffer, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_ofBufferFromFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofBuffer result; if (!PyArg_ParseTuple(args,(char *)"OO:ofBufferFromFile",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBufferFromFile" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBufferFromFile" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBufferFromFile" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = ofBufferFromFile((std::string const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofBuffer(static_cast< const ofBuffer& >(result))), SWIGTYPE_p_ofBuffer, SWIG_POINTER_OWN | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBufferFromFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofBuffer result; - if (!PyArg_ParseTuple(args,(char *)"O:ofBufferFromFile",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBufferFromFile" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBufferFromFile" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } result = ofBufferFromFile((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj((new ofBuffer(static_cast< const ofBuffer& >(result))), SWIGTYPE_p_ofBuffer, SWIG_POINTER_OWN | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBufferFromFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBufferFromFile__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBufferFromFile__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBufferFromFile'.\n" - " Possible C/C++ prototypes are:\n" " ofBufferFromFile(std::string const &,bool)\n" - " ofBufferFromFile(std::string const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofBufferToFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; ofBuffer *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofBufferToFile",&obj0,&obj1,&obj2)) SWIG_fail; { std::string *ptr = (std::string *)0; + if (!PyArg_ParseTuple(args,(char *)"O:ofToLower",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBufferToFile" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBufferToFile" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBufferToFile" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBufferToFile" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBufferToFile" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)ofBufferToFile((std::string const &)*arg1,*arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBufferToFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; ofBuffer *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofBufferToFile",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBufferToFile" "', argument " "1"" of type '" "std::string const &""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBufferToFile" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBufferToFile" "', argument " "2"" of type '" "ofBuffer &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBufferToFile" "', argument " "2"" of type '" "ofBuffer &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)ofBufferToFile((std::string const &)*arg1,*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofBufferToFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBufferToFile__SWIG_1(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBufferToFile__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBufferToFile'.\n" - " Possible C/C++ prototypes are:\n" " ofBufferToFile(std::string const &,ofBuffer &,bool)\n" - " ofBufferToFile(std::string const &,ofBuffer &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFilePath_getFileExt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_getFileExt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getFileExt" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::getFileExt(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_removeExt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_removeExt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_removeExt" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::removeExt(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_addLeadingSlash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_addLeadingSlash",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_addLeadingSlash" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::addLeadingSlash(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_addTrailingSlash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_addTrailingSlash",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_addTrailingSlash" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::addTrailingSlash(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_removeTrailingSlash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_removeTrailingSlash",&obj0)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_removeTrailingSlash" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::removeTrailingSlash(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getPathForDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_getPathForDirectory",&obj0)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getPathForDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::getPathForDirectory(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getAbsolutePath__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFilePath_getAbsolutePath",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getAbsolutePath" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFilePath_getAbsolutePath" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = ofFilePath::getAbsolutePath(arg1,arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getAbsolutePath__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_getAbsolutePath",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getAbsolutePath" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::getAbsolutePath(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getAbsolutePath(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFilePath_getAbsolutePath__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFilePath_getAbsolutePath__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFilePath_getAbsolutePath'.\n" - " Possible C/C++ prototypes are:\n" " ofFilePath::getAbsolutePath(std::string,bool)\n" - " ofFilePath::getAbsolutePath(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFilePath_isAbsolute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_isAbsolute",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_isAbsolute" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofFilePath::isAbsolute(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getFileName__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFilePath_getFileName",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getFileName" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFilePath_getFileName" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = ofFilePath::getFileName(arg1,arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getFileName__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_getFileName",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getFileName" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::getFileName(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getFileName(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFilePath_getFileName__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFilePath_getFileName__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFilePath_getFileName'.\n" - " Possible C/C++ prototypes are:\n" " ofFilePath::getFileName(std::string,bool)\n" - " ofFilePath::getFileName(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFilePath_getBaseName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_getBaseName",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getBaseName" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::getBaseName(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getEnclosingDirectory__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFilePath_getEnclosingDirectory",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getEnclosingDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFilePath_getEnclosingDirectory" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = ofFilePath::getEnclosingDirectory(arg1,arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getEnclosingDirectory__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_getEnclosingDirectory",&obj0)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_getEnclosingDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::getEnclosingDirectory(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getEnclosingDirectory(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFilePath_getEnclosingDirectory__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFilePath_getEnclosingDirectory__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFilePath_getEnclosingDirectory'.\n" - " Possible C/C++ prototypes are:\n" " ofFilePath::getEnclosingDirectory(std::string,bool)\n" - " ofFilePath::getEnclosingDirectory(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFilePath_createEnclosingDirectory__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFilePath_createEnclosingDirectory",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_createEnclosingDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFilePath_createEnclosingDirectory" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFilePath_createEnclosingDirectory" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)ofFilePath::createEnclosingDirectory(arg1,arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_createEnclosingDirectory__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFilePath_createEnclosingDirectory",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_createEnclosingDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFilePath_createEnclosingDirectory" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)ofFilePath::createEnclosingDirectory(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_createEnclosingDirectory__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFilePath_createEnclosingDirectory",&obj0)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_createEnclosingDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofFilePath::createEnclosingDirectory(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_createEnclosingDirectory(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFilePath_createEnclosingDirectory__SWIG_2(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFilePath_createEnclosingDirectory__SWIG_1(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFilePath_createEnclosingDirectory__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFilePath_createEnclosingDirectory'.\n" - " Possible C/C++ prototypes are:\n" " ofFilePath::createEnclosingDirectory(std::string,bool,bool)\n" - " ofFilePath::createEnclosingDirectory(std::string,bool)\n" " ofFilePath::createEnclosingDirectory(std::string)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofFilePath_getCurrentWorkingDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string result; - if (!PyArg_ParseTuple(args,(char *)":ofFilePath_getCurrentWorkingDirectory")) SWIG_fail; - result = ofFilePath::getCurrentWorkingDirectory(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_join(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFilePath_join",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_join" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFilePath_join" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofFilePath::join(arg1,arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getCurrentExePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string result; if (!PyArg_ParseTuple(args,(char *)":ofFilePath_getCurrentExePath")) SWIG_fail; - result = ofFilePath::getCurrentExePath(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getCurrentExeDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string result; if (!PyArg_ParseTuple(args,(char *)":ofFilePath_getCurrentExeDir")) SWIG_fail; - result = ofFilePath::getCurrentExeDir(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFilePath_getUserHomeDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string result; if (!PyArg_ParseTuple(args,(char *)":ofFilePath_getUserHomeDir")) SWIG_fail; - result = ofFilePath::getUserHomeDir(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFilePath *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFilePath")) SWIG_fail; - result = (ofFilePath *)new ofFilePath(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFilePath, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFilePath *arg1 = (ofFilePath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFilePath",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFilePath, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFilePath" "', argument " "1"" of type '" "ofFilePath *""'"); } - arg1 = reinterpret_cast< ofFilePath * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *ofFilePath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofFilePath, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFile")) SWIG_fail; result = (ofFile *)new ofFile(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFile, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; ofFile::Mode arg2 ; bool arg3 ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofFile *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofFile",&obj0,&obj1,&obj2)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofFile" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFile" "', argument " "2"" of type '" "ofFile::Mode""'"); } - arg2 = static_cast< ofFile::Mode >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofFile" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (ofFile *)new ofFile(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFile, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFile__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; ofFile::Mode arg2 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofFile *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_ofFile",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofFile" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFile" "', argument " "2"" of type '" "ofFile::Mode""'"); } - arg2 = static_cast< ofFile::Mode >(val2); result = (ofFile *)new ofFile(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFile, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFile__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; ofFile *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFile",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofFile" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (ofFile *)new ofFile(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFile, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFile__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFile *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFile" "', argument " "1"" of type '" "ofFile const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFile" "', argument " "1"" of type '" "ofFile const &""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (ofFile *)new ofFile((ofFile const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFile, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofFile__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFile__SWIG_4(self, args);} } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFile__SWIG_3(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofFile__SWIG_2(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_new_ofFile__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFile'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::ofFile()\n" " ofFile::ofFile(std::string,ofFile::Mode,bool)\n" - " ofFile::ofFile(std::string,ofFile::Mode)\n" " ofFile::ofFile(std::string)\n" " ofFile::ofFile(ofFile const &)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_delete_ofFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFile" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; ofFile::Mode arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; - int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFile_open",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_open" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_open" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_open" "', argument " "3"" of type '" "ofFile::Mode""'"); } - arg3 = static_cast< ofFile::Mode >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFile_open" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->open(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; ofFile::Mode arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFile_open",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_open" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_open" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_open" "', argument " "3"" of type '" "ofFile::Mode""'"); } - arg3 = static_cast< ofFile::Mode >(val3); result = (bool)(arg1)->open(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_open__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_open",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_open" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_open" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->open(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_open(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_open__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_open__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_open__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_open'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::open(std::string,ofFile::Mode,bool)\n" - " ofFile::open(std::string,ofFile::Mode)\n" " ofFile::open(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_changeMode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile::Mode arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFile_changeMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_changeMode" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_changeMode" "', argument " "2"" of type '" "ofFile::Mode""'"); } - arg2 = static_cast< ofFile::Mode >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_changeMode" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->changeMode(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_changeMode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile::Mode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_changeMode",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_changeMode" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_changeMode" "', argument " "2"" of type '" "ofFile::Mode""'"); } - arg2 = static_cast< ofFile::Mode >(val2); result = (bool)(arg1)->changeMode(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_changeMode(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_changeMode__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_changeMode__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_changeMode'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::changeMode(ofFile::Mode,bool)\n" " ofFile::changeMode(ofFile::Mode)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofFile_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_close" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_create",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_create" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)(arg1)->create(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_exists",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_exists" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->exists(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_path",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_path" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = ((ofFile const *)arg1)->path(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_getExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getExtension",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getExtension" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = ((ofFile const *)arg1)->getExtension(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_getFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getFileName",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getFileName" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = ((ofFile const *)arg1)->getFileName(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_getBaseName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getBaseName",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getBaseName" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = ((ofFile const *)arg1)->getBaseName(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_getEnclosingDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getEnclosingDirectory",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getEnclosingDirectory" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = ((ofFile const *)arg1)->getEnclosingDirectory(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_getAbsolutePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getAbsolutePath",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getAbsolutePath" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = ((ofFile const *)arg1)->getAbsolutePath(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_canRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_canRead",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_canRead" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->canRead(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_canWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_canWrite",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_canWrite" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->canWrite(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_canExecute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_canExecute",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_canExecute" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->canExecute(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_isFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_isFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_isFile" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->isFile(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_isLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_isLink",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_isLink" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->isLink(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_isDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_isDirectory",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_isDirectory" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->isDirectory(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_isDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_isDevice",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_isDevice" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->isDevice(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_isHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_isHidden",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_isHidden" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)((ofFile const *)arg1)->isHidden(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_setWriteable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFile *arg1 = (ofFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_setWriteable",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_setWriteable" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_setWriteable" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setWriteable(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_setWriteable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_setWriteable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_setWriteable" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); (arg1)->setWriteable(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_setWriteable(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_setWriteable__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_setWriteable__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_setWriteable'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::setWriteable(bool)\n" " ofFile::setWriteable()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_setReadOnly__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_setReadOnly",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_setReadOnly" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_setReadOnly" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setReadOnly(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_setReadOnly__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_setReadOnly",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_setReadOnly" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); (arg1)->setReadOnly(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_setReadOnly(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_setReadOnly__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_setReadOnly__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_setReadOnly'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::setReadOnly(bool)\n" " ofFile::setReadOnly()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_setExecutable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFile *arg1 = (ofFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_setExecutable",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_setExecutable" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_setExecutable" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setExecutable(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_setExecutable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_setExecutable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_setExecutable" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); (arg1)->setExecutable(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_setExecutable(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_setExecutable__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_setExecutable__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_setExecutable'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::setExecutable(bool)\n" " ofFile::setExecutable()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_copyTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; - int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFile_copyTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_copyTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_copyTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFile_copyTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->copyTo(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_copyTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFile_copyTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_copyTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_copyTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->copyTo(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_copyTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_copyTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_copyTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->copyTo(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_copyTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_copyTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_copyTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_copyTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_copyTo'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::copyTo(std::string,bool,bool)\n" " ofFile::copyTo(std::string,bool)\n" - " ofFile::copyTo(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_moveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; - int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFile_moveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_moveTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_moveTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFile_moveTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->moveTo(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_moveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFile_moveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_moveTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_moveTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->moveTo(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_moveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_moveTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_moveTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->moveTo(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_moveTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_moveTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_moveTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_moveTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_moveTo'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::moveTo(std::string,bool,bool)\n" " ofFile::moveTo(std::string,bool)\n" - " ofFile::moveTo(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_renameTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; - int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFile_renameTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_renameTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_renameTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_renameTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFile_renameTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->renameTo(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_renameTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFile_renameTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_renameTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_renameTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_renameTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->renameTo(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_renameTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_renameTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_renameTo" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_renameTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->renameTo(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_renameTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_renameTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_renameTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_renameTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_renameTo'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::renameTo(std::string,bool,bool)\n" - " ofFile::renameTo(std::string,bool)\n" " ofFile::renameTo(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_remove__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_remove",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_remove" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_remove" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)(arg1)->remove(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_remove",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_remove" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (bool)(arg1)->remove(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_remove(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_remove__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_remove__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_remove'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::remove(bool)\n" " ofFile::remove()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getSize" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = ((ofFile const *)arg1)->getSize(); - resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_getPocoFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Poco::File *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getPocoFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getPocoFile" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (Poco::File *) &(arg1)->getPocoFile(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__File, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile___eq__" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFile___eq__" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFile___eq__" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)((ofFile const *)arg1)->operator ==((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile___ne__" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFile___ne__" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFile___ne__" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)((ofFile const *)arg1)->operator !=((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile___lt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile___lt__" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFile___lt__" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFile___lt__" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)((ofFile const *)arg1)->operator <((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile___le__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile___le__" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFile___le__" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFile___le__" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)((ofFile const *)arg1)->operator <=((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile___gt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile___gt__" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFile___gt__" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFile___gt__" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)((ofFile const *)arg1)->operator >((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile___ge__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile___ge__" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFile___ge__" "', argument " "2"" of type '" "ofFile const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFile___ge__" "', argument " "2"" of type '" "ofFile const &""'"); } - arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)((ofFile const *)arg1)->operator >=((ofFile const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_readToBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofBuffer result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_readToBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_readToBuffer" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (arg1)->readToBuffer(); - resultobj = SWIG_NewPointerObj((new ofBuffer(static_cast< const ofBuffer& >(result))), SWIGTYPE_p_ofBuffer, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_writeFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_writeFromBuffer",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_writeFromBuffer" "', argument " "1"" of type '" "ofFile *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFile_writeFromBuffer" "', argument " "2"" of type '" "ofBuffer const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFile_writeFromBuffer" "', argument " "2"" of type '" "ofBuffer const &""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->writeFromBuffer((ofBuffer const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_getFileBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFile *arg1 = (ofFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; filebuf *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_getFileBuffer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFile_getFileBuffer" "', argument " "1"" of type '" "ofFile const *""'"); } - arg1 = reinterpret_cast< ofFile * >(argp1); result = (filebuf *)((ofFile const *)arg1)->getFileBuffer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_filebuf, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_copyFromTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; bool arg3 ; bool arg4 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFile_copyFromTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyFromTo" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyFromTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_copyFromTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFile_copyFromTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)ofFile::copyFromTo(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_copyFromTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; bool arg3 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFile_copyFromTo",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyFromTo" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyFromTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_copyFromTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)ofFile::copyFromTo(arg1,arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_copyFromTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_copyFromTo",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyFromTo" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_copyFromTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofFile::copyFromTo(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_copyFromTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_copyFromTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_copyFromTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_copyFromTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_copyFromTo'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::copyFromTo(std::string,std::string,bool,bool)\n" - " ofFile::copyFromTo(std::string,std::string,bool)\n" " ofFile::copyFromTo(std::string,std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_moveFromTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; bool arg3 ; bool arg4 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFile_moveFromTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveFromTo" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveFromTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_moveFromTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFile_moveFromTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)ofFile::moveFromTo(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_moveFromTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; bool arg3 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFile_moveFromTo",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveFromTo" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveFromTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFile_moveFromTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)ofFile::moveFromTo(arg1,arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_moveFromTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_moveFromTo",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveFromTo" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_moveFromTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofFile::moveFromTo(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_moveFromTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_moveFromTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_moveFromTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_moveFromTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_moveFromTo'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::moveFromTo(std::string,std::string,bool,bool)\n" - " ofFile::moveFromTo(std::string,std::string,bool)\n" " ofFile::moveFromTo(std::string,std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_doesFileExist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_doesFileExist",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_doesFileExist" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_doesFileExist" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)ofFile::doesFileExist(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_doesFileExist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_doesFileExist",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_doesFileExist" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofFile::doesFileExist(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_doesFileExist(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_doesFileExist__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_doesFileExist__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_doesFileExist'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::doesFileExist(std::string,bool)\n" - " ofFile::doesFileExist(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFile_removeFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFile_removeFile",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_removeFile" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFile_removeFile" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)ofFile::removeFile(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_removeFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFile_removeFile",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFile_removeFile" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofFile::removeFile(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFile_removeFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFile_removeFile__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFile_removeFile__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFile_removeFile'.\n" - " Possible C/C++ prototypes are:\n" " ofFile::removeFile(std::string,bool)\n" " ofFile::removeFile(std::string)\n"); - return 0; } -SWIGINTERN PyObject *ofFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofFile, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofDirectory__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofDirectory")) SWIG_fail; - result = (ofDirectory *)new ofDirectory(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofDirectory, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofDirectory__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; ofDirectory *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofDirectory",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (ofDirectory *)new ofDirectory(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofDirectory, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofDirectory(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofDirectory__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofDirectory__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofDirectory'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::ofDirectory()\n" " ofDirectory::ofDirectory(std::string)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_open",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_open" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_open" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->open(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_close" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_create",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_create" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_create" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)(arg1)->create(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_create",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_create" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (bool)(arg1)->create(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_create(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_create__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_create__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_create'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::create(bool)\n" " ofDirectory::create()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_exists",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_exists" "', argument " "1"" of type '" "ofDirectory const *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (bool)((ofDirectory const *)arg1)->exists(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_path",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_path" "', argument " "1"" of type '" "ofDirectory const *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = ((ofDirectory const *)arg1)->path(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getAbsolutePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_getAbsolutePath",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getAbsolutePath" "', argument " "1"" of type '" "ofDirectory const *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = ((ofDirectory const *)arg1)->getAbsolutePath(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_isDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_isDirectory",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_isDirectory" "', argument " "1"" of type '" "ofDirectory const *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (bool)((ofDirectory const *)arg1)->isDirectory(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_isHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_isHidden",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_isHidden" "', argument " "1"" of type '" "ofDirectory const *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (bool)((ofDirectory const *)arg1)->isHidden(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_setWriteable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_setWriteable",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_setWriteable" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_setWriteable" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setWriteable(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_setWriteable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_setWriteable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_setWriteable" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); (arg1)->setWriteable(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_setWriteable(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_setWriteable__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_setWriteable__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_setWriteable'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::setWriteable(bool)\n" " ofDirectory::setWriteable()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_setReadOnly__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_setReadOnly",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_setReadOnly" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_setReadOnly" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setReadOnly(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_setReadOnly__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_setReadOnly",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_setReadOnly" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); (arg1)->setReadOnly(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_setReadOnly(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_setReadOnly__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_setReadOnly__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_setReadOnly'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::setReadOnly(bool)\n" " ofDirectory::setReadOnly()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_setExecutable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_setExecutable",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_setExecutable" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_setExecutable" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setExecutable(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_setExecutable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_setExecutable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_setExecutable" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); (arg1)->setExecutable(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_setExecutable(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_setExecutable__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_setExecutable__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_setExecutable'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::setExecutable(bool)\n" " ofDirectory::setExecutable()\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_setShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_setShowHidden",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_setShowHidden" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_setShowHidden" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setShowHidden(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_copyTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; - bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDirectory_copyTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_copyTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_copyTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_copyTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDirectory_copyTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->copyTo(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_copyTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDirectory_copyTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_copyTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_copyTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_copyTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->copyTo(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_copyTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_copyTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_copyTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_copyTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->copyTo(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_copyTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_copyTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_copyTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_copyTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_copyTo'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::copyTo(std::string,bool,bool)\n" - " ofDirectory::copyTo(std::string,bool)\n" " ofDirectory::copyTo(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_moveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; - bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDirectory_moveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_moveTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_moveTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_moveTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDirectory_moveTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->moveTo(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_moveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDirectory_moveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_moveTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_moveTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_moveTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->moveTo(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_moveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_moveTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_moveTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_moveTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->moveTo(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_moveTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_moveTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_moveTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_moveTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_moveTo'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::moveTo(std::string,bool,bool)\n" - " ofDirectory::moveTo(std::string,bool)\n" " ofDirectory::moveTo(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_renameTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; - int res1 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDirectory_renameTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_renameTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_renameTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_renameTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDirectory_renameTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->renameTo(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_renameTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; - int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDirectory_renameTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_renameTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_renameTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_renameTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)(arg1)->renameTo(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_renameTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_renameTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_renameTo" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_renameTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->renameTo(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_renameTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofToLower((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToLower(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofToLower__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_renameTo__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_renameTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_renameTo__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_renameTo'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::renameTo(std::string,bool,bool)\n" - " ofDirectory::renameTo(std::string,bool)\n" " ofDirectory::renameTo(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_remove",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_remove" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_remove" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)(arg1)->remove(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_allowExt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_allowExt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_allowExt" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_allowExt" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->allowExt(arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_listDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_listDir",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_listDir" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_listDir" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (int)(arg1)->listDir(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_listDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_listDir",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_listDir" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (int)(arg1)->listDir(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_listDir(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + return _wrap_ofToLower__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofToLower'.\n" + " Possible C/C++ prototypes are:\n" " ofToLower(std::string const &,std::string const &)\n" + " ofToLower(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofToUpper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofToUpper",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofToUpper" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToUpper" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofToUpper((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofToUpper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToUpper",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofToUpper((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToUpper(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_listDir__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofToUpper__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_listDir__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_listDir'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::listDir(std::string)\n" " ofDirectory::listDir()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_getOriginalDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_getOriginalDirectory",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getOriginalDirectory" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (arg1)->getOriginalDirectory(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_getName",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getName" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_getName" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); result = (arg1)->getName(arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_getPath",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getPath" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_getPath" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); result = (arg1)->getPath(arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; unsigned int arg2 ; ofFile::Mode arg3 ; bool arg4 ; - void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofFile result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDirectory_getFile",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getFile" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_getFile" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_getFile" "', argument " "3"" of type '" "ofFile::Mode""'"); } - arg3 = static_cast< ofFile::Mode >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDirectory_getFile" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (arg1)->getFile(arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofFile(static_cast< const ofFile& >(result))), SWIGTYPE_p_ofFile, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; unsigned int arg2 ; ofFile::Mode arg3 ; void *argp1 = 0 ; - int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; ofFile result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDirectory_getFile",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getFile" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_getFile" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_getFile" "', argument " "3"" of type '" "ofFile::Mode""'"); } - arg3 = static_cast< ofFile::Mode >(val3); result = (arg1)->getFile(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofFile(static_cast< const ofFile& >(result))), SWIGTYPE_p_ofFile, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getFile__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofDirectory *arg1 = (ofDirectory *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofFile result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_getFile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getFile" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_getFile" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); result = (arg1)->getFile(arg2); - resultobj = SWIG_NewPointerObj((new ofFile(static_cast< const ofFile& >(result))), SWIGTYPE_p_ofFile, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_getFile__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_getFile__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofDirectory, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_getFile__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_getFile'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::getFile(unsigned int,ofFile::Mode,bool)\n" - " ofDirectory::getFile(unsigned int,ofFile::Mode)\n" " ofDirectory::getFile(unsigned int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_getFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< std::vector< ofFile > > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_getFiles",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getFiles" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (arg1)->getFiles(); - resultobj = SWIG_NewPointerObj((new std::vector< ofFile >(static_cast< const std::vector< ofFile >& >(result))), SWIGTYPE_p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofFile result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory___getitem__" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory___getitem__" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned int >(val2); result = (arg1)->operator [](arg2); - resultobj = SWIG_NewPointerObj((new ofFile(static_cast< const ofFile& >(result))), SWIGTYPE_p_ofFile, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_getShowHidden",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getShowHidden" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (bool)(arg1)->getShowHidden(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_reset",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_reset" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); (arg1)->reset(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_sort",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_sort" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); (arg1)->sort(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_size" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (unsigned int)(arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_numFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_numFiles",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_numFiles" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (int)(arg1)->numFiles(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_getPocoFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Poco::File *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_getPocoFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory_getPocoFile" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); result = (Poco::File *) &(arg1)->getPocoFile(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__File, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; ofDirectory *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory___eq__" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofDirectory, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDirectory___eq__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDirectory___eq__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - arg2 = reinterpret_cast< ofDirectory * >(argp2); result = (bool)(arg1)->operator ==((ofDirectory const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; ofDirectory *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory___ne__" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofDirectory, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDirectory___ne__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDirectory___ne__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - arg2 = reinterpret_cast< ofDirectory * >(argp2); result = (bool)(arg1)->operator !=((ofDirectory const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; ofDirectory *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory___lt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory___lt__" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofDirectory, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDirectory___lt__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDirectory___lt__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - arg2 = reinterpret_cast< ofDirectory * >(argp2); result = (bool)(arg1)->operator <((ofDirectory const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; ofDirectory *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory___le__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory___le__" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofDirectory, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDirectory___le__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDirectory___le__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - arg2 = reinterpret_cast< ofDirectory * >(argp2); result = (bool)(arg1)->operator <=((ofDirectory const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; ofDirectory *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory___gt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory___gt__" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofDirectory, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDirectory___gt__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDirectory___gt__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - arg2 = reinterpret_cast< ofDirectory * >(argp2); result = (bool)(arg1)->operator >((ofDirectory const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; ofDirectory *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory___ge__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDirectory___ge__" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofDirectory, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDirectory___ge__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDirectory___ge__" "', argument " "2"" of type '" "ofDirectory const &""'"); } - arg2 = reinterpret_cast< ofDirectory * >(argp2); result = (bool)(arg1)->operator >=((ofDirectory const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_createDirectory__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDirectory_createDirectory",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_createDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_createDirectory" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_createDirectory" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)ofDirectory::createDirectory(arg1,arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_createDirectory__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_createDirectory",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_createDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_createDirectory" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)ofDirectory::createDirectory(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_createDirectory__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_createDirectory",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_createDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofDirectory::createDirectory(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_createDirectory(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + return _wrap_ofToUpper__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofToUpper'.\n" + " Possible C/C++ prototypes are:\n" " ofToUpper(std::string const &,std::string const &)\n" + " ofToUpper(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrimFront__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrimFront",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrimFront" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimFront" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofTrimFront((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimFront__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrimFront",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofTrimFront((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimFront(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_createDirectory__SWIG_2(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_createDirectory__SWIG_1(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_createDirectory__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_createDirectory'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::createDirectory(std::string,bool,bool)\n" - " ofDirectory::createDirectory(std::string,bool)\n" " ofDirectory::createDirectory(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_isDirectoryEmpty__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_isDirectoryEmpty",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_isDirectoryEmpty" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_isDirectoryEmpty" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)ofDirectory::isDirectoryEmpty(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_isDirectoryEmpty__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_isDirectoryEmpty",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_isDirectoryEmpty" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofDirectory::isDirectoryEmpty(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_isDirectoryEmpty(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + return _wrap_ofTrimFront__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrimFront__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrimFront'.\n" + " Possible C/C++ prototypes are:\n" " ofTrimFront(std::string const &,std::string const &)\n" + " ofTrimFront(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrimBack__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrimBack",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrimBack" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimBack" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofTrimBack((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimBack__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrimBack",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofTrimBack((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimBack(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_isDirectoryEmpty__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_isDirectoryEmpty__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_isDirectoryEmpty'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::isDirectoryEmpty(std::string,bool)\n" - " ofDirectory::isDirectoryEmpty(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_doesDirectoryExist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_doesDirectoryExist",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_doesDirectoryExist" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_doesDirectoryExist" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)ofDirectory::doesDirectoryExist(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_doesDirectoryExist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofDirectory_doesDirectoryExist",&obj0)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_doesDirectoryExist" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)ofDirectory::doesDirectoryExist(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_doesDirectoryExist(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + return _wrap_ofTrimBack__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrimBack__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrimBack'.\n" + " Possible C/C++ prototypes are:\n" " ofTrimBack(std::string const &,std::string const &)\n" + " ofTrimBack(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrim__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrim",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrim" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrim" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofTrim((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrim__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrim",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofTrim((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrim(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrim__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrim__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrim'.\n" + " Possible C/C++ prototypes are:\n" " ofTrim(std::string const &,std::string const &)\n" + " ofTrim(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofAppendUTF8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofAppendUTF8",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__string, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofAppendUTF8" "', argument " "1"" of type '" "std::string &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofAppendUTF8" "', argument " "1"" of type '" "std::string &""'"); } + arg1 = reinterpret_cast< std::string * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofAppendUTF8" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofAppendUTF8(*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToInt" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToInt" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofToInt((std::string const &)*arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int64_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToInt64",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToInt64" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToInt64" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofToInt64((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj((new int64_t(static_cast< const int64_t& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (float)ofToFloat((std::string const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; double result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToDouble",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToDouble" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToDouble" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (double)ofToDouble((std::string const &)*arg1); + resultobj = SWIG_From_double(static_cast< double >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToBool",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToBool" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToBool" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (bool)ofToBool((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToHex",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToHex" "', argument " "1"" of type '" "char const *""'"); } + arg1 = reinterpret_cast< char * >(buf1); result = ofToHex((char const *)arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToInt" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToInt" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofHexToInt((std::string const &)*arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToChar" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToChar" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (char)ofHexToChar((std::string const &)*arg1); + resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (float)ofHexToFloat((std::string const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToString",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofHexToString((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToChar" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToChar" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (char)ofToChar((std::string const &)*arg1); + resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToBinary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToBinary",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToBinary" "', argument " "1"" of type '" "char const *""'"); } + arg1 = reinterpret_cast< char * >(buf1); result = ofToBinary((char const *)arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToInt" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToInt" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofBinaryToInt((std::string const &)*arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToChar" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToChar" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (char)ofBinaryToChar((std::string const &)*arg1); + resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (float)ofBinaryToFloat((std::string const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToString",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofBinaryToString((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionInfo")) SWIG_fail; result = ofGetVersionInfo(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionMajor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionMajor")) SWIG_fail; + result = (unsigned int)ofGetVersionMajor(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionMinor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionMinor")) SWIG_fail; + result = (unsigned int)ofGetVersionMinor(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionPatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionPatch")) SWIG_fail; + result = (unsigned int)ofGetVersionPatch(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionPreRelease(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionPreRelease")) SWIG_fail; + result = ofGetVersionPreRelease(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSaveScreen",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveScreen" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveScreen" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofSaveScreen((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSaveFrame",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSaveFrame" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSaveFrame(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSaveFrame")) SWIG_fail; ofSaveFrame(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveFrame(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSaveFrame__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSaveFrame__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSaveFrame'.\n" + " Possible C/C++ prototypes are:\n" " ofSaveFrame(bool)\n" " ofSaveFrame()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSaveViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSaveViewport",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveViewport" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveViewport" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofSaveViewport((std::string const &)*arg1); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLaunchBrowser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofLaunchBrowser",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLaunchBrowser" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofLaunchBrowser((std::string const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLaunchBrowser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLaunchBrowser",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofLaunchBrowser((std::string const &)*arg1); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLaunchBrowser(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDirectory_doesDirectoryExist__SWIG_1(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_doesDirectoryExist__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_doesDirectoryExist'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::doesDirectoryExist(std::string,bool)\n" - " ofDirectory::doesDirectoryExist(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDirectory_removeDirectory__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDirectory_removeDirectory",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_removeDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_removeDirectory" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDirectory_removeDirectory" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (bool)ofDirectory::removeDirectory(arg1,arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_removeDirectory__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDirectory_removeDirectory",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDirectory_removeDirectory" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDirectory_removeDirectory" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = (bool)ofDirectory::removeDirectory(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDirectory_removeDirectory(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + return _wrap_ofLaunchBrowser__SWIG_1(self, args);} } if (argc == 2) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_removeDirectory__SWIG_1(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDirectory_removeDirectory__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDirectory_removeDirectory'.\n" - " Possible C/C++ prototypes are:\n" " ofDirectory::removeDirectory(std::string,bool,bool)\n" - " ofDirectory::removeDirectory(std::string,bool)\n"); return 0; } -SWIGINTERN PyObject *_wrap_delete_ofDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDirectory *arg1 = (ofDirectory *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofDirectory",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDirectory, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofDirectory" "', argument " "1"" of type '" "ofDirectory *""'"); } - arg1 = reinterpret_cast< ofDirectory * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *ofDirectory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + return _wrap_ofLaunchBrowser__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLaunchBrowser'.\n" + " Possible C/C++ prototypes are:\n" " ofLaunchBrowser(std::string const &,bool)\n" + " ofLaunchBrowser(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSystem",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSystem" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSystem" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofSystem((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofGetTargetPlatform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTargetPlatform result; if (!PyArg_ParseTuple(args,(char *)":ofGetTargetPlatform")) SWIG_fail; + result = (ofTargetPlatform)ofGetTargetPlatform(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetEnv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetEnv",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofGetEnv" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofGetEnv" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofGetEnv((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofUTF8Iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofUTF8Iterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofUTF8Iterator",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofUTF8Iterator" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofUTF8Iterator" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofUTF8Iterator *)new ofUTF8Iterator((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofUTF8Iterator, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_begin" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_iterator >(static_cast< const utf8::iterator< std::string::const_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_end" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->end(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_iterator >(static_cast< const utf8::iterator< std::string::const_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_rbegin" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_reverse_iterator >(static_cast< const utf8::iterator< std::string::const_reverse_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_reverse_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_rend" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_reverse_iterator >(static_cast< const utf8::iterator< std::string::const_reverse_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_reverse_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofUTF8Iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofUTF8Iterator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofUTF8Iterator" "', argument " "1"" of type '" "ofUTF8Iterator *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofUTF8Iterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofDirectory, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_ofUTF8Iterator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } +SWIGINTERN PyObject *_wrap_setWorkingDirectoryToDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":setWorkingDirectoryToDefault")) SWIG_fail; + of::priv::setWorkingDirectoryToDefault(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_initutils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":initutils")) SWIG_fail; of::priv::initutils(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_endutils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":endutils")) SWIG_fail; of::priv::endutils(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLogLevel arg1 ; std::string *arg2 = 0 ; int val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:log",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); @@ -22203,6 +24625,72 @@ SWIGINTERN PyObject *_wrap_log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } log(arg1,(std::string const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *OF_LOG_VERBOSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_VERBOSE",SWIG_From_int(static_cast< int >(OF_LOG_VERBOSE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_NOTICE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_NOTICE",SWIG_From_int(static_cast< int >(OF_LOG_NOTICE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_WARNING_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_WARNING",SWIG_From_int(static_cast< int >(OF_LOG_WARNING))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_ERROR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_ERROR",SWIG_From_int(static_cast< int >(OF_LOG_ERROR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_FATAL_ERROR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_FATAL_ERROR",SWIG_From_int(static_cast< int >(OF_LOG_FATAL_ERROR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_SILENT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_SILENT",SWIG_From_int(static_cast< int >(OF_LOG_SILENT))); + return SWIG_Py_Void(); +} + + SWIGINTERN PyObject *_wrap_ofSetLogLevel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLogLevel arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetLogLevel",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); @@ -22219,8 +24707,8 @@ SWIGINTERN PyObject *_wrap_ofSetLogLevel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetLogLevel" "', argument " "2"" of type '" "ofLogLevel""'"); } arg2 = static_cast< ofLogLevel >(val2); ofSetLogLevel(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetLogLevel(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetLogLevel(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetLogLevel__SWIG_0(self, args);} } if (argc == 2) { int _v; @@ -22249,8 +24737,8 @@ SWIGINTERN PyObject *_wrap_ofGetLogLevelName__SWIG_1(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetLogLevelName" "', argument " "1"" of type '" "ofLogLevel""'"); } arg1 = static_cast< ofLogLevel >(val1); result = ofGetLogLevelName(arg1); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetLogLevelName(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofGetLogLevelName(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofGetLogLevelName__SWIG_1(self, args);} } if (argc == 2) { int _v; { @@ -22280,8 +24768,8 @@ SWIGINTERN PyObject *_wrap_ofLogToFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLogToFile" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } ofLogToFile((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_ofLogToFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofLogToFile(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofLogToFile__SWIG_1(self, args);} } if (argc == 2) { int _v; @@ -22429,8 +24917,8 @@ SWIGINTERN PyObject *_wrap_ofSystemLoadDialog__SWIG_3(PyObject *SWIGUNUSEDPARM(s result = ofSystemLoadDialog(); resultobj = SWIG_NewPointerObj((new ofFileDialogResult(static_cast< const ofFileDialogResult& >(result))), SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSystemLoadDialog(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSystemLoadDialog(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofSystemLoadDialog__SWIG_3(self, args);} if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -22473,8 +24961,8 @@ SWIGINTERN PyObject *_wrap_ofSystemTextBoxDialog__SWIG_1(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemTextBoxDialog" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofSystemTextBoxDialog(arg1); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSystemTextBoxDialog(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSystemTextBoxDialog(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofSystemTextBoxDialog__SWIG_1(self, args);} } if (argc == 2) { int _v; @@ -22490,32 +24978,42 @@ SWIGINTERN PyObject *_wrap_new_ofHttpRequest__SWIG_0(PyObject *SWIGUNUSEDPARM(se resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ofHttpRequest__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; bool arg3 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; ofHttpRequest *result = 0 ; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofHttpRequest *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofHttpRequest",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofHttpRequest" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (ofHttpRequest *)new ofHttpRequest(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } + arg3 = static_cast< bool >(val3); + result = (ofHttpRequest *)new ofHttpRequest((std::string const &)*arg1,(std::string const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_ofHttpRequest__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpRequest *result = 0 ; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofHttpRequest *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_ofHttpRequest",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (ofHttpRequest *)new ofHttpRequest(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofHttpRequest(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (ofHttpRequest *)new ofHttpRequest((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpRequest(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofHttpRequest__SWIG_0(self, args);} if (argc == 2) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -22527,8 +25025,8 @@ SWIGINTERN PyObject *_wrap_new_ofHttpRequest(PyObject *self, PyObject *args) { i return _wrap_new_ofHttpRequest__SWIG_1(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofHttpRequest'.\n" " Possible C/C++ prototypes are:\n" " ofHttpRequest::ofHttpRequest()\n" - " ofHttpRequest::ofHttpRequest(std::string,std::string,bool)\n" - " ofHttpRequest::ofHttpRequest(std::string,std::string)\n"); return 0; } + " ofHttpRequest::ofHttpRequest(std::string const &,std::string const &,bool)\n" + " ofHttpRequest::ofHttpRequest(std::string const &,std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofHttpRequest_url_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -22586,6 +25084,35 @@ SWIGINTERN PyObject *_wrap_ofHttpRequest_saveTo_get(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_saveTo_get" "', argument " "1"" of type '" "ofHttpRequest *""'"); } arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (bool) ((arg1)->saveTo); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_headers_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; + std::map< std::string,std::string > *arg2 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpRequest_headers_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_headers_set" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpRequest_headers_set" "', argument " "2"" of type '" "std::map< std::string,std::string > *""'"); } + arg2 = reinterpret_cast< std::map< std::string,std::string > * >(argp2); if (arg1) (arg1)->headers = *arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_headers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::map< std::string,std::string > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_headers_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_headers_get" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (std::map< std::string,std::string > *)& ((arg1)->headers); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_getId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_getId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_getId" "', argument " "1"" of type '" "ofHttpRequest const *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (int)((ofHttpRequest const *)arg1)->getId(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofHttpRequest_getID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_getID",&obj0)) SWIG_fail; @@ -22613,48 +25140,50 @@ SWIGINTERN PyObject *_wrap_new_ofHttpResponse__SWIG_0(PyObject *SWIGUNUSEDPARM(s resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ofHttpResponse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofHttpRequest arg1 ; ofBuffer *arg2 = 0 ; int arg3 ; std::string arg4 ; void *argp1 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofHttpResponse *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofHttpResponse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest""'"); } - else { ofHttpRequest * temp = reinterpret_cast< ofHttpRequest * >(argp1); arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; } } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + ofHttpRequest *arg1 = 0 ; ofBuffer *arg2 = 0 ; int arg3 ; std::string *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofHttpResponse *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofHttpResponse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofHttpResponse" "', argument " "2"" of type '" "ofBuffer const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "2"" of type '" "ofBuffer const &""'"); } arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofHttpResponse" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj3, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofHttpResponse" "', argument " "4"" of type '" "std::string""'"); } - arg4 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - result = (ofHttpResponse *)new ofHttpResponse(arg1,(ofBuffer const &)*arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } + arg3 = static_cast< int >(val3); { std::string *ptr = (std::string *)0; res4 = SWIG_AsPtr_std_string(obj3, &ptr); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ofHttpResponse" "', argument " "4"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "4"" of type '" "std::string const &""'"); } + arg4 = ptr; } + result = (ofHttpResponse *)new ofHttpResponse((ofHttpRequest const &)*arg1,(ofBuffer const &)*arg2,arg3,(std::string const &)*arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_new_ofHttpResponse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofHttpRequest arg1 ; int arg2 ; std::string arg3 ; void *argp1 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofHttpResponse *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofHttpResponse",&obj0,&obj1,&obj2)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest""'"); } - else { ofHttpRequest * temp = reinterpret_cast< ofHttpRequest * >(argp1); arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; } } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + ofHttpRequest *arg1 = 0 ; int arg2 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofHttpResponse *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofHttpResponse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofHttpResponse" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofHttpResponse" "', argument " "3"" of type '" "std::string""'"); } - arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (ofHttpResponse *)new ofHttpResponse(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofHttpResponse(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + arg2 = static_cast< int >(val2); { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ofHttpResponse" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (ofHttpResponse *)new ofHttpResponse((ofHttpRequest const &)*arg1,arg2,(std::string const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpResponse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofHttpResponse__SWIG_0(self, args);} if (argc == 3) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofHttpRequest, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -22668,8 +25197,8 @@ SWIGINTERN PyObject *_wrap_new_ofHttpResponse(PyObject *self, PyObject *args) { return _wrap_new_ofHttpResponse__SWIG_1(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofHttpResponse'.\n" " Possible C/C++ prototypes are:\n" " ofHttpResponse::ofHttpResponse()\n" - " ofHttpResponse::ofHttpResponse(ofHttpRequest,ofBuffer const &,int,std::string)\n" - " ofHttpResponse::ofHttpResponse(ofHttpRequest,int,std::string)\n"); return 0; } + " ofHttpResponse::ofHttpResponse(ofHttpRequest const &,ofBuffer const &,int,std::string const &)\n" + " ofHttpResponse::ofHttpResponse(ofHttpRequest const &,int,std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofHttpResponse_request_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; ofHttpRequest *arg2 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -22690,23 +25219,26 @@ SWIGINTERN PyObject *_wrap_ofHttpResponse_request_get(PyObject *SWIGUNUSEDPARM(s resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofHttpResponse_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; ofBuffer *arg2 = (ofBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; ofBuffer arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpResponse_data_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_data_set" "', argument " "1"" of type '" "ofHttpResponse *""'"); } - arg1 = reinterpret_cast< ofHttpResponse * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBuffer, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpResponse_data_set" "', argument " "2"" of type '" "ofBuffer *""'"); } - arg2 = reinterpret_cast< ofBuffer * >(argp2); if (arg1) (arg1)->data = *arg2; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpResponse_data_set" "', argument " "2"" of type '" "ofBuffer""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHttpResponse_data_set" "', argument " "2"" of type '" "ofBuffer""'"); } + else { ofBuffer * temp = reinterpret_cast< ofBuffer * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + if (arg1) (arg1)->data = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofHttpResponse_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofBuffer *result = 0 ; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofBuffer result; if (!PyArg_ParseTuple(args,(char *)"O:ofHttpResponse_data_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_data_get" "', argument " "1"" of type '" "ofHttpResponse *""'"); } - arg1 = reinterpret_cast< ofHttpResponse * >(argp1); result = (ofBuffer *)& ((arg1)->data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBuffer, 0 | 0 ); return resultobj; fail: return NULL; } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); result = ((arg1)->data); + resultobj = SWIG_NewPointerObj((new ofBuffer(static_cast< const ofBuffer& >(result))), SWIGTYPE_p_ofBuffer, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofHttpResponse_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -22759,31 +25291,42 @@ SWIGINTERN PyObject *ofHttpResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), } SWIGINTERN PyObject *_wrap_ofLoadURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; ofHttpResponse result; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofHttpResponse result; if (!PyArg_ParseTuple(args,(char *)"O:ofLoadURL",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofLoadURL" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofLoadURL(arg1); + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadURL" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURL" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofLoadURL((std::string const &)*arg1); resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_ofLoadURLAsync__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofLoadURLAsync",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofLoadURLAsync" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (int)ofLoadURLAsync(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofLoadURLAsync",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLoadURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)ofLoadURLAsync((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofLoadURLAsync__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofLoadURLAsync",&obj0)) SWIG_fail; - { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (int)ofLoadURLAsync(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLoadURLAsync(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadURLAsync",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofLoadURLAsync((std::string const &)*arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadURLAsync(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofLoadURLAsync__SWIG_1(self, args);} } if (argc == 2) { int _v; @@ -22791,29 +25334,38 @@ SWIGINTERN PyObject *_wrap_ofLoadURLAsync(PyObject *self, PyObject *args) { int int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofLoadURLAsync__SWIG_0(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLoadURLAsync'.\n" - " Possible C/C++ prototypes are:\n" " ofLoadURLAsync(std::string,std::string)\n" " ofLoadURLAsync(std::string)\n"); - return 0; } + " Possible C/C++ prototypes are:\n" " ofLoadURLAsync(std::string const &,std::string const &)\n" + " ofLoadURLAsync(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofSaveURLTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSaveURLTo",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSaveURLTo" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSaveURLTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofSaveURLTo(arg1,arg2); + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofHttpResponse result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSaveURLTo",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveURLTo" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLTo" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSaveURLTo" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLTo" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofSaveURLTo((std::string const &)*arg1,(std::string const &)*arg2); resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofSaveURLAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSaveURLAsync",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSaveURLAsync" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSaveURLAsync" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (int)ofSaveURLAsync(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSaveURLAsync",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSaveURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)ofSaveURLAsync((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofRemoveURLRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRemoveURLRequest",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); @@ -22837,44 +25389,55 @@ SWIGINTERN PyObject *_wrap_new_ofURLFileLoader(PyObject *SWIGUNUSEDPARM(self), P resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofURLFileLoader, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofURLFileLoader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofHttpResponse result; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; if (!PyArg_ParseTuple(args,(char *)"OO:ofURLFileLoader_get",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_get" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_get" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (arg1)->get(arg2); + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (arg1)->get((std::string const &)*arg2); resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string arg2 ; std::string arg3 ; - void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; + PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofURLFileLoader_getAsync",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_getAsync" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string""'"); } - arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (int)(arg1)->getAsync(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofURLFileLoader_getAsync",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_getAsync" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (int)(arg1)->getAsync(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofURLFileLoader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -22884,37 +25447,48 @@ SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync(PyObject *self, PyObject *ar int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofURLFileLoader_getAsync__SWIG_0(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofURLFileLoader_getAsync'.\n" - " Possible C/C++ prototypes are:\n" " ofURLFileLoader::getAsync(std::string,std::string)\n" - " ofURLFileLoader::getAsync(std::string)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofURLFileLoader::getAsync(std::string const &,std::string const &)\n" + " ofURLFileLoader::getAsync(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofURLFileLoader_saveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofHttpResponse result; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofHttpResponse result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofURLFileLoader_saveTo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_saveTo" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string""'"); } - arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (arg1)->saveTo(arg2,arg3); + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (arg1)->saveTo((std::string const &)*arg2,(std::string const &)*arg3); resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_ofURLFileLoader_saveAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofURLFileLoader_saveAsync",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_saveAsync" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string""'"); } - arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (int)(arg1)->saveAsync(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->saveAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_ofURLFileLoader_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -22938,6 +25512,20 @@ SWIGINTERN PyObject *_wrap_ofURLFileLoader_stop(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_stop" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_handleRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; ofHttpRequest *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofURLFileLoader_handleRequest",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_handleRequest" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofHttpRequest, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest &""'"); } + arg2 = reinterpret_cast< ofHttpRequest * >(argp2); result = (arg1)->handleRequest(*arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_ofURLFileLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ofURLFileLoader",&obj0)) SWIG_fail; @@ -22957,13 +25545,6 @@ SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self result = (ofRectangle *)new ofRectangle(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofRectangle",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofRectangle" "', argument " "1"" of type '" "ofRectangle *""'"); } - arg1 = reinterpret_cast< ofRectangle * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -23022,8 +25603,8 @@ SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_4(PyObject *SWIGUNUSEDPARM(self result = (ofRectangle *)new ofRectangle((ofPoint const &)*arg1,(ofPoint const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofRectangle(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofRectangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofRectangle__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23045,6 +25626,13 @@ SWIGINTERN PyObject *_wrap_new_ofRectangle(PyObject *self, PyObject *args) { int " ofRectangle::ofRectangle(float,float,float,float)\n" " ofRectangle::ofRectangle(ofPoint const &,float,float)\n" " ofRectangle::ofRectangle(ofRectangle const &)\n" " ofRectangle::ofRectangle(ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofRectangle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofRectangle" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofRectangle_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; @@ -23111,8 +25699,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_set" "', argument " "3"" of type '" "ofPoint const &""'"); } arg3 = reinterpret_cast< ofPoint * >(argp3); (arg1)->set((ofPoint const &)*arg2,(ofPoint const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23196,8 +25784,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_setPosition__SWIG_1(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_setPosition" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->setPosition((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_setPosition(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_setPosition(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23209,6 +25797,18 @@ SWIGINTERN PyObject *_wrap_ofRectangle_setPosition(PyObject *self, PyObject *arg SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_setPosition'.\n" " Possible C/C++ prototypes are:\n" " ofRectangle::setPosition(float,float)\n" " ofRectangle::setPosition(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_setSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_setSize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setSize" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setSize" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_setSize" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setSize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofRectangle_setFromCenter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; @@ -23245,8 +25845,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_setFromCenter__SWIG_1(PyObject *SWIGUNUSE SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_setFromCenter" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); (arg1)->setFromCenter((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_setFromCenter(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_setFromCenter(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -23287,8 +25887,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_translate__SWIG_1(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->translate((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_translate(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_translate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23351,8 +25951,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_scale__SWIG_2(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scale" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->scale((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_scale(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_scale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23422,8 +26022,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_scaleFromCenter__SWIG_2(PyObject *SWIGUNU SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleFromCenter" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->scaleFromCenter((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_scaleFromCenter(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_scaleFromCenter(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23547,8 +26147,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo__SWIG_3(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectangle_scaleTo" "', argument " "7"" of type '" "ofAlignVert""'"); } arg7 = static_cast< ofAlignVert >(val7); (arg1)->scaleTo((ofRectangle const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23647,8 +26247,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz__SWIG_4(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_alignToHorz" "', argument " "4"" of type '" "ofAlignHorz""'"); } arg4 = static_cast< ofAlignHorz >(val4); (arg1)->alignToHorz((ofRectangle const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23743,8 +26343,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert__SWIG_4(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_alignToVert" "', argument " "4"" of type '" "ofAlignVert""'"); } arg4 = static_cast< ofAlignVert >(val4); (arg1)->alignToVert((ofRectangle const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23885,8 +26485,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_6(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectangle_alignTo" "', argument " "6"" of type '" "ofAlignVert""'"); } arg6 = static_cast< ofAlignVert >(val6); (arg1)->alignTo((ofRectangle const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_alignTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -23983,8 +26583,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_inside__SWIG_3(PyObject *SWIGUNUSEDPARM(s arg3 = reinterpret_cast< ofPoint * >(argp3); result = (bool)((ofRectangle const *)arg1)->inside((ofPoint const &)*arg2,(ofPoint const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_inside(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_inside(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24038,8 +26638,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_intersects__SWIG_1(PyObject *SWIGUNUSEDPA arg3 = reinterpret_cast< ofPoint * >(argp3); result = (bool)((ofRectangle const *)arg1)->intersects((ofPoint const &)*arg2,(ofPoint const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_intersects(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_intersects(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24107,8 +26707,8 @@ SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude__SWIG_3(PyObject *SWIGUNUSE SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_growToInclude" "', argument " "3"" of type '" "ofPoint const &""'"); } arg3 = reinterpret_cast< ofPoint * >(argp3); (arg1)->growToInclude((ofPoint const &)*arg2,(ofPoint const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24396,6 +26996,20 @@ SWIGINTERN PyObject *_wrap_ofRectangle___add__(PyObject *SWIGUNUSEDPARM(self), P arg2 = reinterpret_cast< ofPoint * >(argp2); result = (arg1)->operator +((ofPoint const &)*arg2); resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle___sub__" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle___sub__" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle___sub__" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = (arg1)->operator -((ofPoint const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofRectangle___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; @@ -24424,6 +27038,13 @@ SWIGINTERN PyObject *_wrap_ofRectangle___ne__(PyObject *SWIGUNUSEDPARM(self), Py arg2 = reinterpret_cast< ofRectangle * >(argp2); result = (bool)((ofRectangle const *)arg1)->operator !=((ofRectangle const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_isZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_isZero",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_isZero" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (bool)((ofRectangle const *)arg1)->isZero(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofRectangle_position_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = (ofPoint *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -24522,7 +27143,7 @@ SWIGINTERN PyObject *ofRectangle_swigregister(PyObject *SWIGUNUSEDPARM(self), Py return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_new_ofNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_new_ofNode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofNode")) SWIG_fail; result = (ofNode *)new ofNode(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } @@ -24532,6 +27153,37 @@ SWIGINTERN PyObject *_wrap_delete_ofNode(PyObject *SWIGUNUSEDPARM(self), PyObjec res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofNode" "', argument " "1"" of type '" "ofNode *""'"); } arg1 = reinterpret_cast< ofNode * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofNode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofNode *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofNode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofNode, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode const &""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (ofNode *)new ofNode((ofNode const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofNode__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofNode *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofNode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofNode, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode &&""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (ofNode *)new ofNode((ofNode &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofNode(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofNode__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofNode__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofNode__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofNode'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::ofNode()\n" " ofNode::ofNode(ofNode const &)\n" + " ofNode::ofNode(ofNode &&)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofNode_setParent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -24559,8 +27211,8 @@ SWIGINTERN PyObject *_wrap_ofNode_setParent__SWIG_1(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setParent" "', argument " "2"" of type '" "ofNode &""'"); } arg2 = reinterpret_cast< ofNode * >(argp2); (arg1)->setParent(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_setParent(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_setParent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24586,8 +27238,8 @@ SWIGINTERN PyObject *_wrap_ofNode_clearParent__SWIG_1(PyObject *SWIGUNUSEDPARM(s SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_clearParent" "', argument " "1"" of type '" "ofNode *""'"); } arg1 = reinterpret_cast< ofNode * >(argp1); (arg1)->clearParent(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_clearParent(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_clearParent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofNode_clearParent__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -24806,8 +27458,8 @@ SWIGINTERN PyObject *_wrap_ofNode_setPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(s SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setPosition" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setPosition((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_setPosition(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_setPosition(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24848,8 +27500,8 @@ SWIGINTERN PyObject *_wrap_ofNode_setGlobalPosition__SWIG_1(PyObject *SWIGUNUSED SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setGlobalPosition" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setGlobalPosition((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_setGlobalPosition(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_setGlobalPosition(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24888,8 +27540,8 @@ SWIGINTERN PyObject *_wrap_ofNode_setOrientation__SWIG_1(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setOrientation" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setOrientation((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_setOrientation(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_setOrientation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24948,8 +27600,8 @@ SWIGINTERN PyObject *_wrap_ofNode_setScale__SWIG_2(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_setScale(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_setScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -24992,8 +27644,8 @@ SWIGINTERN PyObject *_wrap_ofNode_move__SWIG_1(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_move" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->move((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_move(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_move(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -25097,8 +27749,8 @@ SWIGINTERN PyObject *_wrap_ofNode_rotate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofNode_rotate" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); (arg1)->rotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_rotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { @@ -25155,8 +27807,8 @@ SWIGINTERN PyObject *_wrap_ofNode_rotateAround__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_rotateAround" "', argument " "4"" of type '" "ofVec3f const &""'"); } arg4 = reinterpret_cast< ofVec3f * >(argp4); (arg1)->rotateAround(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_rotateAround(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_rotateAround(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { @@ -25171,6 +27823,18 @@ SWIGINTERN PyObject *_wrap_ofNode_rotateAround(PyObject *self, PyObject *args) { " Possible C/C++ prototypes are:\n" " ofNode::rotateAround(ofQuaternion const &,ofVec3f const &)\n" " ofNode::rotateAround(float,ofVec3f const &,ofVec3f const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_lookAt",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_lookAt" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->lookAt((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofNode_lookAt",&obj0,&obj1,&obj2)) SWIG_fail; @@ -25188,19 +27852,19 @@ SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "3"" of type '" "ofVec3f""'"); } else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->lookAt((ofVec3f const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; +SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_lookAt",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_lookAt" "', argument " "1"" of type '" "ofNode *""'"); } - arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofNode, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->lookAt((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } + arg2 = reinterpret_cast< ofNode * >(argp2); (arg1)->lookAt((ofNode const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofNode_lookAt",&obj0,&obj1,&obj2)) SWIG_fail; @@ -25218,38 +27882,26 @@ SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "3"" of type '" "ofVec3f const &""'"); } arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->lookAt((ofNode const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_lookAt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_lookAt" "', argument " "1"" of type '" "ofNode *""'"); } - arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofNode, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } - arg2 = reinterpret_cast< ofNode * >(argp2); (arg1)->lookAt((ofNode const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_lookAt(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_lookAt(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofNode_lookAt__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + return _wrap_ofNode_lookAt__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofNode_lookAt__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + return _wrap_ofNode_lookAt__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofNode_lookAt__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + return _wrap_ofNode_lookAt__SWIG_1(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofNode_lookAt__SWIG_0(self, args);} } } } fail: + return _wrap_ofNode_lookAt__SWIG_3(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_lookAt'.\n" - " Possible C/C++ prototypes are:\n" " ofNode::lookAt(ofVec3f const &,ofVec3f)\n" " ofNode::lookAt(ofVec3f const &)\n" - " ofNode::lookAt(ofNode const &,ofVec3f const &)\n" " ofNode::lookAt(ofNode const &)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofNode::lookAt(ofVec3f const &)\n" " ofNode::lookAt(ofVec3f const &,ofVec3f)\n" + " ofNode::lookAt(ofNode const &)\n" " ofNode::lookAt(ofNode const &,ofVec3f const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofNode_orbit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; ofVec3f *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; @@ -25303,8 +27955,8 @@ SWIGINTERN PyObject *_wrap_ofNode_orbit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_orbit" "', argument " "5"" of type '" "ofNode &""'"); } arg5 = reinterpret_cast< ofNode * >(argp5); (arg1)->orbit(arg2,arg3,arg4,*arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_orbit(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofNode_orbit(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -25326,20 +27978,64 @@ SWIGINTERN PyObject *_wrap_ofNode_orbit(PyObject *self, PyObject *args) { int ar SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_orbit'.\n" " Possible C/C++ prototypes are:\n" " ofNode::orbit(float,float,float,ofVec3f const &)\n" " ofNode::orbit(float,float,float)\n" " ofNode::orbit(float,float,float,ofNode &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofNode_transformGL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofNode_transformGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofBaseRenderer *arg2 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_transformGL",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_transformGL" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_transformGL" "', argument " "2"" of type '" "ofBaseRenderer *""'"); } + arg2 = reinterpret_cast< ofBaseRenderer * >(argp2); ((ofNode const *)arg1)->transformGL(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_transformGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_transformGL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_transformGL" "', argument " "1"" of type '" "ofNode const *""'"); } arg1 = reinterpret_cast< ofNode * >(argp1); ((ofNode const *)arg1)->transformGL(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_restoreTransformGL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; +SWIGINTERN PyObject *_wrap_ofNode_transformGL(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_transformGL__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseRenderer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_transformGL__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_transformGL'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::transformGL(ofBaseRenderer *) const\n" " ofNode::transformGL() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofNode_restoreTransformGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofBaseRenderer *arg2 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_restoreTransformGL",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_restoreTransformGL" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_restoreTransformGL" "', argument " "2"" of type '" "ofBaseRenderer *""'"); } + arg2 = reinterpret_cast< ofBaseRenderer * >(argp2); ((ofNode const *)arg1)->restoreTransformGL(arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_restoreTransformGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_restoreTransformGL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_restoreTransformGL" "', argument " "1"" of type '" "ofNode const *""'"); } arg1 = reinterpret_cast< ofNode * >(argp1); ((ofNode const *)arg1)->restoreTransformGL(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_restoreTransformGL(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_restoreTransformGL__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseRenderer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_restoreTransformGL__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_restoreTransformGL'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::restoreTransformGL(ofBaseRenderer *) const\n" + " ofNode::restoreTransformGL() const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofNode_resetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_resetTransform",&obj0)) SWIG_fail; @@ -25347,19 +28043,42 @@ SWIGINTERN PyObject *_wrap_ofNode_resetTransform(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_resetTransform" "', argument " "1"" of type '" "ofNode *""'"); } arg1 = reinterpret_cast< ofNode * >(argp1); (arg1)->resetTransform(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNode_customDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofNode_customDraw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofBaseRenderer *arg2 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_customDraw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_customDraw" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_customDraw" "', argument " "2"" of type '" "ofBaseRenderer const *""'"); } + arg2 = reinterpret_cast< ofBaseRenderer * >(argp2); ((ofNode const *)arg1)->customDraw((ofBaseRenderer const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_customDraw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_customDraw",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_customDraw" "', argument " "1"" of type '" "ofNode *""'"); } arg1 = reinterpret_cast< ofNode * >(argp1); (arg1)->customDraw(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_customDraw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_customDraw__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseRenderer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_customDraw__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_customDraw'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::customDraw(ofBaseRenderer const *) const\n" " ofNode::customDraw()\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofNode_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_draw",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_draw" "', argument " "1"" of type '" "ofNode *""'"); } - arg1 = reinterpret_cast< ofNode * >(argp1); (arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_draw" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ((ofNode const *)arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *ofNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -25373,15 +28092,15 @@ SWIGINTERN PyObject *_wrap_ofDrawAxis(PyObject *SWIGUNUSEDPARM(self), PyObject * SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawAxis" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ofDrawAxis(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; bool arg3 ; bool arg4 ; bool arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + float arg1 ; size_t arg2 ; bool arg3 ; bool arg4 ; bool arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawGrid",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawGrid" "', argument " "4"" of type '" "bool""'"); } @@ -25392,15 +28111,15 @@ SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py arg6 = static_cast< bool >(val6); ofDrawGrid(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; bool arg3 ; bool arg4 ; bool arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float arg1 ; size_t arg2 ; bool arg3 ; bool arg4 ; bool arg5 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawGrid",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawGrid" "', argument " "4"" of type '" "bool""'"); } @@ -25409,39 +28128,39 @@ SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py arg5 = static_cast< bool >(val5); ofDrawGrid(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; bool arg3 ; bool arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; bool val3 ; + float arg1 ; size_t arg2 ; bool arg3 ; bool arg4 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawGrid",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawGrid" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ofDrawGrid(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; bool arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + float arg1 ; size_t arg2 ; bool arg3 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawGrid",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ofDrawGrid(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + float arg1 ; size_t arg2 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawGrid",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofDrawGrid(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ofDrawGrid(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofDrawGrid",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); @@ -25451,60 +28170,61 @@ SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_5(PyObject *SWIGUNUSEDPARM(self), Py SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofDrawGrid")) SWIG_fail; ofDrawGrid(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawGrid(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawGrid(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofDrawGrid__SWIG_6(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGrid__SWIG_5(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGrid__SWIG_4(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGrid__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGrid__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGrid__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGrid__SWIG_0(self, args);} } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawGrid'.\n" - " Possible C/C++ prototypes are:\n" " ofDrawGrid(float,float,bool,bool,bool,bool)\n" - " ofDrawGrid(float,float,bool,bool,bool)\n" " ofDrawGrid(float,float,bool,bool)\n" " ofDrawGrid(float,float,bool)\n" - " ofDrawGrid(float,float)\n" " ofDrawGrid(float)\n" " ofDrawGrid()\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofDrawGrid(float,size_t,bool,bool,bool,bool)\n" + " ofDrawGrid(float,size_t,bool,bool,bool)\n" " ofDrawGrid(float,size_t,bool,bool)\n" + " ofDrawGrid(float,size_t,bool)\n" " ofDrawGrid(float,size_t)\n" " ofDrawGrid(float)\n" " ofDrawGrid()\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; bool arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + float arg1 ; size_t arg2 ; bool arg3 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawGridPlane",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGridPlane" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGridPlane" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGridPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGridPlane" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ofDrawGridPlane(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + float arg1 ; size_t arg2 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawGridPlane",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGridPlane" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGridPlane" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofDrawGridPlane(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGridPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ofDrawGridPlane(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; @@ -25512,21 +28232,24 @@ SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_2(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGridPlane" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ofDrawGridPlane(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawGridPlane(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDrawGridPlane__SWIG_2(self, args);} } if (argc == 2) { int _v; { +SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDrawGridPlane")) SWIG_fail; ofDrawGridPlane(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGridPlane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofDrawGridPlane__SWIG_3(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGridPlane__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGridPlane__SWIG_1(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGridPlane__SWIG_0(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawGridPlane'.\n" - " Possible C/C++ prototypes are:\n" " ofDrawGridPlane(float,float,bool)\n" " ofDrawGridPlane(float,float)\n" - " ofDrawGridPlane(float)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofDrawGridPlane(float,size_t,bool)\n" " ofDrawGridPlane(float,size_t)\n" + " ofDrawGridPlane(float)\n" " ofDrawGridPlane()\n"); return 0; } SWIGINTERN PyObject *_wrap_ofDrawArrow__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -25558,8 +28281,8 @@ SWIGINTERN PyObject *_wrap_ofDrawArrow__SWIG_1(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); ofDrawArrow((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawArrow(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawArrow(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -25599,8 +28322,8 @@ SWIGINTERN PyObject *_wrap_ofDrawRotationAxes__SWIG_2(PyObject *SWIGUNUSEDPARM(s SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRotationAxes" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ofDrawRotationAxes(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawRotationAxes(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawRotationAxes(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawRotationAxes__SWIG_2(self, args);} } if (argc == 2) { int _v; { @@ -25813,8 +28536,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective__SWIG_5(PyObject *SWIGUNUSE SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupPerspective" "', argument " "1"" of type '" "ofCamera *""'"); } arg1 = reinterpret_cast< ofCamera * >(argp1); (arg1)->setupPerspective(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofCamera_setupPerspective__SWIG_5(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -25885,8 +28608,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_isVFlipped(PyObject *SWIGUNUSEDPARM(self), P ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_isVFlipped",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_isVFlipped" "', argument " "1"" of type '" "ofCamera *""'"); } - arg1 = reinterpret_cast< ofCamera * >(argp1); result = (bool)(arg1)->isVFlipped(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_isVFlipped" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (bool)((ofCamera const *)arg1)->isVFlipped(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCamera_enableOrtho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -25930,8 +28653,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_getImagePlaneDistance__SWIG_1(PyObject *SWIG SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getImagePlaneDistance" "', argument " "1"" of type '" "ofCamera const *""'"); } arg1 = reinterpret_cast< ofCamera * >(argp1); result = (float)((ofCamera const *)arg1)->getImagePlaneDistance(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_getImagePlaneDistance(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_getImagePlaneDistance(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[3] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofCamera_getImagePlaneDistance__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -25960,8 +28683,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_begin" "', argument " "1"" of type '" "ofCamera *""'"); } arg1 = reinterpret_cast< ofCamera * >(argp1); (arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_begin(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofCamera_begin__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -25999,8 +28722,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_getProjectionMatrix__SWIG_1(PyObject *SWIGUN arg1 = reinterpret_cast< ofCamera * >(argp1); result = ((ofCamera const *)arg1)->getProjectionMatrix(); resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_getProjectionMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_getProjectionMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofCamera_getProjectionMatrix__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -26041,8 +28764,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_getModelViewProjectionMatrix__SWIG_1(PyObjec arg1 = reinterpret_cast< ofCamera * >(argp1); result = ((ofCamera const *)arg1)->getModelViewProjectionMatrix(); resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_getModelViewProjectionMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_getModelViewProjectionMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[3] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofCamera_getModelViewProjectionMatrix__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -26087,8 +28810,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_worldToScreen__SWIG_1(PyObject *SWIGUNUSEDPA result = ((ofCamera const *)arg1)->worldToScreen(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_worldToScreen(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_worldToScreen(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -26135,8 +28858,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_screenToWorld__SWIG_1(PyObject *SWIGUNUSEDPA result = ((ofCamera const *)arg1)->screenToWorld(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_screenToWorld(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_screenToWorld(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -26183,8 +28906,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_worldToCamera__SWIG_1(PyObject *SWIGUNUSEDPA result = ((ofCamera const *)arg1)->worldToCamera(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_worldToCamera(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_worldToCamera(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -26231,8 +28954,8 @@ SWIGINTERN PyObject *_wrap_ofCamera_cameraToWorld__SWIG_1(PyObject *SWIGUNUSEDPA result = ((ofCamera const *)arg1)->cameraToWorld(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCamera_cameraToWorld(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCamera_cameraToWorld(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -26244,6 +28967,20 @@ SWIGINTERN PyObject *_wrap_ofCamera_cameraToWorld(PyObject *self, PyObject *args SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_cameraToWorld'.\n" " Possible C/C++ prototypes are:\n" " ofCamera::cameraToWorld(ofVec3f,ofRectangle) const\n" " ofCamera::cameraToWorld(ofVec3f) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_setRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; SwigValueWrapper< shared_ptr< ofBaseRenderer > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setRenderer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setRenderer" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_setRenderer" "', argument " "2"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_setRenderer" "', argument " "2"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + else { shared_ptr< ofBaseRenderer > * temp = reinterpret_cast< shared_ptr< ofBaseRenderer > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setRenderer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *ofCamera_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -26281,8 +29018,8 @@ SWIGINTERN PyObject *_wrap_ofEasyCam_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_begin" "', argument " "1"" of type '" "ofEasyCam *""'"); } arg1 = reinterpret_cast< ofEasyCam * >(argp1); (arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEasyCam_begin(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofEasyCam_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofEasyCam, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofEasyCam_begin__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -26324,8 +29061,8 @@ SWIGINTERN PyObject *_wrap_ofEasyCam_setTarget__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofEasyCam_setTarget" "', argument " "2"" of type '" "ofNode &""'"); } arg2 = reinterpret_cast< ofNode * >(argp2); (arg1)->setTarget(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEasyCam_setTarget(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofEasyCam_setTarget(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofEasyCam, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -26375,6 +29112,29 @@ SWIGINTERN PyObject *_wrap_ofEasyCam_getDrag(PyObject *SWIGUNUSEDPARM(self), PyO SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getDrag" "', argument " "1"" of type '" "ofEasyCam const *""'"); } arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (float)((ofEasyCam const *)arg1)->getDrag(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setAutoDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setAutoDistance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setAutoDistance" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEasyCam_setAutoDistance" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setAutoDistance(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; ofCoreEvents *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setEvents",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setEvents" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofCoreEvents, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofEasyCam_setEvents" "', argument " "2"" of type '" "ofCoreEvents &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofEasyCam_setEvents" "', argument " "2"" of type '" "ofCoreEvents &""'"); } + arg2 = reinterpret_cast< ofCoreEvents * >(argp2); (arg1)->setEvents(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *_wrap_ofEasyCam_setTranslationKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -26434,16 +29194,6 @@ SWIGINTERN PyObject *_wrap_ofEasyCam_getMouseMiddleButtonEnabled(PyObject *SWIGU SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getMouseMiddleButtonEnabled" "', argument " "1"" of type '" "ofEasyCam *""'"); } arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (bool)(arg1)->getMouseMiddleButtonEnabled(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEasyCam_setAutoDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofEasyCam *arg1 = (ofEasyCam *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setAutoDistance",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setAutoDistance" "', argument " "1"" of type '" "ofEasyCam *""'"); } - arg1 = reinterpret_cast< ofEasyCam * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEasyCam_setAutoDistance" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setAutoDistance(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *ofEasyCam_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -26467,29 +29217,68 @@ SWIGINTERN PyObject *_wrap_new_ofMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py if (SWIG_IsNewObj(res1)) delete temp; } } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofMesh" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofMesh" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofMesh" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofVec3f > * >(argp2); + result = (ofMesh *)new ofMesh(arg1,(std::vector< ofVec3f > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofMesh__SWIG_0(self, args);} if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ofMesh__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofMesh'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::ofMesh()\n" + " ofMesh::ofMesh(ofPrimitiveMode,std::vector< ofVec3f > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofMeshFace > *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setFromTriangles",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setFromTriangles" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofMeshFace > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setFromTriangles" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->setFromTriangles((std::vector< ofMeshFace > const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofMeshFace > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_setFromTriangles",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setFromTriangles" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofMesh" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } - arg2 = reinterpret_cast< std::vector< ofVec3f > * >(argp2); - result = (ofMesh *)new ofMesh(arg1,(std::vector< ofVec3f > const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofMeshFace > * >(argp2); + (arg1)->setFromTriangles((std::vector< ofMeshFace > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofMesh(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofMesh__SWIG_0(self, args);} if (argc == 2) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ofMesh__SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofMesh'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::ofMesh()\n" - " ofMesh::ofMesh(ofPrimitiveMode,std::vector< ofVec3f > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_delete_ofMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMesh",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMesh" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_setFromTriangles__SWIG_1(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_setFromTriangles__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_setFromTriangles'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::setFromTriangles(std::vector< ofMeshFace > const &,bool)\n" + " ofMesh::setFromTriangles(std::vector< ofMeshFace > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofMesh_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_setMode",&obj0,&obj1)) SWIG_fail; @@ -26511,30 +29300,553 @@ SWIGINTERN PyObject *_wrap_ofMesh_getMode(PyObject *SWIGUNUSEDPARM(self), PyObje arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getMode(); resultobj = SWIG_NewPointerObj((new ofPrimitiveMode(static_cast< const ofPrimitiveMode& >(result))), SWIGTYPE_p_ofPrimitiveMode, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clear" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_setupIndicesAuto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_setupIndicesAuto",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setupIndicesAuto" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->setupIndicesAuto(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getVertex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertex" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getVertex" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getVertex(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; ofPrimitiveMode arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 ; int res5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_plane",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_plane" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMesh_plane" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_plane" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp5); arg5 = *temp; + if (SWIG_IsNewObj(res5)) delete temp; } } result = ofMesh::plane(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_plane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_plane" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::plane(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_plane",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ofMesh::plane(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_plane",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofMesh::plane(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_plane__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_plane__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_plane__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_plane__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_plane'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::plane(float,float,int,int,ofPrimitiveMode)\n" + " ofMesh::plane(float,float,int,int)\n" " ofMesh::plane(float,float,int)\n" " ofMesh::plane(float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; int arg2 ; ofPrimitiveMode arg3 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_sphere",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_sphere" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_sphere" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_sphere" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } result = ofMesh::sphere(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; int arg2 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_sphere",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_sphere" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ofMesh::sphere(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_sphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::sphere(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_sphere__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_sphere__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_sphere__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_sphere'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::sphere(float,int,ofPrimitiveMode)\n" " ofMesh::sphere(float,int)\n" + " ofMesh::sphere(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_icosahedron(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_icosahedron",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosahedron" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::icosahedron(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_icosphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; std::size_t arg2 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_icosphere",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_icosphere" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = ofMesh::icosphere(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_icosphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_icosphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::icosphere(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_icosphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_icosphere__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_icosphere__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_icosphere'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::icosphere(float,std::size_t)\n" " ofMesh::icosphere(float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; ofPrimitiveMode arg7 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; + int ecode6 = 0 ; void *argp7 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_cylinder" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); { res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofMesh_cylinder" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_cylinder" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp7); arg7 = *temp; + if (SWIG_IsNewObj(res7)) delete temp; } } result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_cylinder" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::cylinder(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_cylinder",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ofMesh::cylinder(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_cylinder",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofMesh::cylinder(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_5(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_4(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_cylinder__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_cylinder'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::cylinder(float,float,int,int,int,bool,ofPrimitiveMode)\n" + " ofMesh::cylinder(float,float,int,int,int,bool)\n" " ofMesh::cylinder(float,float,int,int,int)\n" + " ofMesh::cylinder(float,float,int,int)\n" " ofMesh::cylinder(float,float,int)\n" + " ofMesh::cylinder(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; ofPrimitiveMode arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; + int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cone" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); { res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMesh_cone" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_cone" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp6); arg6 = *temp; + if (SWIG_IsNewObj(res6)) delete temp; } } result = ofMesh::cone(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cone" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = ofMesh::cone(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::cone(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_cone",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ofMesh::cone(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_cone",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofMesh::cone(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_4(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_cone__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_cone'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::cone(float,float,int,int,int,ofPrimitiveMode)\n" + " ofMesh::cone(float,float,int,int,int)\n" " ofMesh::cone(float,float,int,int)\n" " ofMesh::cone(float,float,int)\n" + " ofMesh::cone(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; int arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_box" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_box" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); result = ofMesh::box(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_box" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = ofMesh::box(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::box(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_box",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofMesh::box(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_box'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::box(float,float,float,int,int,int)\n" + " ofMesh::box(float,float,float,int,int)\n" " ofMesh::box(float,float,float,int)\n" + " ofMesh::box(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_axis__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_axis",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_axis" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::axis(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_axis__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh result; if (!PyArg_ParseTuple(args,(char *)":ofMesh_axis")) SWIG_fail; result = ofMesh::axis(); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_axis(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofMesh_axis__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofMesh_axis__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_axis'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::axis(float)\n" " ofMesh::axis()\n"); return 0; } SWIGINTERN PyObject *_wrap_ofMesh_addVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addVertex",&obj0,&obj1)) SWIG_fail; @@ -26562,31 +29874,31 @@ SWIGINTERN PyObject *_wrap_ofMesh_addVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(s arg2 = reinterpret_cast< std::vector< ofVec3f > * >(argp2); (arg1)->addVertices((std::vector< ofVec3f > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_addVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addVertices",&obj0,&obj1,&obj2)) SWIG_fail; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addVertices",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addVertices" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addVertices" "', argument " "2"" of type '" "ofVec3f const *""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addVertices" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->addVertices((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addVertices" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addVertices((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addVertices(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMesh_addVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addVertices__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofMesh_addVertices__SWIG_1(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addVertices'.\n" " Possible C/C++ prototypes are:\n" " ofMesh::addVertices(std::vector< ofVec3f > const &)\n" - " ofMesh::addVertices(ofVec3f const *,int)\n"); return 0; } + " ofMesh::addVertices(ofVec3f const *,std::size_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofMesh_removeVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -26619,6 +29931,120 @@ SWIGINTERN PyObject *_wrap_ofMesh_clearVertices(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearVertices" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearVertices(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clear" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumVertices(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVerticesPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVerticesPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)(arg1)->getVerticesPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVerticesPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVerticesPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)((ofMesh const *)arg1)->getVerticesPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVerticesPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVerticesPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getVerticesPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getVerticesPointer()\n" " ofMesh::getVerticesPointer() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getVertex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertex" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getVertex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &(arg1)->getVertices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &((ofMesh const *)arg1)->getVertices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVertices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVertices__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getVertices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getVertices()\n" " ofMesh::getVertices() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveVertsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveVertsChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveVertsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveVertsChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasVertices(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofMesh *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_append",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_append" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMesh, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_append" "', argument " "2"" of type '" "ofMesh const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_append" "', argument " "2"" of type '" "ofMesh const &""'"); } + arg2 = reinterpret_cast< ofMesh * >(argp2); (arg1)->append((ofMesh const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_mergeDuplicateVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_mergeDuplicateVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_mergeDuplicateVertices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->mergeDuplicateVertices(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getCentroid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getCentroid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getCentroid" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getCentroid(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_getNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; @@ -26657,31 +30083,31 @@ SWIGINTERN PyObject *_wrap_ofMesh_addNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(se arg2 = reinterpret_cast< std::vector< ofVec3f > * >(argp2); (arg1)->addNormals((std::vector< ofVec3f > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_addNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addNormals",&obj0,&obj1,&obj2)) SWIG_fail; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addNormals",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addNormals" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addNormals" "', argument " "2"" of type '" "ofVec3f const *""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addNormals" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->addNormals((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addNormals(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addNormals" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addNormals((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addNormals(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addNormals__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofMesh_addNormals__SWIG_1(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addNormals'.\n" " Possible C/C++ prototypes are:\n" " ofMesh::addNormals(std::vector< ofVec3f > const &)\n" - " ofMesh::addNormals(ofVec3f const *,int)\n"); return 0; } + " ofMesh::addNormals(ofVec3f const *,std::size_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofMesh_removeNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -26714,6 +30140,157 @@ SWIGINTERN PyObject *_wrap_ofMesh_clearNormals(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearNormals" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumNormals(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormalsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormalsPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)(arg1)->getNormalsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormalsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormalsPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)((ofMesh const *)arg1)->getNormalsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormalsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormalsPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getNormalsPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getNormalsPointer()\n" " ofMesh::getNormalsPointer() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &(arg1)->getNormals(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &((ofMesh const *)arg1)->getNormals(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormals(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormals__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormals__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getNormals'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getNormals()\n" " ofMesh::getNormals() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveNormalsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveNormalsChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveNormalsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveNormalsChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasNormals(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_enableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_disableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_usingNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingNormals(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_smoothNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_smoothNormals",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_smoothNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_smoothNormals" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->smoothNormals(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMeshFace result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getFace",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFace" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getFace" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getFace(arg2); + resultobj = SWIG_NewPointerObj((new ofMeshFace(static_cast< const ofMeshFace& >(result))), SWIGTYPE_p_ofMeshFace, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< ofVec3f > > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getFaceNormals",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFaceNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getFaceNormals" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); result = ((ofMesh const *)arg1)->getFaceNormals(arg2); + resultobj = SWIG_NewPointerObj((new std::vector< ofVec3f >(static_cast< const std::vector< ofVec3f >& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getFaceNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFaceNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getFaceNormals(); + resultobj = SWIG_NewPointerObj((new std::vector< ofVec3f >(static_cast< const std::vector< ofVec3f >& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getFaceNormals__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_getFaceNormals__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getFaceNormals'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getFaceNormals(bool) const\n" " ofMesh::getFaceNormals() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getUniqueFaces(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofMeshFace > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getUniqueFaces",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getUniqueFaces" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofMeshFace > *) &((ofMesh const *)arg1)->getUniqueFaces(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofFloatColor result; @@ -26753,31 +30330,31 @@ SWIGINTERN PyObject *_wrap_ofMesh_addColors__SWIG_0(PyObject *SWIGUNUSEDPARM(sel (arg1)->addColors((std::vector< ofFloatColor > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_addColors__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofFloatColor *arg2 = (ofFloatColor *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addColors",&obj0,&obj1,&obj2)) SWIG_fail; + ofMesh *arg1 = (ofMesh *) 0 ; ofFloatColor *arg2 = (ofFloatColor *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addColors",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addColors" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addColors" "', argument " "2"" of type '" "ofFloatColor const *""'"); } - arg2 = reinterpret_cast< ofFloatColor * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addColors" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->addColors((ofFloatColor const *)arg2,arg3); resultobj = SWIG_Py_Void(); + arg2 = reinterpret_cast< ofFloatColor * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addColors" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addColors((ofFloatColor const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addColors(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMesh_addColors(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addColors__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofMesh_addColors__SWIG_1(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addColors'.\n" " Possible C/C++ prototypes are:\n" " ofMesh::addColors(std::vector< ofFloatColor > const &)\n" - " ofMesh::addColors(ofFloatColor const *,int)\n"); return 0; } + " ofMesh::addColors(ofFloatColor const *,std::size_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofMesh_removeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -26791,267 +30368,32 @@ SWIGINTERN PyObject *_wrap_ofMesh_removeColor(PyObject *SWIGUNUSEDPARM(self), Py SWIGINTERN PyObject *_wrap_ofMesh_setColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofFloatColor *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setColor" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setColor" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } - arg3 = reinterpret_cast< ofFloatColor * >(argp3); (arg1)->setColor(arg2,(ofFloatColor const &)*arg3); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_clearColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearColors",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearColors" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getTexCoord",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoord" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getTexCoord(arg2); - resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addTexCoord",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoord" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addTexCoord" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); (arg1)->addTexCoord((ofVec2f const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofVec2f > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addTexCoords",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "std::vector< ofVec2f > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "std::vector< ofVec2f > const &""'"); } - arg2 = reinterpret_cast< std::vector< ofVec2f > * >(argp2); (arg1)->addTexCoords((std::vector< ofVec2f > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; int arg3 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addTexCoords",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "ofVec2f const *""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addTexCoords" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->addTexCoords((ofVec2f const *)arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addTexCoords__SWIG_0(self, args);} } } if (argc == 3) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); - if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_addTexCoords__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addTexCoords'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::addTexCoords(std::vector< ofVec2f > const &)\n" - " ofMesh::addTexCoords(ofVec2f const *,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_removeTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeTexCoord",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); (arg1)->removeTexCoord(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_setTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setTexCoord",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } - arg3 = reinterpret_cast< ofVec2f * >(argp3); (arg1)->setTexCoord(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_clearTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearTexCoords",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofIndexType result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getIndex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndex" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getIndex" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); result = (ofIndexType)((ofMesh const *)arg1)->getIndex(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addIndex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndex" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_addIndex" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); (arg1)->addIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofIndexType > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addIndices",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "std::vector< ofIndexType > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "std::vector< ofIndexType > const &""'"); } - arg2 = reinterpret_cast< std::vector< ofIndexType > * >(argp2); - (arg1)->addIndices((std::vector< ofIndexType > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType *arg2 = (ofIndexType *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addIndices",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "ofIndexType const *""'"); } - arg2 = reinterpret_cast< ofIndexType * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addIndices" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->addIndices((ofIndexType const *)arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addIndices(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addIndices__SWIG_0(self, args);} } } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_addIndices__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addIndices'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::addIndices(std::vector< ofIndexType > const &)\n" - " ofMesh::addIndices(ofIndexType const *,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_removeIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeIndex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeIndex" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeIndex" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); (arg1)->removeIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_setIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; - int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setIndex",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setColor",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setIndex" "', argument " "1"" of type '" "ofMesh *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setColor" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setIndex" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setIndex" "', argument " "3"" of type '" "ofIndexType""'"); } - arg3 = static_cast< ofIndexType >(val3); (arg1)->setIndex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_clearIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + arg3 = reinterpret_cast< ofFloatColor * >(argp3); (arg1)->setColor(arg2,(ofFloatColor const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clearColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearIndices",&obj0)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearColors",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearIndices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearColors" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_addTriangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; ofIndexType arg4 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_addTriangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTriangle" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_addTriangle" "', argument " "2"" of type '" "ofIndexType""'"); } - arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addTriangle" "', argument " "3"" of type '" "ofIndexType""'"); } - arg3 = static_cast< ofIndexType >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_addTriangle" "', argument " "4"" of type '" "ofIndexType""'"); } - arg4 = static_cast< ofIndexType >(val4); (arg1)->addTriangle(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNumVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (int)((ofMesh const *)arg1)->getNumVertices(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_getNumColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumColors",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumColors" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (int)((ofMesh const *)arg1)->getNumColors(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNumNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumNormals",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (int)((ofMesh const *)arg1)->getNumNormals(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNumTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumTexCoords",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (int)((ofMesh const *)arg1)->getNumTexCoords(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNumIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumIndices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (int)((ofMesh const *)arg1)->getNumIndices(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVerticesPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVerticesPointer" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)(arg1)->getVerticesPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumColors(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFloatColor *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColorsPointer",&obj0)) SWIG_fail; @@ -27060,45 +30402,6 @@ SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer__SWIG_0(PyObject *SWIGUNUSEDP arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofFloatColor *)(arg1)->getColorsPointer(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormalsPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormalsPointer" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)(arg1)->getNormalsPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoordsPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoordsPointer" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec2f *)(arg1)->getTexCoordsPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofIndexType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndexPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndexPointer" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofIndexType *)(arg1)->getIndexPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVerticesPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVerticesPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)((ofMesh const *)arg1)->getVerticesPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getVerticesPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getVerticesPointer__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getVerticesPointer'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getVerticesPointer()\n" " ofMesh::getVerticesPointer() const\n"); - return 0; } SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFloatColor *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColorsPointer",&obj0)) SWIG_fail; @@ -27107,8 +30410,8 @@ SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer__SWIG_1(PyObject *SWIGUNUSEDP arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofFloatColor *)((ofMesh const *)arg1)->getColorsPointer(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_getColorsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -27116,65 +30419,6 @@ SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer(PyObject *self, PyObject *arg return _wrap_ofMesh_getColorsPointer__SWIG_1(self, args);} } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getColorsPointer'.\n" " Possible C/C++ prototypes are:\n" " ofMesh::getColorsPointer()\n" " ofMesh::getColorsPointer() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormalsPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormalsPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)((ofMesh const *)arg1)->getNormalsPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getNormalsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getNormalsPointer__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getNormalsPointer'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getNormalsPointer()\n" " ofMesh::getNormalsPointer() const\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoordsPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoordsPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec2f *)((ofMesh const *)arg1)->getTexCoordsPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getTexCoordsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getTexCoordsPointer__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getTexCoordsPointer'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getTexCoordsPointer()\n" " ofMesh::getTexCoordsPointer() const\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofIndexType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndexPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndexPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofIndexType *)((ofMesh const *)arg1)->getIndexPointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getIndexPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getIndexPointer__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getIndexPointer'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getIndexPointer()\n" " ofMesh::getIndexPointer() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &(arg1)->getVertices(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_getColors__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofFloatColor > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColors",&obj0)) SWIG_fail; @@ -27183,47 +30427,6 @@ SWIGINTERN PyObject *_wrap_ofMesh_getColors__SWIG_0(PyObject *SWIGUNUSEDPARM(sel arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofFloatColor > *) &(arg1)->getColors(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormals",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormals" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &(arg1)->getNormals(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::vector< ofVec2f > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoords",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec2f > *) &(arg1)->getTexCoords(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofIndexType > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofIndexType > *) &(arg1)->getIndices(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &((ofMesh const *)arg1)->getVertices(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getVertices(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getVertices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getVertices__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getVertices'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getVertices()\n" " ofMesh::getVertices() const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofMesh_getColors__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofFloatColor > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColors",&obj0)) SWIG_fail; @@ -27232,8 +30435,8 @@ SWIGINTERN PyObject *_wrap_ofMesh_getColors__SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofFloatColor > *) &((ofMesh const *)arg1)->getColors(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getColors(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMesh_getColors(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_getColors__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -27241,72 +30444,6 @@ SWIGINTERN PyObject *_wrap_ofMesh_getColors(PyObject *self, PyObject *args) { in return _wrap_ofMesh_getColors__SWIG_1(self, args);} } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getColors'.\n" " Possible C/C++ prototypes are:\n" " ofMesh::getColors()\n" " ofMesh::getColors() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormals",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &((ofMesh const *)arg1)->getNormals(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getNormals(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getNormals__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getNormals__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getNormals'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getNormals()\n" " ofMesh::getNormals() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::vector< ofVec2f > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoords",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec2f > *) &((ofMesh const *)arg1)->getTexCoords(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getTexCoords__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getTexCoords__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getTexCoords'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getTexCoords()\n" " ofMesh::getTexCoords() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofIndexType > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofIndexType > *) &((ofMesh const *)arg1)->getIndices(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getIndices(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getIndices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getIndices__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getIndices'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getIndices()\n" " ofMesh::getIndices() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_getCentroid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getCentroid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getCentroid" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getCentroid(); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_haveVertsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveVertsChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveVertsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveVertsChanged(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_haveColorsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveColorsChanged",&obj0)) SWIG_fail; @@ -27314,34 +30451,6 @@ SWIGINTERN PyObject *_wrap_ofMesh_haveColorsChanged(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveColorsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveColorsChanged(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_haveNormalsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveNormalsChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveNormalsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveNormalsChanged(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_haveTexCoordsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveTexCoordsChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveTexCoordsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveTexCoordsChanged(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_haveIndicesChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveIndicesChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveIndicesChanged" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveIndicesChanged(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_hasVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasVertices(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_hasColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasColors",&obj0)) SWIG_fail; @@ -27349,100 +30458,6 @@ SWIGINTERN PyObject *_wrap_ofMesh_hasColors(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasColors" "', argument " "1"" of type '" "ofMesh const *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasColors(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_hasNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasNormals",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasNormals(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_hasTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasTexCoords",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasTexCoords(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_hasIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasIndices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasIndices(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_drawVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawVertices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->drawVertices(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_drawWireframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawWireframe",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawWireframe" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->drawWireframe(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_drawFaces(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawFaces",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawFaces" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->drawFaces(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_draw",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_draw" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_load",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_load" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_load" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->load(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_save",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_save" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_save" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_save" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ((ofMesh const *)arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_save",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_save" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_save" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ((ofMesh const *)arg1)->save(arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_save(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_save__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_save'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::save(std::string,bool) const\n" " ofMesh::save(std::string) const\n"); - return 0; } SWIGINTERN PyObject *_wrap_ofMesh_enableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableColors",&obj0)) SWIG_fail; @@ -27450,27 +30465,6 @@ SWIGINTERN PyObject *_wrap_ofMesh_enableColors(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableColors" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_enableTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableTextures",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableTextures" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableTextures(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_enableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableNormals",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableNormals" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_enableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableIndices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableIndices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_disableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableColors",&obj0)) SWIG_fail; @@ -27478,794 +30472,513 @@ SWIGINTERN PyObject *_wrap_ofMesh_disableColors(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableColors" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_disableTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableTextures",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableTextures" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableTextures(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_disableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableNormals",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableNormals" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_disableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableIndices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableIndices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_usingColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingColors",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingColors" "', argument " "1"" of type '" "ofMesh const *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingColors(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_usingTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingTextures",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingTextures" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingTextures(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_usingNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingNormals",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingNormals(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_usingIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingIndices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingIndices(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; ofMesh *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_append" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMesh, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_append" "', argument " "2"" of type '" "ofMesh &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_append" "', argument " "2"" of type '" "ofMesh &""'"); } - arg2 = reinterpret_cast< ofMesh * >(argp2); (arg1)->append(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_setColorForIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; int arg2 ; int arg3 ; ofColor arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_setColorForIndices",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setColorForIndices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setColorForIndices" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setColorForIndices" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMesh_setColorForIndices" "', argument " "4"" of type '" "ofColor""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setColorForIndices" "', argument " "4"" of type '" "ofColor""'"); } - else { ofColor * temp = reinterpret_cast< ofColor * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - (arg1)->setColorForIndices(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_getMeshForIndices",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getMeshForIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getMeshForIndices" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_getMeshForIndices" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ((ofMesh const *)arg1)->getMeshForIndices(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_getMeshForIndices",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getMeshForIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getMeshForIndices" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_getMeshForIndices" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_getMeshForIndices" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_getMeshForIndices" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); result = ((ofMesh const *)arg1)->getMeshForIndices(arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_getMeshForIndices__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_getMeshForIndices__SWIG_1(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getMeshForIndices'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getMeshForIndices(int,int) const\n" - " ofMesh::getMeshForIndices(int,int,int,int) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_mergeDuplicateVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_mergeDuplicateVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_mergeDuplicateVertices" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->mergeDuplicateVertices(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getUniqueFaces(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofMeshFace > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getUniqueFaces",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getUniqueFaces" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofMeshFace > *) &((ofMesh const *)arg1)->getUniqueFaces(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< ofVec3f > > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getFaceNormals",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFaceNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getFaceNormals" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); result = ((ofMesh const *)arg1)->getFaceNormals(arg2); - resultobj = SWIG_NewPointerObj((new std::vector< ofVec3f >(static_cast< const std::vector< ofVec3f >& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< std::vector< ofVec3f > > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getFaceNormals",&obj0)) SWIG_fail; + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getTexCoord",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFaceNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getFaceNormals(); - resultobj = SWIG_NewPointerObj((new std::vector< ofVec3f >(static_cast< const std::vector< ofVec3f >& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoord" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getTexCoord(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_getFaceNormals__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_getFaceNormals__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getFaceNormals'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::getFaceNormals(bool) const\n" " ofMesh::getFaceNormals() const\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofMeshFace > *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setFromTriangles",&obj0,&obj1,&obj2)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addTexCoord",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setFromTriangles" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoord" "', argument " "2"" of type '" "ofVec2f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } - arg2 = reinterpret_cast< std::vector< ofMeshFace > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setFromTriangles" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->setFromTriangles((std::vector< ofMeshFace > const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofMeshFace > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addTexCoord" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); (arg1)->addTexCoord((ofVec2f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofVec2f > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_setFromTriangles",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addTexCoords",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setFromTriangles" "', argument " "1"" of type '" "ofMesh *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } arg1 = reinterpret_cast< ofMesh * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "std::vector< ofVec2f > const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } - arg2 = reinterpret_cast< std::vector< ofMeshFace > * >(argp2); - (arg1)->setFromTriangles((std::vector< ofMeshFace > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "std::vector< ofVec2f > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofVec2f > * >(argp2); (arg1)->addTexCoords((std::vector< ofVec2f > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addTexCoords",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "ofVec2f const *""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addTexCoords" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addTexCoords((ofVec2f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_setFromTriangles__SWIG_1(self, args);} } } if (argc == 3) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addTexCoords__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_setFromTriangles__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_setFromTriangles'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::setFromTriangles(std::vector< ofMeshFace > const &,bool)\n" - " ofMesh::setFromTriangles(std::vector< ofMeshFace > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_smoothNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh *arg1 = (ofMesh *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_addTexCoords__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addTexCoords'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::addTexCoords(std::vector< ofVec2f > const &)\n" + " ofMesh::addTexCoords(ofVec2f const *,std::size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_removeTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_smoothNormals",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeTexCoord",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_smoothNormals" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_smoothNormals" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->smoothNormals(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->removeTexCoord(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; ofPrimitiveMode arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 ; int res5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_plane",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_plane" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMesh_plane" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_plane" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } - else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp5); arg5 = *temp; - if (SWIG_IsNewObj(res5)) delete temp; } } result = ofMesh::plane(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_plane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_plane" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); result = ofMesh::plane(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_plane",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ofMesh::plane(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_plane",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ofMesh::plane(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_setTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setTexCoord",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); (arg1)->setTexCoord(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_plane(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_plane__SWIG_3(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_plane__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_plane__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_plane__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_plane'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::plane(float,float,int,int,ofPrimitiveMode)\n" - " ofMesh::plane(float,float,int,int)\n" " ofMesh::plane(float,float,int)\n" " ofMesh::plane(float,float)\n"); +SWIGINTERN PyObject *_wrap_ofMesh_clearTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumTexCoords(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoordsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoordsPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec2f *)(arg1)->getTexCoordsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoordsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoordsPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec2f *)((ofMesh const *)arg1)->getTexCoordsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoordsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoordsPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getTexCoordsPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getTexCoordsPointer()\n" " ofMesh::getTexCoordsPointer() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; int arg2 ; ofPrimitiveMode arg3 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; - int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_sphere",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_sphere" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_sphere" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_sphere" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } - else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp3); arg3 = *temp; - if (SWIG_IsNewObj(res3)) delete temp; } } result = ofMesh::sphere(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; int arg2 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_sphere",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_sphere" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ofMesh::sphere(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_sphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = ofMesh::sphere(arg1); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_sphere(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_sphere__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_sphere__SWIG_1(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_sphere__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_sphere'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::sphere(float,int,ofPrimitiveMode)\n" " ofMesh::sphere(float,int)\n" - " ofMesh::sphere(float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_icosahedron(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_icosahedron",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosahedron" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = ofMesh::icosahedron(arg1); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_icosphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; int arg2 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_icosphere",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosphere" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_icosphere" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ofMesh::icosphere(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_icosphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_icosphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosphere" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = ofMesh::icosphere(arg1); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_icosphere(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_icosphere__SWIG_1(self, args);} } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_icosphere__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_icosphere'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::icosphere(float,int)\n" " ofMesh::icosphere(float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; ofPrimitiveMode arg7 ; float val1 ; int ecode1 = 0 ; - float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; - int ecode6 = 0 ; void *argp7 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_cylinder" "', argument " "6"" of type '" "bool""'"); } - arg6 = static_cast< bool >(val6); { res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofMesh_cylinder" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } - if (!argp7) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_cylinder" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } - else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp7); arg7 = *temp; - if (SWIG_IsNewObj(res7)) delete temp; } } result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; - int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_cylinder" "', argument " "6"" of type '" "bool""'"); } - arg6 = static_cast< bool >(val6); result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); result = ofMesh::cylinder(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_cylinder",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ofMesh::cylinder(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_cylinder",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ofMesh::cylinder(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cylinder(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cylinder__SWIG_5(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cylinder__SWIG_4(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cylinder__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cylinder__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cylinder__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_cylinder__SWIG_0(self, args);} } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_cylinder'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::cylinder(float,float,int,int,int,bool,ofPrimitiveMode)\n" - " ofMesh::cylinder(float,float,int,int,int,bool)\n" " ofMesh::cylinder(float,float,int,int,int)\n" - " ofMesh::cylinder(float,float,int,int)\n" " ofMesh::cylinder(float,float,int)\n" - " ofMesh::cylinder(float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; ofPrimitiveMode arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; - int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cone" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); { res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMesh_cone" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_cone" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } - else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp6); arg6 = *temp; - if (SWIG_IsNewObj(res6)) delete temp; } } result = ofMesh::cone(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cone" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); result = ofMesh::cone(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); result = ofMesh::cone(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofVec2f > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec2f > *) &(arg1)->getTexCoords(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_cone",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ofMesh::cone(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofVec2f > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec2f > *) &((ofMesh const *)arg1)->getTexCoords(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_cone",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ofMesh::cone(arg1,arg2); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoords__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoords__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getTexCoords'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getTexCoords()\n" " ofMesh::getTexCoords() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveTexCoordsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveTexCoordsChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveTexCoordsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveTexCoordsChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasTexCoords(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_enableTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableTextures" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableTextures(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_disableTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableTextures" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableTextures(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_usingTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingTextures" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingTextures(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setupIndicesAuto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_setupIndicesAuto",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setupIndicesAuto" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->setupIndicesAuto(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofIndexType > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofIndexType > *) &(arg1)->getIndices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_cone(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cone__SWIG_4(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cone__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cone__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_cone__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMesh_cone__SWIG_0(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_cone'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::cone(float,float,int,int,int,ofPrimitiveMode)\n" - " ofMesh::cone(float,float,int,int,int)\n" " ofMesh::cone(float,float,int,int)\n" " ofMesh::cone(float,float,int)\n" - " ofMesh::cone(float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; int arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; - int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_box" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_box" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); result = ofMesh::box(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_getIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofIndexType result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndex" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofIndexType)((ofMesh const *)arg1)->getIndex(arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_addIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->addIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofIndexType > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addIndices",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "std::vector< ofIndexType > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "std::vector< ofIndexType > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofIndexType > * >(argp2); + (arg1)->addIndices((std::vector< ofIndexType > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType *arg2 = (ofIndexType *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addIndices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "ofIndexType const *""'"); } + arg2 = reinterpret_cast< ofIndexType * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addIndices" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addIndices((ofIndexType const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_box" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); result = ofMesh::box(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_addIndices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addIndices__SWIG_0(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_addIndices__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addIndices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::addIndices(std::vector< ofIndexType > const &)\n" + " ofMesh::addIndices(ofIndexType const *,std::size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_removeIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeIndex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->removeIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setIndex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setIndex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setIndex" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); (arg1)->setIndex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clearIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumIndices(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofIndexType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndexPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndexPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofIndexType *)(arg1)->getIndexPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofIndexType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndexPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndexPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofIndexType *)((ofMesh const *)arg1)->getIndexPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndexPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndexPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getIndexPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getIndexPointer()\n" " ofMesh::getIndexPointer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofIndexType > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofIndexType > *) &((ofMesh const *)arg1)->getIndices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); result = ofMesh::box(arg1,arg2,arg3,arg4); +SWIGINTERN PyObject *_wrap_ofMesh_getIndices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndices__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getIndices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getIndices()\n" " ofMesh::getIndices() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveIndicesChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveIndicesChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveIndicesChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveIndicesChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasIndices(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTriangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; ofIndexType arg4 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_addTriangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTriangle" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_addTriangle" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addTriangle" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_addTriangle" "', argument " "4"" of type '" "ofIndexType""'"); } + arg4 = static_cast< ofIndexType >(val4); (arg1)->addTriangle(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_enableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_disableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_usingIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingIndices(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setColorForIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; ofColor arg4 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_setColorForIndices",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setColorForIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setColorForIndices" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setColorForIndices" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); { + res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMesh_setColorForIndices" "', argument " "4"" of type '" "ofColor""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setColorForIndices" "', argument " "4"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + (arg1)->setColorForIndices(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_getMeshForIndices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getMeshForIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getMeshForIndices" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_getMeshForIndices" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); result = ((ofMesh const *)arg1)->getMeshForIndices(arg2,arg3); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_box",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = ofMesh::box(arg1,arg2,arg3); +SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; ofIndexType arg4 ; + ofIndexType arg5 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; + unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_getMeshForIndices",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getMeshForIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getMeshForIndices" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_getMeshForIndices" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_getMeshForIndices" "', argument " "4"" of type '" "ofIndexType""'"); } + arg4 = static_cast< ofIndexType >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_getMeshForIndices" "', argument " "5"" of type '" "ofIndexType""'"); } + arg5 = static_cast< ofIndexType >(val5); result = ((ofMesh const *)arg1)->getMeshForIndices(arg2,arg3,arg4,arg5); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_box(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_box__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_box__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_box__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMesh_box__SWIG_0(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_box'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::box(float,float,float,int,int,int)\n" - " ofMesh::box(float,float,float,int,int)\n" " ofMesh::box(float,float,float,int)\n" - " ofMesh::box(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMesh_axis__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_axis",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_axis" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = ofMesh::axis(arg1); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_getMeshForIndices__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_getMeshForIndices__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getMeshForIndices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getMeshForIndices(ofIndexType,ofIndexType) const\n" + " ofMesh::getMeshForIndices(ofIndexType,ofIndexType,ofIndexType,ofIndexType) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_drawVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->drawVertices(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_axis__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMesh result; if (!PyArg_ParseTuple(args,(char *)":ofMesh_axis")) SWIG_fail; result = ofMesh::axis(); - resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMesh_drawWireframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawWireframe",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawWireframe" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->drawWireframe(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_axis(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofMesh_axis__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofMesh_axis__SWIG_0(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_axis'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::axis(float)\n" " ofMesh::axis()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_drawFaces(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawFaces",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawFaces" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->drawFaces(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_draw" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMesh_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofPolyRenderMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_draw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_draw" "', argument " "1"" of type '" "ofMesh *""'"); } - arg1 = reinterpret_cast< ofMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyRenderMode, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_draw" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyRenderMode, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } else { ofPolyRenderMode * temp = reinterpret_cast< ofPolyRenderMode * >(argp2); arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->draw(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMesh_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + if (SWIG_IsNewObj(res2)) delete temp; } } ((ofMesh const *)arg1)->draw(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_draw__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -28273,7 +30986,59 @@ SWIGINTERN PyObject *_wrap_ofMesh_draw(PyObject *self, PyObject *args) { int arg int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPolyRenderMode, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_draw__SWIG_1(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_draw'.\n" - " Possible C/C++ prototypes are:\n" " ofMesh::draw()\n" " ofMesh::draw(ofPolyRenderMode)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofMesh::draw() const\n" " ofMesh::draw(ofPolyRenderMode) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_load" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->load(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_save" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_save" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ((ofMesh const *)arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_save" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ((ofMesh const *)arg1)->save(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_save'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::save(std::string,bool) const\n" " ofMesh::save(std::string) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMesh" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofMesh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -28294,62 +31059,64 @@ SWIGINTERN PyObject *_wrap_ofMeshFace_getFaceNormal(PyObject *SWIGUNUSEDPARM(sel arg1 = reinterpret_cast< ofMeshFace * >(argp1); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getFaceNormal(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_setVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setVertex",&obj0,&obj1,&obj2)) SWIG_fail; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setVertex",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setVertex" "', argument " "1"" of type '" "ofMeshFace *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setVertex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setVertex" "', argument " "3"" of type '" "ofVec3f const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMeshFace_setVertex" "', argument " "3"" of type '" "ofVec3f const &""'"); } arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->setVertex(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_getVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getVertex",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getVertex" "', argument " "1"" of type '" "ofMeshFace const *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getVertex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getVertex(arg2); + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getVertex(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_setNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setNormal",&obj0,&obj1,&obj2)) SWIG_fail; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setNormal",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setNormal" "', argument " "1"" of type '" "ofMeshFace *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setNormal" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setNormal" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setNormal" "', argument " "3"" of type '" "ofVec3f const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMeshFace_setNormal" "', argument " "3"" of type '" "ofVec3f const &""'"); } arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->setNormal(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_getNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getNormal",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getNormal" "', argument " "1"" of type '" "ofMeshFace const *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getNormal" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getNormal(arg2); + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getNormal" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getNormal(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_setColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; ofFloatColor *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofFloatColor *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setColor",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setColor" "', argument " "1"" of type '" "ofMeshFace *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } if (!argp3) { @@ -28357,39 +31124,40 @@ SWIGINTERN PyObject *_wrap_ofMeshFace_setColor(PyObject *SWIGUNUSEDPARM(self), P arg3 = reinterpret_cast< ofFloatColor * >(argp3); (arg1)->setColor(arg2,(ofFloatColor const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofFloatColor *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getColor",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getColor" "', argument " "1"" of type '" "ofMeshFace const *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (ofFloatColor *) &((ofMeshFace const *)arg1)->getColor(arg2); + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofFloatColor *) &((ofMeshFace const *)arg1)->getColor(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_setTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setTexCoord",&obj0,&obj1,&obj2)) SWIG_fail; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setTexCoord",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setTexCoord" "', argument " "1"" of type '" "ofMeshFace *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setTexCoord" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMeshFace_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } arg3 = reinterpret_cast< ofVec2f * >(argp3); (arg1)->setTexCoord(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_getTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMeshFace *arg1 = (ofMeshFace *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getTexCoord",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getTexCoord" "', argument " "1"" of type '" "ofMeshFace const *""'"); } - arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getTexCoord" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (ofVec2f *) &((ofMeshFace const *)arg1)->getTexCoord(arg2); + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofVec2f *) &((ofMeshFace const *)arg1)->getTexCoord(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMeshFace_setHasColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMeshFace *arg1 = (ofMeshFace *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; @@ -28500,8 +31268,8 @@ SWIGINTERN PyObject *_wrap_new_ofPlanePrimitive__SWIG_2(PyObject *SWIGUNUSEDPARM arg4 = static_cast< int >(val4); result = (ofPlanePrimitive *)new ofPlanePrimitive(arg1,arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPlanePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofPlanePrimitive(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofPlanePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofPlanePrimitive__SWIG_0(self, args);} if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -28579,8 +31347,8 @@ SWIGINTERN PyObject *_wrap_ofPlanePrimitive_set__SWIG_2(PyObject *SWIGUNUSEDPARM arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPlanePrimitive_set" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPlanePrimitive_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPlanePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -28631,8 +31399,8 @@ SWIGINTERN PyObject *_wrap_ofPlanePrimitive_resizeToTexture__SWIG_1(PyObject *SW SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "2"" of type '" "ofTexture &""'"); } arg2 = reinterpret_cast< ofTexture * >(argp2); (arg1)->resizeToTexture(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPlanePrimitive_resizeToTexture(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_resizeToTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[4] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPlanePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); @@ -28711,37 +31479,37 @@ SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getNumColumns(PyObject *SWIGUNUSEDPA PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getNumColumns",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getNumColumns" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } - arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (int)(arg1)->getNumColumns(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getNumColumns" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (int)((ofPlanePrimitive const *)arg1)->getNumColumns(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getNumRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getNumRows",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getNumRows" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } - arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (int)(arg1)->getNumRows(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getNumRows" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (int)((ofPlanePrimitive const *)arg1)->getNumRows(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getResolution",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getResolution" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } - arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (arg1)->getResolution(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getResolution" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = ((ofPlanePrimitive const *)arg1)->getResolution(); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getWidth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getWidth" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } - arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (float)(arg1)->getWidth(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getWidth" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (float)((ofPlanePrimitive const *)arg1)->getWidth(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getHeight" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } - arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (float)(arg1)->getHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getHeight" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (float)((ofPlanePrimitive const *)arg1)->getHeight(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofPlanePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; @@ -28784,8 +31552,8 @@ SWIGINTERN PyObject *_wrap_new_ofSpherePrimitive__SWIG_2(PyObject *SWIGUNUSEDPAR arg2 = static_cast< int >(val2); result = (ofSpherePrimitive *)new ofSpherePrimitive(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSpherePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofSpherePrimitive(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofSpherePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofSpherePrimitive__SWIG_0(self, args);} if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -28836,8 +31604,8 @@ SWIGINTERN PyObject *_wrap_ofSpherePrimitive_set__SWIG_1(PyObject *SWIGUNUSEDPAR arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSpherePrimitive_set" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSpherePrimitive_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSpherePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -28889,15 +31657,15 @@ SWIGINTERN PyObject *_wrap_ofSpherePrimitive_getRadius(PyObject *SWIGUNUSEDPARM( PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofSpherePrimitive_getRadius",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_getRadius" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } - arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); result = (float)(arg1)->getRadius(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_getRadius" "', argument " "1"" of type '" "ofSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); result = (float)((ofSpherePrimitive const *)arg1)->getRadius(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSpherePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSpherePrimitive_getResolution",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_getResolution" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } - arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); result = (int)(arg1)->getResolution(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_getResolution" "', argument " "1"" of type '" "ofSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); result = (int)((ofSpherePrimitive const *)arg1)->getResolution(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofSpherePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; @@ -28923,8 +31691,8 @@ SWIGINTERN PyObject *_wrap_new_ofIcoSpherePrimitive__SWIG_1(PyObject *SWIGUNUSED arg2 = static_cast< int >(val2); result = (ofIcoSpherePrimitive *)new ofIcoSpherePrimitive(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofIcoSpherePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofIcoSpherePrimitive(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofIcoSpherePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofIcoSpherePrimitive__SWIG_0(self, args);} if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -28989,16 +31757,17 @@ SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_getRadius(PyObject *SWIGUNUSEDPA PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofIcoSpherePrimitive_getRadius",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_getRadius" "', argument " "1"" of type '" "ofIcoSpherePrimitive *""'"); } - arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); result = (float)(arg1)->getRadius(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_getRadius" "', argument " "1"" of type '" "ofIcoSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); result = (float)((ofIcoSpherePrimitive const *)arg1)->getRadius(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofIcoSpherePrimitive_getResolution",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_getResolution" "', argument " "1"" of type '" "ofIcoSpherePrimitive *""'"); } - arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); result = (int)(arg1)->getResolution(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_getResolution" "', argument " "1"" of type '" "ofIcoSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); + result = (int)((ofIcoSpherePrimitive const *)arg1)->getResolution(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofIcoSpherePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -29096,8 +31865,8 @@ SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive__SWIG_4(PyObject *SWIGUNUSEDP arg4 = static_cast< int >(val4); result = (ofCylinderPrimitive *)new ofCylinderPrimitive(arg1,arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCylinderPrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofCylinderPrimitive__SWIG_0(self, args);} if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -29255,8 +32024,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set__SWIG_5(PyObject *SWIGUNUSEDP arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_set" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -29389,8 +32158,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolution__SWIG_1(PyObject *S SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->setResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolution(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -29462,8 +32231,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getTopCapIndices(PyObject *SWIGUN PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getTopCapIndices",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getTopCapIndices" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (arg1)->getTopCapIndices(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getTopCapIndices" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getTopCapIndices(); resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getTopCapMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29471,8 +32240,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getTopCapMesh(PyObject *SWIGUNUSE PyObject * obj0 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getTopCapMesh",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getTopCapMesh" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (arg1)->getTopCapMesh(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getTopCapMesh" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getTopCapMesh(); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCylinderIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29480,8 +32249,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCylinderIndices(PyObject *SWIG PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getCylinderIndices",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCylinderIndices" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (arg1)->getCylinderIndices(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCylinderIndices" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getCylinderIndices(); resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCylinderMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29489,8 +32258,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCylinderMesh(PyObject *SWIGUNU PyObject * obj0 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getCylinderMesh",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCylinderMesh" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (arg1)->getCylinderMesh(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCylinderMesh" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getCylinderMesh(); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getBottomCapIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29498,8 +32267,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getBottomCapIndices(PyObject *SWI PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getBottomCapIndices",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getBottomCapIndices" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (arg1)->getBottomCapIndices(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getBottomCapIndices" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getBottomCapIndices(); resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getBottomCapMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29507,8 +32276,8 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getBottomCapMesh(PyObject *SWIGUN PyObject * obj0 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getBottomCapMesh",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getBottomCapMesh" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (arg1)->getBottomCapMesh(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getBottomCapMesh" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getBottomCapMesh(); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolutionRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29516,54 +32285,57 @@ SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolutionRadius(PyObject *SWI PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolutionRadius",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionRadius" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (int)(arg1)->getResolutionRadius(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionRadius" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); + result = (int)((ofCylinderPrimitive const *)arg1)->getResolutionRadius(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolutionHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (int)(arg1)->getResolutionHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); + result = (int)((ofCylinderPrimitive const *)arg1)->getResolutionHeight(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolutionCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolutionCap",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionCap" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (int)(arg1)->getResolutionCap(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionCap" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); + result = (int)((ofCylinderPrimitive const *)arg1)->getResolutionCap(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolution",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolution" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (arg1)->getResolution(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolution" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getResolution(); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getHeight" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (float)(arg1)->getHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getHeight" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (float)((ofCylinderPrimitive const *)arg1)->getHeight(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getRadius",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getRadius" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (float)(arg1)->getRadius(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getRadius" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (float)((ofCylinderPrimitive const *)arg1)->getRadius(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getCapped",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCapped" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } - arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (bool)(arg1)->getCapped(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCapped" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (bool)((ofCylinderPrimitive const *)arg1)->getCapped(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofCylinderPrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; @@ -29637,8 +32409,8 @@ SWIGINTERN PyObject *_wrap_new_ofConePrimitive__SWIG_3(PyObject *SWIGUNUSEDPARM( arg4 = static_cast< int >(val4); result = (ofConePrimitive *)new ofConePrimitive(arg1,arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofConePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofConePrimitive(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofConePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofConePrimitive__SWIG_0(self, args);} if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -29747,8 +32519,8 @@ SWIGINTERN PyObject *_wrap_ofConePrimitive_set__SWIG_3(PyObject *SWIGUNUSEDPARM( arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofConePrimitive_set" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofConePrimitive_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofConePrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofConePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -29889,16 +32661,16 @@ SWIGINTERN PyObject *_wrap_ofConePrimitive_getConeIndices(PyObject *SWIGUNUSEDPA PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getConeIndices",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getConeIndices" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (arg1)->getConeIndices(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getConeIndices" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getConeIndices(); resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getConeMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getConeMesh",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getConeMesh" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (arg1)->getConeMesh(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getConeMesh" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getConeMesh(); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getCapIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29906,16 +32678,16 @@ SWIGINTERN PyObject *_wrap_ofConePrimitive_getCapIndices(PyObject *SWIGUNUSEDPAR PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getCapIndices",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getCapIndices" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (arg1)->getCapIndices(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getCapIndices" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getCapIndices(); resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getCapMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getCapMesh",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getCapMesh" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (arg1)->getCapMesh(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getCapMesh" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getCapMesh(); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolutionRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -29923,45 +32695,45 @@ SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolutionRadius(PyObject *SWIGUNU PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolutionRadius",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionRadius" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)(arg1)->getResolutionRadius(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionRadius" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)((ofConePrimitive const *)arg1)->getResolutionRadius(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolutionHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)(arg1)->getResolutionHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)((ofConePrimitive const *)arg1)->getResolutionHeight(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolutionCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolutionCap",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionCap" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)(arg1)->getResolutionCap(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionCap" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)((ofConePrimitive const *)arg1)->getResolutionCap(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolution",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolution" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (arg1)->getResolution(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolution" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getResolution(); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getRadius",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getRadius" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (float)(arg1)->getRadius(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getRadius" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (float)((ofConePrimitive const *)arg1)->getRadius(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofConePrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getHeight" "', argument " "1"" of type '" "ofConePrimitive *""'"); } - arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (float)(arg1)->getHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getHeight" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (float)((ofConePrimitive const *)arg1)->getHeight(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofConePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; @@ -30043,8 +32815,8 @@ SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive__SWIG_4(PyObject *SWIGUNUSEDPARM(s arg3 = static_cast< float >(val3); result = (ofBoxPrimitive *)new ofBoxPrimitive(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBoxPrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofBoxPrimitive__SWIG_0(self, args);} if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } @@ -30128,8 +32900,8 @@ SWIGINTERN PyObject *_wrap_ofBoxPrimitive_set__SWIG_2(PyObject *SWIGUNUSEDPARM(s arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_set" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBoxPrimitive_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBoxPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -30196,10 +32968,10 @@ SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getSideIndices(PyObject *SWIGUNUSEDPAR int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_getSideIndices",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getSideIndices" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getSideIndices" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_getSideIndices" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (arg1)->getSideIndices(arg2); + arg2 = static_cast< int >(val2); result = ((ofBoxPrimitive const *)arg1)->getSideIndices(arg2); resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getSideMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -30207,10 +32979,10 @@ SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getSideMesh(PyObject *SWIGUNUSEDPARM(s PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_getSideMesh",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getSideMesh" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getSideMesh" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_getSideMesh" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (arg1)->getSideMesh(arg2); + arg2 = static_cast< int >(val2); result = ((ofBoxPrimitive const *)arg1)->getSideMesh(arg2); resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -30268,8 +33040,8 @@ SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolution__SWIG_1(PyObject *SWIGUN SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBoxPrimitive_setResolution" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); (arg1)->setResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolution(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBoxPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -30315,51 +33087,51 @@ SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolutionWidth(PyObject *SWIGUNUSE PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolutionWidth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionWidth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } - arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)(arg1)->getResolutionWidth(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionWidth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)((ofBoxPrimitive const *)arg1)->getResolutionWidth(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolutionHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } - arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)(arg1)->getResolutionHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)((ofBoxPrimitive const *)arg1)->getResolutionHeight(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolutionDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolutionDepth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionDepth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } - arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)(arg1)->getResolutionDepth(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionDepth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)((ofBoxPrimitive const *)arg1)->getResolutionDepth(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolution",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolution" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } - arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (arg1)->getResolution(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolution" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = ((ofBoxPrimitive const *)arg1)->getResolution(); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getWidth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getWidth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } - arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)(arg1)->getWidth(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getWidth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)((ofBoxPrimitive const *)arg1)->getWidth(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getHeight" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } - arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)(arg1)->getHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getHeight" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)((ofBoxPrimitive const *)arg1)->getHeight(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getDepth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getDepth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } - arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)(arg1)->getDepth(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getDepth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)((ofBoxPrimitive const *)arg1)->getDepth(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; @@ -30376,26 +33148,11 @@ SWIGINTERN PyObject *ofBoxPrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_ofSetupOpenGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SwigValueWrapper< ofPtr< ofAppBaseWindow > > arg1 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupOpenGL",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPtrT_ofAppBaseWindow_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetupOpenGL" "', argument " "1"" of type '" "ofPtr< ofAppBaseWindow >""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetupOpenGL" "', argument " "1"" of type '" "ofPtr< ofAppBaseWindow >""'"); } - else { ofPtr< ofAppBaseWindow > * temp = reinterpret_cast< ofPtr< ofAppBaseWindow > * >(argp1); arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; } } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupOpenGL" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupOpenGL" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupOpenGL" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ofSetupOpenGL(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofInit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofInit")) SWIG_fail; ofInit(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupOpenGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; +SWIGINTERN PyObject *_wrap_ofSetupOpenGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; ofWindowMode arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupOpenGL",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { @@ -30403,45 +33160,111 @@ SWIGINTERN PyObject *_wrap_ofSetupOpenGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupOpenGL" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupOpenGL" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ofSetupOpenGL(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupOpenGL" "', argument " "3"" of type '" "ofWindowMode""'"); } + arg3 = static_cast< ofWindowMode >(val3); ofSetupOpenGL(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCreateWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofWindowSettings *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofAppBaseWindow > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCreateWindow",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofWindowSettings, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCreateWindow" "', argument " "1"" of type '" "ofWindowSettings const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCreateWindow" "', argument " "1"" of type '" "ofWindowSettings const &""'"); } + arg1 = reinterpret_cast< ofWindowSettings * >(argp1); result = ofCreateWindow((ofWindowSettings const &)*arg1); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofAppBaseWindow >(static_cast< const shared_ptr< ofAppBaseWindow >& >(result))), SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + shared_ptr< ofMainLoop > result; if (!PyArg_ParseTuple(args,(char *)":ofGetMainLoop")) SWIG_fail; result = ofGetMainLoop(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofMainLoop >(static_cast< const shared_ptr< ofMainLoop >& >(result))), SWIGTYPE_p_shared_ptrT_ofMainLoop_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + shared_ptr< ofMainLoop > arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetMainLoop",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofMainLoop_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetMainLoop" "', argument " "1"" of type '" "shared_ptr< ofMainLoop >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetMainLoop" "', argument " "1"" of type '" "shared_ptr< ofMainLoop >""'"); } + else { shared_ptr< ofMainLoop > * temp = reinterpret_cast< shared_ptr< ofMainLoop > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ofSetMainLoop(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupOpenGL(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetupOpenGL__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< shared_ptr< ofAppGLFWWindow > > arg1 ; int arg2 ; int arg3 ; ofWindowMode arg4 ; void *argp1 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupOpenGL",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofAppGLFWWindow_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetupOpenGL" "', argument " "1"" of type '" "shared_ptr< ofAppGLFWWindow >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetupOpenGL" "', argument " "1"" of type '" "shared_ptr< ofAppGLFWWindow >""'"); } + else { shared_ptr< ofAppGLFWWindow > * temp = reinterpret_cast< shared_ptr< ofAppGLFWWindow > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupOpenGL" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupOpenGL" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupOpenGL" "', argument " "4"" of type '" "ofWindowMode""'"); } + arg4 = static_cast< ofWindowMode >(val4); ofSetupOpenGL(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupOpenGL(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupOpenGL__SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPtrT_ofAppBaseWindow_t, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofSetupOpenGL__SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofAppGLFWWindow_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupOpenGL__SWIG_0(self, args);} } } } } fail: + return _wrap_ofSetupOpenGL__SWIG_2(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupOpenGL'.\n" - " Possible C/C++ prototypes are:\n" " ofSetupOpenGL(ofPtr< ofAppBaseWindow >,int,int,int)\n" - " ofSetupOpenGL(int,int,int)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofSetupOpenGL(int,int,ofWindowMode)\n" + " ofSetupOpenGL(shared_ptr< ofAppGLFWWindow >,int,int,ofWindowMode)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofRunApp__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - SwigValueWrapper< ofPtr< ofBaseApp > > arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseApp > > arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofRunApp",&obj0)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPtrT_ofBaseApp_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRunApp" "', argument " "1"" of type '" "ofPtr< ofBaseApp >""'"); } + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofBaseApp >""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRunApp" "', argument " "1"" of type '" "ofPtr< ofBaseApp >""'"); } - else { ofPtr< ofBaseApp > * temp = reinterpret_cast< ofPtr< ofBaseApp > * >(argp1); arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; } } ofRunApp(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofBaseApp >""'"); } + else { shared_ptr< ofBaseApp > * temp = reinterpret_cast< shared_ptr< ofBaseApp > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } result = (int)ofRunApp(arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofRunApp__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofRunApp")) SWIG_fail; ofRunApp(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofRunApp(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofRunApp__SWIG_1(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPtrT_ofBaseApp_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofRunApp__SWIG_0(self, args);} } fail: + int result; if (!PyArg_ParseTuple(args,(char *)":ofRunApp")) SWIG_fail; result = (int)ofRunApp(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRunApp__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< shared_ptr< ofAppBaseWindow > > arg1 ; SwigValueWrapper< shared_ptr< ofBaseApp > > arg2 ; void *argp1 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRunApp",&obj0,&obj1)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofAppBaseWindow >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofAppBaseWindow >""'"); } + else { shared_ptr< ofAppBaseWindow > * temp = reinterpret_cast< shared_ptr< ofAppBaseWindow > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRunApp" "', argument " "2"" of type '" "shared_ptr< ofBaseApp >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRunApp" "', argument " "2"" of type '" "shared_ptr< ofBaseApp >""'"); } + else { shared_ptr< ofBaseApp > * temp = reinterpret_cast< shared_ptr< ofBaseApp > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } ofRunApp(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRunApp(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofRunApp__SWIG_1(self, args);} if (argc == 1) { + int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRunApp__SWIG_0(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRunApp__SWIG_2(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRunApp'.\n" - " Possible C/C++ prototypes are:\n" " ofRunApp(ofPtr< ofBaseApp >)\n" " ofRunApp()\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofRunApp(shared_ptr< ofBaseApp >)\n" " ofRunApp()\n" + " ofRunApp(shared_ptr< ofAppBaseWindow >,shared_ptr< ofBaseApp >)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRunMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofRunMainLoop")) SWIG_fail; result = (int)ofRunMainLoop(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetAppPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofBaseApp *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofGetAppPtr")) SWIG_fail; result = (ofBaseApp *)ofGetAppPtr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBaseApp, 0 | 0 ); return resultobj; fail: return NULL; } @@ -30453,11 +33276,11 @@ SWIGINTERN PyObject *_wrap_ofExit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObje SWIGINTERN PyObject *_wrap_ofExit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofExit")) SWIG_fail; ofExit(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofExit(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofExit__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofExit__SWIG_0(self, args);} } fail: +SWIGINTERN PyObject *_wrap_ofExit(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofExit__SWIG_1(self, args);} if (argc == 1) { + int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofExit__SWIG_0(self, args);} } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofExit'.\n" " Possible C/C++ prototypes are:\n" " ofExit(int)\n" " ofExit()\n"); return 0; } SWIGINTERN PyObject *_wrap_ofGetFrameRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -30471,11 +33294,6 @@ SWIGINTERN PyObject *_wrap_ofSetFrameRate(PyObject *SWIGUNUSEDPARM(self), PyObje ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetFrameRate" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); ofSetFrameRate(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSleepMillis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; - int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSleepMillis",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSleepMillis" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ofSleepMillis(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetLastFrameTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; double result; if (!PyArg_ParseTuple(args,(char *)":ofGetLastFrameTime")) SWIG_fail; result = (double)ofGetLastFrameTime(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } @@ -30495,8 +33313,8 @@ SWIGINTERN PyObject *_wrap_ofSetOrientation__SWIG_1(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetOrientation" "', argument " "1"" of type '" "ofOrientation""'"); } arg1 = static_cast< ofOrientation >(val1); ofSetOrientation(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetOrientation(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetOrientation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetOrientation__SWIG_1(self, args);} } if (argc == 2) { int _v; { @@ -30543,6 +33361,12 @@ SWIGINTERN PyObject *_wrap_ofGetWindowWidth(PyObject *SWIGUNUSEDPARM(self), PyOb SWIGINTERN PyObject *_wrap_ofGetWindowHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowHeight")) SWIG_fail; result = (int)ofGetWindowHeight(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRandomWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofRandomWidth")) SWIG_fail; result = (float)ofRandomWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRandomHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofRandomHeight")) SWIG_fail; result = (float)ofRandomHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofDoesHWOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofDoesHWOrientation")) SWIG_fail; result = (bool)ofDoesHWOrientation(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } @@ -30604,6 +33428,661 @@ SWIGINTERN PyObject *_wrap_ofSetVerticalSync(PyObject *SWIGUNUSEDPARM(self), PyO if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetVerticalSync" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); ofSetVerticalSync(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCoreEvents *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofEvents")) SWIG_fail; result = (ofCoreEvents *) &ofEvents(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCoreEvents, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurrentRenderer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; SwigValueWrapper< shared_ptr< ofBaseRenderer > > arg1 ; bool arg2 ; void *argp1 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetCurrentRenderer",&obj0,&obj1)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + else { shared_ptr< ofBaseRenderer > * temp = reinterpret_cast< shared_ptr< ofBaseRenderer > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetCurrentRenderer" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofSetCurrentRenderer(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurrentRenderer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; SwigValueWrapper< shared_ptr< ofBaseRenderer > > arg1 ; void *argp1 ; int res1 = 0 ; + PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetCurrentRenderer",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + else { shared_ptr< ofBaseRenderer > * temp = reinterpret_cast< shared_ptr< ofBaseRenderer > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ofSetCurrentRenderer(arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurrentRenderer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSetCurrentRenderer__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetCurrentRenderer__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetCurrentRenderer'.\n" + " Possible C/C++ prototypes are:\n" " ofSetCurrentRenderer(shared_ptr< ofBaseRenderer >,bool)\n" + " ofSetCurrentRenderer(shared_ptr< ofBaseRenderer >)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetCurrentRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + shared_ptr< ofBaseRenderer > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentRenderer")) SWIG_fail; + result = (shared_ptr< ofBaseRenderer > *) &ofGetCurrentRenderer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetEscapeQuitsApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetEscapeQuitsApp",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetEscapeQuitsApp" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetEscapeQuitsApp(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *FIRMATA_MAJOR_VERSION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_MAJOR_VERSION",SWIG_From_int(static_cast< int >(2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_MINOR_VERSION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_MINOR_VERSION",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_MAX_DATA_BYTES_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_MAX_DATA_BYTES",SWIG_From_int(static_cast< int >(32))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_DIGITAL_MESSAGE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_DIGITAL_MESSAGE",SWIG_From_int(static_cast< int >(0x90))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_ANALOG_MESSAGE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_ANALOG_MESSAGE",SWIG_From_int(static_cast< int >(0xE0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_REPORT_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_REPORT_ANALOG",SWIG_From_int(static_cast< int >(0xC0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_REPORT_DIGITAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_REPORT_DIGITAL",SWIG_From_int(static_cast< int >(0xD0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SET_PIN_MODE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SET_PIN_MODE",SWIG_From_int(static_cast< int >(0xF4))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_REPORT_VERSION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_REPORT_VERSION",SWIG_From_int(static_cast< int >(0xF9))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSTEM_RESET_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSTEM_RESET",SWIG_From_int(static_cast< int >(0xFF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_START_SYSEX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_START_SYSEX",SWIG_From_int(static_cast< int >(0xF0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_END_SYSEX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_END_SYSEX",SWIG_From_int(static_cast< int >(0xF7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_INPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_INPUT",SWIG_From_int(static_cast< int >(0x00))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_OUTPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_OUTPUT",SWIG_From_int(static_cast< int >(0x01))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_ANALOG",SWIG_From_int(static_cast< int >(0x02))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_PWM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_PWM",SWIG_From_int(static_cast< int >(0x03))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SERVO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SERVO",SWIG_From_int(static_cast< int >(0x04))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SHIFT",SWIG_From_int(static_cast< int >(0x05))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C",SWIG_From_int(static_cast< int >(0x06))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *TOTAL_PIN_MODES_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "TOTAL_PIN_MODES",SWIG_From_int(static_cast< int >(7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_SERVO_CONFIG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_SERVO_CONFIG",SWIG_From_int(static_cast< int >(0x70))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_FIRMATA_STRING_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_FIRMATA_STRING",SWIG_From_int(static_cast< int >(0x71))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SHIFT_DATA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SHIFT_DATA",SWIG_From_int(static_cast< int >(0x75))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_REQUEST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C_REQUEST",SWIG_From_int(static_cast< int >(0x76))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_REPLY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C_REPLY",SWIG_From_int(static_cast< int >(0x77))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_CONFIG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C_CONFIG",SWIG_From_int(static_cast< int >(0x78))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *EXTENDED_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "EXTENDED_ANALOG",SWIG_From_int(static_cast< int >(0x6F))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *PIN_STATE_QUERY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "PIN_STATE_QUERY",SWIG_From_int(static_cast< int >(0x6D))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *PIN_STATE_RESPONSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "PIN_STATE_RESPONSE",SWIG_From_int(static_cast< int >(0x6E))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *CAPABILITY_QUERY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "CAPABILITY_QUERY",SWIG_From_int(static_cast< int >(0x6B))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *CAPABILITY_RESPONSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "CAPABILITY_RESPONSE",SWIG_From_int(static_cast< int >(0x6C))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ANALOG_MAPPING_QUERY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ANALOG_MAPPING_QUERY",SWIG_From_int(static_cast< int >(0x69))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ANALOG_MAPPING_RESPONSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ANALOG_MAPPING_RESPONSE",SWIG_From_int(static_cast< int >(0x6A))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_REPORT_FIRMWARE",SWIG_From_int(static_cast< int >(0x79))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SAMPLING_INTERVAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SAMPLING_INTERVAL",SWIG_From_int(static_cast< int >(0x7A))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_NON_REALTIME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_NON_REALTIME",SWIG_From_int(static_cast< int >(0x7E))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_REALTIME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_REALTIME",SWIG_From_int(static_cast< int >(0x7F))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_TOTAL_DIGITAL_PINS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_TOTAL_DIGITAL_PINS",SWIG_From_int(static_cast< int >(22))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_TOTAL_ANALOG_PINS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_TOTAL_ANALOG_PINS",SWIG_From_int(static_cast< int >(6))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_TOTAL_PORTS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_TOTAL_PORTS",SWIG_From_int(static_cast< int >(3))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_INPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_INPUT",SWIG_From_int(static_cast< int >(0x00))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_OUTPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_OUTPUT",SWIG_From_int(static_cast< int >(0x01))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_ANALOG",SWIG_From_int(static_cast< int >(0x02))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_PWM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_PWM",SWIG_From_int(static_cast< int >(0x03))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_SERVO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_SERVO",SWIG_From_int(static_cast< int >(0x04))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_HIGH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_HIGH",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_LOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_LOW",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_ON_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_ON",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_OFF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_OFF",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SYSEX_SERVO_ATTACH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SYSEX_SERVO_ATTACH",SWIG_From_int(static_cast< int >(0x00))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SYSEX_SERVO_DETACH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SYSEX_SERVO_DETACH",SWIG_From_int(static_cast< int >(0x01))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SYSEX_SERVO_WRITE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SYSEX_SERVO_WRITE",SWIG_From_int(static_cast< int >(0x02))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ARDUINO_DELAY_LENGTH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ARDUINO_DELAY_LENGTH",SWIG_From_double(static_cast< double >(4.0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMWARE2_2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMWARE2_2",SWIG_From_int(static_cast< int >(22))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMWARE2_3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMWARE2_3",SWIG_From_int(static_cast< int >(23))); + return SWIG_Py_Void(); +} + + SWIGINTERN PyObject *_wrap_new_ofArduino(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofArduino")) SWIG_fail; result = (ofArduino *)new ofArduino(); @@ -30616,30 +34095,37 @@ SWIGINTERN PyObject *_wrap_delete_ofArduino(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofArduino" "', argument " "1"" of type '" "ofArduino *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_connect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofArduino *arg1 = (ofArduino *) 0 ; std::string arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_connect",&obj0,&obj1,&obj2)) SWIG_fail; + ofArduino *arg1 = (ofArduino *) 0 ; std::string *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_connect",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_connect" "', argument " "1"" of type '" "ofArduino *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_connect" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (bool)(arg1)->connect(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->connect((std::string const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_connect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofArduino *arg1 = (ofArduino *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_connect",&obj0,&obj1)) SWIG_fail; + ofArduino *arg1 = (ofArduino *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_connect",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_connect" "', argument " "1"" of type '" "ofArduino *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->connect(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_connect(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->connect((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_connect(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -30649,8 +34135,22 @@ SWIGINTERN PyObject *_wrap_ofArduino_connect(PyObject *self, PyObject *args) { i int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofArduino_connect__SWIG_0(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofArduino_connect'.\n" - " Possible C/C++ prototypes are:\n" " ofArduino::connect(std::string,int)\n" " ofArduino::connect(std::string)\n"); - return 0; } + " Possible C/C++ prototypes are:\n" " ofArduino::connect(std::string const &,int)\n" + " ofArduino::connect(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofArduino_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_isInitialized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_isInitialized" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (bool)((ofArduino const *)arg1)->isInitialized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_isArduinoReady(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_isArduinoReady",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_isArduinoReady" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (bool)((ofArduino const *)arg1)->isArduinoReady(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_disconnect",&obj0)) SWIG_fail; @@ -30658,13 +34158,37 @@ SWIGINTERN PyObject *_wrap_ofArduino_disconnect(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_disconnect" "', argument " "1"" of type '" "ofArduino *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->disconnect(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_isArduinoReady(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_isArduinoReady",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofArduino_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_update",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_isArduinoReady" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (bool)(arg1)->isArduinoReady(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_update" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendDigitalPinMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendDigitalPinMode",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendDigitalPinMode(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendAnalogPinReporting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendAnalogPinReporting",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendAnalogPinReporting(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_setUseDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -30675,20 +34199,6 @@ SWIGINTERN PyObject *_wrap_ofArduino_setUseDelay(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_setUseDelay" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->setUseDelay(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_update",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_update" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_isInitialized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_isInitialized" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (bool)(arg1)->isInitialized(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_setDigitalHistoryLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -30729,30 +34239,6 @@ SWIGINTERN PyObject *_wrap_ofArduino_setSysExHistoryLength(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_setSysExHistoryLength" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->setSysExHistoryLength(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_sendDigitalPinMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendDigitalPinMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->sendDigitalPinMode(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_sendAnalogPinReporting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendAnalogPinReporting",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->sendAnalogPinReporting(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_sendDigital__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; @@ -30780,8 +34266,8 @@ SWIGINTERN PyObject *_wrap_ofArduino_sendDigital__SWIG_1(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendDigital" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->sendDigital(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_sendDigital(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofArduino_sendDigital(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -30821,8 +34307,8 @@ SWIGINTERN PyObject *_wrap_ofArduino_sendPwm__SWIG_1(PyObject *SWIGUNUSEDPARM(se arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendPwm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->sendPwm(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_sendPwm(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofArduino_sendPwm(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -30922,81 +34408,81 @@ SWIGINTERN PyObject *_wrap_ofArduino_getPwm(PyObject *SWIGUNUSEDPARM(self), PyOb PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getPwm",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getPwm" "', argument " "1"" of type '" "ofArduino *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getPwm" "', argument " "1"" of type '" "ofArduino const *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getPwm" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (int)(arg1)->getPwm(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getPwm(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getDigital(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getDigital",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getDigital" "', argument " "1"" of type '" "ofArduino *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getDigital" "', argument " "1"" of type '" "ofArduino const *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getDigital" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (int)(arg1)->getDigital(arg2); + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getDigital(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getAnalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getAnalog",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getAnalog" "', argument " "1"" of type '" "ofArduino *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getAnalog" "', argument " "1"" of type '" "ofArduino const *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getAnalog" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (int)(arg1)->getAnalog(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getAnalog(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getSysEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned char > > result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getSysEx",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getSysEx" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (arg1)->getSysEx(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getSysEx" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((ofArduino const *)arg1)->getSysEx(); resultobj = SWIG_NewPointerObj((new std::vector< unsigned char >(static_cast< const std::vector< unsigned char >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getString" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (arg1)->getString(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getString" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((ofArduino const *)arg1)->getString(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getMajorProtocolVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMajorProtocolVersion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMajorProtocolVersion" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)(arg1)->getMajorProtocolVersion(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMajorProtocolVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMajorProtocolVersion(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getMinorProtocolVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMinorProtocolVersion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMinorProtocolVersion" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)(arg1)->getMinorProtocolVersion(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMinorProtocolVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMinorProtocolVersion(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getMajorFirmwareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMajorFirmwareVersion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMajorFirmwareVersion" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)(arg1)->getMajorFirmwareVersion(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMajorFirmwareVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMajorFirmwareVersion(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getMinorFirmwareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMinorFirmwareVersion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMinorFirmwareVersion" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)(arg1)->getMinorFirmwareVersion(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMinorFirmwareVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMinorFirmwareVersion(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getFirmwareName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getFirmwareName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getFirmwareName" "', argument " "1"" of type '" "ofArduino *""'"); } - arg1 = reinterpret_cast< ofArduino * >(argp1); result = (arg1)->getFirmwareName(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getFirmwareName" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((ofArduino const *)arg1)->getFirmwareName(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getDigitalHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; @@ -31042,20 +34528,20 @@ SWIGINTERN PyObject *_wrap_ofArduino_getDigitalPinMode(PyObject *SWIGUNUSEDPARM( int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getDigitalPinMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getDigitalPinMode" "', argument " "1"" of type '" "ofArduino *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getDigitalPinMode" "', argument " "1"" of type '" "ofArduino const *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getDigitalPinMode" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (int)(arg1)->getDigitalPinMode(arg2); + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getDigitalPinMode(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getAnalogPinReporting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getAnalogPinReporting",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getAnalogPinReporting" "', argument " "1"" of type '" "ofArduino *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getAnalogPinReporting" "', argument " "1"" of type '" "ofArduino const *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getAnalogPinReporting" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (int)(arg1)->getAnalogPinReporting(arg2); + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getAnalogPinReporting(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofArduino_getValueFromTwo7bitBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; unsigned char arg2 ; unsigned char arg3 ; void *argp1 = 0 ; @@ -31253,8 +34739,8 @@ SWIGINTERN PyObject *_wrap_ofArduino_sendServo__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendServo" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->sendServo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_sendServo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofArduino_sendServo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -31322,8 +34808,8 @@ SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach__SWIG_3(PyObject *SWIGUNUSE SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServoAttach" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->sendServoAttach(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -31362,11 +34848,11 @@ SWIGINTERN PyObject *_wrap_ofArduino_getServo(PyObject *SWIGUNUSEDPARM(self), Py PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getServo",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getServo" "', argument " "1"" of type '" "ofArduino *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getServo" "', argument " "1"" of type '" "ofArduino const *""'"); } arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getServo" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (int)(arg1)->getServo(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getServo(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofArduino_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -31407,13 +34893,6 @@ SWIGINTERN PyObject *_wrap_ofSerial_getDeviceList(PyObject *SWIGUNUSEDPARM(self) arg1 = reinterpret_cast< ofSerial * >(argp1); result = (arg1)->getDeviceList(); resultobj = SWIG_NewPointerObj((new std::vector< ofSerialDeviceInfo >(static_cast< const std::vector< ofSerialDeviceInfo >& >(result))), SWIGTYPE_p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSerial_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_close" "', argument " "1"" of type '" "ofSerial *""'"); } - arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofSerial_setup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_setup",&obj0)) SWIG_fail; @@ -31446,8 +34925,8 @@ SWIGINTERN PyObject *_wrap_ofSerial_setup__SWIG_2(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSerial_setup" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->setup(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSerial_setup(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSerial_setup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofSerial_setup__SWIG_0(self, args);} } if (argc == 3) { int _v; void *vptr = 0; @@ -31462,6 +34941,27 @@ SWIGINTERN PyObject *_wrap_ofSerial_setup(PyObject *self, PyObject *args) { int SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSerial_setup'.\n" " Possible C/C++ prototypes are:\n" " ofSerial::setup()\n" " ofSerial::setup(std::string,int)\n" " ofSerial::setup(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSerial_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_isInitialized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_isInitialized" "', argument " "1"" of type '" "ofSerial const *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (bool)((ofSerial const *)arg1)->isInitialized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_close" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_available(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_available",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_available" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (int)(arg1)->available(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSerial_readBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofSerial *arg1 = (ofSerial *) 0 ; unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -31475,6 +34975,13 @@ SWIGINTERN PyObject *_wrap_ofSerial_readBytes(PyObject *SWIGUNUSEDPARM(self), Py SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSerial_readBytes" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (int)(arg1)->readBytes(arg2,arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_readByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_readByte",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_readByte" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (int)(arg1)->readByte(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSerial_writeBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofSerial *arg1 = (ofSerial *) 0 ; unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -31498,13 +35005,6 @@ SWIGINTERN PyObject *_wrap_ofSerial_writeByte(PyObject *SWIGUNUSEDPARM(self), Py SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSerial_writeByte" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->writeByte(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSerial_readByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_readByte",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_readByte" "', argument " "1"" of type '" "ofSerial *""'"); } - arg1 = reinterpret_cast< ofSerial * >(argp1); result = (int)(arg1)->readByte(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSerial_flush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofSerial *arg1 = (ofSerial *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -31531,8 +35031,8 @@ SWIGINTERN PyObject *_wrap_ofSerial_flush__SWIG_2(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_flush" "', argument " "1"" of type '" "ofSerial *""'"); } arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->flush(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSerial_flush(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSerial_flush(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofSerial_flush__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -31546,13 +35046,6 @@ SWIGINTERN PyObject *_wrap_ofSerial_flush(PyObject *self, PyObject *args) { int SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSerial_flush'.\n" " Possible C/C++ prototypes are:\n" " ofSerial::flush(bool,bool)\n" " ofSerial::flush(bool)\n" " ofSerial::flush()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSerial_available(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_available",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_available" "', argument " "1"" of type '" "ofSerial *""'"); } - arg1 = reinterpret_cast< ofSerial * >(argp1); result = (int)(arg1)->available(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSerial_drain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_drain",&obj0)) SWIG_fail; @@ -31560,13 +35053,6 @@ SWIGINTERN PyObject *_wrap_ofSerial_drain(PyObject *SWIGUNUSEDPARM(self), PyObje SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_drain" "', argument " "1"" of type '" "ofSerial *""'"); } arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->drain(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSerial_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_isInitialized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_isInitialized" "', argument " "1"" of type '" "ofSerial const *""'"); } - arg1 = reinterpret_cast< ofSerial * >(argp1); result = (bool)((ofSerial const *)arg1)->isInitialized(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofSerial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -31574,6 +35060,50 @@ SWIGINTERN PyObject *ofSerial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObj return SWIG_Py_Void(); } +SWIGINTERN PyObject *OF_LIGHT_POINT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_POINT",SWIG_From_int(static_cast< int >(OF_LIGHT_POINT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LIGHT_DIRECTIONAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_DIRECTIONAL",SWIG_From_int(static_cast< int >(OF_LIGHT_DIRECTIONAL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LIGHT_SPOT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_SPOT",SWIG_From_int(static_cast< int >(OF_LIGHT_SPOT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LIGHT_AREA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_AREA",SWIG_From_int(static_cast< int >(OF_LIGHT_AREA))); + return SWIG_Py_Void(); +} + + SWIGINTERN PyObject *_wrap_ofEnableLighting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofEnableLighting")) SWIG_fail; ofEnableLighting(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } @@ -31597,49 +35127,23 @@ SWIGINTERN PyObject *_wrap_ofSetSmoothLighting(PyObject *SWIGUNUSEDPARM(self), P arg1 = static_cast< bool >(val1); ofSetSmoothLighting(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSetGlobalAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofColor *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetGlobalAmbientColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetGlobalAmbientColor" "', argument " "1"" of type '" "ofColor const &""'"); } + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetGlobalAmbientColor" "', argument " "1"" of type '" "ofFloatColor const &""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetGlobalAmbientColor" "', argument " "1"" of type '" "ofColor const &""'"); } - arg1 = reinterpret_cast< ofColor * >(argp1); ofSetGlobalAmbientColor((ofColor_< unsigned char > const &)*arg1); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetGlobalAmbientColor" "', argument " "1"" of type '" "ofFloatColor const &""'"); } + arg1 = reinterpret_cast< ofFloatColor * >(argp1); ofSetGlobalAmbientColor((ofColor_< float > const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofLight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofLight *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofLight")) SWIG_fail; result = (ofLight *)new ofLight(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofLight, SWIG_POINTER_NEW | 0 ); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofGetGlobalAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFloatColor *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofGetGlobalAmbientColor")) SWIG_fail; + result = (ofFloatColor *) &ofGetGlobalAmbientColor(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofLight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofLight *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofLight *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofLight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofLight, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofLight" "', argument " "1"" of type '" "ofLight const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofLight" "', argument " "1"" of type '" "ofLight const &""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (ofLight *)new ofLight((ofLight const &)*arg1); +SWIGINTERN PyObject *_wrap_new_ofLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofLight")) SWIG_fail; result = (ofLight *)new ofLight(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofLight, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofLight(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofLight__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofLight__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofLight'.\n" - " Possible C/C++ prototypes are:\n" " ofLight::ofLight()\n" " ofLight::ofLight(ofLight const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_delete_ofLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofLight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofLight" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLight_destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofLight_destroy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_destroy" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->destroy(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofLight_setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_setup",&obj0)) SWIG_fail; @@ -31711,8 +35215,8 @@ SWIGINTERN PyObject *_wrap_ofLight_setSpotlight__SWIG_2(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setSpotlight" "', argument " "1"" of type '" "ofLight *""'"); } arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->setSpotlight(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLight_setSpotlight(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofLight_setSpotlight(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofLight_setSpotlight__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -31730,8 +35234,8 @@ SWIGINTERN PyObject *_wrap_ofLight_getIsSpotlight(PyObject *SWIGUNUSEDPARM(self) ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsSpotlight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsSpotlight" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)(arg1)->getIsSpotlight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsSpotlight" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsSpotlight(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_setSpotlightCutOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; @@ -31747,8 +35251,8 @@ SWIGINTERN PyObject *_wrap_ofLight_getSpotlightCutOff(PyObject *SWIGUNUSEDPARM(s ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getSpotlightCutOff",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getSpotlightCutOff" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)(arg1)->getSpotlightCutOff(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getSpotlightCutOff" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getSpotlightCutOff(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_setSpotConcentration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; @@ -31764,8 +35268,8 @@ SWIGINTERN PyObject *_wrap_ofLight_getSpotConcentration(PyObject *SWIGUNUSEDPARM PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getSpotConcentration",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getSpotConcentration" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)(arg1)->getSpotConcentration(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getSpotConcentration" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getSpotConcentration(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_setPointLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -31778,8 +35282,8 @@ SWIGINTERN PyObject *_wrap_ofLight_getIsPointLight(PyObject *SWIGUNUSEDPARM(self ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsPointLight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsPointLight" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)(arg1)->getIsPointLight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsPointLight" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsPointLight(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_setAttenuation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; @@ -31825,8 +35329,8 @@ SWIGINTERN PyObject *_wrap_ofLight_setAttenuation__SWIG_3(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAttenuation" "', argument " "1"" of type '" "ofLight *""'"); } arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->setAttenuation(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLight_setAttenuation(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofLight_setAttenuation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofLight_setAttenuation__SWIG_3(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -31850,29 +35354,48 @@ SWIGINTERN PyObject *_wrap_ofLight_getAttenuationConstant(PyObject *SWIGUNUSEDPA PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getAttenuationConstant",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationConstant" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)(arg1)->getAttenuationConstant(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationConstant" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getAttenuationConstant(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_getAttenuationLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getAttenuationLinear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationLinear" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)(arg1)->getAttenuationLinear(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationLinear" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getAttenuationLinear(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_getAttenuationQuadratic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getAttenuationQuadratic",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationQuadratic" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)(arg1)->getAttenuationQuadratic(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationQuadratic" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getAttenuationQuadratic(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAreaLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofLight_setAreaLight",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAreaLight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setAreaLight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLight_setAreaLight" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAreaLight(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getIsAreaLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsAreaLight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsAreaLight" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsAreaLight(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getType" "', argument " "1"" of type '" "ofLight *""'"); } - arg1 = reinterpret_cast< ofLight * >(argp1); result = (int)(arg1)->getType(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getType" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (int)((ofLight const *)arg1)->getType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLight_setAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; ofFloatColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; @@ -31944,6 +35467,12 @@ SWIGINTERN PyObject *_wrap_ofLight_getLightID(PyObject *SWIGUNUSEDPARM(self), Py SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getLightID" "', argument " "1"" of type '" "ofLight const *""'"); } arg1 = reinterpret_cast< ofLight * >(argp1); result = (int)((ofLight const *)arg1)->getLightID(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofLight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofLight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofLight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -31951,6 +35480,12 @@ SWIGINTERN PyObject *ofLight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObje return SWIG_Py_Void(); } +SWIGINTERN PyObject *_wrap_ofLightsData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< weak_ptr< ofLight::Data >,std::allocator< weak_ptr< ofLight::Data > > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":ofLightsData")) SWIG_fail; + result = (std::vector< weak_ptr< ofLight::Data >,std::allocator< weak_ptr< ofLight::Data > > > *) &ofLightsData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ofMaterial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMaterial *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofMaterial")) SWIG_fail; result = (ofMaterial *)new ofMaterial(); @@ -32063,59 +35598,27 @@ SWIGINTERN PyObject *_wrap_ofMaterial_setShininess(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMaterial_setShininess" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); (arg1)->setShininess(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMaterial_getDiffuseColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFloatColor result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_getDiffuseColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_getDiffuseColor" "', argument " "1"" of type '" "ofMaterial *""'"); } - arg1 = reinterpret_cast< ofMaterial * >(argp1); result = (arg1)->getDiffuseColor(); - resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMaterial_getAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFloatColor result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_getAmbientColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_getAmbientColor" "', argument " "1"" of type '" "ofMaterial *""'"); } - arg1 = reinterpret_cast< ofMaterial * >(argp1); result = (arg1)->getAmbientColor(); - resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMaterial_getSpecularColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_getSpecularColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_getSpecularColor" "', argument " "1"" of type '" "ofMaterial *""'"); } - arg1 = reinterpret_cast< ofMaterial * >(argp1); result = (arg1)->getSpecularColor(); - resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMaterial_getEmissiveColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_getEmissiveColor",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofMaterial_getData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMaterial::Data result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_getData",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_getEmissiveColor" "', argument " "1"" of type '" "ofMaterial *""'"); } - arg1 = reinterpret_cast< ofMaterial * >(argp1); result = (arg1)->getEmissiveColor(); - resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_getData" "', argument " "1"" of type '" "ofMaterial const *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); result = ((ofMaterial const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj((new ofMaterial::Data(static_cast< const ofMaterial::Data& >(result))), SWIGTYPE_p_ofMaterial__Data, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMaterial_getShininess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_getShininess",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_getShininess" "', argument " "1"" of type '" "ofMaterial *""'"); } - arg1 = reinterpret_cast< ofMaterial * >(argp1); result = (float)(arg1)->getShininess(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMaterial_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_begin" "', argument " "1"" of type '" "ofMaterial *""'"); } - arg1 = reinterpret_cast< ofMaterial * >(argp1); (arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMaterial_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_end",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofMaterial_setData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; ofMaterial::Data *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMaterial_setData",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_end" "', argument " "1"" of type '" "ofMaterial *""'"); } - arg1 = reinterpret_cast< ofMaterial * >(argp1); (arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setData" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMaterial__Data, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMaterial_setData" "', argument " "2"" of type '" "ofMaterial::Data const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setData" "', argument " "2"" of type '" "ofMaterial::Data const &""'"); } + arg2 = reinterpret_cast< ofMaterial::Data * >(argp2); (arg1)->setData((ofMaterial::Data const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofMaterial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -32143,14 +35646,27 @@ SWIGINTERN PyObject *_wrap_new_ofShader__SWIG_1(PyObject *SWIGUNUSEDPARM(self), arg1 = reinterpret_cast< ofShader * >(argp1); result = (ofShader *)new ofShader((ofShader const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofShader, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShader(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofShader__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofShader *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofShader, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShader" "', argument " "1"" of type '" "ofShader &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShader" "', argument " "1"" of type '" "ofShader &&""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (ofShader *)new ofShader((ofShader &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofShader, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShader(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofShader__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofShader__SWIG_1(self, args);} } fail: + return _wrap_new_ofShader__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShader__SWIG_2(self, args);} } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShader'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::ofShader()\n" " ofShader::ofShader(ofShader const &)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::ofShader()\n" " ofShader::ofShader(ofShader const &)\n" + " ofShader::ofShader(ofShader &&)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_load",&obj0,&obj1)) SWIG_fail; @@ -32192,8 +35708,8 @@ SWIGINTERN PyObject *_wrap_ofShader_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_load" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_load(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShader_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { @@ -32250,8 +35766,8 @@ SWIGINTERN PyObject *_wrap_ofShader_getGeometryMaxOutputCount(PyObject *SWIGUNUS PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_getGeometryMaxOutputCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getGeometryMaxOutputCount" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); result = (int)(arg1)->getGeometryMaxOutputCount(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getGeometryMaxOutputCount" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (int)((ofShader const *)arg1)->getGeometryMaxOutputCount(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -32264,41 +35780,43 @@ SWIGINTERN PyObject *_wrap_ofShader_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyO ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_isLoaded",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_isLoaded" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); result = (bool)(arg1)->isLoaded(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_isLoaded" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (bool)((ofShader const *)arg1)->isLoaded(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_begin" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); (arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_begin" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->begin(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_end" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); (arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_end" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofBaseHasTexture *arg3 = 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } - arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofBaseHasTexture, 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofBaseHasTexture &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofBaseHasTexture, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofBaseHasTexture const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofBaseHasTexture &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofBaseHasTexture const &""'"); } arg3 = reinterpret_cast< ofBaseHasTexture * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformTexture" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniformTexture((std::string const &)*arg2,*arg3,arg4); + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformTexture((std::string const &)*arg2,(ofBaseHasTexture const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -32307,19 +35825,20 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_1(PyObject *SWIGUNUS PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } - arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofTexture, 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofTexture &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofTexture, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofTexture const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofTexture &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofTexture const &""'"); } arg3 = reinterpret_cast< ofTexture * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformTexture" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniformTexture((std::string const &)*arg2,*arg3,arg4); + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformTexture((std::string const &)*arg2,(ofTexture const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -32328,7 +35847,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_2(PyObject *SWIGUNUS int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setUniformTexture",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32340,20 +35859,20 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_2(PyObject *SWIGUNUS SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformTexture" "', argument " "4"" of type '" "GLint""'"); } arg4 = static_cast< GLint >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniformTexture" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setUniformTexture((std::string const &)*arg2,arg3,arg4,arg5); + arg5 = static_cast< int >(val5); ((ofShader const *)arg1)->setUniformTexture((std::string const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBaseHasTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofBaseHasTexture, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniformTexture__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniformTexture__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { @@ -32363,15 +35882,16 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture(PyObject *self, PyObject * int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniformTexture__SWIG_2(self, args);} } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniformTexture'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniformTexture(std::string const &,ofBaseHasTexture &,int)\n" - " ofShader::setUniformTexture(std::string const &,ofTexture &,int)\n" - " ofShader::setUniformTexture(std::string const &,int,GLint,int)\n"); return 0; } + " Possible C/C++ prototypes are:\n" + " ofShader::setUniformTexture(std::string const &,ofBaseHasTexture const &,int) const\n" + " ofShader::setUniformTexture(std::string const &,ofTexture const &,int) const\n" + " ofShader::setUniformTexture(std::string const &,int,GLint,int) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform1i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1i",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1i" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1i" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1i" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32379,15 +35899,16 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform1i(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1i" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform1i" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->setUniform1i((std::string const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } + arg3 = static_cast< int >(val3); ((ofShader const *)arg1)->setUniform1i((std::string const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform2i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2i",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2i" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2i" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2i" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32397,15 +35918,16 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform2i(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform2i" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2i" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform2i((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform2i((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform3i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setUniform3i",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3i" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3i" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3i" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32417,7 +35939,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform3i(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3i" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform3i" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setUniform3i((std::string const &)*arg2,arg3,arg4,arg5); + arg5 = static_cast< int >(val5); ((ofShader const *)arg1)->setUniform3i((std::string const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform4i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -32427,7 +35949,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform4i(PyObject *SWIGUNUSEDPARM(self), PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setUniform4i",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4i" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4i" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4i" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32441,7 +35963,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform4i(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform4i" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setUniform4i" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->setUniform4i((std::string const &)*arg2,arg3,arg4,arg5,arg6); + arg6 = static_cast< int >(val6); ((ofShader const *)arg1)->setUniform4i((std::string const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform1f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -32449,7 +35971,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform1f(PyObject *SWIGUNUSEDPARM(self), int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1f",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1f" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32457,15 +35979,16 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform1f(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1f" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform1f" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setUniform1f((std::string const &)*arg2,arg3); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform2f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + arg3 = static_cast< float >(val3); ((ofShader const *)arg1)->setUniform1f((std::string const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2f" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32475,15 +35998,17 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform2f(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform2f" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2f" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->setUniform2f((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform3f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; - int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + arg4 = static_cast< float >(val4); ((ofShader const *)arg1)->setUniform2f((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setUniform3f",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3f" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32495,17 +36020,17 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform3f(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3f" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform3f" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->setUniform3f((std::string const &)*arg2,arg3,arg4,arg5); + arg5 = static_cast< float >(val5); ((ofShader const *)arg1)->setUniform3f((std::string const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setUniform4f",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32519,44 +36044,171 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform4f(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform4f" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setUniform4f" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->setUniform4f((std::string const &)*arg2,arg3,arg4,arg5,arg6); + arg6 = static_cast< float >(val6); ((ofShader const *)arg1)->setUniform4f((std::string const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform2f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2f" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2f" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); + ((ofShader const *)arg1)->setUniform2f((std::string const &)*arg2,(ofVec2f const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform2f__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform2f__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform2f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform2f(std::string const &,float,float) const\n" + " ofShader::setUniform2f(std::string const &,ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform3f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3f" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3f" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); + ((ofShader const *)arg1)->setUniform3f((std::string const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform3f__SWIG_1(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform3f__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform3f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform3f(std::string const &,float,float,float) const\n" + " ofShader::setUniform3f(std::string const &,ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofVec4f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofVec4f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofVec4f const &""'"); } + arg3 = reinterpret_cast< ofVec4f * >(argp3); + ((ofShader const *)arg1)->setUniform4f((std::string const &)*arg2,(ofVec4f const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofFloatColor *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + arg3 = reinterpret_cast< ofFloatColor * >(argp3); + ((ofShader const *)arg1)->setUniform4f((std::string const &)*arg2,(ofFloatColor const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform4f__SWIG_1(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform4f__SWIG_2(self, args);} } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform4f__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform4f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform4f(std::string const &,float,float,float,float) const\n" + " ofShader::setUniform4f(std::string const &,ofVec4f const &) const\n" + " ofShader::setUniform4f(std::string const &,ofFloatColor const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform1iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1iv" "', argument " "3"" of type '" "int *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1iv" "', argument " "3"" of type '" "int const *""'"); } arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform1iv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform1iv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform1iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1iv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1iv" "', argument " "3"" of type '" "int *""'"); } - arg3 = reinterpret_cast< int * >(argp3); (arg1)->setUniform1iv((std::string const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform1iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32568,43 +36220,45 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform1iv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform1iv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform1iv(std::string const &,int *,int)\n" - " ofShader::setUniform1iv(std::string const &,int *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setUniform1iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform1iv(std::string const &,int const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2iv" "', argument " "3"" of type '" "int *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2iv" "', argument " "3"" of type '" "int const *""'"); } arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2iv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform2iv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform2iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform2iv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2iv" "', argument " "3"" of type '" "int *""'"); } - arg3 = reinterpret_cast< int * >(argp3); (arg1)->setUniform2iv((std::string const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform2iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32616,43 +36270,45 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform2iv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform2iv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform2iv(std::string const &,int *,int)\n" - " ofShader::setUniform2iv(std::string const &,int *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setUniform2iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform2iv(std::string const &,int const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform3iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3iv" "', argument " "3"" of type '" "int *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3iv" "', argument " "3"" of type '" "int const *""'"); } arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3iv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform3iv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform3iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform3iv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3iv" "', argument " "3"" of type '" "int *""'"); } - arg3 = reinterpret_cast< int * >(argp3); (arg1)->setUniform3iv((std::string const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform3iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32664,43 +36320,45 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform3iv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform3iv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform3iv(std::string const &,int *,int)\n" - " ofShader::setUniform3iv(std::string const &,int *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setUniform3iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform3iv(std::string const &,int const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform4iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4iv" "', argument " "3"" of type '" "int *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4iv" "', argument " "3"" of type '" "int const *""'"); } arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform4iv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform4iv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform4iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4iv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4iv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4iv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4iv" "', argument " "3"" of type '" "int *""'"); } - arg3 = reinterpret_cast< int * >(argp3); (arg1)->setUniform4iv((std::string const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform4iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32712,25 +36370,26 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform4iv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform4iv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform4iv(std::string const &,int *,int)\n" - " ofShader::setUniform4iv(std::string const &,int *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setUniform4iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform4iv(std::string const &,int const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform1fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform1fv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform1fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform1fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -32738,19 +36397,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv__SWIG_1(PyObject *SWIGUNUSEDPA PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setUniform1fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform1fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32762,25 +36421,26 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform1fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform1fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform1fv(std::string const &,float *,int)\n" - " ofShader::setUniform1fv(std::string const &,float *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setUniform1fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform1fv(std::string const &,float const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2fv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform2fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform2fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -32788,19 +36448,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv__SWIG_1(PyObject *SWIGUNUSEDPA PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform2fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setUniform2fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform2fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32812,25 +36472,26 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform2fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform2fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform2fv(std::string const &,float *,int)\n" - " ofShader::setUniform2fv(std::string const &,float *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setUniform2fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform2fv(std::string const &,float const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform3fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3fv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform3fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform3fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -32838,19 +36499,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv__SWIG_1(PyObject *SWIGUNUSEDPA PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform3fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setUniform3fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform3fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32862,25 +36523,26 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform3fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform3fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform3fv(std::string const &,float *,int)\n" - " ofShader::setUniform3fv(std::string const &,float *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setUniform3fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform3fv(std::string const &,float const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform4fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform4fv" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->setUniform4fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform4fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -32888,19 +36550,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv__SWIG_1(PyObject *SWIGUNUSEDPA PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setUniform4fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform4fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -32912,14 +36574,105 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv(PyObject *self, PyObject *args int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofShader_setUniform4fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform4fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setUniform4fv(std::string const &,float *,int)\n" - " ofShader::setUniform4fv(std::string const &,float *)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + " Possible C/C++ prototypes are:\n" " ofShader::setUniform4fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform4fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniforms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; ofParameterGroup *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_setUniforms",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniforms" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofParameterGroup, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniforms" "', argument " "2"" of type '" "ofParameterGroup const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniforms" "', argument " "2"" of type '" "ofParameterGroup const &""'"); } + arg2 = reinterpret_cast< ofParameterGroup * >(argp2); ((ofShader const *)arg1)->setUniforms((ofParameterGroup const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix3f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix3x3 *arg3 = 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformMatrix3f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix3x3, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + arg3 = reinterpret_cast< ofMatrix3x3 * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformMatrix3f" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformMatrix3f((std::string const &)*arg2,(ofMatrix3x3 const &)*arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix3f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix3x3 *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniformMatrix3f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix3x3, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + arg3 = reinterpret_cast< ofMatrix3x3 * >(argp3); + ((ofShader const *)arg1)->setUniformMatrix3f((std::string const &)*arg2,(ofMatrix3x3 const &)*arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix3f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniformMatrix3f__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniformMatrix3f__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniformMatrix3f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniformMatrix3f(std::string const &,ofMatrix3x3 const &,int) const\n" + " ofShader::setUniformMatrix3f(std::string const &,ofMatrix3x3 const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix4x4 *arg3 = 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformMatrix4f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformMatrix4f" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix4f" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + arg3 = reinterpret_cast< ofMatrix4x4 * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformMatrix4f" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformMatrix4f((std::string const &)*arg2,(ofMatrix4x4 const &)*arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix4x4 *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniformMatrix4f",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix4f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix4f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix4f" "', argument " "2"" of type '" "std::string const &""'"); } @@ -32930,20 +36683,50 @@ SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f(PyObject *SWIGUNUSEDPARM( if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix4f" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } arg3 = reinterpret_cast< ofMatrix4x4 * >(argp3); - (arg1)->setUniformMatrix4f((std::string const &)*arg2,(ofMatrix4x4 const &)*arg3); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } + ((ofShader const *)arg1)->setUniformMatrix4f((std::string const &)*arg2,(ofMatrix4x4 const &)*arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniformMatrix4f__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniformMatrix4f__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniformMatrix4f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniformMatrix4f(std::string const &,ofMatrix4x4 const &,int) const\n" + " ofShader::setUniformMatrix4f(std::string const &,ofMatrix4x4 const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_getUniformLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GLint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getUniformLocation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getUniformLocation" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getUniformLocation" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getUniformLocation" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (GLint)((ofShader const *)arg1)->getUniformLocation((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_getAttributeLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GLint result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getAttributeLocation",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getAttributeLocation" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getAttributeLocation" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getAttributeLocation" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getAttributeLocation" "', argument " "2"" of type '" "std::string const &""'"); } - arg2 = ptr; } result = (GLint)(arg1)->getAttributeLocation((std::string const &)*arg2); + arg2 = ptr; } result = (GLint)((ofShader const *)arg1)->getAttributeLocation((std::string const &)*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute1s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -32951,35 +36734,35 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute1s(PyObject *SWIGUNUSEDPARM(self short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute1s",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1s" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1s" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute1s" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute1s" "', argument " "3"" of type '" "short""'"); } - arg3 = static_cast< short >(val3); (arg1)->setAttribute1s(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg3 = static_cast< short >(val3); ((ofShader const *)arg1)->setAttribute1s(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute2s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; short arg3 ; short arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; short val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute2s",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2s" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2s" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute2s" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute2s" "', argument " "3"" of type '" "short""'"); } arg3 = static_cast< short >(val3); ecode4 = SWIG_AsVal_short(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute2s" "', argument " "4"" of type '" "short""'"); } - arg4 = static_cast< short >(val4); (arg1)->setAttribute2s(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + arg4 = static_cast< short >(val4); ((ofShader const *)arg1)->setAttribute2s(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute3s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; short arg3 ; short arg4 ; short arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; short val4 ; int ecode4 = 0 ; short val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setAttribute3s",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3s" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3s" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute3s" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -32988,8 +36771,8 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute3s(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute3s" "', argument " "4"" of type '" "short""'"); } arg4 = static_cast< short >(val4); ecode5 = SWIG_AsVal_short(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute3s" "', argument " "5"" of type '" "short""'"); } - arg5 = static_cast< short >(val5); (arg1)->setAttribute3s(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg5 = static_cast< short >(val5); ((ofShader const *)arg1)->setAttribute3s(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute4s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; short arg3 ; short arg4 ; short arg5 ; short arg6 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; short val4 ; int ecode4 = 0 ; short val5 ; @@ -32997,7 +36780,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4s(PyObject *SWIGUNUSEDPARM(self PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setAttribute4s",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4s" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4s" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute4s" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -33008,42 +36791,42 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4s(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute4s" "', argument " "5"" of type '" "short""'"); } arg5 = static_cast< short >(val5); ecode6 = SWIG_AsVal_short(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setAttribute4s" "', argument " "6"" of type '" "short""'"); } - arg6 = static_cast< short >(val6); (arg1)->setAttribute4s(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg6 = static_cast< short >(val6); ((ofShader const *)arg1)->setAttribute4s(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute1f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute1f",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute1f" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute1f" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->setAttribute1f(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg3 = static_cast< float >(val3); ((ofShader const *)arg1)->setAttribute1f(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute2f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute2f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute2f" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute2f" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute2f" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->setAttribute2f(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + arg4 = static_cast< float >(val4); ((ofShader const *)arg1)->setAttribute2f(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute3f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setAttribute3f",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute3f" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -33052,8 +36835,8 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute3f(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute3f" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute3f" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->setAttribute3f(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg5 = static_cast< float >(val5); ((ofShader const *)arg1)->setAttribute3f(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; @@ -33061,7 +36844,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4f(PyObject *SWIGUNUSEDPARM(self PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setAttribute4f",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4f" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4f" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute4f" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -33072,42 +36855,42 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4f(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute4f" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setAttribute4f" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->setAttribute4f(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg6 = static_cast< float >(val6); ((ofShader const *)arg1)->setAttribute4f(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute1d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; double arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute1d",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1d" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1d" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute1d" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute1d" "', argument " "3"" of type '" "double""'"); } - arg3 = static_cast< double >(val3); (arg1)->setAttribute1d(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg3 = static_cast< double >(val3); ((ofShader const *)arg1)->setAttribute1d(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute2d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; double arg3 ; double arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute2d",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2d" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2d" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute2d" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute2d" "', argument " "3"" of type '" "double""'"); } arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute2d" "', argument " "4"" of type '" "double""'"); } - arg4 = static_cast< double >(val4); (arg1)->setAttribute2d(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + arg4 = static_cast< double >(val4); ((ofShader const *)arg1)->setAttribute2d(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute3d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; double arg3 ; double arg4 ; double arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setAttribute3d",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3d" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3d" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute3d" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -33116,8 +36899,8 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute3d(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute3d" "', argument " "4"" of type '" "double""'"); } arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute3d" "', argument " "5"" of type '" "double""'"); } - arg5 = static_cast< double >(val5); (arg1)->setAttribute3d(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg5 = static_cast< double >(val5); ((ofShader const *)arg1)->setAttribute3d(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute4d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; @@ -33125,7 +36908,7 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4d(PyObject *SWIGUNUSEDPARM(self PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setAttribute4d",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4d" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4d" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute4d" "', argument " "2"" of type '" "GLint""'"); } arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -33136,29 +36919,29 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4d(PyObject *SWIGUNUSEDPARM(self SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute4d" "', argument " "5"" of type '" "double""'"); } arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setAttribute4d" "', argument " "6"" of type '" "double""'"); } - arg6 = static_cast< double >(val6); (arg1)->setAttribute4d(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg6 = static_cast< double >(val6); ((ofShader const *)arg1)->setAttribute4d(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute1fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute1fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute1fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute1fv" "', argument " "4"" of type '" "GLsizei""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute1fv" "', argument " "4"" of type '" "GLsizei""'"); } else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - (arg1)->setAttribute1fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + ((ofShader const *)arg1)->setAttribute1fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -33166,19 +36949,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv__SWIG_1(PyObject *SWIGUNUSED PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute1fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute1fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setAttribute1fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute1fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute1fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -33190,29 +36973,29 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv(PyObject *self, PyObject *ar int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShader_setAttribute1fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute1fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setAttribute1fv(std::string const &,float *,GLsizei)\n" - " ofShader::setAttribute1fv(std::string const &,float *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute1fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute1fv(std::string const &,float const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute2fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute2fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute2fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute2fv" "', argument " "4"" of type '" "GLsizei""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute2fv" "', argument " "4"" of type '" "GLsizei""'"); } else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - (arg1)->setAttribute2fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + ((ofShader const *)arg1)->setAttribute2fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -33220,19 +37003,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv__SWIG_1(PyObject *SWIGUNUSED PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute2fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute2fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setAttribute2fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute2fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute2fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -33244,29 +37027,29 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv(PyObject *self, PyObject *ar int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShader_setAttribute2fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute2fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setAttribute2fv(std::string const &,float *,GLsizei)\n" - " ofShader::setAttribute2fv(std::string const &,float *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute2fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute2fv(std::string const &,float const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute3fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute3fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute3fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute3fv" "', argument " "4"" of type '" "GLsizei""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute3fv" "', argument " "4"" of type '" "GLsizei""'"); } else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - (arg1)->setAttribute3fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + ((ofShader const *)arg1)->setAttribute3fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -33274,19 +37057,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv__SWIG_1(PyObject *SWIGUNUSED PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute3fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute3fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setAttribute3fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute3fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute3fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -33298,29 +37081,29 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv(PyObject *self, PyObject *ar int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShader_setAttribute3fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute3fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setAttribute3fv(std::string const &,float *,GLsizei)\n" - " ofShader::setAttribute3fv(std::string const &,float *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute3fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute3fv(std::string const &,float const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute4fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute4fv" "', argument " "3"" of type '" "float *""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute4fv" "', argument " "3"" of type '" "float const *""'"); } arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute4fv" "', argument " "4"" of type '" "GLsizei""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute4fv" "', argument " "4"" of type '" "GLsizei""'"); } else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - (arg1)->setAttribute4fv((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + ((ofShader const *)arg1)->setAttribute4fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; @@ -33328,19 +37111,19 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv__SWIG_1(PyObject *SWIGUNUSED PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute4fv",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4fv" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4fv" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute4fv" "', argument " "3"" of type '" "float *""'"); } - arg3 = reinterpret_cast< float * >(argp3); (arg1)->setAttribute4fv((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute4fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute4fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -33352,14 +37135,14 @@ SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv(PyObject *self, PyObject *ar int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShader_setAttribute4fv__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute4fv'.\n" - " Possible C/C++ prototypes are:\n" " ofShader::setAttribute4fv(std::string const &,float *,GLsizei)\n" - " ofShader::setAttribute4fv(std::string const &,float *)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute4fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute4fv(std::string const &,float const *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofShader_bindAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLuint arg2 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_bindAttribute",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_bindAttribute" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_bindAttribute" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLuint, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_bindAttribute" "', argument " "2"" of type '" "GLuint""'"); } @@ -33370,22 +37153,22 @@ SWIGINTERN PyObject *_wrap_ofShader_bindAttribute(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_bindAttribute" "', argument " "3"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_bindAttribute" "', argument " "3"" of type '" "std::string const &""'"); } - arg3 = ptr; } (arg1)->bindAttribute(arg2,(std::string const &)*arg3); resultobj = SWIG_Py_Void(); + arg3 = ptr; } ((ofShader const *)arg1)->bindAttribute(arg2,(std::string const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_ofShader_printActiveUniforms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_printActiveUniforms",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_printActiveUniforms" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); (arg1)->printActiveUniforms(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_printActiveUniforms" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->printActiveUniforms(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_printActiveAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_printActiveAttributes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_printActiveAttributes" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); (arg1)->printActiveAttributes(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_printActiveAttributes" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->printActiveAttributes(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; std::string arg3 ; std::string arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -33422,8 +37205,8 @@ SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromSource__SWIG_1(PyObject *SWIG SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_setupShaderFromSource" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->setupShaderFromSource(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromSource(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromSource(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { @@ -33464,70 +37247,72 @@ SWIGINTERN PyObject *_wrap_ofShader_bindDefaults(PyObject *SWIGUNUSEDPARM(self), ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_bindDefaults",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_bindDefaults" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); result = (bool)(arg1)->bindDefaults(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_bindDefaults" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (bool)((ofShader const *)arg1)->bindDefaults(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_getProgram(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint *result = 0 ; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; if (!PyArg_ParseTuple(args,(char *)"O:ofShader_getProgram",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getProgram" "', argument " "1"" of type '" "ofShader *""'"); } - arg1 = reinterpret_cast< ofShader * >(argp1); result = (GLuint *) &(arg1)->getProgram(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLuint, 0 | 0 ); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getProgram" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = ((ofShader const *)arg1)->getProgram(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_getShader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GLuint *result = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GLuint result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getShader",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getShader" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getShader" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getShader" "', argument " "2"" of type '" "GLenum""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getShader" "', argument " "2"" of type '" "GLenum""'"); } else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } - result = (GLuint *) &(arg1)->getShader(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLuint, 0 | 0 ); return resultobj; fail: return NULL; } + result = ((ofShader const *)arg1)->getShader(arg2); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; ofShader *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShader___eq__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader___eq__" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader___eq__" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader___eq__" "', argument " "2"" of type '" "ofShader const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader___eq__" "', argument " "2"" of type '" "ofShader const &""'"); } - arg2 = reinterpret_cast< ofShader * >(argp2); result = (bool)(arg1)->operator ==((ofShader const &)*arg2); + arg2 = reinterpret_cast< ofShader * >(argp2); result = (bool)((ofShader const *)arg1)->operator ==((ofShader const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; ofShader *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShader___ne__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader___ne__" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader___ne__" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader___ne__" "', argument " "2"" of type '" "ofShader const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader___ne__" "', argument " "2"" of type '" "ofShader const &""'"); } - arg2 = reinterpret_cast< ofShader * >(argp2); result = (bool)(arg1)->operator !=((ofShader const &)*arg2); + arg2 = reinterpret_cast< ofShader * >(argp2); result = (bool)((ofShader const *)arg1)->operator !=((ofShader const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofShader_getShaderSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getShaderSource",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getShaderSource" "', argument " "1"" of type '" "ofShader *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getShaderSource" "', argument " "1"" of type '" "ofShader const *""'"); } arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getShaderSource" "', argument " "2"" of type '" "GLenum""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getShaderSource" "', argument " "2"" of type '" "GLenum""'"); } else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } - result = (arg1)->getShaderSource(arg2); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; fail: return NULL; } + result = ((ofShader const *)arg1)->getShaderSource(arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofShader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -33549,8 +37334,8 @@ SWIGINTERN PyObject *_wrap_new_ofVbo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyO arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofVbo *)new ofVbo((ofVbo const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofVbo(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofVbo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofVbo__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { @@ -33601,8 +37386,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_setMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setMesh" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); (arg1)->setMesh((ofMesh const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_setMesh(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_setMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -33754,8 +37539,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_setVertexData__SWIG_3(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setVertexData" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); (arg1)->setVertexData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_setVertexData(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_setVertexData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -33818,8 +37603,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_setColorData__SWIG_2(PyObject *SWIGUNUSEDPARM(s SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setColorData" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); (arg1)->setColorData((float const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_setColorData(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_setColorData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); @@ -33875,8 +37660,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_setNormalData__SWIG_2(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setNormalData" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); (arg1)->setNormalData((float const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_setNormalData(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_setNormalData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -33932,8 +37717,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordData__SWIG_2(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setTexCoordData" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); (arg1)->setTexCoordData((float const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordData(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -33997,8 +37782,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_setAttributeData__SWIG_1(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setAttributeData" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); (arg1)->setAttributeData(arg2,(float const *)arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_setAttributeData(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; @@ -34018,6 +37803,453 @@ SWIGINTERN PyObject *_wrap_ofVbo_setAttributeData(PyObject *self, PyObject *args SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setAttributeData'.\n" " Possible C/C++ prototypes are:\n" " ofVbo::setAttributeData(int,float const *,int,int,int,int)\n" " ofVbo::setAttributeData(int,float const *,int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeDivisor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setAttributeDivisor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setAttributeDivisor" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_setAttributeDivisor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setAttributeDivisor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setAttributeDivisor(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setVertexBuffer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setVertexBuffer" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setVertexBuffer(*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setVertexBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setVertexBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexBuffer__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexBuffer__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setVertexBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setVertexBuffer(ofBufferObject &,int,int,int)\n" + " ofVbo::setVertexBuffer(ofBufferObject &,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setColorBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setColorBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setColorBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setColorBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setColorBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setColorBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setColorBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setColorBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setColorBuffer(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setColorBuffer__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setColorBuffer__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setColorBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setColorBuffer(ofBufferObject &,int,int)\n" + " ofVbo::setColorBuffer(ofBufferObject &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setNormalBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setNormalBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setNormalBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setNormalBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setNormalBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setNormalBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setNormalBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setNormalBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setNormalBuffer(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setNormalBuffer__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setNormalBuffer__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setNormalBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setNormalBuffer(ofBufferObject &,int,int)\n" + " ofVbo::setNormalBuffer(ofBufferObject &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setTexCoordBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setTexCoordBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setTexCoordBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setTexCoordBuffer(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setTexCoordBuffer__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setTexCoordBuffer__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setTexCoordBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setTexCoordBuffer(ofBufferObject &,int,int)\n" + " ofVbo::setTexCoordBuffer(ofBufferObject &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setIndexBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_setIndexBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setIndexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setIndexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setIndexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); (arg1)->setIndexBuffer(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; ofBufferObject *arg3 = 0 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofVbo_setAttributeBuffer",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setAttributeBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_setAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + arg3 = reinterpret_cast< ofBufferObject * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setAttributeBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setAttributeBuffer" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setAttributeBuffer" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->setAttributeBuffer(arg2,*arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; ofBufferObject *arg3 = 0 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setAttributeBuffer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setAttributeBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_setAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + arg3 = reinterpret_cast< ofBufferObject * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setAttributeBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setAttributeBuffer" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setAttributeBuffer(arg2,*arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setAttributeBuffer__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setAttributeBuffer__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setAttributeBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setAttributeBuffer(int,ofBufferObject &,int,int,int)\n" + " ofVbo::setAttributeBuffer(int,ofBufferObject &,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getVertexBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVertexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getVertexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getVertexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getColorBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getColorBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getColorBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getColorBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getNormalBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNormalBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNormalBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getNormalBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getTexCoordBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getTexCoordBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getTexCoordBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getTexCoordBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getIndexBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getIndexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getIndexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getIndexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofBufferObject *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_getAttributeBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getAttributeBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_getAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofBufferObject *) &(arg1)->getAttributeBuffer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getVertexBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVertexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getVertexBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getVertexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getVertexBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getVertexBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getVertexBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getVertexBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getVertexBuffer()\n" " ofVbo::getVertexBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getColorBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getColorBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getColorBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getColorBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getColorBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getColorBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getColorBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getColorBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getColorBuffer()\n" " ofVbo::getColorBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getNormalBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNormalBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNormalBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getNormalBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getNormalBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getNormalBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getNormalBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getNormalBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getNormalBuffer()\n" " ofVbo::getNormalBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getTexCoordBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getTexCoordBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getTexCoordBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getTexCoordBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getTexCoordBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getTexCoordBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getTexCoordBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getTexCoordBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getTexCoordBuffer()\n" " ofVbo::getTexCoordBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getIndexBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getIndexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getIndexBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getIndexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getIndexBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getIndexBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getIndexBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getIndexBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getIndexBuffer()\n" " ofVbo::getIndexBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofBufferObject *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_getAttributeBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getAttributeBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_getAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofBufferObject *) &((ofVbo const *)arg1)->getAttributeBuffer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_getAttributeBuffer__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_getAttributeBuffer__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getAttributeBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getAttributeBuffer(int)\n" " ofVbo::getAttributeBuffer(int) const\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofVbo_updateMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofMesh *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_updateMesh",&obj0,&obj1)) SWIG_fail; @@ -34121,8 +38353,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_updateVertexData__SWIG_2(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateVertexData" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->updateVertexData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_updateVertexData(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_updateVertexData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -34152,8 +38384,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_updateColorData__SWIG_1(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateColorData" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->updateColorData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_updateColorData(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_updateColorData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); @@ -34179,8 +38411,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_updateNormalData__SWIG_1(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateNormalData" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->updateNormalData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_updateNormalData(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_updateNormalData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -34206,8 +38438,8 @@ SWIGINTERN PyObject *_wrap_ofVbo_updateTexCoordData__SWIG_1(PyObject *SWIGUNUSED SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateTexCoordData" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); (arg1)->updateTexCoordData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_updateTexCoordData(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVbo_updateTexCoordData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { @@ -34291,6 +38523,14 @@ SWIGINTERN PyObject *_wrap_ofVbo_disableIndices(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_disableIndices" "', argument " "1"" of type '" "ofVbo *""'"); } arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->disableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getVaoId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVaoId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getVaoId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getVaoId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVbo_getVertId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVertId",&obj0)) SWIG_fail; @@ -34331,6 +38571,16 @@ SWIGINTERN PyObject *_wrap_ofVbo_getIndexId(PyObject *SWIGUNUSEDPARM(self), PyOb arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getIndexId(); resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GLuint result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_getAttributeId",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getAttributeId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_getAttributeId" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofVbo const *)arg1)->getAttributeId(arg2); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVbo_getIsAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getIsAllocated",&obj0)) SWIG_fail; @@ -34378,34 +38628,63 @@ SWIGINTERN PyObject *_wrap_ofVbo_draw(PyObject *SWIGUNUSEDPARM(self), PyObject * int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_draw" "', argument " "1"" of type '" "ofVbo *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_draw" "', argument " "1"" of type '" "ofVbo const *""'"); } arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_draw" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_draw" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_draw" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_drawElements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + arg4 = static_cast< int >(val4); ((ofVbo const *)arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_drawElements__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_drawElements",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElements" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawElements" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_drawElements" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_drawElements" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofVbo const *)arg1)->drawElements(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_drawElements__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_drawElements",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElements" "', argument " "1"" of type '" "ofVbo *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElements" "', argument " "1"" of type '" "ofVbo const *""'"); } arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawElements" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_drawElements" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->drawElements(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg3 = static_cast< int >(val3); ((ofVbo const *)arg1)->drawElements(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_drawElements(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_drawElements__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_drawElements__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_drawElements'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::drawElements(int,int,int) const\n" + " ofVbo::drawElements(int,int) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVbo_drawInstanced(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_drawInstanced",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawInstanced" "', argument " "1"" of type '" "ofVbo *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawInstanced" "', argument " "1"" of type '" "ofVbo const *""'"); } arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawInstanced" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -34414,35 +38693,37 @@ SWIGINTERN PyObject *_wrap_ofVbo_drawInstanced(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_drawInstanced" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_drawInstanced" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->drawInstanced(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + arg5 = static_cast< int >(val5); ((ofVbo const *)arg1)->drawInstanced(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVbo_drawElementsInstanced(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_drawElementsInstanced",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElementsInstanced" "', argument " "1"" of type '" "ofVbo *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElementsInstanced" "', argument " "1"" of type '" "ofVbo const *""'"); } arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawElementsInstanced" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_drawElementsInstanced" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_drawElementsInstanced" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->drawElementsInstanced(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + arg4 = static_cast< int >(val4); ((ofVbo const *)arg1)->drawElementsInstanced(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVbo_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_bind",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_bind" "', argument " "1"" of type '" "ofVbo *""'"); } - arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_bind" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ((ofVbo const *)arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVbo_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_unbind",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_unbind" "', argument " "1"" of type '" "ofVbo *""'"); } - arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_unbind" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ((ofVbo const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVbo_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_clear",&obj0)) SWIG_fail; @@ -34484,6 +38765,15 @@ SWIGINTERN PyObject *_wrap_ofVbo_clearIndices(PyObject *SWIGUNUSEDPARM(self), Py SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearIndices" "', argument " "1"" of type '" "ofVbo *""'"); } arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->clearIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clearAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_clearAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearAttribute" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_clearAttribute" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->clearAttribute(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVbo_getNumVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNumVertices",&obj0)) SWIG_fail; @@ -34498,12 +38788,15 @@ SWIGINTERN PyObject *_wrap_ofVbo_getNumIndices(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNumIndices" "', argument " "1"" of type '" "ofVbo const *""'"); } arg1 = reinterpret_cast< ofVbo * >(argp1); result = (int)((ofVbo const *)arg1)->getNumIndices(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_disableVAOs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofVbo_disableVAOs")) SWIG_fail; ofVbo::disableVAOs(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVbo_enableVAOs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofVbo_enableVAOs")) SWIG_fail; ofVbo::enableVAOs(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_hasAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_hasAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_hasAttribute" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_hasAttribute" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (bool)((ofVbo const *)arg1)->hasAttribute(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofVbo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -34515,9 +38808,9 @@ SWIGINTERN PyObject *_wrap_ofVboMesh_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(sel ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVboMesh_draw",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_draw" "', argument " "1"" of type '" "ofVboMesh *""'"); } - arg1 = reinterpret_cast< ofVboMesh * >(argp1); (arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_draw" "', argument " "1"" of type '" "ofVboMesh const *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); ((ofVboMesh const *)arg1)->draw(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ofVboMesh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVboMesh *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVboMesh")) SWIG_fail; result = (ofVboMesh *)new ofVboMesh(); @@ -34533,14 +38826,20 @@ SWIGINTERN PyObject *_wrap_new_ofVboMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVboMesh *)new ofVboMesh((ofMesh const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVboMesh, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofVboMesh(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofVboMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofVboMesh__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ofVboMesh__SWIG_1(self, args);} } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofVboMesh'.\n" " Possible C/C++ prototypes are:\n" " ofVboMesh::ofVboMesh()\n" " ofVboMesh::ofVboMesh(ofMesh const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofVboMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVboMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVboMesh" "', argument " "1"" of type '" "ofVboMesh *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVboMesh_setUsage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVboMesh *arg1 = (ofVboMesh *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -34554,17 +38853,17 @@ SWIGINTERN PyObject *_wrap_ofVboMesh_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self) ofVboMesh *arg1 = (ofVboMesh *) 0 ; ofPolyRenderMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVboMesh_draw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_draw" "', argument " "1"" of type '" "ofVboMesh *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_draw" "', argument " "1"" of type '" "ofVboMesh const *""'"); } arg1 = reinterpret_cast< ofVboMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyRenderMode, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVboMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVboMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } else { ofPolyRenderMode * temp = reinterpret_cast< ofPolyRenderMode * >(argp2); arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->draw(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVboMesh_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + if (SWIG_IsNewObj(res2)) delete temp; } } ((ofVboMesh const *)arg1)->draw(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVboMesh, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofVboMesh_draw__SWIG_0_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -34572,13 +38871,13 @@ SWIGINTERN PyObject *_wrap_ofVboMesh_draw(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPolyRenderMode, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofVboMesh_draw__SWIG_1(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVboMesh_draw'.\n" - " Possible C/C++ prototypes are:\n" " draw()\n" " ofVboMesh::draw(ofPolyRenderMode)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " draw() const\n" " ofVboMesh::draw(ofPolyRenderMode) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVboMesh_drawInstanced(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVboMesh *arg1 = (ofVboMesh *) 0 ; ofPolyRenderMode arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVboMesh_drawInstanced",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_drawInstanced" "', argument " "1"" of type '" "ofVboMesh *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_drawInstanced" "', argument " "1"" of type '" "ofVboMesh const *""'"); } arg1 = reinterpret_cast< ofVboMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyRenderMode, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVboMesh_drawInstanced" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } @@ -34587,21 +38886,31 @@ SWIGINTERN PyObject *_wrap_ofVboMesh_drawInstanced(PyObject *SWIGUNUSEDPARM(self else { ofPolyRenderMode * temp = reinterpret_cast< ofPolyRenderMode * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVboMesh_drawInstanced" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->drawInstanced(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVboMesh_getVbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + arg3 = static_cast< int >(val3); ((ofVboMesh const *)arg1)->drawInstanced(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_getVbo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVbo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVboMesh_getVbo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_getVbo" "', argument " "1"" of type '" "ofVboMesh *""'"); } arg1 = reinterpret_cast< ofVboMesh * >(argp1); result = (ofVbo *) &(arg1)->getVbo(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVbo, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofVboMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVboMesh",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVboMesh" "', argument " "1"" of type '" "ofVboMesh *""'"); } - arg1 = reinterpret_cast< ofVboMesh * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_getVbo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVboMesh_getVbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_getVbo" "', argument " "1"" of type '" "ofVboMesh const *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); result = (ofVbo *) &((ofVboMesh const *)arg1)->getVbo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVbo, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_getVbo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVboMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVboMesh_getVbo__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVboMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVboMesh_getVbo__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVboMesh_getVbo'.\n" + " Possible C/C++ prototypes are:\n" " ofVboMesh::getVbo()\n" " ofVboMesh::getVbo() const\n"); return 0; } SWIGINTERN PyObject *ofVboMesh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -34609,6 +38918,39 @@ SWIGINTERN PyObject *ofVboMesh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyOb return SWIG_Py_Void(); } +SWIGINTERN PyObject *OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_INTERPOLATE_NEAREST_NEIGHBOR",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_NEAREST_NEIGHBOR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_INTERPOLATE_BILINEAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_INTERPOLATE_BILINEAR",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_BILINEAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_INTERPOLATE_BICUBIC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_INTERPOLATE_BICUBIC",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_BICUBIC))); + return SWIG_Py_Void(); +} + + SWIGINTERN PyObject *_wrap_new_ofPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPixels")) SWIG_fail; result = (ofPixels_< unsigned char > *)new ofPixels_< unsigned char >(); @@ -34632,63 +38974,114 @@ SWIGINTERN PyObject *_wrap_new_ofPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), result = (ofPixels_< unsigned char > *)new ofPixels_< unsigned char >((ofPixels_< unsigned char > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > &&""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *)new ofPixels_< unsigned char >((ofPixels_< unsigned char > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofPixels__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofPixels__SWIG_1(self, args);} } fail: + return _wrap_new_ofPixels__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofPixels__SWIG_2(self, args);} } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofPixels'.\n" " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::ofPixels_()\n" - " ofPixels_< unsigned char >::ofPixels_(ofPixels_< unsigned char > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPixels_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + " ofPixels_< unsigned char >::ofPixels_(ofPixels_< unsigned char > const &)\n" + " ofPixels_< unsigned char >::ofPixels_(ofPixels_< unsigned char > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_allocatePixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; - ofPixelFormat arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocatePixelFormat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocate" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; ofPixelFormat arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocatePixelFormat" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocatePixelFormat" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocatePixelFormat" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocatePixelFormat" "', argument " "4"" of type '" "ofPixelFormat""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocate" "', argument " "4"" of type '" "ofPixelFormat""'"); } arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_allocateImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; +SWIGINTERN PyObject *_wrap_ofPixels_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; ofImageType arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocateImageType",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocateImageType" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocateImageType" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocateImageType" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocateImageType" "', argument " "4"" of type '" "ofImageType""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocate" "', argument " "4"" of type '" "ofImageType""'"); } arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_allocate__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_allocate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::allocate(size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::allocate(size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned char >::allocate(size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (bool)((ofPixels_< unsigned char > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_clear" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -34701,73 +39094,119 @@ SWIGINTERN PyObject *_wrap_ofPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), arg2 = static_cast< unsigned char >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; unsigned char arg3 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; unsigned char val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; unsigned char arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; unsigned char val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_set" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_set" "', argument " "3"" of type '" "unsigned char""'"); } arg3 = static_cast< unsigned char >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPixels_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofPixels_set__SWIG_1(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_set'.\n" " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::set(unsigned char)\n" - " ofPixels_< unsigned char >::set(int,unsigned char)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; - int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + " ofPixels_< unsigned char >::set(size_t,unsigned char)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } - arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_setFromPixelsImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromPixelsImageType",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromPixelsImageType" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromPixelsImageType" "', argument " "2"" of type '" "unsigned char const *""'"); } - arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixelsImageType" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixelsImageType" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixelsImageType" "', argument " "5"" of type '" "ofImageType""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromPixels__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setFromPixels(unsigned char const *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::setFromPixels(unsigned char const *,size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned char >::setFromPixels(unsigned char const *,size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -34775,36 +39214,190 @@ SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels(PyObject *SWIGUNUSEDPA arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned char *""'"); } - arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromExternalPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromExternalPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromExternalPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromExternalPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned char *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromExternalPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromExternalPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromExternalPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setFromExternalPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setFromExternalPixels(unsigned char *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::setFromExternalPixels(unsigned char *,size_t,size_t,ofPixelFormat)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } - arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; + int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + else { + std::vector< size_t,std::allocator< size_t > > * temp = reinterpret_cast< std::vector< size_t,std::allocator< size_t > > * >(argp6); + arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + std::vector< int,std::allocator< int > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + int res = swig::asptr(obj5, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< int,std::allocator< int > >""'"); } + arg6 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } + (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_setFromAlignedPixels__SWIG_2(self, args);} } } } } + } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromAlignedPixels__SWIG_1(self, args);} } } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[5], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofPixels_setFromAlignedPixels__SWIG_3(self, args);} } } } } } } if (argc == 6) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromAlignedPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setFromAlignedPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,ofPixelFormat,size_t)\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,ofPixelFormat,std::vector< size_t,std::allocator< size_t > >)\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,ofPixelFormat,std::vector< int,std::allocator< int > >)\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -34819,47 +39412,48 @@ SWIGINTERN PyObject *_wrap_ofPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObjec arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_crop" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_crop" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_crop" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_crop" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_crop" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_crop" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_crop" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_crop" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_crop" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; int arg3 ; - int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_cropTo" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_cropTo" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_cropTo" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_cropTo" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_cropTo" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_cropTo" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_cropTo" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_cropTo" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); ((ofPixels_< unsigned char > const *)arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -34876,7 +39470,7 @@ SWIGINTERN PyObject *_wrap_ofPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), P PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } @@ -34885,15 +39479,15 @@ SWIGINTERN PyObject *_wrap_ofPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), P arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->rotate90To(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg3 = static_cast< int >(val3); ((ofPixels_< unsigned char > const *)arg1)->rotate90To(*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } @@ -34904,8 +39498,8 @@ SWIGINTERN PyObject *_wrap_ofPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyO SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); (arg1)->mirrorTo(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg4 = static_cast< bool >(val4); ((ofPixels_< unsigned char > const *)arg1)->mirrorTo(*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -34919,56 +39513,56 @@ SWIGINTERN PyObject *_wrap_ofPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObj SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_mirror" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; ofInterpolationMethod arg4 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; ofInterpolationMethod arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } arg4 = static_cast< ofInterpolationMethod >(val4); result = (bool)(arg1)->resize(arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (bool)(arg1)->resize(arg2,arg3); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->resize(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPixels_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofPixels_resize__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_resize'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::resize(int,int,ofInterpolationMethod)\n" - " ofPixels_< unsigned char >::resize(int,int)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::resize(size_t,size_t,ofInterpolationMethod)\n" + " ofPixels_< unsigned char >::resize(size_t,size_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } @@ -34977,23 +39571,25 @@ SWIGINTERN PyObject *_wrap_ofPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(se arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } - arg3 = static_cast< ofInterpolationMethod >(val3); result = (bool)(arg1)->resizeTo(*arg2,arg3); + arg3 = static_cast< ofInterpolationMethod >(val3); + result = (bool)((ofPixels_< unsigned char > const *)arg1)->resizeTo(*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_resizeTo",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); result = (bool)(arg1)->resizeTo(*arg2); + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); + result = (bool)((ofPixels_< unsigned char > const *)arg1)->resizeTo(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_resizeTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPixels_resizeTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; @@ -35005,26 +39601,45 @@ SWIGINTERN PyObject *_wrap_ofPixels_resizeTo(PyObject *self, PyObject *args) { i return _wrap_ofPixels_resizeTo__SWIG_0(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_resizeTo'.\n" " Possible C/C++ prototypes are:\n" - " ofPixels_< unsigned char >::resizeTo(ofPixels_< unsigned char > &,ofInterpolationMethod)\n" - " ofPixels_< unsigned char >::resizeTo(ofPixels_< unsigned char > &)\n"); return 0; } + " ofPixels_< unsigned char >::resizeTo(ofPixels_< unsigned char > &,ofInterpolationMethod) const\n" + " ofPixels_< unsigned char >::resizeTo(ofPixels_< unsigned char > &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; int arg3 ; - int arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_pasteInto" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_pasteInto" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); result = (bool)(arg1)->pasteInto(*arg2,arg3,arg4); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_pasteInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_pasteInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned char > const *)arg1)->pasteInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_blendInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_blendInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_blendInto" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_blendInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_blendInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned char > const *)arg1)->blendInto(*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -35033,13 +39648,33 @@ SWIGINTERN PyObject *_wrap_ofPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofPixels_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_clear",&obj0)) SWIG_fail; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getData",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_clear" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); result = (unsigned char *)(arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (unsigned char *)((ofPixels_< unsigned char > const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_getData__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_getData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_getData'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::getData()\n" + " ofPixels_< unsigned char >::getData() const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getPixels",&obj0)) SWIG_fail; @@ -35057,8 +39692,8 @@ SWIGINTERN PyObject *_wrap_ofPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(s result = (unsigned char *)((ofPixels_< unsigned char > const *)arg1)->getPixels(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_getPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPixels_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; @@ -35068,45 +39703,72 @@ SWIGINTERN PyObject *_wrap_ofPixels_getPixels(PyObject *self, PyObject *args) { " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::getPixels()\n" " ofPixels_< unsigned char >::getPixels() const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getPixelIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getPixelIndex" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (int)((ofPixels_< unsigned char > const *)arg1)->getPixelIndex(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getPixelIndex" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getPixelIndex" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned char > const *)arg1)->getPixelIndex(arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ((ofPixels_< unsigned char > const *)arg1)->getColor(arg2,arg3); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned char > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned char > const *)arg1)->getColor(arg2); resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::getColor(size_t,size_t) const\n" + " ofPixels_< unsigned char >::getColor(size_t) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; int arg3 ; - ofColor_< unsigned char > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; + ofColor_< unsigned char > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } if (!argp4) { @@ -35115,16 +39777,16 @@ SWIGINTERN PyObject *_wrap_ofPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(se (arg1)->setColor(arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; ofColor_< unsigned char > *arg3 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; ofColor_< unsigned char > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } if (!argp3) { @@ -35145,148 +39807,201 @@ SWIGINTERN PyObject *_wrap_ofPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->setColor((ofColor_< unsigned char > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_setColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPixels_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_setColor__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setColor'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::setColor(int,int,ofColor_< unsigned char > const &)\n" - " ofPixels_< unsigned char >::setColor(int,ofColor_< unsigned char > const &)\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setColor(size_t,size_t,ofColor_< unsigned char > const &)\n" + " ofPixels_< unsigned char >::setColor(size_t,ofColor_< unsigned char > const &)\n" " ofPixels_< unsigned char >::setColor(ofColor_< unsigned char > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (unsigned char *) &((ofPixels_< unsigned char > const *)arg1)->operator [](arg2); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); + result = (unsigned char *) &((ofPixels_< unsigned char > const *)arg1)->operator [](arg2); resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (unsigned char *) &(arg1)->operator [](arg2); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (unsigned char *) &(arg1)->operator [](arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPixels___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofPixels___getitem____SWIG_0(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels___getitem__'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::operator [](int) const\n" - " ofPixels_< unsigned char >::operator [](int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_isAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (bool)((ofPixels_< unsigned char > const *)arg1)->isAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::operator [](size_t) const\n" + " ofPixels_< unsigned char >::operator [](size_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getWidth",&obj0)) SWIG_fail; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getWidth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->getWidth(); resultobj = SWIG_From_int(static_cast< int >(result)); + result = ((ofPixels_< unsigned char > const *)arg1)->getWidth(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getHeight",&obj0)) SWIG_fail; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->getHeight(); resultobj = SWIG_From_int(static_cast< int >(result)); + result = ((ofPixels_< unsigned char > const *)arg1)->getHeight(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBytesPerPixel",&obj0)) SWIG_fail; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBytesPerPixel",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->getBytesPerPixel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + result = ((ofPixels_< unsigned char > const *)arg1)->getBytesPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBitsPerPixel",&obj0)) SWIG_fail; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBitsPerPixel",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->getBitsPerPixel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + result = ((ofPixels_< unsigned char > const *)arg1)->getBitsPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; int result; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBytesPerChannel",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->getBytesPerChannel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + result = ((ofPixels_< unsigned char > const *)arg1)->getBytesPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBitsPerChannel",&obj0)) SWIG_fail; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBitsPerChannel",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->getBitsPerChannel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + result = ((ofPixels_< unsigned char > const *)arg1)->getBitsPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getBytesStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBytesStride",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBytesStride" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getBytesStride(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getNumChannels",&obj0)) SWIG_fail; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getNumChannels",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->getNumChannels(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + result = ((ofPixels_< unsigned char > const *)arg1)->getNumChannels(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getTotalBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getTotalBytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getTotalBytes" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getTotalBytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getNumPlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getNumPlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getNumPlanes" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getNumPlanes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getPlane",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPlane" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getPlane(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >(static_cast< const ofPixels_< unsigned char >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char > result; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getChannel",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getChannel" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPixels_< unsigned char > const *)arg1)->getChannel(arg2); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned char > const *)arg1)->getChannel(arg2); resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >(static_cast< const ofPixels_< unsigned char >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixelFormat result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPixelFormat" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixelFormat)((ofPixels_< unsigned char > const *)arg1)->getPixelFormat(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_size" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); result = ((ofPixels_< unsigned char > const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofImageType)((ofPixels_< unsigned char > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; ofPixels_< unsigned char > arg3 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; ofPixels_< unsigned char > arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setChannel" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned char > const""'"); } if (!argp3) { @@ -35294,14 +40009,6 @@ SWIGINTERN PyObject *_wrap_ofPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), P else { ofPixels_< unsigned char > * temp = reinterpret_cast< ofPixels_< unsigned char > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->setChannel(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getImageType",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (ofImageType)((ofPixels_< unsigned char > const *)arg1)->getImageType(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -35314,23 +40021,203 @@ SWIGINTERN PyObject *_wrap_ofPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setNumChannels" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setNumChannels" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofPixels_pixelBitsFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixelFormat arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_pixelBitsFromPixelFormat",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofPixels_pixelBitsFromPixelFormat" "', argument " "1"" of type '" "ofPixelFormat""'"); } + arg1 = static_cast< ofPixelFormat >(val1); + result = ofPixels_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR pixelBitsFromPixelFormat(arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_bytesFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; size_t arg1 ; size_t arg2 ; ofPixelFormat arg3 ; size_t val1 ; int ecode1 = 0 ; size_t val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_bytesFromPixelFormat",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofPixels_bytesFromPixelFormat" "', argument " "1"" of type '" "size_t""'"); } + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_bytesFromPixelFormat" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_bytesFromPixelFormat" "', argument " "3"" of type '" "ofPixelFormat""'"); } + arg3 = static_cast< ofPixelFormat >(val3); + result = ofPixels_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR bytesFromPixelFormat(arg1,arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_size",&obj0)) SWIG_fail; + ofPixels_< unsigned char >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_size" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::iterator)(arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); result = (ofPixels_< unsigned char >::iterator)(arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::const_iterator)((ofPixels_< unsigned char > const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::begin()\n" + " ofPixels_< unsigned char >::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::const_iterator)((ofPixels_< unsigned char > const *)arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_end__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::end()\n" + " ofPixels_< unsigned char >::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::reverse_iterator)(arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::reverse_iterator)(arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::const_reverse_iterator)((ofPixels_< unsigned char > const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::rbegin()\n" + " ofPixels_< unsigned char >::rbegin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); - result = (int)((ofPixels_< unsigned char > const *)arg1)->size(); resultobj = SWIG_From_int(static_cast< int >(result)); + result = (ofPixels_< unsigned char >::const_reverse_iterator)((ofPixels_< unsigned char > const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::rend()\n" + " ofPixels_< unsigned char >::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_getLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char >::Line result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getLine" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::Line(static_cast< const ofPixels_< unsigned char >::Line& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__Line, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< unsigned char >::Lines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getLines" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (arg1)->getLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::Lines(static_cast< const ofPixels_< unsigned char >::Lines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__Lines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getConstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char >::ConstLine result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getConstLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getConstLine" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getConstLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned char > const *)arg1)->getConstLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::ConstLine(static_cast< const ofPixels_< unsigned char >::ConstLine& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLine, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getConstLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< unsigned char >::ConstLines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getConstLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getConstLines" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getConstLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getConstLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned char > const *)arg1)->getConstLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::ConstLines(static_cast< const ofPixels_< unsigned char >::ConstLines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLines, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ofPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; @@ -35362,544 +40249,96 @@ SWIGINTERN PyObject *_wrap_new_ofFloatPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(se result = (ofPixels_< float > *)new ofPixels_< float >((ofPixels_< float > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofFloatPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofFloatPixels__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofFloatPixels__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatPixels'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< float >::ofPixels_()\n" - " ofPixels_< float >::ofPixels_(ofPixels_< float > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocate" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_allocatePixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; ofPixelFormat arg4 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocatePixelFormat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocatePixelFormat" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocatePixelFormat" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocatePixelFormat" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocatePixelFormat" "', argument " "4"" of type '" "ofPixelFormat""'"); } - arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_allocateImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocateImageType",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocateImageType" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocateImageType" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocateImageType" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocateImageType" "', argument " "4"" of type '" "ofImageType""'"); } - arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_set" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_set" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatPixels_set__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_set'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< float >::set(float)\n" " ofPixels_< float >::set(int,float)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; - int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } - arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixelsImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; - int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixelsImageType",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixelsImageType" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixelsImageType" "', argument " "2"" of type '" "float const *""'"); } - arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixelsImageType" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixelsImageType" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixelsImageType" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromExternalPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; - int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "2"" of type '" "float *""'"); } - arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; - int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } - arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_swap" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_swap" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_swap" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_crop" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_crop" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_crop" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_crop" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_crop" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; - int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_cropTo" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_cropTo" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_cropTo" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_cropTo" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_rotate90",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rotate90" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_rotate90" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->rotate90To(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); (arg1)->mirrorTo(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; - int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_mirror",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_mirror" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_mirror" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_mirror" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; - ofInterpolationMethod arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resize" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } - arg4 = static_cast< ofInterpolationMethod >(val4); result = (bool)(arg1)->resize(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resize" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (bool)(arg1)->resize(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatPixels_resize__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_resize'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< float >::resize(int,int,ofInterpolationMethod)\n" - " ofPixels_< float >::resize(int,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; - ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } - arg3 = static_cast< ofInterpolationMethod >(val3); result = (bool)(arg1)->resizeTo(*arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_resizeTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); result = (bool)(arg1)->resizeTo(*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFloatPixels_resizeTo__SWIG_1(self, args);} } } if (argc == 3) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); - _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatPixels_resizeTo__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_resizeTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< float >::resizeTo(ofPixels_< float > &,ofInterpolationMethod)\n" - " ofPixels_< float >::resizeTo(ofPixels_< float > &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } - arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_pasteInto" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_pasteInto" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); result = (bool)(arg1)->pasteInto(*arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_swapRgb",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_clear" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)(arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)((ofPixels_< float > const *)arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { return _wrap_ofFloatPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatPixels_getPixels__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_getPixels'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< float >::getPixels()\n" " ofPixels_< float >::getPixels() const\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (int)((ofPixels_< float > const *)arg1)->getPixelIndex(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getColor" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ((ofPixels_< float > const *)arg1)->getColor(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; int arg3 ; - ofColor_< float > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatPixels_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } - arg4 = reinterpret_cast< ofColor_< float > * >(argp4); (arg1)->setColor(arg2,arg3,(ofColor_< float > const &)*arg4); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; ofColor_< float > *arg3 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } - arg3 = reinterpret_cast< ofColor_< float > * >(argp3); (arg1)->setColor(arg2,(ofColor_< float > const &)*arg3); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } +SWIGINTERN PyObject *_wrap_new_ofFloatPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatPixels" "', argument " "1"" of type '" "ofPixels_< float > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatPixels" "', argument " "1"" of type '" "ofPixels_< float > &&""'"); } arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } - arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->setColor((ofColor_< float > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofFloatPixels_setColor__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setColor'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< float >::setColor(int,int,ofColor_< float > const &)\n" - " ofPixels_< float >::setColor(int,ofColor_< float > const &)\n" - " ofPixels_< float >::setColor(ofColor_< float > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels___getitem__",&obj0,&obj1)) SWIG_fail; + result = (ofPixels_< float > *)new ofPixels_< float >((ofPixels_< float > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFloatPixels__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatPixels__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatPixels__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::ofPixels_()\n" + " ofPixels_< float >::ofPixels_(ofPixels_< float > const &)\n" + " ofPixels_< float >::ofPixels_(ofPixels_< float > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (float *) &((ofPixels_< float > const *)arg1)->operator [](arg2); - resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels___getitem__",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocate" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocate" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; + ofPixelFormat arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (float *) &(arg1)->operator [](arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocate" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocate" "', argument " "4"" of type '" "ofPixelFormat""'"); } + arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; ofImageType arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocate" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofFloatPixels___getitem____SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels___getitem__'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< float >::operator [](int) const\n" - " ofPixels_< float >::operator [](int)\n"); return 0; } + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_allocate__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_allocate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::allocate(size_t,size_t,size_t)\n" + " ofPixels_< float >::allocate(size_t,size_t,ofPixelFormat)\n" + " ofPixels_< float >::allocate(size_t,size_t,ofImageType)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofFloatPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_isAllocated",&obj0)) SWIG_fail; @@ -35907,3619 +40346,3564 @@ SWIGINTERN PyObject *_wrap_ofFloatPixels_isAllocated(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (bool)((ofPixels_< float > const *)arg1)->isAllocated(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (int)((ofPixels_< float > const *)arg1)->getWidth(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (int)((ofPixels_< float > const *)arg1)->getHeight(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesPerPixel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (int)((ofPixels_< float > const *)arg1)->getBytesPerPixel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBitsPerPixel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (int)((ofPixels_< float > const *)arg1)->getBitsPerPixel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesPerChannel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - result = (int)((ofPixels_< float > const *)arg1)->getBytesPerChannel(); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBitsPerChannel",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofFloatPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - result = (int)((ofPixels_< float > const *)arg1)->getBitsPerChannel(); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getNumChannels",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_clear" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (int)((ofPixels_< float > const *)arg1)->getNumChannels(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getChannel",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_set" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getChannel" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPixels_< float > const *)arg1)->getChannel(arg2); - resultobj = SWIG_NewPointerObj((new ofPixels_< float >(static_cast< const ofPixels_< float >& >(result))), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; ofPixels_< float > arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_set" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_set" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_set__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_set'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::set(float)\n" " ofPixels_< float >::set(size_t,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; + size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setChannel" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< float > const""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< float > const""'"); } - else { ofPixels_< float > * temp = reinterpret_cast< ofPixels_< float > * >(argp3); arg3 = *temp; - if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->setChannel(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getImageType",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); - result = (ofImageType)((ofPixels_< float > const *)arg1)->getImageType(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setImageType",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setImageType" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } - arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromPixels__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::setFromPixels(float const *,size_t,size_t,size_t)\n" + " ofPixels_< float >::setFromPixels(float const *,size_t,size_t,ofPixelFormat)\n" + " ofPixels_< float >::setFromPixels(float const *,size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromExternalPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; + size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setNumChannels" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFloatPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_size",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "2"" of type '" "float *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromExternalPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_size" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (int)((ofPixels_< float > const *)arg1)->size(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofFloatPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofPixels_T_float_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortPixels")) SWIG_fail; - result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofShortPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >((ofPixels_< unsigned short > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofShortPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofShortPixels__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_new_ofShortPixels__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortPixels'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::ofPixels_()\n" - " ofPixels_< unsigned short >::ofPixels_(ofPixels_< unsigned short > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortPixels_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocate" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocate" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocate" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_allocatePixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; - ofPixelFormat arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocatePixelFormat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocatePixelFormat" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocatePixelFormat" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocatePixelFormat" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocatePixelFormat" "', argument " "4"" of type '" "ofPixelFormat""'"); } - arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_allocateImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; - ofImageType arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; - int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocateImageType",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocateImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocateImageType" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocateImageType" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocateImageType" "', argument " "4"" of type '" "ofImageType""'"); } - arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_set" "', argument " "2"" of type '" "unsigned short""'"); } - arg2 = static_cast< unsigned short >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; unsigned short arg3 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_set" "', argument " "3"" of type '" "unsigned short""'"); } - arg3 = static_cast< unsigned short >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofShortPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortPixels_set__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_set'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::set(unsigned short)\n" - " ofPixels_< unsigned short >::set(int,unsigned short)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; - unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "2"" of type '" "float *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromExternalPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromExternalPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromExternalPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setFromExternalPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::setFromExternalPixels(float *,size_t,size_t,size_t)\n" + " ofPixels_< float >::setFromExternalPixels(float *,size_t,size_t,ofPixelFormat)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } - arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixelsImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; - unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixelsImageType",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixelsImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixelsImageType" "', argument " "2"" of type '" "unsigned short const *""'"); } - arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixelsImageType" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixelsImageType" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixelsImageType" "', argument " "5"" of type '" "ofImageType""'"); } - arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setFromExternalPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; - unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; void *argp6 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + else { + std::vector< size_t,std::allocator< size_t > > * temp = reinterpret_cast< std::vector< size_t,std::allocator< size_t > > * >(argp6); + arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; std::vector< int,std::allocator< int > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned short *""'"); } - arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; - unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } - arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + int res = swig::asptr(obj5, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< int,std::allocator< int > >""'"); } + arg6 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_swap" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_2(self, args);} } } } + } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_1(self, args);} } } } } } } if (argc == 6) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[5], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_3(self, args);} } } } } } } + if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setFromAlignedPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,size_t,size_t)\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,ofPixelFormat,size_t)\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,ofPixelFormat,std::vector< size_t,std::allocator< size_t > >)\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,ofPixelFormat,std::vector< int,std::allocator< int > >)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_swap" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_swap" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_crop" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_crop" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_crop" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_crop" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_crop" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_swap" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_crop" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_crop" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_crop" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_crop" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_crop" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; int arg3 ; - int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } +SWIGINTERN PyObject *_wrap_ofFloatPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; + size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_cropTo" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_cropTo" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_cropTo" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_cropTo" "', argument " "6"" of type '" "int""'"); } - arg6 = static_cast< int >(val6); (arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_rotate90",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rotate90" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_rotate90" "', argument " "2"" of type '" "int""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_cropTo" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_cropTo" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_cropTo" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_cropTo" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); ((ofPixels_< float > const *)arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rotate90" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_rotate90" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; int arg3 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->rotate90To(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; bool arg3 ; - bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; - int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofPixels_< float > const *)arg1)->rotate90To(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); (arg1)->mirrorTo(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; - int res1 = 0 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_mirror",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_mirror" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_mirror" "', argument " "2"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ((ofPixels_< float > const *)arg1)->mirrorTo(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_mirror" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_mirror" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_mirror" "', argument " "3"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_mirror" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; - ofInterpolationMethod arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; +SWIGINTERN PyObject *_wrap_ofFloatPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; + ofInterpolationMethod arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } + bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resize" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } arg4 = static_cast< ofInterpolationMethod >(val4); result = (bool)(arg1)->resize(arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_resize" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resize" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (bool)(arg1)->resize(arg2,arg3); +SWIGINTERN PyObject *_wrap_ofFloatPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resize" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->resize(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofFloatPixels_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortPixels_resize__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_resize'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::resize(int,int,ofInterpolationMethod)\n" - " ofPixels_< unsigned short >::resize(int,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; - ofPixels_< unsigned short > *arg2 = 0 ; ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + return _wrap_ofFloatPixels_resize__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_resize'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::resize(size_t,size_t,ofInterpolationMethod)\n" + " ofPixels_< float >::resize(size_t,size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; + ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } - arg3 = static_cast< ofInterpolationMethod >(val3); result = (bool)(arg1)->resizeTo(*arg2,arg3); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } + arg3 = static_cast< ofInterpolationMethod >(val3); result = (bool)((ofPixels_< float > const *)arg1)->resizeTo(*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; - ofPixels_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_resizeTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_resizeTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); result = (bool)(arg1)->resizeTo(*arg2); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); result = (bool)((ofPixels_< float > const *)arg1)->resizeTo(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFloatPixels_resizeTo__SWIG_1(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofShortPixels_resizeTo__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortPixels_resizeTo__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_resizeTo'.\n" - " Possible C/C++ prototypes are:\n" - " ofPixels_< unsigned short >::resizeTo(ofPixels_< unsigned short > &,ofInterpolationMethod)\n" - " ofPixels_< unsigned short >::resizeTo(ofPixels_< unsigned short > &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; int arg3 ; - int arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_resizeTo__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_resizeTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::resizeTo(ofPixels_< float > &,ofInterpolationMethod) const\n" + " ofPixels_< float >::resizeTo(ofPixels_< float > &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } - arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_pasteInto" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_pasteInto" "', argument " "4"" of type '" "int""'"); } - arg4 = static_cast< int >(val4); result = (bool)(arg1)->pasteInto(*arg2,arg3,arg4); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_pasteInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_pasteInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< float > const *)arg1)->pasteInto(*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_swapRgb",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_clear" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); result = (unsigned short *)(arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (unsigned short *)((ofPixels_< unsigned short > const *)arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofFloatPixels_blendInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_blendInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_blendInto" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_blendInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_blendInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< float > const *)arg1)->blendInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_swapRgb",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getData" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)(arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getData" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)((ofPixels_< float > const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getPixels__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_getPixels'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::getPixels()\n" - " ofPixels_< unsigned short >::getPixels() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getPixelIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getPixelIndex" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (int)((ofPixels_< unsigned short > const *)arg1)->getPixelIndex(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofColor_< unsigned short > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = ((ofPixels_< unsigned short > const *)arg1)->getColor(arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_getData__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_getData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_getData'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::getData()\n" " ofPixels_< float >::getData() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)((ofPixels_< float > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::getPixels()\n" " ofPixels_< float >::getPixels() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< float > const *)arg1)->getPixelIndex(arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getColor" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< float > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; int arg3 ; - ofColor_< unsigned short > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); +SWIGINTERN PyObject *_wrap_ofFloatPixels_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getColor" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< float > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::getColor(size_t,size_t) const\n" + " ofPixels_< float >::getColor(size_t) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; + ofColor_< float > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShortPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatPixels_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } - arg4 = reinterpret_cast< ofColor_< unsigned short > * >(argp4); - (arg1)->setColor(arg2,arg3,(ofColor_< unsigned short > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; - ofColor_< unsigned short > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; - int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } + arg4 = reinterpret_cast< ofColor_< float > * >(argp4); (arg1)->setColor(arg2,arg3,(ofColor_< float > const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; ofColor_< float > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } - arg3 = reinterpret_cast< ofColor_< unsigned short > * >(argp3); - (arg1)->setColor(arg2,(ofColor_< unsigned short > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; - ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } + arg3 = reinterpret_cast< ofColor_< float > * >(argp3); (arg1)->setColor(arg2,(ofColor_< float > const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } - arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->setColor((ofColor_< unsigned short > const &)*arg2); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->setColor((ofColor_< float > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofShortPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofShortPixels_setColor__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setColor'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::setColor(int,int,ofColor_< unsigned short > const &)\n" - " ofPixels_< unsigned short >::setColor(int,ofColor_< unsigned short > const &)\n" - " ofPixels_< unsigned short >::setColor(ofColor_< unsigned short > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned short *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); - result = (unsigned short *) &((ofPixels_< unsigned short > const *)arg1)->operator [](arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned short *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels___getitem__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (unsigned short *) &(arg1)->operator [](arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::setColor(size_t,size_t,ofColor_< float > const &)\n" + " ofPixels_< float >::setColor(size_t,ofColor_< float > const &)\n" + " ofPixels_< float >::setColor(ofColor_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (float *) &((ofPixels_< float > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofShortPixels___getitem____SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels___getitem__'.\n" - " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::operator [](int) const\n" - " ofPixels_< unsigned short >::operator [](int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofShortPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_isAllocated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (bool)((ofPixels_< unsigned short > const *)arg1)->isAllocated(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->getWidth(); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->getHeight(); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesPerPixel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->getBytesPerPixel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBitsPerPixel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->getBitsPerPixel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesPerChannel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->getBytesPerChannel(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBitsPerChannel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->getBitsPerChannel(); + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::operator [](size_t) const\n" + " ofPixels_< float >::operator [](size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getWidth(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getHeight(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBytesPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBitsPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBitsPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBytesPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBitsPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBitsPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesStride",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesStride" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBytesStride(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getNumChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getNumChannels(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getTotalBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getTotalBytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getTotalBytes" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getTotalBytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getNumPlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getNumPlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getNumPlanes" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getNumPlanes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getPlane",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPlane" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getPlane(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >(static_cast< const ofPixels_< float >& >(result))), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getChannel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< float > const *)arg1)->getChannel(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >(static_cast< const ofPixels_< float >& >(result))), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixelFormat result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixelFormat" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixelFormat)((ofPixels_< float > const *)arg1)->getPixelFormat(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; - int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getNumChannels",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->getNumChannels(); +SWIGINTERN PyObject *_wrap_ofFloatPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_size" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofImageType)((ofPixels_< float > const *)arg1)->getImageType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short > result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getChannel",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getChannel" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPixels_< unsigned short > const *)arg1)->getChannel(arg2); - resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >(static_cast< const ofPixels_< unsigned short >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; ofPixels_< unsigned short > arg3 ; - void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setChannel" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); +SWIGINTERN PyObject *_wrap_ofFloatPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; ofPixels_< float > arg3 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned short > const""'"); } + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< float > const""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned short > const""'"); } - else { ofPixels_< unsigned short > * temp = reinterpret_cast< ofPixels_< unsigned short > * >(argp3); arg3 = *temp; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< float > const""'"); } + else { ofPixels_< float > * temp = reinterpret_cast< ofPixels_< float > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->setChannel(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getImageType",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (ofImageType)((ofPixels_< unsigned short > const *)arg1)->getImageType(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setImageType",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setImageType" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; - int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setNumChannels" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofFloatPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setNumChannels" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofShortPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_size" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } - arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); - result = (int)((ofPixels_< unsigned short > const *)arg1)->size(); resultobj = SWIG_From_int(static_cast< int >(result)); +SWIGINTERN PyObject *_wrap_ofFloatPixels_pixelBitsFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixelFormat arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_pixelBitsFromPixelFormat",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatPixels_pixelBitsFromPixelFormat" "', argument " "1"" of type '" "ofPixelFormat""'"); } + arg1 = static_cast< ofPixelFormat >(val1); + result = ofPixels_< float >::SWIGTEMPLATEDISAMBIGUATOR pixelBitsFromPixelFormat(arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_bytesFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; size_t arg1 ; size_t arg2 ; ofPixelFormat arg3 ; size_t val1 ; int ecode1 = 0 ; size_t val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_bytesFromPixelFormat",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatPixels_bytesFromPixelFormat" "', argument " "1"" of type '" "size_t""'"); } + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_bytesFromPixelFormat" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_bytesFromPixelFormat" "', argument " "3"" of type '" "ofPixelFormat""'"); } + arg3 = static_cast< ofPixelFormat >(val3); + result = ofPixels_< float >::SWIGTEMPLATEDISAMBIGUATOR bytesFromPixelFormat(arg1,arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_begin" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::iterator)(arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_end" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::iterator)(arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::const_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_begin" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_iterator)((ofPixels_< float > const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::begin()\n" " ofPixels_< float >::begin() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::const_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_end" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_iterator)((ofPixels_< float > const *)arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_end__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::end()\n" " ofPixels_< float >::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::reverse_iterator)(arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rend" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::reverse_iterator)(arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_reverse_iterator)((ofPixels_< float > const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::rbegin()\n" " ofPixels_< float >::rbegin() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rend" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_reverse_iterator)((ofPixels_< float > const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::rend()\n" " ofPixels_< float >::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float >::Line result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getLine" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::Line(static_cast< const ofPixels_< float >::Line& >(result))), SWIGTYPE_p_ofPixels_T_float_t__Line, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< float >::Lines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getLines" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (arg1)->getLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::Lines(static_cast< const ofPixels_< float >::Lines& >(result))), SWIGTYPE_p_ofPixels_T_float_t__Lines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getConstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float >::ConstLine result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getConstLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getConstLine" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getConstLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< float > const *)arg1)->getConstLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::ConstLine(static_cast< const ofPixels_< float >::ConstLine& >(result))), SWIGTYPE_p_ofPixels_T_float_t__ConstLine, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getConstLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< float >::ConstLines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getConstLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getConstLines" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getConstLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getConstLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< float > const *)arg1)->getConstLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::ConstLines(static_cast< const ofPixels_< float >::ConstLines& >(result))), SWIGTYPE_p_ofPixels_T_float_t__ConstLines, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofShortPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *ofFloatPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_NewClientData(obj)); + SWIG_TypeNewClientData(SWIGTYPE_p_ofPixels_T_float_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_new_ofPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPath")) SWIG_fail; result = (ofPath *)new ofPath(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPath, SWIG_POINTER_NEW | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_clear" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_newSubPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_newSubPath",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_newSubPath" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->newSubPath(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_close" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_lineTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->lineTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_lineTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_lineTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->lineTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_lineTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_lineTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_lineTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->lineTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_lineTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_lineTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_lineTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_lineTo__SWIG_2(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_lineTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::lineTo(ofPoint const &)\n" " ofPath::lineTo(float,float)\n" - " ofPath::lineTo(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_moveTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->moveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_moveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_moveTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_moveTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->moveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_moveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_moveTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->moveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_moveTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_moveTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_moveTo__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_moveTo__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_moveTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::moveTo(ofPoint const &)\n" " ofPath::moveTo(float,float,float)\n" - " ofPath::moveTo(float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_curveTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->curveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortPixels")) SWIG_fail; + result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_curveTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->curveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_curveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_curveTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_curveTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->curveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_curveTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_curveTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_curveTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_curveTo__SWIG_2(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_curveTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::curveTo(ofPoint const &)\n" " ofPath::curveTo(float,float)\n" - " ofPath::curveTo(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); - (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_delete_ofShortPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >((ofPixels_< unsigned short > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_bezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_bezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_bezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > &&""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >((ofPixels_< unsigned short > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; - float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_bezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_bezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_bezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_bezierTo" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_bezierTo" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_bezierTo" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_bezierTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_bezierTo__SWIG_0(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_bezierTo__SWIG_1(self, args);} } } } } } } } if (argc == 10) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_bezierTo__SWIG_2(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_bezierTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" - " ofPath::bezierTo(float,float,float,float,float,float)\n" - " ofPath::bezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; - int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); - (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_new_ofShortPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofShortPixels__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortPixels__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortPixels__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::ofPixels_()\n" + " ofPixels_< unsigned short >::ofPixels_(ofPixels_< unsigned short > const &)\n" + " ofPixels_< unsigned short >::ofPixels_(ofPixels_< unsigned short > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocate" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofPixelFormat arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocate" "', argument " "4"" of type '" "ofPixelFormat""'"); } + arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofImageType arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_allocate__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_allocate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::allocate(size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::allocate(size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned short >::allocate(size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (bool)((ofPixels_< unsigned short > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_clear" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; +SWIGINTERN PyObject *_wrap_ofShortPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_set" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; unsigned short arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_set" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_set" "', argument " "3"" of type '" "unsigned short""'"); } + arg3 = static_cast< unsigned short >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofShortPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_set__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_set'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::set(unsigned short)\n" + " ofPixels_< unsigned short >::set(size_t,unsigned short)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_quadBezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_quadBezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_quadBezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; - float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_quadBezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_quadBezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_quadBezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_quadBezierTo" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_quadBezierTo" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_quadBezierTo" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_quadBezierTo__SWIG_0(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_quadBezierTo__SWIG_1(self, args);} } } } } } } } if (argc == 10) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_quadBezierTo__SWIG_2(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_quadBezierTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" - " ofPath::quadBezierTo(float,float,float,float,float,float)\n" - " ofPath::quadBezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "bool""'"); } - arg7 = static_cast< bool >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromPixels__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setFromPixels(unsigned short const *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::setFromPixels(unsigned short const *,size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned short >::setFromPixels(unsigned short const *,size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromExternalPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_arc" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_arc(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_arc__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_arc__SWIG_0(self, args);} } } } } } } } if (argc == 7) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_arc__SWIG_2(self, args);} } } } } } } } if (argc == 8) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_arc__SWIG_3(self, args);} } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_arc'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::arc(ofPoint const &,float,float,float,float,bool)\n" - " ofPath::arc(ofPoint const &,float,float,float,float)\n" " ofPath::arc(float,float,float,float,float,float)\n" - " ofPath::arc(float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned short *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromExternalPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned short *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromExternalPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromExternalPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromExternalPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setFromExternalPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setFromExternalPixels(unsigned short *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::setFromExternalPixels(unsigned short *,size_t,size_t,ofPixelFormat)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arcNegative" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arcNegative" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_arcNegative" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_arcNegative(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_arcNegative__SWIG_0(self, args);} } } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_arcNegative__SWIG_1(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_arcNegative__SWIG_2(self, args);} } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_arcNegative'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::arcNegative(ofPoint const &,float,float,float,float)\n" - " ofPath::arcNegative(float,float,float,float,float,float)\n" - " ofPath::arcNegative(float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_triangle" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_triangle" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_triangle" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->triangle(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; - float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_triangle" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_triangle" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_triangle" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_triangle" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_triangle" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_triangle" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->triangle(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "ofPoint const &""'"); } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; + int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + else { + std::vector< size_t,std::allocator< size_t > > * temp = reinterpret_cast< std::vector< size_t,std::allocator< size_t > > * >(argp6); + arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + std::vector< int,std::allocator< int > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + int res = swig::asptr(obj5, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< int,std::allocator< int > >""'"); } + arg6 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } + (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_2(self, args);} } } } + } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_1(self, args);} } } } } } } if (argc == 6) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[5], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_3(self, args);} } } } } } } + if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setFromAlignedPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,ofPixelFormat,size_t)\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,ofPixelFormat,std::vector< size_t,std::allocator< size_t > >)\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,ofPixelFormat,std::vector< int,std::allocator< int > >)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_swap" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); - (arg1)->triangle((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_triangle(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_triangle__SWIG_2(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_triangle__SWIG_0(self, args);} } } } } } } } if (argc == 10) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_triangle__SWIG_1(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_triangle'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::triangle(float,float,float,float,float,float)\n" - " ofPath::triangle(float,float,float,float,float,float,float,float,float)\n" - " ofPath::triangle(ofPoint const &,ofPoint const &,ofPoint const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_circle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_circle" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->circle(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofShortPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; + size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_crop" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_crop" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_crop" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_crop" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_crop" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; +SWIGINTERN PyObject *_wrap_ofShortPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_circle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_circle" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_circle" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->circle(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_circle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "ofPoint const &""'"); } + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_circle" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->circle((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_circle(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_circle__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_circle__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_circle__SWIG_1(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_circle'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::circle(float,float,float)\n" " ofPath::circle(float,float,float,float)\n" - " ofPath::circle(ofPoint const &,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_ellipse" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->ellipse(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_cropTo" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_cropTo" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_cropTo" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_cropTo" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); ((ofPixels_< unsigned short > const *)arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rotate90" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; int arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofPixels_< unsigned short > const *)arg1)->rotate90To(*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; bool arg3 ; + bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ((ofPixels_< unsigned short > const *)arg1)->mirrorTo(*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_mirror" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_ellipse" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_ellipse" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->ellipse(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "ofPoint const &""'"); } +SWIGINTERN PyObject *_wrap_ofShortPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofInterpolationMethod arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } + arg4 = static_cast< ofInterpolationMethod >(val4); result = (bool)(arg1)->resize(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->resize(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_resize__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_resize'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::resize(size_t,size_t,ofInterpolationMethod)\n" + " ofPixels_< unsigned short >::resize(size_t,size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + ofPixels_< unsigned short > *arg2 = 0 ; ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->ellipse((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_ellipse(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_ellipse__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_ellipse__SWIG_0(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_ellipse__SWIG_1(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_ellipse'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::ellipse(float,float,float,float)\n" - " ofPath::ellipse(float,float,float,float,float)\n" " ofPath::ellipse(ofPoint const &,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_rectangle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofRectangle const &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } + arg3 = static_cast< ofInterpolationMethod >(val3); + result = (bool)((ofPixels_< unsigned short > const *)arg1)->resizeTo(*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + ofPixels_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_resizeTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->rectangle((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); + result = (bool)((ofPixels_< unsigned short > const *)arg1)->resizeTo(*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortPixels_resizeTo__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_resizeTo__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_resizeTo'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::resizeTo(ofPixels_< unsigned short > &,ofInterpolationMethod) const\n" + " ofPixels_< unsigned short >::resizeTo(ofPixels_< unsigned short > &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->rectangle((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectangle" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->rectangle(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectangle" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectangle" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->rectangle(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectangle(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_rectangle__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectangle__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectangle__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectangle__SWIG_3(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_rectangle'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::rectangle(ofRectangle const &)\n" - " ofPath::rectangle(ofPoint const &,float,float)\n" " ofPath::rectangle(float,float,float,float)\n" - " ofPath::rectangle(float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_rectRounded",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_pasteInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_pasteInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned short > const *)arg1)->pasteInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_blendInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_blendInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_blendInto" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->rectRounded((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_blendInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_blendInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned short > const *)arg1)->blendInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_swapRgb",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->rectRounded((ofPoint const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofShortPixels_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); result = (unsigned short *)(arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (unsigned short *)((ofPixels_< unsigned short > const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getData__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_getData'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::getData()\n" + " ofPixels_< unsigned short >::getData() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); result = (unsigned short *)(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (unsigned short *)((ofPixels_< unsigned short > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::getPixels()\n" + " ofPixels_< unsigned short >::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getPixelIndex" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getPixelIndex" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned short > const *)arg1)->getPixelIndex(arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned short > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->rectRounded(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofShortPixels_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned short > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; - float arg8 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; - int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_rectRounded" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_rectRounded" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); (arg1)->rectRounded((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } +SWIGINTERN PyObject *_wrap_ofShortPixels_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::getColor(size_t,size_t) const\n" + " ofPixels_< unsigned short >::getColor(size_t) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofColor_< unsigned short > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShortPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + arg4 = reinterpret_cast< ofColor_< unsigned short > * >(argp4); + (arg1)->setColor(arg2,arg3,(ofColor_< unsigned short > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + ofColor_< unsigned short > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + arg3 = reinterpret_cast< ofColor_< unsigned short > * >(argp3); + (arg1)->setColor(arg2,(ofColor_< unsigned short > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->rectRounded((ofRectangle const &)*arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; - float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_rectRounded" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_rectRounded" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_rectRounded" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_rectRounded" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->rectRounded(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->setColor((ofColor_< unsigned short > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rectRounded(PyObject *self, PyObject *args) { int argc; PyObject *argv[11]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectRounded__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectRounded__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectRounded__SWIG_4(self, args);} } } } } } } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectRounded__SWIG_2(self, args);} } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectRounded__SWIG_3(self, args);} } } } } } } } } if (argc == 10) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_rectRounded__SWIG_5(self, args);} } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_rectRounded'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::rectRounded(ofRectangle const &,float)\n" - " ofPath::rectRounded(ofPoint const &,float,float,float)\n" " ofPath::rectRounded(float,float,float,float,float)\n" - " ofPath::rectRounded(ofPoint const &,float,float,float,float,float,float)\n" - " ofPath::rectRounded(ofRectangle const &,float,float,float,float)\n" - " ofPath::rectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_setPolyWindingMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPolyWindingMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setPolyWindingMode",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setPolyWindingMode" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setPolyWindingMode" "', argument " "2"" of type '" "ofPolyWindingMode""'"); } - arg2 = static_cast< ofPolyWindingMode >(val2); (arg1)->setPolyWindingMode(arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setFilled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFilled",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFilled" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setFilled" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setFilled(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setStrokeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeWidth",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeWidth" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setStrokeWidth" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->setStrokeWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortPixels_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setColor'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setColor(size_t,size_t,ofColor_< unsigned short > const &)\n" + " ofPixels_< unsigned short >::setColor(size_t,ofColor_< unsigned short > const &)\n" + " ofPixels_< unsigned short >::setColor(ofColor_< unsigned short > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); + result = (unsigned short *) &((ofPixels_< unsigned short > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (unsigned short *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setColor" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setColor" "', argument " "2"" of type '" "ofColor const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setColor" "', argument " "2"" of type '" "ofColor const &""'"); } - arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofShortPixels___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::operator [](size_t) const\n" + " ofPixels_< unsigned short >::operator [](size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getWidth(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setHexColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setHexColor" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setHexColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFillColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFillColor" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setFillColor" "', argument " "2"" of type '" "ofColor const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setFillColor" "', argument " "2"" of type '" "ofColor const &""'"); } - arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setFillColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofShortPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getHeight(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBytesPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBitsPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBitsPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBytesPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBitsPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBitsPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesStride",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesStride" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBytesStride(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getNumChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getNumChannels(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getTotalBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getTotalBytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getTotalBytes" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getTotalBytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getNumPlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getNumPlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getNumPlanes" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getNumPlanes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getPlane",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPlane" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getPlane(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >(static_cast< const ofPixels_< unsigned short >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setFillHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFillHexColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFillHexColor" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setFillHexColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setFillHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofShortPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getChannel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned short > const *)arg1)->getChannel(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >(static_cast< const ofPixels_< unsigned short >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixelFormat result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixelFormat" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixelFormat)((ofPixels_< unsigned short > const *)arg1)->getPixelFormat(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_size" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofImageType)((ofPixels_< unsigned short > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; ofPixels_< unsigned short > arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned short > const""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned short > const""'"); } + else { ofPixels_< unsigned short > * temp = reinterpret_cast< ofPixels_< unsigned short > * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->setChannel(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setStrokeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeColor" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setStrokeColor" "', argument " "2"" of type '" "ofColor const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setStrokeColor" "', argument " "2"" of type '" "ofColor const &""'"); } - arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setStrokeColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofShortPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setNumChannels" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_pixelBitsFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixelFormat arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_pixelBitsFromPixelFormat",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortPixels_pixelBitsFromPixelFormat" "', argument " "1"" of type '" "ofPixelFormat""'"); } + arg1 = static_cast< ofPixelFormat >(val1); + result = ofPixels_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR pixelBitsFromPixelFormat(arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_bytesFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; size_t arg1 ; size_t arg2 ; ofPixelFormat arg3 ; size_t val1 ; int ecode1 = 0 ; size_t val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_bytesFromPixelFormat",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortPixels_bytesFromPixelFormat" "', argument " "1"" of type '" "size_t""'"); } + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_bytesFromPixelFormat" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_bytesFromPixelFormat" "', argument " "3"" of type '" "ofPixelFormat""'"); } + arg3 = static_cast< ofPixelFormat >(val3); + result = ofPixels_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR bytesFromPixelFormat(arg1,arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::iterator)(arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::iterator)(arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::const_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_iterator)((ofPixels_< unsigned short > const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::begin()\n" + " ofPixels_< unsigned short >::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::const_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_iterator)((ofPixels_< unsigned short > const *)arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_end__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::end()\n" + " ofPixels_< unsigned short >::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::reverse_iterator)(arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::reverse_iterator)(arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_reverse_iterator)((ofPixels_< unsigned short > const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::rbegin()\n" + " ofPixels_< unsigned short >::rbegin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_reverse_iterator)((ofPixels_< unsigned short > const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::rend()\n" + " ofPixels_< unsigned short >::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short >::Line result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getLine" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::Line(static_cast< const ofPixels_< unsigned short >::Line& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__Line, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< unsigned short >::Lines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getLines" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (arg1)->getLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::Lines(static_cast< const ofPixels_< unsigned short >::Lines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__Lines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getConstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short >::ConstLine result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getConstLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getConstLine" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getConstLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned short > const *)arg1)->getConstLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::ConstLine(static_cast< const ofPixels_< unsigned short >::ConstLine& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLine, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getConstLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofPixels_< unsigned short >::ConstLines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getConstLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getConstLines" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getConstLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getConstLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned short > const *)arg1)->getConstLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::ConstLines(static_cast< const ofPixels_< unsigned short >::ConstLines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLines, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setStrokeHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeHexColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeHexColor" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setStrokeHexColor" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setStrokeHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *ofShortPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPath")) SWIG_fail; result = (ofPath *)new ofPath(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPath, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getWindingMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyWindingMode result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getWindingMode",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPath_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getWindingMode" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofPolyWindingMode)((ofPath const *)arg1)->getWindingMode(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_isFilled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_isFilled",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_clear" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_newSubPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_newSubPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_isFilled" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->isFilled(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getFillColor",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_newSubPath" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->newSubPath(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_close",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getFillColor" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = ((ofPath const *)arg1)->getFillColor(); - resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getStrokeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getStrokeColor",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_close" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_lineTo",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getStrokeColor" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = ((ofPath const *)arg1)->getStrokeColor(); - resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->lineTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getStrokeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getStrokeWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getStrokeWidth" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (float)((ofPath const *)arg1)->getStrokeWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_hasOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_hasOutline",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_hasOutline" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->hasOutline(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_draw",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_lineTo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_draw" "', argument " "1"" of type '" "ofPath *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_draw" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_draw",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->lineTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_lineTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_draw" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_lineTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->lineTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_lineTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_draw__SWIG_1(self, args);} } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_lineTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_draw__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_draw'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::draw(float,float)\n" " ofPath::draw()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_getOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofPolyline > *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getOutline",&obj0)) SWIG_fail; + return _wrap_ofPath_lineTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_lineTo__SWIG_2(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_lineTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::lineTo(ofPoint const &)\n" " ofPath::lineTo(float,float)\n" + " ofPath::lineTo(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_moveTo",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getOutline" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (std::vector< ofPolyline > *) &(arg1)->getOutline(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, 0 | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->moveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getTessellation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMesh *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getTessellation",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getTessellation" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofMesh *) &(arg1)->getTessellation(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_simplify__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_simplify",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_moveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_simplify" "', argument " "1"" of type '" "ofPath *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_simplify" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->simplify(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_simplify__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_simplify",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_moveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_moveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->moveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_moveTo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_simplify" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->simplify(); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_moveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->moveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_simplify(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; +SWIGINTERN PyObject *_wrap_ofPath_moveTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_simplify__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_moveTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPath_simplify__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_simplify'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::simplify(float)\n" " ofPath::simplify()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPath_flagShapeChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_flagShapeChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_flagShapeChanged" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->flagShapeChanged(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_hasChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_hasChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_hasChanged" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)(arg1)->hasChanged(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; ofPath::Mode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setMode",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setMode" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setMode" "', argument " "2"" of type '" "ofPath::Mode""'"); } - arg2 = static_cast< ofPath::Mode >(val2); (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPath::Mode result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getMode",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getMode" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofPath::Mode)(arg1)->getMode(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setCurveResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setCurveResolution",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setCurveResolution" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setCurveResolution" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setCurveResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setCircleResolution",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setCircleResolution" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setCircleResolution" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); (arg1)->setCircleResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCircleResolution",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCircleResolution" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (int)((ofPath const *)arg1)->getCircleResolution(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_setUseShapeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setUseShapeColor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setUseShapeColor" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setUseShapeColor" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setUseShapeColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getUseShapeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getUseShapeColor",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getUseShapeColor" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->getUseShapeColor(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_tessellate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPath_tessellate",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_tessellate" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->tessellate(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_moveTo__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_moveTo__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_moveTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::moveTo(ofPoint const &)\n" " ofPath::moveTo(float,float,float)\n" + " ofPath::moveTo(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_translate",&obj0,&obj1)) SWIG_fail; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_curveTo",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_translate" "', argument " "1"" of type '" "ofPath *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->translate((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_rotate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rotate" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rotate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->rotate(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->curveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_scale",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_scale" "', argument " "1"" of type '" "ofPath *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_scale" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_scale" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->scale(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getCommands__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::vector< ofPath::Command > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCommands",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCommands" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); result = (std::vector< ofPath::Command > *) &(arg1)->getCommands(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getCommands__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - std::vector< ofPath::Command > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCommands",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCommands" "', argument " "1"" of type '" "ofPath const *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); - result = (std::vector< ofPath::Command > *) &((ofPath const *)arg1)->getCommands(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0 | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPath_getCommands(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_getCommands__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPath_getCommands__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_getCommands'.\n" - " Possible C/C++ prototypes are:\n" " ofPath::getCommands()\n" " ofPath::getCommands() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_delete_ofPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPath",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPath" "', argument " "1"" of type '" "ofPath *""'"); } - arg1 = reinterpret_cast< ofPath * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *ofPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofPath, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_ofPolyline__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPolyline")) SWIG_fail; - result = (ofPolyline *)new ofPolyline(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPolyline, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofPolyline__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< ofPoint > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyline *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofPolyline",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofPolyline" "', argument " "1"" of type '" "std::vector< ofPoint > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofPolyline" "', argument " "1"" of type '" "std::vector< ofPoint > const &""'"); } - arg1 = reinterpret_cast< std::vector< ofPoint > * >(argp1); - result = (ofPolyline *)new ofPolyline((std::vector< ofPoint > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPolyline, SWIG_POINTER_NEW | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofPolyline(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_new_ofPolyline__SWIG_0(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ofPolyline__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofPolyline'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::ofPolyline()\n" - " ofPolyline::ofPolyline(std::vector< ofPoint > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_fromRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyline result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_fromRectangle",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_fromRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_fromRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } - arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ofPolyline::fromRectangle((ofRectangle const &)*arg1); - resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_clear" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_addVertex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->addVertex((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_addVertex",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_addVertex" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->addVertex(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->curveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_addVertex",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->addVertex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_curveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_curveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->curveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_addVertex(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPath_curveTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_addVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofPath_curveTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_addVertex__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofPath_curveTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_addVertex__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_addVertex'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::addVertex(ofPoint const &)\n" - " ofPolyline::addVertex(float,float,float)\n" " ofPolyline::addVertex(float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_addVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; std::vector< ofPoint > *arg2 = 0 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_addVertices",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertices" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "std::vector< ofPoint > const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "std::vector< ofPoint > const &""'"); } - arg2 = reinterpret_cast< std::vector< ofPoint > * >(argp2); (arg1)->addVertices((std::vector< ofPoint > const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_addVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = (ofPoint *) 0 ; int arg3 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_addVertices",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertices" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "ofPoint const *""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertices" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->addVertices((ofPoint const *)arg2,arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_addVertices(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); - _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPolyline_addVertices__SWIG_0(self, args);} } } if (argc == 3) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); - if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_addVertices__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_addVertices'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::addVertices(std::vector< ofPoint > const &)\n" - " ofPolyline::addVertices(ofPoint const *,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_lineTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + return _wrap_ofPath_curveTo__SWIG_2(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_curveTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::curveTo(ofPoint const &)\n" " ofPath::curveTo(float,float)\n" + " ofPath::curveTo(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->lineTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_lineTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_lineTo" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_lineTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->lineTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_lineTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_lineTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->lineTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_lineTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_bezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_bezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_bezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_lineTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_bezierTo__SWIG_0(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_lineTo__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_bezierTo__SWIG_1(self, args);} } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_lineTo__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_lineTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::lineTo(ofPoint const &)\n" " ofPolyline::lineTo(float,float,float)\n" - " ofPolyline::lineTo(float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_insertVertex",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_insertVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_bezierTo__SWIG_2(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_bezierTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPath::bezierTo(float,float,float,float,float,float)\n" + " ofPath::bezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_insertVertex" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->insertVertex((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; int arg5 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_insertVertex",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_insertVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_insertVertex" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_insertVertex" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_insertVertex" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->insertVertex(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_insertVertex__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_quadBezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_quadBezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_quadBezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_quadBezierTo__SWIG_0(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_insertVertex__SWIG_1(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_insertVertex'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::insertVertex(ofPoint const &,int)\n" - " ofPolyline::insertVertex(float,float,float,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; - int arg8 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int val8 ; - int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_quadBezierTo__SWIG_1(self, args);} } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_quadBezierTo__SWIG_2(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_quadBezierTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPath::quadBezierTo(float,float,float,float,float,float)\n" + " ofPath::quadBezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "bool""'"); } - arg7 = static_cast< bool >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "int""'"); } - arg8 = static_cast< int >(val8); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; int arg7 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "int""'"); } - arg7 = static_cast< int >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; int arg8 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "int""'"); } - arg8 = static_cast< int >(val8); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "float""'"); } arg7 = static_cast< float >(val7); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; - float arg8 ; int arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - float val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "float""'"); } arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_int(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_arc" "', argument " "9"" of type '" "int""'"); } - arg9 = static_cast< int >(val9); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_arc" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arc(PyObject *self, PyObject *args) { int argc; PyObject *argv[10]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { +SWIGINTERN PyObject *_wrap_ofPath_arc(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arc__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arc__SWIG_2(self, args);} } } } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_arc__SWIG_0(self, args);} } } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arc__SWIG_1(self, args);} } } } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arc__SWIG_5(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arc__SWIG_0(self, args);} } } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofPath_arc__SWIG_1(self, args);} } } } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arc__SWIG_4(self, args);} } } } } } } } } if (argc == 9) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arc__SWIG_2(self, args);} } } } } } } } if (argc == 8) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arc__SWIG_6(self, args);} } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_arc'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::arc(ofPoint const &,float,float,float,float,bool,int)\n" - " ofPolyline::arc(ofPoint const &,float,float,float,float,bool)\n" - " ofPolyline::arc(ofPoint const &,float,float,float,float,int)\n" - " ofPolyline::arc(ofPoint const &,float,float,float,float)\n" - " ofPolyline::arc(float,float,float,float,float,float,int)\n" " ofPolyline::arc(float,float,float,float,float,float)\n" - " ofPolyline::arc(float,float,float,float,float,float,float,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "int""'"); } - arg7 = static_cast< int >(val7); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arc__SWIG_3(self, args);} } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_arc'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::arc(ofPoint const &,float,float,float,float)\n" + " ofPath::arc(ofPoint const &,float,float,float,float,bool)\n" " ofPath::arc(float,float,float,float,float,float)\n" + " ofPath::arc(float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } arg6 = static_cast< float >(val6); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arcNegative" "', argument " "8"" of type '" "int""'"); } - arg8 = static_cast< int >(val8); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arcNegative" "', argument " "7"" of type '" "float""'"); } arg7 = static_cast< float >(val7); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; float arg8 ; int arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arcNegative" "', argument " "7"" of type '" "float""'"); } arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arcNegative" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_int(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_arcNegative" "', argument " "9"" of type '" "int""'"); } - arg9 = static_cast< int >(val9); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_arcNegative" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative(PyObject *self, PyObject *args) { int argc; PyObject *argv[10]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { +SWIGINTERN PyObject *_wrap_ofPath_arcNegative(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arcNegative__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arcNegative__SWIG_0(self, args);} } } } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofPath_arcNegative__SWIG_0(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arcNegative__SWIG_3(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arcNegative__SWIG_2(self, args);} } } } } } } } } if (argc == 9) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofPath_arcNegative__SWIG_1(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_arcNegative__SWIG_4(self, args);} } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_arcNegative'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::arcNegative(ofPoint const &,float,float,float,float,int)\n" - " ofPolyline::arcNegative(ofPoint const &,float,float,float,float)\n" - " ofPolyline::arcNegative(float,float,float,float,float,float,int)\n" - " ofPolyline::arcNegative(float,float,float,float,float,float)\n" - " ofPolyline::arcNegative(float,float,float,float,float,float,float,int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); (arg1)->curveTo((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_curveTo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->curveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_curveTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_curveTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_curveTo" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->curveTo(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_curveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_curveTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->curveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->curveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_curveTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_curveTo__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_curveTo__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_curveTo__SWIG_4(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_curveTo__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_curveTo__SWIG_2(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_curveTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::curveTo(ofPoint const &,int)\n" - " ofPolyline::curveTo(ofPoint const &)\n" " ofPolyline::curveTo(float,float,float,int)\n" - " ofPolyline::curveTo(float,float,float)\n" " ofPolyline::curveTo(float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; - int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; - void *argp4 = 0 ; int res4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,arg5); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; - int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); - (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "int""'"); } - arg8 = static_cast< int >(val8); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arcNegative__SWIG_2(self, args);} } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_arcNegative'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::arcNegative(ofPoint const &,float,float,float,float)\n" + " ofPath::arcNegative(float,float,float,float,float,float)\n" + " ofPath::arcNegative(float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_triangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_triangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_triangle" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->triangle(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; +SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; int arg11 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; - int ecode10 = 0 ; int val11 ; int ecode11 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_bezierTo" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_bezierTo" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_int(obj10, &val11); if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofPolyline_bezierTo" "', argument " "11"" of type '" "int""'"); } - arg11 = static_cast< int >(val11); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; - int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_bezierTo" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_bezierTo" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_triangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_triangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_triangle" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_triangle" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_triangle" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_triangle" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->triangle(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[12]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 11) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { +SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->triangle((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_triangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_bezierTo__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_bezierTo__SWIG_0(self, args);} } } } } } if (argc == 7) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofPath_triangle__SWIG_2(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_bezierTo__SWIG_3(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofPath_triangle__SWIG_0(self, args);} } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_bezierTo__SWIG_2(self, args);} } } } } } } } } if (argc == 10) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_triangle__SWIG_1(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_triangle'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::triangle(float,float,float,float,float,float)\n" + " ofPath::triangle(float,float,float,float,float,float,float,float,float)\n" + " ofPath::triangle(ofPoint const &,ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_circle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_circle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->circle(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_circle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_circle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_circle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->circle(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_circle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_circle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->circle((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_circle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_circle__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_circle__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_circle__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_circle'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::circle(float,float,float)\n" " ofPath::circle(float,float,float,float)\n" + " ofPath::circle(ofPoint const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_ellipse" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->ellipse(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_ellipse" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_ellipse" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->ellipse(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->ellipse((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_ellipse__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_ellipse__SWIG_0(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_bezierTo__SWIG_5(self, args);} } } } } } } } } } } if (argc == 11) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_ellipse__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_ellipse'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::ellipse(float,float,float,float)\n" + " ofPath::ellipse(float,float,float,float,float)\n" " ofPath::ellipse(ofPoint const &,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_rectangle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->rectangle((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->rectangle((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rectangle(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->rectangle(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_rectangle__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectangle__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectangle__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_bezierTo__SWIG_4(self, args);} } } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_bezierTo'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &,int)\n" - " ofPolyline::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" - " ofPolyline::bezierTo(float,float,float,float,float,float,int)\n" - " ofPolyline::bezierTo(float,float,float,float,float,float)\n" - " ofPolyline::bezierTo(float,float,float,float,float,float,float,float,float,int)\n" - " ofPolyline::bezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; int arg11 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; - int ecode10 = 0 ; int val11 ; int ecode11 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectangle__SWIG_3(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_rectangle'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::rectangle(ofRectangle const &)\n" + " ofPath::rectangle(ofPoint const &,float,float)\n" " ofPath::rectangle(float,float,float,float)\n" + " ofPath::rectangle(float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_rectRounded",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->rectRounded((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_quadBezierTo" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_quadBezierTo" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_int(obj10, &val11); if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofPolyline_quadBezierTo" "', argument " "11"" of type '" "int""'"); } - arg11 = static_cast< int >(val11); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; - int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rectRounded((ofPoint const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_quadBezierTo" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_quadBezierTo" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; - int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; - void *argp4 = 0 ; int res4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "int""'"); } - arg5 = static_cast< int >(val5); - (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,arg5); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->rectRounded(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; - int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + float arg8 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; + int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } - arg4 = reinterpret_cast< ofPoint * >(argp4); - (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_rectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_rectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); (arg1)->rectRounded((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "int""'"); } - arg8 = static_cast< int >(val8); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->rectRounded((ofRectangle const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo(PyObject *self, PyObject *args) { int argc; PyObject *argv[12]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 11) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_quadBezierTo__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_quadBezierTo__SWIG_2(self, args);} } } } } } if (argc == 7) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_rectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_rectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_rectRounded" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_rectRounded" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->rectRounded(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_quadBezierTo__SWIG_5(self, args);} } } } } } } } if (argc == 8) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_4(self, args);} } } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_quadBezierTo__SWIG_4(self, args);} } } } } } } } } if (argc == 10) { - int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); - if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_2(self, args);} } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_quadBezierTo__SWIG_1(self, args);} } } } } } } } } } } - if (argc == 11) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); - _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_3(self, args);} } } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -39527,233 +43911,570 @@ SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo(PyObject *self, PyObject *arg int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_quadBezierTo__SWIG_0(self, args);} } } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_quadBezierTo'.\n" - " Possible C/C++ prototypes are:\n" - " ofPolyline::quadBezierTo(float,float,float,float,float,float,float,float,float,int)\n" - " ofPolyline::quadBezierTo(float,float,float,float,float,float,float,float,float)\n" - " ofPolyline::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &,int)\n" - " ofPolyline::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" - " ofPolyline::quadBezierTo(float,float,float,float,float,float,int)\n" - " ofPolyline::quadBezierTo(float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofPolyline result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_getSmoothed",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getSmoothed" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getSmoothed" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_getSmoothed" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = ((ofPolyline const *)arg1)->getSmoothed(arg2,arg3); + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_5(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_rectRounded'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::rectRounded(ofRectangle const &,float)\n" + " ofPath::rectRounded(ofPoint const &,float,float,float)\n" " ofPath::rectRounded(float,float,float,float,float)\n" + " ofPath::rectRounded(ofPoint const &,float,float,float,float,float,float)\n" + " ofPath::rectRounded(ofRectangle const &,float,float,float,float)\n" + " ofPath::rectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_setPolyWindingMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPolyWindingMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setPolyWindingMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setPolyWindingMode" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setPolyWindingMode" "', argument " "2"" of type '" "ofPolyWindingMode""'"); } + arg2 = static_cast< ofPolyWindingMode >(val2); (arg1)->setPolyWindingMode(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getWindingMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyWindingMode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getWindingMode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getWindingMode" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofPolyWindingMode)((ofPath const *)arg1)->getWindingMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setFilled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFilled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFilled" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setFilled" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setFilled(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setStrokeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeWidth" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setStrokeWidth" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setStrokeWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setColor" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setColor" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setHexColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setHexColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setHexColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFillColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFillColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setFillColor" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setFillColor" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setFillColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setFillHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFillHexColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFillHexColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setFillHexColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setFillHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setStrokeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setStrokeColor" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setStrokeColor" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setStrokeColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setStrokeHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeHexColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeHexColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setStrokeHexColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setStrokeHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_isFilled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_isFilled",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_isFilled" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->isFilled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getFillColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getFillColor" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = ((ofPath const *)arg1)->getFillColor(); + resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getStrokeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getStrokeColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getStrokeColor" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = ((ofPath const *)arg1)->getStrokeColor(); + resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getStrokeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getStrokeWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getStrokeWidth" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (float)((ofPath const *)arg1)->getStrokeWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_hasOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_hasOutline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_hasOutline" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->hasOutline(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setCurveResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setCurveResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setCurveResolution" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setCurveResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setCurveResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setCircleResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setCircleResolution" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setCircleResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setCircleResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCircleResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCircleResolution" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (int)((ofPath const *)arg1)->getCircleResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setUseShapeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setUseShapeColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setUseShapeColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setUseShapeColor" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseShapeColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getUseShapeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getUseShapeColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getUseShapeColor" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->getUseShapeColor(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_draw" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ((ofPath const *)arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_draw" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofPath const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_draw__SWIG_0(self, args);} } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_draw__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_draw'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::draw() const\n" " ofPath::draw(float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_getOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofPolyline > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getOutline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getOutline" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (std::vector< ofPolyline > *) &((ofPath const *)arg1)->getOutline(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_tessellate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_tessellate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_tessellate" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->tessellate(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getTessellation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMesh *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getTessellation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getTessellation" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofMesh *) &((ofPath const *)arg1)->getTessellation(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_simplify__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_simplify",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_simplify" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_simplify" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->simplify(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_simplify__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_simplify",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_simplify" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->simplify(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_simplify(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_simplify__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_simplify__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_simplify'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::simplify(float)\n" " ofPath::simplify()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_translate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_translate" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->translate((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_rotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rotate" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->rotate(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_scale",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_scale" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_scale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->scale(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPath *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_append",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_append" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPath, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_append" "', argument " "2"" of type '" "ofPath const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_append" "', argument " "2"" of type '" "ofPath const &""'"); } + arg2 = reinterpret_cast< ofPath * >(argp2); (arg1)->append((ofPath const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPath::Mode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setMode" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setMode" "', argument " "2"" of type '" "ofPath::Mode""'"); } + arg2 = static_cast< ofPath::Mode >(val2); (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPath::Mode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getMode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getMode" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofPath::Mode)(arg1)->getMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCommands__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofPath::Command > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCommands",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCommands" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (std::vector< ofPath::Command > *) &(arg1)->getCommands(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCommands__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofPath::Command > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCommands",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCommands" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + result = (std::vector< ofPath::Command > *) &((ofPath const *)arg1)->getCommands(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCommands(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_getCommands__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_getCommands__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_getCommands'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::getCommands()\n" " ofPath::getCommands() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPath",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPath" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPath, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofPolyline__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPolyline")) SWIG_fail; + result = (ofPolyline *)new ofPolyline(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPolyline, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPolyline__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< ofPoint > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyline *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofPolyline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofPolyline" "', argument " "1"" of type '" "std::vector< ofPoint > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofPolyline" "', argument " "1"" of type '" "std::vector< ofPoint > const &""'"); } + arg1 = reinterpret_cast< std::vector< ofPoint > * >(argp1); + result = (ofPolyline *)new ofPolyline((std::vector< ofPoint > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPolyline, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPolyline(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofPolyline__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ofPolyline__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofPolyline'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::ofPolyline()\n" + " ofPolyline::ofPolyline(std::vector< ofPoint > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_fromRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_fromRectangle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_fromRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_fromRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ofPolyline::fromRectangle((ofRectangle const &)*arg1); resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getSmoothed",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getSmoothed" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getSmoothed" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getSmoothed(arg2); - resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_getSmoothed__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_getSmoothed__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getSmoothed'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::getSmoothed(int,float) const\n" - " ofPolyline::getSmoothed(int) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_getResampledBySpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getResampledBySpacing",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_clear" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_addVertex",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getResampledBySpacing" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getResampledBySpacing" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getResampledBySpacing(arg2); - resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->addVertex((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getResampledByCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getResampledByCount",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_addVertex",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getResampledByCount" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getResampledByCount" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getResampledByCount(arg2); - resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofRectangle result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getBoundingBox",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_addVertex" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->addVertex(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_addVertex",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getBoundingBox" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getBoundingBox(); - resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; unsigned int *arg3 = (unsigned int *) 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_getClosestPoint",&obj0,&obj1,&obj2)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->addVertex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_addVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_addVertex__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_addVertex__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_addVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::addVertex(ofPoint const &)\n" + " ofPolyline::addVertex(float,float,float)\n" " ofPolyline::addVertex(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; std::vector< ofPoint > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_addVertices",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getClosestPoint" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertices" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "std::vector< ofPoint > const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_getClosestPoint" "', argument " "3"" of type '" "unsigned int *""'"); } - arg3 = reinterpret_cast< unsigned int * >(argp3); - result = ((ofPolyline const *)arg1)->getClosestPoint((ofPoint const &)*arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getClosestPoint",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "std::vector< ofPoint > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofPoint > * >(argp2); (arg1)->addVertices((std::vector< ofPoint > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = (ofPoint *) 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_addVertices",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getClosestPoint" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertices" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); result = ((ofPolyline const *)arg1)->getClosestPoint((ofPoint const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "ofPoint const *""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertices" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->addVertices((ofPoint const *)arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPolyline_addVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_getClosestPoint__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_getClosestPoint__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getClosestPoint'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::getClosestPoint(ofPoint const &,unsigned int *) const\n" - " ofPolyline::getClosestPoint(ofPoint const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; ofPolyline *arg3 = 0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; - int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_inside",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPolyline, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "ofPolyline const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "ofPolyline const &""'"); } - arg3 = reinterpret_cast< ofPolyline * >(argp3); result = (bool)ofPolyline::inside(arg1,arg2,(ofPolyline const &)*arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; ofPolyline *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_inside",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPoint const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPoint const &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyline, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPolyline const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPolyline const &""'"); } - arg2 = reinterpret_cast< ofPolyline * >(argp2); - result = (bool)ofPolyline::inside((ofVec3f const &)*arg1,(ofPolyline const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_inside",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (bool)((ofPolyline const *)arg1)->inside(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_inside",&obj0,&obj1)) SWIG_fail; + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPolyline_addVertices__SWIG_0(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_addVertices__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_addVertices'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::addVertices(std::vector< ofPoint > const &)\n" + " ofPolyline::addVertices(ofPoint const *,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_insertVertex",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_insertVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); result = (bool)((ofPolyline const *)arg1)->inside((ofPoint const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_inside(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_inside__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_inside__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_inside__SWIG_2(self, args);} } } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_inside__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_inside'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::inside(float,float,ofPolyline const &)\n" - " ofPolyline::inside(ofPoint const &,ofPolyline const &)\n" " ofPolyline::inside(float,float) const\n" - " ofPolyline::inside(ofPoint const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_simplify__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_simplify",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_insertVertex" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->insertVertex((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_insertVertex",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_simplify" "', argument " "1"" of type '" "ofPolyline *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_insertVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_simplify" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->simplify(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_simplify__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_simplify",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_simplify" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->simplify(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_simplify(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_insertVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_insertVertex" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_insertVertex" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->insertVertex(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_simplify__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_insertVertex__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofPolyline_simplify__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_simplify'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::simplify(float)\n" " ofPolyline::simplify()\n"); return 0; } + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_insertVertex__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_insertVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::insertVertex(ofPoint const &,int)\n" + " ofPolyline::insertVertex(float,float,float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_resize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_resize" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofPolyline_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_size",&obj0)) SWIG_fail; @@ -39781,8 +44502,8 @@ SWIGINTERN PyObject *_wrap_ofPolyline___getitem____SWIG_1(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline___getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (ofPoint *) &(arg1)->operator [](arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPolyline___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -39793,51 +44514,6 @@ SWIGINTERN PyObject *_wrap_ofPolyline___getitem__(PyObject *self, PyObject *args SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline___getitem__'.\n" " Possible C/C++ prototypes are:\n" " ofPolyline::operator [](int) const\n" " ofPolyline::operator [](int)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_resize" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_resize" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< size_t >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_setClosed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_setClosed",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setClosed" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_setClosed" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); (arg1)->setClosed(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_isClosed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_isClosed",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_isClosed" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (bool)((ofPolyline const *)arg1)->isClosed(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_close" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_hasChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_hasChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_hasChanged" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (bool)(arg1)->hasChanged(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_flagHasChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_flagHasChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_flagHasChanged" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->flagHasChanged(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofPolyline_getVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofPoint > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getVertices",&obj0)) SWIG_fail; @@ -39855,8 +44531,8 @@ SWIGINTERN PyObject *_wrap_ofPolyline_getVertices__SWIG_1(PyObject *SWIGUNUSEDPA result = (std::vector< ofPoint > *) &((ofPolyline const *)arg1)->getVertices(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getVertices(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofPolyline_getVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPolyline_getVertices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -39864,870 +44540,1663 @@ SWIGINTERN PyObject *_wrap_ofPolyline_getVertices(PyObject *self, PyObject *args return _wrap_ofPolyline_getVertices__SWIG_1(self, args);} } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getVertices'.\n" " Possible C/C++ prototypes are:\n" " ofPolyline::getVertices()\n" " ofPolyline::getVertices() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_getPerimeter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getPerimeter",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPerimeter" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (float)((ofPolyline const *)arg1)->getPerimeter(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getArea",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_begin" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getArea" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (float)((ofPolyline const *)arg1)->getArea(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getCentroid2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getCentroid2D",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_begin" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::begin()\n" " ofPolyline::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getCentroid2D" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getCentroid2D(); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rbegin" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->rbegin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rbegin" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::rbegin()\n" " ofPolyline::rbegin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_end" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->end(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_end" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->end(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_end__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::end()\n" " ofPolyline::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rend" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->rend(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rend" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::rend()\n" " ofPolyline::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_lineTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->lineTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_lineTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_lineTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->lineTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_lineTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->lineTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_lineTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_lineTo__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_lineTo__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_lineTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::lineTo(ofPoint const &)\n" " ofPolyline::lineTo(float,float,float)\n" + " ofPolyline::lineTo(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; + int arg8 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int val8 ; + int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_draw",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_draw" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofVec3f arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_setRightVector",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; int arg7 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setRightVector" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_setRightVector" "', argument " "2"" of type '" "ofVec3f""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_setRightVector" "', argument " "2"" of type '" "ofVec3f""'"); } - else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } - (arg1)->setRightVector(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_setRightVector",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setRightVector" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->setRightVector(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_setRightVector__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofPolyline_setRightVector__SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_setRightVector'.\n" - " Possible C/C++ prototypes are:\n" " ofPolyline::setRightVector(ofVec3f)\n" " ofPolyline::setRightVector()\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofPolyline_getRightVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getRightVector",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; int arg8 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRightVector" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getRightVector(); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getIndexAtLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getIndexAtLength",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getIndexAtLength" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getIndexAtLength" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getIndexAtLength(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getIndexAtPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getIndexAtPercent",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + float arg8 ; int arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getIndexAtPercent" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getIndexAtPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getIndexAtPercent(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getLengthAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getLengthAtIndex",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_int(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_arc" "', argument " "9"" of type '" "int""'"); } + arg9 = static_cast< int >(val9); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_1(self, args);} } } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_2(self, args);} } } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_5(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_0(self, args);} } } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_4(self, args);} } } } } } } } } if (argc == 9) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_6(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_arc'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::arc(ofPoint const &,float,float,float,float,bool,int)\n" + " ofPolyline::arc(ofPoint const &,float,float,float,float,bool)\n" + " ofPolyline::arc(ofPoint const &,float,float,float,float,int)\n" + " ofPolyline::arc(ofPoint const &,float,float,float,float)\n" + " ofPolyline::arc(float,float,float,float,float,float,int)\n" " ofPolyline::arc(float,float,float,float,float,float)\n" + " ofPolyline::arc(float,float,float,float,float,float,float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getLengthAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getLengthAtIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (float)((ofPolyline const *)arg1)->getLengthAtIndex(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getLengthAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getLengthAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getLengthAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getLengthAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getLengthAtIndexInterpolated(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtLength",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtLength" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtLength" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtLength(arg2); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arcNegative" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtPercent",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtPercent" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtPercent" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtPercent(arg2); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; int arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtIndexInterpolated(arg2); - resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arcNegative" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_int(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_arcNegative" "', argument " "9"" of type '" "int""'"); } + arg9 = static_cast< int >(val9); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getAngleAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getAngleAtIndex",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_0(self, args);} } } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_3(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_2(self, args);} } } } } } } } } if (argc == 9) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_4(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_arcNegative'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::arcNegative(ofPoint const &,float,float,float,float,int)\n" + " ofPolyline::arcNegative(ofPoint const &,float,float,float,float)\n" + " ofPolyline::arcNegative(float,float,float,float,float,float,int)\n" + " ofPolyline::arcNegative(float,float,float,float,float,float)\n" + " ofPolyline::arcNegative(float,float,float,float,float,float,float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getAngleAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getAngleAtIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (float)((ofPolyline const *)arg1)->getAngleAtIndex(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getAngleAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getAngleAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->curveTo((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_curveTo",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getAngleAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->curveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_curveTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getAngleAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getAngleAtIndexInterpolated(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getRotationAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getRotationAtIndex",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_curveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_curveTo" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->curveTo(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_curveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRotationAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getRotationAtIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getRotationAtIndex(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getRotationAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getRotationAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_curveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->curveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRotationAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getRotationAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getRotationAtIndexInterpolated(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getTangentAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getTangentAtIndex",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->curveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_4(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_curveTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::curveTo(ofPoint const &,int)\n" + " ofPolyline::curveTo(ofPoint const &)\n" " ofPolyline::curveTo(float,float,float,int)\n" + " ofPolyline::curveTo(float,float,float)\n" " ofPolyline::curveTo(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getTangentAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getTangentAtIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getTangentAtIndex(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getTangentAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getTangentAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getTangentAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getTangentAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getTangentAtIndexInterpolated(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getNormalAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getNormalAtIndex",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getNormalAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getNormalAtIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getNormalAtIndex(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getNormalAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getNormalAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; int arg11 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; int val11 ; int ecode11 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getNormalAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getNormalAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getNormalAtIndexInterpolated(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPolyline_getWrappedIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getWrappedIndex",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_bezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_bezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_int(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofPolyline_bezierTo" "', argument " "11"" of type '" "int""'"); } + arg11 = static_cast< int >(val11); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getWrappedIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getWrappedIndex" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (int)((ofPolyline const *)arg1)->getWrappedIndex(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_ofPolyline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPolyline",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPolyline" "', argument " "1"" of type '" "ofPolyline *""'"); } - arg1 = reinterpret_cast< ofPolyline * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *ofPolyline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ofPolyline, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; ofRectangle arg4 ; bool val2 ; int ecode2 = 0 ; - bool val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBeginSaveScreenAsPDF",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofRectangle, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "4"" of type '" "ofRectangle""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBeginSaveScreenAsPDF" "', argument " "4"" of type '" "ofRectangle""'"); } - else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } - } ofBeginSaveScreenAsPDF(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofBeginSaveScreenAsPDF",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); ofBeginSaveScreenAsPDF(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBeginSaveScreenAsPDF",&obj0,&obj1)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< bool >(val2); ofBeginSaveScreenAsPDF(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofBeginSaveScreenAsPDF",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofBeginSaveScreenAsPDF(arg1); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBeginSaveScreenAsPDF__SWIG_3(self, args);} } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBeginSaveScreenAsPDF__SWIG_2(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBeginSaveScreenAsPDF__SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBeginSaveScreenAsPDF__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBeginSaveScreenAsPDF'.\n" - " Possible C/C++ prototypes are:\n" " ofBeginSaveScreenAsPDF(std::string,bool,bool,ofRectangle)\n" - " ofBeginSaveScreenAsPDF(std::string,bool,bool)\n" " ofBeginSaveScreenAsPDF(std::string,bool)\n" - " ofBeginSaveScreenAsPDF(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofEndSaveScreenAsPDF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEndSaveScreenAsPDF")) SWIG_fail; ofEndSaveScreenAsPDF(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPushView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofPushView")) SWIG_fail; ofPushView(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPopView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofPopView")) SWIG_fail; ofPopView(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofViewport",&obj0)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofViewport" "', argument " "1"" of type '" "ofRectangle""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofViewport" "', argument " "1"" of type '" "ofRectangle""'"); } - else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } - } ofViewport(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; bool arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofViewport",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofViewport" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofViewport" "', argument " "5"" of type '" "bool""'"); } - arg5 = static_cast< bool >(val5); ofViewport(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofViewport",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofViewport" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ofViewport(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofViewport",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofViewport(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofViewport",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofViewport(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofViewport",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofViewport(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofViewport")) SWIG_fail; ofViewport(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofViewport(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofViewport__SWIG_6(self, args);} if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofViewport__SWIG_0(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofViewport__SWIG_5(self, args);} } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofViewport__SWIG_4(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_bezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_bezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[12] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 11) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_0(self, args);} } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofViewport__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_3(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofViewport__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_2(self, args);} } } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofViewport__SWIG_1(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofViewport'.\n" - " Possible C/C++ prototypes are:\n" " ofViewport(ofRectangle)\n" " ofViewport(float,float,float,float,bool)\n" - " ofViewport(float,float,float,float)\n" " ofViewport(float,float,float)\n" " ofViewport(float,float)\n" - " ofViewport(float)\n" " ofViewport()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_5(self, args);} } } } } } } } } } } if (argc == 11) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_4(self, args);} } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_bezierTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &,int)\n" + " ofPolyline::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float,int)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float,float,float,float,int)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; int arg11 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; int val11 ; int ecode11 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenPerspective" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSetupScreenPerspective" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ofSetupScreenPerspective(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_quadBezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_quadBezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_int(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofPolyline_quadBezierTo" "', argument " "11"" of type '" "int""'"); } + arg11 = static_cast< int >(val11); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_quadBezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_quadBezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); + (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenPerspective" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ofSetupScreenPerspective(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofSetupScreenPerspective(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofSetupScreenPerspective",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofSetupScreenPerspective(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetupScreenPerspective",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofSetupScreenPerspective(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofSetupScreenPerspective")) SWIG_fail; - ofSetupScreenPerspective(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofSetupScreenPerspective__SWIG_5(self, args);} if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenPerspective__SWIG_4(self, args);} } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenPerspective__SWIG_3(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenPerspective__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[12] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 11) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_2(self, args);} } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenPerspective__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_5(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenPerspective__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupScreenPerspective'.\n" - " Possible C/C++ prototypes are:\n" " ofSetupScreenPerspective(float,float,float,float,float)\n" - " ofSetupScreenPerspective(float,float,float,float)\n" " ofSetupScreenPerspective(float,float,float)\n" - " ofSetupScreenPerspective(float,float)\n" " ofSetupScreenPerspective(float)\n" " ofSetupScreenPerspective()\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupScreenOrtho",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenOrtho" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenOrtho" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ofSetupScreenOrtho(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupScreenOrtho",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenOrtho" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofSetupScreenOrtho(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetupScreenOrtho",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofSetupScreenOrtho(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetupScreenOrtho",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofSetupScreenOrtho(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSetupScreenOrtho")) SWIG_fail; ofSetupScreenOrtho(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofSetupScreenOrtho__SWIG_4(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetupScreenOrtho__SWIG_3(self, args);} } if (argc == 2) { int _v; - { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenOrtho__SWIG_2(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenOrtho__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_4(self, args);} } } } } } } } } if (argc == 10) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSetupScreenOrtho__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupScreenOrtho'.\n" - " Possible C/C++ prototypes are:\n" " ofSetupScreenOrtho(float,float,float,float)\n" - " ofSetupScreenOrtho(float,float,float)\n" " ofSetupScreenOrtho(float,float)\n" " ofSetupScreenOrtho(float)\n" - " ofSetupScreenOrtho()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofGetCurrentViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentViewport")) SWIG_fail; result = ofGetCurrentViewport(); - resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_1(self, args);} } } } } } } } } } } + if (argc == 11) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_0(self, args);} } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_quadBezierTo'.\n" + " Possible C/C++ prototypes are:\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float,float,float,float,int)\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float,float,float,float)\n" + " ofPolyline::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &,int)\n" + " ofPolyline::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float,int)\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofPolyline result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_getSmoothed",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getSmoothed" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getSmoothed" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_getSmoothed" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofPolyline const *)arg1)->getSmoothed(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetNativeViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle result; if (!PyArg_ParseTuple(args,(char *)":ofGetNativeViewport")) SWIG_fail; result = ofGetNativeViewport(); - resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getSmoothed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getSmoothed" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getSmoothed" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getSmoothed(arg2); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetViewportWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int result; if (!PyArg_ParseTuple(args,(char *)":ofGetViewportWidth")) SWIG_fail; result = (int)ofGetViewportWidth(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetViewportHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int result; if (!PyArg_ParseTuple(args,(char *)":ofGetViewportHeight")) SWIG_fail; result = (int)ofGetViewportHeight(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofOrientationToDegrees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofOrientation arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofOrientationToDegrees",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofOrientationToDegrees" "', argument " "1"" of type '" "ofOrientation""'"); } - arg1 = static_cast< ofOrientation >(val1); result = (int)ofOrientationToDegrees(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetCoordHandedness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofHandednessType arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetCoordHandedness",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCoordHandedness" "', argument " "1"" of type '" "ofHandednessType""'"); } - arg1 = static_cast< ofHandednessType >(val1); ofSetCoordHandedness(arg1); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetCoordHandedness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofHandednessType result; if (!PyArg_ParseTuple(args,(char *)":ofGetCoordHandedness")) SWIG_fail; - result = (ofHandednessType)ofGetCoordHandedness(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPushMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofPushMatrix")) SWIG_fail; ofPushMatrix(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPopMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofPopMatrix")) SWIG_fail; ofPopMatrix(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetCurrentMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrixMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"O:ofGetCurrentMatrix",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetCurrentMatrix" "', argument " "1"" of type '" "ofMatrixMode""'"); } - arg1 = static_cast< ofMatrixMode >(val1); result = ofGetCurrentMatrix(arg1); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_getSmoothed__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_getSmoothed__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getSmoothed'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::getSmoothed(int,float) const\n" + " ofPolyline::getSmoothed(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getResampledBySpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getResampledBySpacing",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getResampledBySpacing" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getResampledBySpacing" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getResampledBySpacing(arg2); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetCurrentOrientationMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentOrientationMatrix")) SWIG_fail; - result = ofGetCurrentOrientationMatrix(); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofPolyline_getResampledByCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getResampledByCount",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getResampledByCount" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getResampledByCount" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getResampledByCount(arg2); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTranslate",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTranslate" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTranslate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTranslate" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofTranslate(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofPolyline_simplify__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_simplify",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_simplify" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_simplify" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->simplify(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_simplify__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_simplify",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_simplify" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->simplify(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTranslate",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPolyline_simplify(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_simplify__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_simplify__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_simplify'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::simplify(float)\n" " ofPolyline::simplify()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_close" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_setClosed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_setClosed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setClosed" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_setClosed" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setClosed(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_isClosed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_isClosed",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_isClosed" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (bool)((ofPolyline const *)arg1)->isClosed(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_hasChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_hasChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_hasChanged" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (bool)(arg1)->hasChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_flagHasChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_flagHasChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_flagHasChanged" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->flagHasChanged(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; ofPolyline *arg3 = 0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_inside",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTranslate" "', argument " "1"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTranslate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofTranslate(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTranslate",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPolyline, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "ofPolyline const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "ofPolyline const &""'"); } + arg3 = reinterpret_cast< ofPolyline * >(argp3); result = (bool)ofPolyline::inside(arg1,arg2,(ofPolyline const &)*arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_inside",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofPolyline const *)arg1)->inside(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPolyline *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_inside",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTranslate" "', argument " "1"" of type '" "ofPoint const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPoint const &""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTranslate" "', argument " "1"" of type '" "ofPoint const &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); ofTranslate((ofVec3f const &)*arg1); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTranslate(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyline, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPolyline const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPolyline const &""'"); } + arg2 = reinterpret_cast< ofPolyline * >(argp2); + result = (bool)ofPolyline::inside((ofVec3f const &)*arg1,(ofPolyline const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_inside",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = (bool)((ofPolyline const *)arg1)->inside((ofPoint const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTranslate__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofTranslate__SWIG_1(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_inside__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_inside__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTranslate__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTranslate'.\n" - " Possible C/C++ prototypes are:\n" " ofTranslate(float,float,float)\n" " ofTranslate(float,float)\n" - " ofTranslate(ofPoint const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofScale",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofScale" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofScale" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofScale" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofScale(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofScale",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofScale" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofScale" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofScale(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofScale(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + return _wrap_ofPolyline_inside__SWIG_1(self, args);} } } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofScale__SWIG_1(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofScale__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofScale'.\n" - " Possible C/C++ prototypes are:\n" " ofScale(float,float,float)\n" " ofScale(float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotate" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRotate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRotate" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRotate" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ofRotate(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofRotateX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; - float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateX",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateX" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofRotateX(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRotateY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; - float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateY",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateY" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofRotateY(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRotateZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; - float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateZ",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateZ" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofRotateZ(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofRotate",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotate" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofRotate(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRotate__SWIG_1(self, args);} } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRotate__SWIG_0(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRotate'.\n" - " Possible C/C++ prototypes are:\n" " ofRotate(float,float,float,float)\n" " ofRotate(float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofLoadIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofLoadIdentityMatrix")) SWIG_fail; ofLoadIdentityMatrix(); resultobj = SWIG_Py_Void(); + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_inside__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_inside'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::inside(float,float,ofPolyline const &)\n" + " ofPolyline::inside(float,float) const\n" " ofPolyline::inside(ofPoint const &,ofPolyline const &)\n" + " ofPolyline::inside(ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getBoundingBox",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getBoundingBox" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getBoundingBox(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLoadMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofLoadMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofLoadMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofPolyline_getPerimeter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getPerimeter",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPerimeter" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (float)((ofPolyline const *)arg1)->getPerimeter(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getArea",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getArea" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (float)((ofPolyline const *)arg1)->getArea(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getCentroid2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getCentroid2D",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getCentroid2D" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getCentroid2D(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLoadMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float *arg1 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofLoadMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "float const *""'"); } - arg1 = reinterpret_cast< float * >(argp1); ofLoadMatrix((float const *)arg1); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLoadMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofLoadMatrix__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofLoadMatrix__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLoadMatrix'.\n" - " Possible C/C++ prototypes are:\n" " ofLoadMatrix(ofMatrix4x4 const &)\n" " ofLoadMatrix(float const *)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofMultMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMultMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMultMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofMultMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; unsigned int *arg3 = (unsigned int *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_getClosestPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getClosestPoint" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_getClosestPoint" "', argument " "3"" of type '" "unsigned int *""'"); } + arg3 = reinterpret_cast< unsigned int * >(argp3); + result = ((ofPolyline const *)arg1)->getClosestPoint((ofPoint const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMultMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float *arg1 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMultMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultMatrix" "', argument " "1"" of type '" "float const *""'"); } - arg1 = reinterpret_cast< float * >(argp1); ofMultMatrix((float const *)arg1); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMultMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMultMatrix__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMultMatrix__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMultMatrix'.\n" - " Possible C/C++ prototypes are:\n" " ofMultMatrix(ofMatrix4x4 const &)\n" " ofMultMatrix(float const *)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofSetMatrixMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrixMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetMatrixMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetMatrixMode" "', argument " "1"" of type '" "ofMatrixMode""'"); } - arg1 = static_cast< ofMatrixMode >(val1); ofSetMatrixMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupGraphicDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSetupGraphicDefaults")) SWIG_fail; ofSetupGraphicDefaults(); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetupScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSetupScreen")) SWIG_fail; ofSetupScreen(); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getClosestPoint",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getClosestPoint" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = ((ofPolyline const *)arg1)->getClosestPoint((ofPoint const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetRectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectMode result; if (!PyArg_ParseTuple(args,(char *)":ofGetRectMode")) SWIG_fail; result = (ofRectMode)ofGetRectMode(); +SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_getClosestPoint__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_getClosestPoint__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getClosestPoint'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::getClosestPoint(ofPoint const &,unsigned int *) const\n" + " ofPolyline::getClosestPoint(ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getIndexAtLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getIndexAtLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getIndexAtLength" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getIndexAtLength" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getIndexAtLength(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getIndexAtPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getIndexAtPercent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getIndexAtPercent" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getIndexAtPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getIndexAtPercent(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getLengthAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getLengthAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getLengthAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getLengthAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofPolyline const *)arg1)->getLengthAtIndex(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getLengthAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getLengthAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getLengthAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getLengthAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getLengthAtIndexInterpolated(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtLength" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtLength" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtLength(arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtPercent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtPercent" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtPercent(arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getAngleAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getAngleAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getAngleAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getAngleAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofPolyline const *)arg1)->getAngleAtIndex(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getAngleAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getAngleAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getAngleAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getAngleAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getAngleAtIndexInterpolated(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getRotationAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getRotationAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRotationAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getRotationAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getRotationAtIndex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getRotationAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getRotationAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRotationAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getRotationAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getRotationAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getTangentAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getTangentAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getTangentAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getTangentAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getTangentAtIndex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getTangentAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getTangentAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getTangentAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getTangentAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getTangentAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getNormalAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getNormalAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getNormalAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getNormalAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getNormalAtIndex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getNormalAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getNormalAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getNormalAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getNormalAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getNormalAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getWrappedIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getWrappedIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getWrappedIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getWrappedIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofPolyline const *)arg1)->getWrappedIndex(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetCircleResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCircleResolution" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ofSetCircleResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofSetCurveResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetCurveResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCurveResolution" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ofSetCurveResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofNoFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofNoFill")) SWIG_fail; ofNoFill(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofFill")) SWIG_fail; ofFill(); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofVec3f arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_setRightVector",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setRightVector" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_setRightVector" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_setRightVector" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setRightVector(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_setRightVector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setRightVector" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->setRightVector(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofFillFlag result; if (!PyArg_ParseTuple(args,(char *)":ofGetFill")) SWIG_fail; result = (ofFillFlag)ofGetFill(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetLineWidth",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetLineWidth" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ofSetLineWidth(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; - bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetDepthTest",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetDepthTest" "', argument " "1"" of type '" "bool""'"); } - arg1 = static_cast< bool >(val1); ofSetDepthTest(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnableDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEnableDepthTest")) SWIG_fail; ofEnableDepthTest(); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_setRightVector__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_setRightVector__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_setRightVector'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::setRightVector(ofVec3f)\n" " ofPolyline::setRightVector()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getRightVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getRightVector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRightVector" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getRightVector(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisableDepthTest")) SWIG_fail; ofDisableDepthTest(); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofPolyline_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_draw" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ((ofPolyline const *)arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofPolyline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPolyline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPolyline" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofPolyline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPolyline, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *CIRC_RESOLUTION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "CIRC_RESOLUTION",SWIG_From_int(static_cast< int >(22))); + return SWIG_Py_Void(); +} + + SWIGINTERN PyObject *_wrap_ofSetColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -40779,8 +46248,8 @@ SWIGINTERN PyObject *_wrap_ofSetColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetColor" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); ofSetColor(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofSetColor__SWIG_2(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); @@ -40804,72 +46273,19 @@ SWIGINTERN PyObject *_wrap_ofSetHexColor(PyObject *SWIGUNUSEDPARM(self), PyObjec ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetHexColor" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); ofSetHexColor(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnableBlendMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofBlendMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofEnableBlendMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEnableBlendMode" "', argument " "1"" of type '" "ofBlendMode""'"); } - arg1 = static_cast< ofBlendMode >(val1); ofEnableBlendMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableBlendMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisableBlendMode")) SWIG_fail; ofDisableBlendMode(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnablePointSprites(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEnablePointSprites")) SWIG_fail; ofEnablePointSprites(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisablePointSprites(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisablePointSprites")) SWIG_fail; ofDisablePointSprites(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnableAlphaBlending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEnableAlphaBlending")) SWIG_fail; ofEnableAlphaBlending(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableAlphaBlending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisableAlphaBlending")) SWIG_fail; ofDisableAlphaBlending(); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnableSmoothing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEnableSmoothing")) SWIG_fail; ofEnableSmoothing(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableSmoothing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisableSmoothing")) SWIG_fail; ofDisableSmoothing(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEnableAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEnableAntiAliasing")) SWIG_fail; ofEnableAntiAliasing(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDisableAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofDisableAntiAliasing")) SWIG_fail; ofDisableAntiAliasing(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofStyle result; - if (!PyArg_ParseTuple(args,(char *)":ofGetStyle")) SWIG_fail; result = ofGetStyle(); - resultobj = SWIG_NewPointerObj((new ofStyle(static_cast< const ofStyle& >(result))), SWIGTYPE_p_ofStyle, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofStyle arg1 ; - void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetStyle",&obj0)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofStyle, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetStyle" "', argument " "1"" of type '" "ofStyle""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetStyle" "', argument " "1"" of type '" "ofStyle""'"); } - else { ofStyle * temp = reinterpret_cast< ofStyle * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } - ofSetStyle(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPushStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofPushStyle")) SWIG_fail; ofPushStyle(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofPopStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofPopStyle")) SWIG_fail; ofPopStyle(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetPolyMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPolyWindingMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetPolyMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetPolyMode" "', argument " "1"" of type '" "ofPolyWindingMode""'"); } - arg1 = static_cast< ofPolyWindingMode >(val1); ofSetPolyMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofNoFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofNoFill")) SWIG_fail; ofNoFill(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetRectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetRectMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetRectMode" "', argument " "1"" of type '" "ofRectMode""'"); } - arg1 = static_cast< ofRectMode >(val1); ofSetRectMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: +SWIGINTERN PyObject *_wrap_ofFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofFill")) SWIG_fail; ofFill(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFillFlag result; if (!PyArg_ParseTuple(args,(char *)":ofGetFill")) SWIG_fail; result = (ofFillFlag)ofGetFill(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetBackgroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor result; if (!PyArg_ParseTuple(args,(char *)":ofGetBackgroundColor")) SWIG_fail; result = ofGetBackgroundColor(); + resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofGetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofColor result; if (!PyArg_ParseTuple(args,(char *)":ofGetBackground")) SWIG_fail; result = ofGetBackground(); resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); @@ -40923,8 +46339,8 @@ SWIGINTERN PyObject *_wrap_ofBackground__SWIG_4(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBackground" "', argument " "1"" of type '" "ofColor const &""'"); } arg1 = reinterpret_cast< ofColor * >(argp1); ofBackground((ofColor_< unsigned char > const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBackground(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofBackground(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofBackground__SWIG_4(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); @@ -40958,8 +46374,8 @@ SWIGINTERN PyObject *_wrap_ofBackgroundHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBackgroundHex" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); ofBackgroundHex(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBackgroundHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofBackgroundHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofBackgroundHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); @@ -41001,8 +46417,8 @@ SWIGINTERN PyObject *_wrap_ofBackgroundGradient__SWIG_1(PyObject *SWIGUNUSEDPARM arg2 = reinterpret_cast< ofColor * >(argp2); ofBackgroundGradient((ofColor_< unsigned char > const &)*arg1,(ofColor_< unsigned char > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBackgroundGradient(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofBackgroundGradient(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { @@ -41065,8 +46481,8 @@ SWIGINTERN PyObject *_wrap_ofSetBackgroundColor__SWIG_4(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetBackgroundColor" "', argument " "1"" of type '" "ofColor const &""'"); } arg1 = reinterpret_cast< ofColor * >(argp1); ofSetBackgroundColor((ofColor_< unsigned char > const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetBackgroundColor(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetBackgroundColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofSetBackgroundColor__SWIG_4(self, args);} } if (argc == 1) { int _v; { @@ -41104,8 +46520,8 @@ SWIGINTERN PyObject *_wrap_ofSetBackgroundColorHex__SWIG_1(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundColorHex" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); ofSetBackgroundColorHex(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetBackgroundColorHex(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetBackgroundColorHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetBackgroundColorHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { @@ -41122,6 +46538,9 @@ SWIGINTERN PyObject *_wrap_ofSetBackgroundAuto(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundAuto" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); ofSetBackgroundAuto(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetBackgroundAuto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetBackgroundAuto")) SWIG_fail; result = (bool)ofGetBackgroundAuto(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofClear__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -41170,9 +46589,9 @@ SWIGINTERN PyObject *_wrap_ofClear__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObj SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofClear" "', argument " "1"" of type '" "ofColor const &""'"); } arg1 = reinterpret_cast< ofColor * >(argp1); ofClear((ofColor_< unsigned char > const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofClear(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; +SWIGINTERN PyObject *_wrap_ofClear(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofClear__SWIG_4(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofClear__SWIG_3(self, args);} } if (argc == 2) { int _v; { @@ -41193,6 +46612,734 @@ SWIGINTERN PyObject *_wrap_ofClear(PyObject *self, PyObject *args) { int argc; P SWIGINTERN PyObject *_wrap_ofClearAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofClearAlpha")) SWIG_fail; ofClearAlpha(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawTriangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawTriangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawTriangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawTriangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofDrawTriangle(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofDrawTriangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawTriangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawTriangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawTriangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawTriangle" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawTriangle" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawTriangle" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofDrawTriangle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawTriangle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); + ofDrawTriangle((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawTriangle__SWIG_2(self, args);} } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawTriangle__SWIG_0(self, args);} } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawTriangle__SWIG_1(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawTriangle'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawTriangle(float,float,float,float,float,float)\n" + " ofDrawTriangle(float,float,float,float,float,float,float,float,float)\n" + " ofDrawTriangle(ofPoint const &,ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawCircle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawCircle",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCircle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCircle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawCircle(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCircle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawCircle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCircle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCircle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCircle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawCircle(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCircle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawCircle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawCircle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawCircle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawCircle((ofVec3f const &)*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCircle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCircle__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCircle__SWIG_0(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCircle__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawCircle'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawCircle(float,float,float)\n" " ofDrawCircle(float,float,float,float)\n" + " ofDrawCircle(ofPoint const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawEllipse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawEllipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawEllipse(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawEllipse",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawEllipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawEllipse" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawEllipse(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawEllipse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawEllipse((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawEllipse__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawEllipse__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawEllipse__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawEllipse'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawEllipse(float,float,float,float)\n" + " ofDrawEllipse(float,float,float,float,float)\n" " ofDrawEllipse(ofPoint const &,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawLine" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawLine" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawLine" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawLine" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawLine(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawLine" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawLine" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawLine" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawLine" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawLine" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawLine" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofDrawLine(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawLine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawLine" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawLine" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawLine" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawLine" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ofDrawLine((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawLine(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawLine__SWIG_2(self, args);} } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawLine__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawLine__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawLine'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawLine(float,float,float,float)\n" + " ofDrawLine(float,float,float,float,float,float)\n" " ofDrawLine(ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawRectangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawRectangle(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawRectangle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ofDrawRectangle((ofRectangle const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawRectangle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawRectangle((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawRectangle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawRectangle(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawRectangle__SWIG_1(self, args);} } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectangle__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectangle__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectangle__SWIG_3(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawRectangle'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawRectangle(float,float,float,float)\n" + " ofDrawRectangle(ofRectangle const &)\n" " ofDrawRectangle(ofPoint const &,float,float)\n" + " ofDrawRectangle(float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawRectRounded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawRectRounded((ofRectangle const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawRectRounded(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofDrawRectRounded(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ofDrawRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawRectRounded((ofRectangle const &)*arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawRectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawRectRounded" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofDrawRectRounded(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_0(self, args);} } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_5(self, args);} } } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_4(self, args);} } } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_6(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawRectRounded'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawRectRounded(ofRectangle const &,float)\n" + " ofDrawRectRounded(ofPoint const &,float,float,float)\n" " ofDrawRectRounded(float,float,float,float,float)\n" + " ofDrawRectRounded(float,float,float,float,float,float)\n" + " ofDrawRectRounded(ofPoint const &,float,float,float,float,float,float)\n" + " ofDrawRectRounded(ofRectangle const &,float,float,float,float)\n" + " ofDrawRectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofDrawCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofDrawCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofDrawCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawCurve" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofDrawCurve" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofDrawCurve" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofDrawCurve" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofDrawCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCurve(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCurve__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCurve__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawCurve'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawCurve(float,float,float,float,float,float,float,float)\n" + " ofDrawCurve(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawBezier__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofDrawBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofDrawBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBezier__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofDrawBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawBezier" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofDrawBezier" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofDrawBezier" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofDrawBezier" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofDrawBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBezier(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBezier__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBezier__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawBezier'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawBezier(float,float,float,float,float,float,float,float)\n" + " ofDrawBezier(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofTriangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; @@ -41260,8 +47407,8 @@ SWIGINTERN PyObject *_wrap_ofTriangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py arg3 = reinterpret_cast< ofPoint * >(argp3); ofTriangle((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTriangle(PyObject *self, PyObject *args) { int argc; PyObject *argv[10]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofTriangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -41324,9 +47471,9 @@ SWIGINTERN PyObject *_wrap_ofCircle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCircle" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ofCircle((ofVec3f const &)*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCircle(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; +SWIGINTERN PyObject *_wrap_ofCircle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofCircle__SWIG_2(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); @@ -41386,8 +47533,8 @@ SWIGINTERN PyObject *_wrap_ofEllipse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyO SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofEllipse" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ofEllipse((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEllipse(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofEllipse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -41454,9 +47601,9 @@ SWIGINTERN PyObject *_wrap_ofLine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObje SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLine" "', argument " "2"" of type '" "ofPoint const &""'"); } arg2 = reinterpret_cast< ofPoint * >(argp2); ofLine((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofLine(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; +SWIGINTERN PyObject *_wrap_ofLine(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofLine__SWIG_2(self, args);} } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); @@ -41466,878 +47613,1600 @@ SWIGINTERN PyObject *_wrap_ofLine(PyObject *self, PyObject *args) { int argc; Py return _wrap_ofLine__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofLine__SWIG_1(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLine'.\n" - " Possible C/C++ prototypes are:\n" " ofLine(float,float,float,float)\n" - " ofLine(float,float,float,float,float,float)\n" " ofLine(ofPoint const &,ofPoint const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofRect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLine__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLine'.\n" + " Possible C/C++ prototypes are:\n" " ofLine(float,float,float,float)\n" + " ofLine(float,float,float,float,float,float)\n" " ofLine(ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRect" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRect" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofRect(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRect",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRect" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRect" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ofRect((ofRectangle const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRect",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRect" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRect" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofRect((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRect",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRect" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRect" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRect" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofRect(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRect(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRect__SWIG_1(self, args);} } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRect__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRect__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRect__SWIG_3(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRect'.\n" + " Possible C/C++ prototypes are:\n" " ofRect(float,float,float,float)\n" " ofRect(ofRectangle const &)\n" + " ofRect(ofPoint const &,float,float)\n" " ofRect(float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectRounded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofRectRounded((ofRectangle const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofRectRounded(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ofRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofRectRounded((ofRectangle const &)*arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofRectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofRectRounded" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofRectRounded(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_0(self, args);} } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_4(self, args);} } } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_2(self, args);} } } } } } if (argc == 7) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_3(self, args);} } } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_5(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectRounded'.\n" + " Possible C/C++ prototypes are:\n" " ofRectRounded(ofRectangle const &,float)\n" + " ofRectRounded(ofPoint const &,float,float,float)\n" " ofRectRounded(float,float,float,float,float)\n" + " ofRectRounded(ofPoint const &,float,float,float,float,float,float)\n" + " ofRectRounded(ofRectangle const &,float,float,float,float)\n" + " ofRectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofCurve" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofCurve" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofCurve" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofCurve" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurve(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 12) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCurve__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCurve__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCurve'.\n" + " Possible C/C++ prototypes are:\n" " ofCurve(float,float,float,float,float,float,float,float)\n" + " ofCurve(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBezier__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezier__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofBezier" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofBezier" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofBezier" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofBezier" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezier(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezier__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezier__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBezier'.\n" + " Possible C/C++ prototypes are:\n" " ofBezier(float,float,float,float,float,float,float,float)\n" + " ofBezier(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBeginShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofBeginShape")) SWIG_fail; ofBeginShape(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVertex",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofVertex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVertex",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofVertex(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVertex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofVertex(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVertex__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVertex__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofVertex(float,float)\n" " ofVertex(float,float,float)\n" + " ofVertex(ofPoint &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< ofPoint,std::allocator< ofPoint > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + arg1 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp1); + ofVertices((std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofCurveVertex",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurveVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofCurveVertex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofCurveVertex",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurveVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurveVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofCurveVertex(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCurveVertex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofCurveVertex(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCurveVertex__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofCurveVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCurveVertex__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCurveVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofCurveVertex(float,float)\n" " ofCurveVertex(float,float,float)\n" + " ofCurveVertex(ofPoint &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCurveVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< ofPoint,std::allocator< ofPoint > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCurveVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + arg1 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp1); + ofCurveVertices((std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofBezierVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRect" "', argument " "1"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRect" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ofRect(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofRect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofRect",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRect" "', argument " "1"" of type '" "ofRectangle const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRect" "', argument " "1"" of type '" "ofRectangle const &""'"); } - arg1 = reinterpret_cast< ofRectangle * >(argp1); ofRect((ofRectangle const &)*arg1); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezierVertex" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierVertex" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezierVertex" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofBezierVertex(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRect__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofRect",&obj0,&obj1,&obj2)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBezierVertex",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRect" "', argument " "1"" of type '" "ofPoint const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRect" "', argument " "1"" of type '" "ofPoint const &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofRect((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRect__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRect",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); + ofBezierVertex((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofBezierVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRect" "', argument " "1"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRect" "', argument " "4"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezierVertex" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRect" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ofRect(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofRect(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofRect__SWIG_1(self, args);} } if (argc == 3) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRect__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierVertex" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezierVertex" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezierVertex" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezierVertex" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofBezierVertex" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofBezierVertex(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBezierVertex__SWIG_1(self, args);} } } } if (argc == 6) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRect__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezierVertex__SWIG_0(self, args);} } } } } } } if (argc == 9) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRect__SWIG_3(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRect'.\n" - " Possible C/C++ prototypes are:\n" " ofRect(float,float,float,float)\n" " ofRect(ofRectangle const &)\n" - " ofRect(ofPoint const &,float,float)\n" " ofRect(float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectRounded",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } - arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofRectRounded((ofRectangle const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezierVertex__SWIG_2(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBezierVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofBezierVertex(float,float,float,float,float,float)\n" + " ofBezierVertex(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofBezierVertex(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEndShape__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEndShape",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEndShape" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofEndShape(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEndShape__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEndShape")) SWIG_fail; ofEndShape(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEndShape(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofEndShape__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofEndShape__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofEndShape'.\n" + " Possible C/C++ prototypes are:\n" " ofEndShape(bool)\n" " ofEndShape()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNextContour__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNextContour",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNextContour" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofNextContour(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNextContour__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofNextContour")) SWIG_fail; ofNextContour(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ofRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofNextContour(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofNextContour__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofNextContour__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNextContour'.\n" + " Possible C/C++ prototypes are:\n" " ofNextContour(bool)\n" " ofNextContour()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetDrawBitmapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDrawBitmapMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetDrawBitmapMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetDrawBitmapMode" "', argument " "1"" of type '" "ofDrawBitmapMode""'"); } + arg1 = static_cast< ofDrawBitmapMode >(val1); ofSetDrawBitmapMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; ofColor *arg3 = 0 ; ofColor *arg4 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + arg3 = reinterpret_cast< ofColor * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + arg4 = reinterpret_cast< ofColor * >(argp4); + ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2,(ofColor_< unsigned char > const &)*arg3,(ofColor_< unsigned char > const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; ofColor *arg3 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + arg3 = reinterpret_cast< ofColor * >(argp3); + ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2,(ofColor_< unsigned char > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ofRectRounded(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectRounded" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectRounded" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ofRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4,arg5,arg6,arg7); +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawBitmapStringHighlight",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofRectangle *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; ofColor *arg4 = 0 ; ofColor *arg5 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } - arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ofRectRounded((ofRectangle const &)*arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + arg4 = reinterpret_cast< ofColor * >(argp4); + res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofDrawBitmapStringHighlight" "', argument " "5"" of type '" "ofColor const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "5"" of type '" "ofColor const &""'"); } + arg5 = reinterpret_cast< ofColor * >(argp5); + ofDrawBitmapStringHighlight(arg1,arg2,arg3,(ofColor_< unsigned char > const &)*arg4,(ofColor_< unsigned char > const &)*arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; ofColor *arg4 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + arg4 = reinterpret_cast< ofColor * >(argp4); + ofDrawBitmapStringHighlight(arg1,arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofDrawBitmapStringHighlight(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_2(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_1(self, args);} } } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_5(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_3(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawBitmapStringHighlight'.\n" + " Possible C/C++ prototypes are:\n" + " ofDrawBitmapStringHighlight(std::string,ofPoint const &,ofColor const &,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,ofPoint const &,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,ofPoint const &)\n" + " ofDrawBitmapStringHighlight(std::string,int,int,ofColor const &,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,int,int,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetupGraphicDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSetupGraphicDefaults")) SWIG_fail; ofSetupGraphicDefaults(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSetupScreen")) SWIG_fail; ofSetupScreen(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetRectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectMode result; if (!PyArg_ParseTuple(args,(char *)":ofGetRectMode")) SWIG_fail; result = (ofRectMode)ofGetRectMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetCircleResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCircleResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetCircleResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurveResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetCurveResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCurveResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetCurveResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetLineWidth",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetLineWidth" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofSetLineWidth(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; + bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetDepthTest",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetDepthTest" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetDepthTest(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableDepthTest")) SWIG_fail; ofEnableDepthTest(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableDepthTest")) SWIG_fail; ofDisableDepthTest(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableBlendMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBlendMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEnableBlendMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEnableBlendMode" "', argument " "1"" of type '" "ofBlendMode""'"); } + arg1 = static_cast< ofBlendMode >(val1); ofEnableBlendMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableBlendMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableBlendMode")) SWIG_fail; ofDisableBlendMode(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnablePointSprites(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnablePointSprites")) SWIG_fail; ofEnablePointSprites(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisablePointSprites(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisablePointSprites")) SWIG_fail; ofDisablePointSprites(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableAlphaBlending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableAlphaBlending")) SWIG_fail; ofEnableAlphaBlending(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableAlphaBlending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableAlphaBlending")) SWIG_fail; ofDisableAlphaBlending(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableSmoothing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableSmoothing")) SWIG_fail; ofEnableSmoothing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableSmoothing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableSmoothing")) SWIG_fail; ofDisableSmoothing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableAntiAliasing")) SWIG_fail; ofEnableAntiAliasing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableAntiAliasing")) SWIG_fail; ofDisableAntiAliasing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofStyle result; + if (!PyArg_ParseTuple(args,(char *)":ofGetStyle")) SWIG_fail; result = ofGetStyle(); + resultobj = SWIG_NewPointerObj((new ofStyle(static_cast< const ofStyle& >(result))), SWIGTYPE_p_ofStyle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofStyle arg1 ; + void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetStyle",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofStyle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetStyle" "', argument " "1"" of type '" "ofStyle""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetStyle" "', argument " "1"" of type '" "ofStyle""'"); } + else { ofStyle * temp = reinterpret_cast< ofStyle * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } + ofSetStyle(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPushStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPushStyle")) SWIG_fail; ofPushStyle(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPopStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPopStyle")) SWIG_fail; ofPopStyle(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetPolyMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyWindingMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetPolyMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetPolyMode" "', argument " "1"" of type '" "ofPolyWindingMode""'"); } + arg1 = static_cast< ofPolyWindingMode >(val1); ofSetPolyMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetRectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetRectMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetRectMode" "', argument " "1"" of type '" "ofRectMode""'"); } + arg1 = static_cast< ofRectMode >(val1); ofSetRectMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPushMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPushMatrix")) SWIG_fail; ofPushMatrix(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPopMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPopMatrix")) SWIG_fail; ofPopMatrix(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCurrentMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetCurrentMatrix",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetCurrentMatrix" "', argument " "1"" of type '" "ofMatrixMode""'"); } + arg1 = static_cast< ofMatrixMode >(val1); result = ofGetCurrentMatrix(arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; - float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; - float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofGetCurrentOrientationMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentOrientationMatrix")) SWIG_fail; + result = ofGetCurrentOrientationMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCurrentNormalMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentNormalMatrix")) SWIG_fail; + result = ofGetCurrentNormalMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTranslate",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTranslate" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTranslate" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectRounded" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectRounded" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofRectRounded" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofRectRounded" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ofRectRounded(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTranslate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofTranslate(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTranslate",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTranslate" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTranslate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofTranslate(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTranslate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTranslate" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTranslate" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofTranslate((ofVec3f const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRectRounded(PyObject *self, PyObject *args) { int argc; PyObject *argv[10]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRectRounded__SWIG_0(self, args);} } } if (argc == 4) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRectRounded__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRectRounded__SWIG_4(self, args);} } } } } } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRectRounded__SWIG_2(self, args);} } } } } } if (argc == 7) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRectRounded__SWIG_3(self, args);} } } } } } } } if (argc == 9) { int _v; { +SWIGINTERN PyObject *_wrap_ofTranslate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTranslate__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofTranslate__SWIG_1(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRectRounded__SWIG_5(self, args);} } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectRounded'.\n" - " Possible C/C++ prototypes are:\n" " ofRectRounded(ofRectangle const &,float)\n" - " ofRectRounded(ofPoint const &,float,float,float)\n" " ofRectRounded(float,float,float,float,float)\n" - " ofRectRounded(ofPoint const &,float,float,float,float,float,float)\n" - " ofRectRounded(ofRectangle const &,float,float,float,float)\n" - " ofRectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; - int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurve" "', argument " "1"" of type '" "float""'"); } + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTranslate__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTranslate'.\n" + " Possible C/C++ prototypes are:\n" " ofTranslate(float,float,float)\n" " ofTranslate(float,float)\n" + " ofTranslate(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofScale",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofScale" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurve" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofScale" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurve" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCurve" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurve" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCurve" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCurve" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofCurve" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ofCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; - float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; - int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofScale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofScale(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofScale",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurve" "', argument " "1"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofScale" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurve" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurve" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCurve" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurve" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCurve" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCurve" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofCurve" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofCurve" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofCurve" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofCurve" "', argument " "11"" of type '" "float""'"); } - arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofCurve" "', argument " "12"" of type '" "float""'"); } - arg12 = static_cast< float >(val12); ofCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCurve(PyObject *self, PyObject *args) { int argc; PyObject *argv[13]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofCurve__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofScale(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofScale__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofScale",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofScale" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofScale" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofScale((ofVec3f const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofScale__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofScale__SWIG_1(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofCurve__SWIG_1(self, args);} } } } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCurve'.\n" - " Possible C/C++ prototypes are:\n" " ofCurve(float,float,float,float,float,float,float,float)\n" - " ofCurve(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofBezier__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; - int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; - int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezier" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezier" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezier" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezier" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezier" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezier" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezier" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezier" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ofBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBezier__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; - float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; - int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; - int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofScale__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofScale'.\n" + " Possible C/C++ prototypes are:\n" " ofScale(float,float,float)\n" " ofScale(float,float)\n" + " ofScale(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezier" "', argument " "1"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotate" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezier" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRotate" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezier" "', argument " "3"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRotate" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezier" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezier" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezier" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezier" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezier" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofBezier" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofBezier" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofBezier" "', argument " "11"" of type '" "float""'"); } - arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofBezier" "', argument " "12"" of type '" "float""'"); } - arg12 = static_cast< float >(val12); ofBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBezier(PyObject *self, PyObject *args) { int argc; PyObject *argv[13]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBezier__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofRotate(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRotate",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotate" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotate(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofRotate__SWIG_1(self, args);} } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBezier__SWIG_1(self, args);} } } } } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBezier'.\n" - " Possible C/C++ prototypes are:\n" " ofBezier(float,float,float,float,float,float,float,float)\n" - " ofBezier(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofBeginShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofBeginShape")) SWIG_fail; ofBeginShape(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVertex",&obj0,&obj1)) SWIG_fail; + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRotate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRotate'.\n" + " Possible C/C++ prototypes are:\n" " ofRotate(float,float,float,float)\n" " ofRotate(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRotateX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateX",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofVertex" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVertex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofVertex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; - int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofVertex",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateX" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotateX(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRotateY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateY",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateY" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotateY(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRotateZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateZ",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateZ" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotateZ(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofLoadIdentityMatrix")) SWIG_fail; ofLoadIdentityMatrix(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofLoadMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float *arg1 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "float const *""'"); } + arg1 = reinterpret_cast< float * >(argp1); ofLoadMatrix((float const *)arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLoadMatrix__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLoadMatrix__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLoadMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofLoadMatrix(ofMatrix4x4 const &)\n" " ofLoadMatrix(float const *)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMultMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMultMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMultMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofMultMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMultMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float *arg1 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMultMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultMatrix" "', argument " "1"" of type '" "float const *""'"); } + arg1 = reinterpret_cast< float * >(argp1); ofMultMatrix((float const *)arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMultMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMultMatrix__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMultMatrix__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMultMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMultMatrix(ofMatrix4x4 const &)\n" " ofMultMatrix(float const *)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetMatrixMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetMatrixMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofVertex" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVertex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVertex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofVertex(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofVertex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVertex" "', argument " "1"" of type '" "ofPoint &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVertex" "', argument " "1"" of type '" "ofPoint &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); ofVertex(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetMatrixMode" "', argument " "1"" of type '" "ofMatrixMode""'"); } + arg1 = static_cast< ofMatrixMode >(val1); ofSetMatrixMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVertex(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVertex__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVertex__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVertex'.\n" - " Possible C/C++ prototypes are:\n" " ofVertex(float,float)\n" " ofVertex(float,float,float)\n" - " ofVertex(ofPoint &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< ofPoint,std::allocator< ofPoint > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } +SWIGINTERN PyObject *_wrap_ofLoadViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } - arg1 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp1); - ofVertices((std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofLoadViewMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMultViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMultViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMultViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofMultViewMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCurrentViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentViewMatrix")) SWIG_fail; + result = ofGetCurrentViewMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPushView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPushView")) SWIG_fail; ofPushView(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofCurveVertex",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofPopView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPopView")) SWIG_fail; ofPopView(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofViewport",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofViewport" "', argument " "1"" of type '" "ofRectangle""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofViewport" "', argument " "1"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } + } ofViewport(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; bool arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofViewport",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurveVertex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ofCurveVertex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofViewport" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofViewport" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ofViewport(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofViewport",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofViewport" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofViewport(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofCurveVertex",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!PyArg_ParseTuple(args,(char *)"OOO:ofViewport",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurveVertex" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurveVertex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofCurveVertex(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofCurveVertex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "ofPoint &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveVertex" "', argument " "1"" of type '" "ofPoint &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); ofCurveVertex(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofViewport(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofCurveVertex(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofCurveVertex__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofCurveVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; { +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofViewport",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofViewport(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofViewport",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofViewport(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofViewport")) SWIG_fail; ofViewport(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofViewport__SWIG_6(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofViewport__SWIG_0(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofViewport__SWIG_5(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofViewport__SWIG_4(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofCurveVertex__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCurveVertex'.\n" - " Possible C/C++ prototypes are:\n" " ofCurveVertex(float,float)\n" " ofCurveVertex(float,float,float)\n" - " ofCurveVertex(ofPoint &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofCurveVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::vector< ofPoint,std::allocator< ofPoint > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofCurveVertices",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } - arg1 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp1); - ofCurveVertices((std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg1); resultobj = SWIG_Py_Void(); + return _wrap_ofViewport__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofViewport__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofViewport__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofViewport'.\n" + " Possible C/C++ prototypes are:\n" " ofViewport(ofRectangle)\n" " ofViewport(float,float,float,float,bool)\n" + " ofViewport(float,float,float,float)\n" " ofViewport(float,float,float)\n" " ofViewport(float,float)\n" + " ofViewport(float)\n" " ofViewport()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetCurrentViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentViewport")) SWIG_fail; result = ofGetCurrentViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; - int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofBezierVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezierVertex" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierVertex" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezierVertex" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ofBezierVertex(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofGetNativeViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)":ofGetNativeViewport")) SWIG_fail; result = ofGetNativeViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofBezierVertex",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "ofPoint const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "1"" of type '" "ofPoint const &""'"); } - arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "ofPoint const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "3"" of type '" "ofPoint const &""'"); } - arg3 = reinterpret_cast< ofPoint * >(argp3); - ofBezierVertex((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofGetViewportWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetViewportWidth")) SWIG_fail; result = (int)ofGetViewportWidth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetViewportHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetViewportHeight")) SWIG_fail; result = (int)ofGetViewportHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenPerspective" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSetupScreenPerspective" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofSetupScreenPerspective(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; - float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; - float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofBezierVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezierVertex" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierVertex" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezierVertex" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezierVertex" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezierVertex" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofBezierVertex" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ofBezierVertex(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenPerspective" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofSetupScreenPerspective(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofBezierVertex(PyObject *self, PyObject *args) { int argc; PyObject *argv[10]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofBezierVertex__SWIG_1(self, args);} } } } if (argc == 6) { int _v; { +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofSetupScreenPerspective(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetupScreenPerspective",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofSetupScreenPerspective(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetupScreenPerspective",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofSetupScreenPerspective(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofSetupScreenPerspective")) SWIG_fail; + ofSetupScreenPerspective(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSetupScreenPerspective__SWIG_5(self, args);} if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_4(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBezierVertex__SWIG_0(self, args);} } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofBezierVertex__SWIG_2(self, args);} } } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBezierVertex'.\n" - " Possible C/C++ prototypes are:\n" " ofBezierVertex(float,float,float,float,float,float)\n" - " ofBezierVertex(ofPoint const &,ofPoint const &,ofPoint const &)\n" - " ofBezierVertex(float,float,float,float,float,float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofEndShape__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofEndShape",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEndShape" "', argument " "1"" of type '" "bool""'"); } - arg1 = static_cast< bool >(val1); ofEndShape(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEndShape__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofEndShape")) SWIG_fail; ofEndShape(); resultobj = SWIG_Py_Void(); return resultobj; + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupScreenPerspective'.\n" + " Possible C/C++ prototypes are:\n" " ofSetupScreenPerspective(float,float,float,float,float)\n" + " ofSetupScreenPerspective(float,float,float,float)\n" " ofSetupScreenPerspective(float,float,float)\n" + " ofSetupScreenPerspective(float,float)\n" " ofSetupScreenPerspective(float)\n" " ofSetupScreenPerspective()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupScreenOrtho",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenOrtho" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenOrtho" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofSetupScreenOrtho(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofEndShape(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofEndShape__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofEndShape__SWIG_0(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofEndShape'.\n" - " Possible C/C++ prototypes are:\n" " ofEndShape(bool)\n" " ofEndShape()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofNextContour__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofNextContour",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNextContour" "', argument " "1"" of type '" "bool""'"); } - arg1 = static_cast< bool >(val1); ofNextContour(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNextContour__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofNextContour")) SWIG_fail; ofNextContour(); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNextContour(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofNextContour__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofNextContour__SWIG_0(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNextContour'.\n" - " Possible C/C++ prototypes are:\n" " ofNextContour(bool)\n" " ofNextContour()\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofSetDrawBitmapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofDrawBitmapMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetDrawBitmapMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupScreenOrtho",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenOrtho" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofSetupScreenOrtho(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetupScreenOrtho",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofSetupScreenOrtho(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetupScreenOrtho",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetDrawBitmapMode" "', argument " "1"" of type '" "ofDrawBitmapMode""'"); } - arg1 = static_cast< ofDrawBitmapMode >(val1); ofSetDrawBitmapMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofSetupScreenOrtho(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; ofPoint *arg2 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawBitmapString",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapString" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapString" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapString" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ofDrawBitmapString(arg1,(ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSetupScreenOrtho")) SWIG_fail; ofSetupScreenOrtho(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; float arg2 ; float arg3 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBitmapString",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapString" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapString" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapString" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ofDrawBitmapString(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; float arg2 ; float arg3 ; float arg4 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBitmapString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapString" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapString" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapString" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBitmapString" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ofDrawBitmapString(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapString(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDrawBitmapString__SWIG_0(self, args);} } } if (argc == 3) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSetupScreenOrtho__SWIG_4(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetupScreenOrtho__SWIG_3(self, args);} } if (argc == 2) { int _v; + { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenOrtho__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDrawBitmapString__SWIG_1(self, args);} } } } if (argc == 4) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofSetupScreenOrtho__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDrawBitmapString__SWIG_2(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawBitmapString'.\n" - " Possible C/C++ prototypes are:\n" " ofDrawBitmapString(std::string,ofPoint const &)\n" - " ofDrawBitmapString(std::string,float,float)\n" " ofDrawBitmapString(std::string,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; ofColor *arg3 = 0 ; ofColor *arg4 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } - arg3 = reinterpret_cast< ofColor * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } - arg4 = reinterpret_cast< ofColor * >(argp4); - ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2,(ofColor_< unsigned char > const &)*arg3,(ofColor_< unsigned char > const &)*arg4); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; ofColor *arg3 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2)) SWIG_fail; { - std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } - arg3 = reinterpret_cast< ofColor * >(argp3); - ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2,(ofColor_< unsigned char > const &)*arg3); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawBitmapStringHighlight",&obj0,&obj1)) SWIG_fail; { + return _wrap_ofSetupScreenOrtho__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupScreenOrtho'.\n" + " Possible C/C++ prototypes are:\n" " ofSetupScreenOrtho(float,float,float,float)\n" + " ofSetupScreenOrtho(float,float,float)\n" " ofSetupScreenOrtho(float,float)\n" " ofSetupScreenOrtho(float)\n" + " ofSetupScreenOrtho()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofOrientationToDegrees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofOrientation arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofOrientationToDegrees",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofOrientationToDegrees" "', argument " "1"" of type '" "ofOrientation""'"); } + arg1 = static_cast< ofOrientation >(val1); result = (int)ofOrientationToDegrees(arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCoordHandedness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHandednessType arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetCoordHandedness",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCoordHandedness" "', argument " "1"" of type '" "ofHandednessType""'"); } + arg1 = static_cast< ofHandednessType >(val1); ofSetCoordHandedness(arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCoordHandedness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHandednessType result; if (!PyArg_ParseTuple(args,(char *)":ofGetCoordHandedness")) SWIG_fail; + result = (ofHandednessType)ofGetCoordHandedness(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; ofRectangle arg4 ; bool val2 ; int ecode2 = 0 ; + bool val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBeginSaveScreenAsPDF",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; ofColor *arg4 = 0 ; ofColor *arg5 = 0 ; int val2 ; - int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "4"" of type '" "ofRectangle""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBeginSaveScreenAsPDF" "', argument " "4"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } + } ofBeginSaveScreenAsPDF(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBeginSaveScreenAsPDF",&obj0,&obj1,&obj2)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } - arg4 = reinterpret_cast< ofColor * >(argp4); - res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofDrawBitmapStringHighlight" "', argument " "5"" of type '" "ofColor const &""'"); } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "5"" of type '" "ofColor const &""'"); } - arg5 = reinterpret_cast< ofColor * >(argp5); - ofDrawBitmapStringHighlight(arg1,arg2,arg3,(ofColor_< unsigned char > const &)*arg4,(ofColor_< unsigned char > const &)*arg5); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; ofColor *arg4 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; - int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ofBeginSaveScreenAsPDF(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBeginSaveScreenAsPDF",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } - arg4 = reinterpret_cast< ofColor * >(argp4); - ofDrawBitmapStringHighlight(arg1,arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofBeginSaveScreenAsPDF(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBeginSaveScreenAsPDF",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofBeginSaveScreenAsPDF(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_3(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_2(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBeginSaveScreenAsPDF'.\n" + " Possible C/C++ prototypes are:\n" " ofBeginSaveScreenAsPDF(std::string,bool,bool,ofRectangle)\n" + " ofBeginSaveScreenAsPDF(std::string,bool,bool)\n" " ofBeginSaveScreenAsPDF(std::string,bool)\n" + " ofBeginSaveScreenAsPDF(std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEndSaveScreenAsPDF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEndSaveScreenAsPDF")) SWIG_fail; ofEndSaveScreenAsPDF(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; ofRectangle arg4 ; bool val2 ; int ecode2 = 0 ; + bool val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBeginSaveScreenAsSVG",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "4"" of type '" "ofRectangle""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBeginSaveScreenAsSVG" "', argument " "4"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } + } ofBeginSaveScreenAsSVG(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2)) SWIG_fail; { + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBeginSaveScreenAsSVG",&obj0,&obj1,&obj2)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } - arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ofDrawBitmapStringHighlight(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ofBeginSaveScreenAsSVG(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDrawBitmapStringHighlight__SWIG_2(self, args);} } } if (argc == 3) { int _v; +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBeginSaveScreenAsSVG",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofBeginSaveScreenAsSVG(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBeginSaveScreenAsSVG",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofBeginSaveScreenAsSVG(arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDrawBitmapStringHighlight__SWIG_1(self, args);} } } } if (argc == 3) { int _v; + return _wrap_ofBeginSaveScreenAsSVG__SWIG_3(self, args);} } if (argc == 2) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofDrawBitmapStringHighlight__SWIG_5(self, args);} } } } if (argc == 4) { int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDrawBitmapStringHighlight__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsSVG__SWIG_2(self, args);} } } if (argc == 3) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDrawBitmapStringHighlight__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsSVG__SWIG_1(self, args);} } } } if (argc == 4) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofDrawBitmapStringHighlight__SWIG_3(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawBitmapStringHighlight'.\n" - " Possible C/C++ prototypes are:\n" - " ofDrawBitmapStringHighlight(std::string,ofPoint const &,ofColor const &,ofColor const &)\n" - " ofDrawBitmapStringHighlight(std::string,ofPoint const &,ofColor const &)\n" - " ofDrawBitmapStringHighlight(std::string,ofPoint const &)\n" - " ofDrawBitmapStringHighlight(std::string,int,int,ofColor const &,ofColor const &)\n" - " ofDrawBitmapStringHighlight(std::string,int,int,ofColor const &)\n" - " ofDrawBitmapStringHighlight(std::string,int,int)\n"); return 0; } + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBeginSaveScreenAsSVG__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBeginSaveScreenAsSVG'.\n" + " Possible C/C++ prototypes are:\n" " ofBeginSaveScreenAsSVG(std::string,bool,bool,ofRectangle)\n" + " ofBeginSaveScreenAsSVG(std::string,bool,bool)\n" " ofBeginSaveScreenAsSVG(std::string,bool)\n" + " ofBeginSaveScreenAsSVG(std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEndSaveScreenAsSVG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEndSaveScreenAsSVG")) SWIG_fail; ofEndSaveScreenAsSVG(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSetPlaneResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetPlaneResolution",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); @@ -42404,8 +49273,8 @@ SWIGINTERN PyObject *_wrap_ofDrawPlane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), P arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawPlane" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ofDrawPlane(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawPlane(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawPlane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -42482,8 +49351,8 @@ SWIGINTERN PyObject *_wrap_ofDrawSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawSphere" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ofDrawSphere(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawSphere(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawSphere__SWIG_3(self, args);} } if (argc == 2) { int _v; @@ -42556,8 +49425,8 @@ SWIGINTERN PyObject *_wrap_ofDrawIcoSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawIcoSphere" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ofDrawIcoSphere(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawIcoSphere(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawIcoSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawIcoSphere__SWIG_3(self, args);} } if (argc == 2) { int _v; @@ -42598,8 +49467,8 @@ SWIGINTERN PyObject *_wrap_ofSetCylinderResolution__SWIG_1(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetCylinderResolution" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ofSetCylinderResolution(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetCylinderResolution(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetCylinderResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -42669,8 +49538,8 @@ SWIGINTERN PyObject *_wrap_ofDrawCylinder__SWIG_3(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCylinder" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ofDrawCylinder(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawCylinder(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawCylinder(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -42715,8 +49584,8 @@ SWIGINTERN PyObject *_wrap_ofSetConeResolution__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetConeResolution" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ofSetConeResolution(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetConeResolution(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetConeResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -42785,8 +49654,8 @@ SWIGINTERN PyObject *_wrap_ofDrawCone__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCone" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ofDrawCone(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawCone(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawCone(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -42828,8 +49697,8 @@ SWIGINTERN PyObject *_wrap_ofSetBoxResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(s SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetBoxResolution" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ofSetBoxResolution(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetBoxResolution(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSetBoxResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetBoxResolution__SWIG_0(self, args);} } if (argc == 3) { int _v; { @@ -42921,8 +49790,8 @@ SWIGINTERN PyObject *_wrap_ofDrawBox__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyO SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBox" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ofDrawBox(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDrawBox(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofDrawBox(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawBox__SWIG_4(self, args);} } if (argc == 2) { int _v; @@ -42954,6 +49823,916 @@ SWIGINTERN PyObject *_wrap_ofDrawBox(PyObject *self, PyObject *args) { int argc; " Possible C/C++ prototypes are:\n" " ofDrawBox(float,float,float,float,float,float)\n" " ofDrawBox(float,float,float,float)\n" " ofDrawBox(ofPoint const &,float,float,float)\n" " ofDrawBox(ofPoint const &,float)\n" " ofDrawBox(float)\n" " ofDrawBox(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_new_of3dGraphics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseRenderer *arg1 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + of3dGraphics *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_of3dGraphics",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_of3dGraphics" "', argument " "1"" of type '" "ofBaseRenderer *""'"); } + arg1 = reinterpret_cast< ofBaseRenderer * >(argp1); result = (of3dGraphics *)new of3dGraphics(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_of3dGraphics, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setPlaneResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_setPlaneResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setPlaneResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setPlaneResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setPlaneResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setPlaneResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getPlaneResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec2f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getPlaneResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getPlaneResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getPlaneResolution(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawPlane" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawPlane(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawPlane" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawPlane" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((of3dGraphics const *)arg1)->drawPlane(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "ofPoint &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "ofPoint &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawPlane(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawPlane(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_0(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawPlane'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawPlane(float,float,float,float) const\n" + " of3dGraphics::drawPlane(float,float,float,float,float) const\n" + " of3dGraphics::drawPlane(ofPoint &,float,float) const\n" " of3dGraphics::drawPlane(float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_setSphereResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setSphereResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setSphereResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setSphereResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getSphereResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getSphereResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = (int)((of3dGraphics const *)arg1)->getSphereResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawSphere",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawSphere(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawSphere",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawSphere" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawSphere(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawSphere",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawSphere((ofPoint const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawSphere",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawSphere(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawSphere'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawSphere(float,float,float) const\n" + " of3dGraphics::drawSphere(float,float,float,float) const\n" " of3dGraphics::drawSphere(ofPoint const &,float) const\n" + " of3dGraphics::drawSphere(float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setIcoSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_setIcoSphereResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setIcoSphereResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setIcoSphereResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setIcoSphereResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getIcoSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getIcoSphereResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getIcoSphereResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = (int)((of3dGraphics const *)arg1)->getIcoSphereResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawIcoSphere",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawIcoSphere(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawIcoSphere",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawIcoSphere(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawIcoSphere",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawIcoSphere((ofPoint const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawIcoSphere",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawIcoSphere(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawIcoSphere'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawIcoSphere(float,float,float,float) const\n" + " of3dGraphics::drawIcoSphere(float,float,float) const\n" " of3dGraphics::drawIcoSphere(ofPoint const &,float) const\n" + " of3dGraphics::drawIcoSphere(float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setCylinderResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_setCylinderResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setCylinderResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setCylinderResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_setCylinderResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setCylinderResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setCylinderResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setCylinderResolution__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setCylinderResolution__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_setCylinderResolution'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::setCylinderResolution(int,int,int)\n" + " of3dGraphics::setCylinderResolution(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getCylinderResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getCylinderResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getCylinderResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getCylinderResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCylinder" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawCylinder(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCylinder" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawCylinder" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((of3dGraphics const *)arg1)->drawCylinder(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawCylinder((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawCylinder(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_0(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawCylinder'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawCylinder(float,float,float,float) const\n" + " of3dGraphics::drawCylinder(float,float,float,float,float) const\n" + " of3dGraphics::drawCylinder(ofPoint const &,float,float) const\n" " of3dGraphics::drawCylinder(float,float) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setConeResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_setConeResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setConeResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setConeResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setConeResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_setConeResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setConeResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setConeResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_setConeResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setConeResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setConeResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setConeResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setConeResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setConeResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setConeResolution__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setConeResolution__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_setConeResolution'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::setConeResolution(int,int,int)\n" + " of3dGraphics::setConeResolution(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getConeResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getConeResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getConeResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getConeResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCone" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawCone" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((of3dGraphics const *)arg1)->drawCone(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCone" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawCone(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawCone((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawCone(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawCone'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawCone(float,float,float,float,float) const\n" + " of3dGraphics::drawCone(float,float,float,float) const\n" + " of3dGraphics::drawCone(ofPoint const &,float,float) const\n" " of3dGraphics::drawCone(float,float) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setBoxResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_setBoxResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setBoxResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setBoxResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setBoxResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setBoxResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_setBoxResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setBoxResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setBoxResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setBoxResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_setBoxResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setBoxResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setBoxResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setBoxResolution__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setBoxResolution__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_setBoxResolution'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::setBoxResolution(int)\n" + " of3dGraphics::setBoxResolution(int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getBoxResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getBoxResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getBoxResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getBoxResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawBox" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawBox" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "of3dGraphics_drawBox" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((of3dGraphics const *)arg1)->drawBox(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawBox" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawBox(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawBox" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawBox((ofPoint const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawBox((ofPoint const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawBox",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawBox(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawBox(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_4(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_5(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_1(self, args);} } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawBox'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawBox(float,float,float,float,float,float) const\n" + " of3dGraphics::drawBox(float,float,float,float) const\n" + " of3dGraphics::drawBox(ofPoint const &,float,float,float) const\n" + " of3dGraphics::drawBox(ofPoint const &,float) const\n" " of3dGraphics::drawBox(float) const\n" + " of3dGraphics::drawBox(float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawAxis",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawAxis" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawAxis" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawAxis(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; size_t arg3 ; bool arg4 ; bool arg5 ; bool arg6 ; bool arg7 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:of3dGraphics_drawGrid",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawGrid" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawGrid" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawGrid" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawGrid" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawGrid" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawGrid" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "of3dGraphics_drawGrid" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); ((of3dGraphics const *)arg1)->drawGrid(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawGridPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; size_t arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawGridPlane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawGridPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawGridPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawGridPlane" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawGridPlane" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ((of3dGraphics const *)arg1)->drawGridPlane(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawArrow",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawArrow" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "of3dGraphics_drawArrow" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawArrow" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawArrow" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); + ((of3dGraphics const *)arg1)->drawArrow((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawRotationAxes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawRotationAxes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((of3dGraphics const *)arg1)->drawRotationAxes(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_of3dGraphics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_of3dGraphics",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_of3dGraphics" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *of3dGraphics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_of3dGraphics, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + SWIGINTERN PyObject *_wrap_new_ofTrueTypeFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTrueTypeFont")) SWIG_fail; result = (ofTrueTypeFont *)new ofTrueTypeFont(); @@ -42966,155 +50745,168 @@ SWIGINTERN PyObject *_wrap_delete_ofTrueTypeFont(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTrueTypeFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setGlobalDpi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_setGlobalDpi",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTrueTypeFont_setGlobalDpi" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ofTrueTypeFont::setGlobalDpi(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; int arg3 ; bool arg4 ; bool arg5 ; - bool arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; - bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofTrueTypeFont_loadFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; bool arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; + int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_loadFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_loadFont" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_loadFont" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_loadFont" "', argument " "4"" of type '" "bool""'"); } + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_loadFont" "', argument " "5"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_loadFont" "', argument " "6"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_load" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTrueTypeFont_loadFont" "', argument " "7"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTrueTypeFont_load" "', argument " "7"" of type '" "float""'"); } arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTrueTypeFont_loadFont" "', argument " "8"" of type '" "int""'"); } - arg8 = static_cast< int >(val8); result = (bool)(arg1)->loadFont(arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; int arg3 ; bool arg4 ; bool arg5 ; - bool arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; - int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTrueTypeFont_loadFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTrueTypeFont_load" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; bool arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; + bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_loadFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_loadFont" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_loadFont" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_loadFont" "', argument " "4"" of type '" "bool""'"); } + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_loadFont" "', argument " "5"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_loadFont" "', argument " "6"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_load" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTrueTypeFont_loadFont" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); result = (bool)(arg1)->loadFont(arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; int arg3 ; bool arg4 ; bool arg5 ; - bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; - int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTrueTypeFont_loadFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTrueTypeFont_load" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; bool val4 ; + int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_loadFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_loadFont" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_loadFont" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_loadFont" "', argument " "4"" of type '" "bool""'"); } + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_loadFont" "', argument " "5"" of type '" "bool""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_loadFont" "', argument " "6"" of type '" "bool""'"); } - arg6 = static_cast< bool >(val6); result = (bool)(arg1)->loadFont(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; int arg3 ; bool arg4 ; bool arg5 ; - void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTrueTypeFont_loadFont",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_load" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_loadFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_loadFont" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_loadFont" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_loadFont" "', argument " "4"" of type '" "bool""'"); } + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_loadFont" "', argument " "5"" of type '" "bool""'"); } - arg5 = static_cast< bool >(val5); result = (bool)(arg1)->loadFont(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; int arg3 ; bool arg4 ; - void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_loadFont",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_loadFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_loadFont" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_loadFont" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_loadFont" "', argument " "4"" of type '" "bool""'"); } - arg4 = static_cast< bool >(val4); result = (bool)(arg1)->loadFont(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; int arg3 ; void *argp1 = 0 ; - int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_loadFont",&obj0,&obj1,&obj2)) SWIG_fail; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_loadFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_loadFont" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_loadFont" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (bool)(arg1)->loadFont(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->load((std::string const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_loadFont__SWIG_5(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + return _wrap_ofTrueTypeFont_load__SWIG_5(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_loadFont__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + return _wrap_ofTrueTypeFont_load__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_loadFont__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); - if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + return _wrap_ofTrueTypeFont_load__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_loadFont__SWIG_2(self, args);} } } } } } } if (argc == 7) { int _v; + return _wrap_ofTrueTypeFont_load__SWIG_2(self, args);} } } } } } } if (argc == 7) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -43122,7 +50914,7 @@ SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont(PyObject *self, PyObject *arg int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_loadFont__SWIG_1(self, args);} } } } } } } } if (argc == 8) { int _v; + return _wrap_ofTrueTypeFont_load__SWIG_1(self, args);} } } } } } } } if (argc == 8) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -43131,46 +50923,61 @@ SWIGINTERN PyObject *_wrap_ofTrueTypeFont_loadFont(PyObject *self, PyObject *arg int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_loadFont__SWIG_0(self, args);} } } } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_loadFont'.\n" - " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::loadFont(std::string,int,bool,bool,bool,float,int)\n" - " ofTrueTypeFont::loadFont(std::string,int,bool,bool,bool,float)\n" - " ofTrueTypeFont::loadFont(std::string,int,bool,bool,bool)\n" " ofTrueTypeFont::loadFont(std::string,int,bool,bool)\n" - " ofTrueTypeFont::loadFont(std::string,int,bool)\n" " ofTrueTypeFont::loadFont(std::string,int)\n"); return 0; } + return _wrap_ofTrueTypeFont_load__SWIG_0(self, args);} } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_load'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::load(std::string const &,int,bool,bool,bool,float,int)\n" + " ofTrueTypeFont::load(std::string const &,int,bool,bool,bool,float)\n" + " ofTrueTypeFont::load(std::string const &,int,bool,bool,bool)\n" + " ofTrueTypeFont::load(std::string const &,int,bool,bool)\n" " ofTrueTypeFont::load(std::string const &,int,bool)\n" + " ofTrueTypeFont::load(std::string const &,int)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_isLoaded",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_isLoaded" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)(arg1)->isLoaded(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_isLoaded" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)((ofTrueTypeFont const *)arg1)->isLoaded(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setGlobalDpi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_setGlobalDpi",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTrueTypeFont_setGlobalDpi" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofTrueTypeFont::setGlobalDpi(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_isAntiAliased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_isAntiAliased",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_isAntiAliased" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)(arg1)->isAntiAliased(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_isAntiAliased" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)((ofTrueTypeFont const *)arg1)->isAntiAliased(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_hasFullCharacterSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_hasFullCharacterSet",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_hasFullCharacterSet" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)(arg1)->hasFullCharacterSet(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_hasFullCharacterSet" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)((ofTrueTypeFont const *)arg1)->hasFullCharacterSet(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getNumCharacters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getNumCharacters",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getNumCharacters" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (int)((ofTrueTypeFont const *)arg1)->getNumCharacters(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getSize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getSize" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (int)(arg1)->getSize(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getSize" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (int)((ofTrueTypeFont const *)arg1)->getSize(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getLineHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getLineHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getLineHeight" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)(arg1)->getLineHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getLineHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getLineHeight(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setLineHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -43182,12 +50989,34 @@ SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setLineHeight(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_setLineHeight" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); (arg1)->setLineHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getAscenderHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getAscenderHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getAscenderHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getAscenderHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getDescenderHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getDescenderHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getDescenderHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getDescenderHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getGlyphBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofRectangle *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getGlyphBBox",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getGlyphBBox" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (ofRectangle *) &((ofTrueTypeFont const *)arg1)->getGlyphBBox(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, 0 | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getLetterSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getLetterSpacing",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getLetterSpacing" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)(arg1)->getLetterSpacing(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getLetterSpacing" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getLetterSpacing(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setLetterSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -43203,8 +51032,8 @@ SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getSpaceSize(PyObject *SWIGUNUSEDPARM( PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getSpaceSize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getSpaceSize" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)(arg1)->getSpaceSize(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getSpaceSize" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getSpaceSize(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setSpaceSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -43217,214 +51046,331 @@ SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setSpaceSize(PyObject *SWIGUNUSEDPARM( arg2 = static_cast< float >(val2); (arg1)->setSpaceSize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_stringWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; float result; + ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_stringWidth",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_stringWidth" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_stringWidth" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_stringWidth" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (float)(arg1)->stringWidth(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_stringWidth" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_stringWidth" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (float)((ofTrueTypeFont const *)arg1)->stringWidth((std::string const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_stringHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_stringHeight",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_stringHeight" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_stringHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_stringHeight" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (float)(arg1)->stringHeight(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; float arg3 ; float arg4 ; - void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofRectangle result; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_stringHeight" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_stringHeight" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (float)((ofTrueTypeFont const *)arg1)->stringHeight((std::string const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTrueTypeFont_getStringBoundingBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); + result = ((ofTrueTypeFont const *)arg1)->getStringBoundingBox((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getStringBoundingBox",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = (arg1)->getStringBoundingBox(arg2,arg3,arg4); + arg4 = static_cast< float >(val4); + result = ((ofTrueTypeFont const *)arg1)->getStringBoundingBox((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringBoundingBox(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getStringBoundingBox'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getStringBoundingBox(std::string const &,float,float,bool) const\n" + " ofTrueTypeFont::getStringBoundingBox(std::string const &,float,float) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_drawString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; - float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_drawString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_drawString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_drawString" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_drawString" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_drawString" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_drawString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_drawString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_drawString" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_drawString" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->drawString(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg4 = static_cast< float >(val4); ((ofTrueTypeFont const *)arg1)->drawString((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_drawStringAsShapes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; float arg3 ; float arg4 ; - void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_drawStringAsShapes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->drawStringAsShapes(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getNumCharacters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getNumCharacters",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getNumCharacters" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (int)(arg1)->getNumCharacters(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + arg4 = static_cast< float >(val4); ((ofTrueTypeFont const *)arg1)->drawStringAsShapes((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; int arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofTTFCharacter result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getCharacterAsPoints",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = ((ofTrueTypeFont const *)arg1)->getCharacterAsPoints(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofTTFCharacter(static_cast< const ofTTFCharacter& >(result))), SWIGTYPE_p_ofTTFCharacter, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofTTFCharacter result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_getCharacterAsPoints",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (arg1)->getCharacterAsPoints(arg2,arg3); + arg3 = static_cast< bool >(val3); result = ((ofTrueTypeFont const *)arg1)->getCharacterAsPoints(arg2,arg3); resultobj = SWIG_NewPointerObj((new ofTTFCharacter(static_cast< const ofTTFCharacter& >(result))), SWIGTYPE_p_ofTTFCharacter, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofTTFCharacter result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_getCharacterAsPoints",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (arg1)->getCharacterAsPoints(arg2); + arg2 = static_cast< int >(val2); result = ((ofTrueTypeFont const *)arg1)->getCharacterAsPoints(arg2); resultobj = SWIG_NewPointerObj((new ofTTFCharacter(static_cast< const ofTTFCharacter& >(result))), SWIGTYPE_p_ofTTFCharacter, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_0(self, args);} } } } fail: + return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getCharacterAsPoints'.\n" - " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getCharacterAsPoints(int,bool)\n" - " ofTrueTypeFont::getCharacterAsPoints(int)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getCharacterAsPoints(int,bool,bool) const\n" + " ofTrueTypeFont::getCharacterAsPoints(int,bool) const\n" " ofTrueTypeFont::getCharacterAsPoints(int) const\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; - int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; bool arg3 ; bool arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; SwigValueWrapper< std::vector< ofTTFCharacter > > result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_getStringAsPoints",&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getStringAsPoints",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< bool >(val3); result = (arg1)->getStringAsPoints(arg2,arg3); + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); + result = ((ofTrueTypeFont const *)arg1)->getStringAsPoints((std::string const &)*arg2,arg3,arg4); resultobj = SWIG_NewPointerObj((new std::vector< ofTTFCharacter >(static_cast< const std::vector< ofTTFCharacter >& >(result))), SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< ofTTFCharacter > > result; + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; SwigValueWrapper< std::vector< ofTTFCharacter > > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_getStringAsPoints",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); + result = ((ofTrueTypeFont const *)arg1)->getStringAsPoints((std::string const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new std::vector< ofTTFCharacter >(static_cast< const std::vector< ofTTFCharacter >& >(result))), SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + SwigValueWrapper< std::vector< ofTTFCharacter > > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_getStringAsPoints",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (arg1)->getStringAsPoints(arg2); + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofTrueTypeFont const *)arg1)->getStringAsPoints((std::string const &)*arg2); resultobj = SWIG_NewPointerObj((new std::vector< ofTTFCharacter >(static_cast< const std::vector< ofTTFCharacter >& >(result))), SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_0(self, args);} } } } fail: + return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_0(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getStringAsPoints'.\n" - " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getStringAsPoints(std::string,bool)\n" - " ofTrueTypeFont::getStringAsPoints(std::string)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string arg2 ; float arg3 ; float arg4 ; - void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMesh *result = 0 ; + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getStringAsPoints(std::string const &,bool,bool) const\n" + " ofTrueTypeFont::getStringAsPoints(std::string const &,bool) const\n" + " ofTrueTypeFont::getStringAsPoints(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringMesh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTrueTypeFont_getStringMesh",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); + result = (ofMesh *) &((ofTrueTypeFont const *)arg1)->getStringMesh((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMesh *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getStringMesh",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string""'"); } - arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = (ofMesh *) &(arg1)->getStringMesh(arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); return resultobj; fail: return NULL; } + arg4 = static_cast< float >(val4); + result = (ofMesh *) &((ofTrueTypeFont const *)arg1)->getStringMesh((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringMesh__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringMesh__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getStringMesh'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getStringMesh(std::string const &,float,float,bool) const\n" + " ofTrueTypeFont::getStringMesh(std::string const &,float,float) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getFontTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getFontTexture",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getFontTexture" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (ofTexture *) &(arg1)->getFontTexture(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getFontTexture" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (ofTexture *) &((ofTrueTypeFont const *)arg1)->getFontTexture(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_bind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_bind" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); (arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_unbind",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_unbind" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); (arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTextEncoding result; - if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getEncoding",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getEncoding" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (ofTextEncoding)((ofTrueTypeFont const *)arg1)->getEncoding(); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; ofTextEncoding arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_setEncoding",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_setEncoding" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } - arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_setEncoding" "', argument " "2"" of type '" "ofTextEncoding""'"); } - arg2 = static_cast< ofTextEncoding >(val2); (arg1)->setEncoding(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofTrueTypeFont_lineHeight_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -43797,8 +51743,8 @@ SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_9(PyObject *SWIGUNUSEDPARM(self result = (ofMatrix3x3 *)new ofMatrix3x3(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofMatrix3x3(PyObject *self, PyObject *args) { int argc; PyObject *argv[10]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofMatrix3x3__SWIG_9(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofMatrix3x3__SWIG_8(self, args);} } if (argc == 2) { int _v; { @@ -43923,8 +51869,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3_transpose__SWIG_1(PyObject *SWIGUNUSEDPAR arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->transpose((ofMatrix3x3 const &)*arg2); resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix3x3_transpose(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix3x3_transpose(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMatrix3x3_transpose__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -43954,8 +51900,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3_determinant__SWIG_1(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_determinant" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (float)(arg1)->determinant((ofMatrix3x3 const &)*arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix3x3_determinant(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix3x3_determinant(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMatrix3x3_determinant__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -43965,6 +51911,20 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3_determinant(PyObject *self, PyObject *arg SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix3x3_determinant'.\n" " Possible C/C++ prototypes are:\n" " ofMatrix3x3::determinant() const\n" " ofMatrix3x3::determinant(ofMatrix3x3 const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_inverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_inverse",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_inverse" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_inverse" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_inverse" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->inverse((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix3x3_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_invert",&obj0)) SWIG_fail; @@ -43972,18 +51932,18 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3_invert(PyObject *SWIGUNUSEDPARM(self), Py SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_invert" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); (arg1)->invert(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix3x3_inverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofMatrix3x3_entrywiseTimes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_inverse",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_entrywiseTimes",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_inverse" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_inverse" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_inverse" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } - arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->inverse((ofMatrix3x3 const &)*arg2); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->entrywiseTimes((ofMatrix3x3 const &)*arg2); resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix3x3___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -44064,20 +52024,6 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul____SWIG_0(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___imul__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); (arg1)->operator *=((ofMatrix3x3 const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix3x3_entrywiseTimes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_entrywiseTimes",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } - arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } - arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->entrywiseTimes((ofMatrix3x3 const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -44088,8 +52034,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul____SWIG_1(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3___imul__" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); (arg1)->operator *=(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { @@ -44114,8 +52060,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3___mul____SWIG_1(PyObject *SWIGUNUSEDPARM( arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->operator *((ofMatrix3x3 const &)*arg2); resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix3x3___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix3x3___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { @@ -44158,8 +52104,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix3x3___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3___idiv__" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); (arg1)->operator /=(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix3x3___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix3x3___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { @@ -44201,7 +52147,7 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4__mat_set(PyObject *SWIGUNUSEDPARM(self), if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4__mat_set" "', argument " "2"" of type '" "ofVec4f [4]""'"); } arg2 = reinterpret_cast< ofVec4f * >(argp2); { if (arg2) { size_t ii = 0; - for (; ii < (size_t)4; ++ii) arg1->_mat[ii] = arg2[ii]; } else { + for (; ii < (size_t)4; ++ii) *(ofVec4f *)&arg1->_mat[ii] = *((ofVec4f *)arg2 + ii); } else { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""_mat""' of type '""ofVec4f [4]""'"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix4x4__mat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -44292,8 +52238,8 @@ SWIGINTERN PyObject *_wrap_new_ofMatrix4x4__SWIG_4(PyObject *SWIGUNUSEDPARM(self result = (ofMatrix4x4 *)new ofMatrix4x4(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofMatrix4x4(PyObject *self, PyObject *args) { int argc; PyObject *argv[17]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofMatrix4x4(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[17] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 16) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofMatrix4x4__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { @@ -44322,214 +52268,16 @@ SWIGINTERN PyObject *_wrap_new_ofMatrix4x4(PyObject *self, PyObject *args) { int } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofMatrix4x4'.\n" " Possible C/C++ prototypes are:\n" " ofMatrix4x4::ofMatrix4x4()\n" " ofMatrix4x4::ofMatrix4x4(ofMatrix4x4 const &)\n" - " ofMatrix4x4::ofMatrix4x4(float const *const)\n" " ofMatrix4x4::ofMatrix4x4(ofQuaternion const &)\n" - " ofMatrix4x4::ofMatrix4x4(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_delete_ofMatrix4x4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMatrix4x4",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMatrix4x4" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4___call__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___call__" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4___call__" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4___call__" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (float *) &(arg1)->operator ()(arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_getRowAsVec3f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_getRowAsVec3f",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getRowAsVec3f" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_getRowAsVec3f" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofMatrix4x4 const *)arg1)->getRowAsVec3f(arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_getRowAsVec4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_getRowAsVec4f",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getRowAsVec4f" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_getRowAsVec4f" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = ((ofMatrix4x4 const *)arg1)->getRowAsVec4f(arg2); - resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isValid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isValid" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isValid(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_isNaN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isNaN",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isNaN" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isNaN(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->set((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float *arg2 = (float *) (float *)0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "float const *const""'"); } - arg2 = reinterpret_cast< float * >(argp2); (arg1)->set((float const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "double const *const""'"); } - arg2 = reinterpret_cast< double * >(argp2); (arg1)->set((double const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; - float arg8 ; float arg9 ; float arg10 ; float arg11 ; float arg12 ; float arg13 ; float arg14 ; float arg15 ; float arg16 ; - float arg17 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; - int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; int ecode11 = 0 ; float val12 ; - int ecode12 = 0 ; float val13 ; int ecode13 = 0 ; float val14 ; int ecode14 = 0 ; float val15 ; int ecode15 = 0 ; - float val16 ; int ecode16 = 0 ; float val17 ; int ecode17 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; - PyObject * obj12 = 0 ; PyObject * obj13 = 0 ; PyObject * obj14 = 0 ; PyObject * obj15 = 0 ; PyObject * obj16 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOOOOO:ofMatrix4x4_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_set" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_set" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_set" "', argument " "6"" of type '" "float""'"); } - arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofMatrix4x4_set" "', argument " "7"" of type '" "float""'"); } - arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofMatrix4x4_set" "', argument " "8"" of type '" "float""'"); } - arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofMatrix4x4_set" "', argument " "9"" of type '" "float""'"); } - arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofMatrix4x4_set" "', argument " "10"" of type '" "float""'"); } - arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofMatrix4x4_set" "', argument " "11"" of type '" "float""'"); } - arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofMatrix4x4_set" "', argument " "12"" of type '" "float""'"); } - arg12 = static_cast< float >(val12); ecode13 = SWIG_AsVal_float(obj12, &val13); if (!SWIG_IsOK(ecode13)) { - SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "ofMatrix4x4_set" "', argument " "13"" of type '" "float""'"); } - arg13 = static_cast< float >(val13); ecode14 = SWIG_AsVal_float(obj13, &val14); if (!SWIG_IsOK(ecode14)) { - SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "ofMatrix4x4_set" "', argument " "14"" of type '" "float""'"); } - arg14 = static_cast< float >(val14); ecode15 = SWIG_AsVal_float(obj14, &val15); if (!SWIG_IsOK(ecode15)) { - SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "ofMatrix4x4_set" "', argument " "15"" of type '" "float""'"); } - arg15 = static_cast< float >(val15); ecode16 = SWIG_AsVal_float(obj15, &val16); if (!SWIG_IsOK(ecode16)) { - SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "ofMatrix4x4_set" "', argument " "16"" of type '" "float""'"); } - arg16 = static_cast< float >(val16); ecode17 = SWIG_AsVal_float(obj16, &val17); if (!SWIG_IsOK(ecode17)) { - SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "ofMatrix4x4_set" "', argument " "17"" of type '" "float""'"); } - arg17 = static_cast< float >(val17); - (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[18]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 17) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_set__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_set__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_set__SWIG_2(self, args);} } } if (argc == 17) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[12], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[13], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[14], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[15], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[16], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrix4x4_set__SWIG_3(self, args);} } } } } } } } } } } } } } - } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_set'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::set(ofMatrix4x4 const &)\n" - " ofMatrix4x4::set(float const *const)\n" " ofMatrix4x4::set(double const *const)\n" - " ofMatrix4x4::set(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getPtr" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (float *)(arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getPtr" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (float *)((ofMatrix4x4 const *)arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_getPtr__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_getPtr'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::getPtr()\n" " ofMatrix4x4::getPtr() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_isIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isIdentity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isIdentity" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isIdentity(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } + " ofMatrix4x4::ofMatrix4x4(float const *const)\n" " ofMatrix4x4::ofMatrix4x4(ofQuaternion const &)\n" + " ofMatrix4x4::ofMatrix4x4(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofMatrix4x4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMatrix4x4",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMatrix4x4" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_makeIdentityMatrix",&obj0)) SWIG_fail; @@ -44565,8 +52313,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeScaleMatrix__SWIG_1(PyObject *SWIGUNU SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); (arg1)->makeScaleMatrix(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeScaleMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeScaleMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -44607,8 +52355,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeTranslationMatrix__SWIG_1(PyObject *S SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); (arg1)->makeTranslationMatrix(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeTranslationMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeTranslationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -44718,8 +52466,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix__SWIG_4(PyObject *SWIG arg7 = reinterpret_cast< ofVec3f * >(argp7); (arg1)->makeRotationMatrix(arg2,(ofVec3f const &)*arg3,arg4,(ofVec3f const &)*arg5,arg6,(ofVec3f const &)*arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[8] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { @@ -44797,14 +52545,6 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeFromMultiplicationOf(PyObject *SWIGUN arg3 = reinterpret_cast< ofMatrix4x4 * >(argp3); (arg1)->makeFromMultiplicationOf((ofMatrix4x4 const &)*arg2,(ofMatrix4x4 const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_getInverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getInverse",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getInverse" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ((ofMatrix4x4 const *)arg1)->getInverse(); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeOrthoMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double arg7 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; @@ -44893,50 +52633,572 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeLookAtMatrix(PyObject *SWIGUNUSEDPARM int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_makeLookAtMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } - arg4 = reinterpret_cast< ofVec3f * >(argp4); - (arg1)->makeLookAtMatrix((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + (arg1)->makeLookAtMatrix((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeLookAtViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_makeLookAtViewMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + (arg1)->makeLookAtViewMatrix((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofMatrix4x4_newIdentityMatrix")) SWIG_fail; + result = ofMatrix4x4::newIdentityMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newScaleMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ofMatrix4x4::newScaleMatrix((ofVec3f const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newScaleMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofMatrix4x4::newScaleMatrix(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newScaleMatrix__SWIG_0(self, args);} } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_newScaleMatrix__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newScaleMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newScaleMatrix(ofVec3f const &)\n" + " ofMatrix4x4::newScaleMatrix(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newTranslationMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ofMatrix4x4::newTranslationMatrix((ofVec3f const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newTranslationMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofMatrix4x4::newTranslationMatrix(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[4] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newTranslationMatrix__SWIG_0(self, args);} } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_newTranslationMatrix__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newTranslationMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newTranslationMatrix(ofVec3f const &)\n" + " ofMatrix4x4::newTranslationMatrix(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); + result = ofMatrix4x4::newRotationMatrix((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ofMatrix4x4::newRotationMatrix(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; ofVec3f *arg2 = 0 ; float val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ofMatrix4x4::newRotationMatrix(arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; ofVec3f *arg2 = 0 ; float arg3 ; ofVec3f *arg4 = 0 ; float arg5 ; ofVec3f *arg6 = 0 ; + float val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + float val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "6"" of type '" "ofVec3f const &""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "6"" of type '" "ofVec3f const &""'"); } + arg6 = reinterpret_cast< ofVec3f * >(argp6); + result = ofMatrix4x4::newRotationMatrix(arg1,(ofVec3f const &)*arg2,arg3,(ofVec3f const &)*arg4,arg5,(ofVec3f const &)*arg6); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newRotationMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofQuaternion, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofQuaternion const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofQuaternion const &""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ofMatrix4x4::newRotationMatrix((ofQuaternion const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_0(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_2(self, args);} } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_1(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_3(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newRotationMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newRotationMatrix(ofVec3f const &,ofVec3f const &)\n" + " ofMatrix4x4::newRotationMatrix(float,float,float,float)\n" " ofMatrix4x4::newRotationMatrix(float,ofVec3f const &)\n" + " ofMatrix4x4::newRotationMatrix(float,ofVec3f const &,float,ofVec3f const &,float,ofVec3f const &)\n" + " ofMatrix4x4::newRotationMatrix(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newOrthoMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + double arg1 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double val1 ; int ecode1 = 0 ; + double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; + double val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newOrthoMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "6"" of type '" "double""'"); } + arg6 = static_cast< double >(val6); result = ofMatrix4x4::newOrthoMatrix(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newOrtho2DMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; + int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newOrtho2DMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); result = ofMatrix4x4::newOrtho2DMatrix(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newFrustumMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double val1 ; + int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; + int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newFrustumMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "6"" of type '" "double""'"); } + arg6 = static_cast< double >(val6); result = ofMatrix4x4::newFrustumMatrix(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newPerspectiveMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; + int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newPerspectiveMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); result = ofMatrix4x4::newPerspectiveMatrix(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newLookAtMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newLookAtMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); + result = ofMatrix4x4::newLookAtMatrix((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; std::size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4___call__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___call__" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4___call__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4___call__" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); result = (float *) &(arg1)->operator ()(arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; std::size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4___call__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___call__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4___call__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4___call__" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); result = (float)((ofMatrix4x4 const *)arg1)->operator ()(arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___call__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4___call____SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4___call____SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4___call__'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::operator ()(std::size_t,std::size_t)\n" + " ofMatrix4x4::operator ()(std::size_t,std::size_t) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getRowAsVec3f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_getRowAsVec3f",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getRowAsVec3f" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_getRowAsVec3f" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = ((ofMatrix4x4 const *)arg1)->getRowAsVec3f(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getRowAsVec4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_getRowAsVec4f",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getRowAsVec4f" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_getRowAsVec4f" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = ((ofMatrix4x4 const *)arg1)->getRowAsVec4f(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getPtr" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (float *)(arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getPtr" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (float *)((ofMatrix4x4 const *)arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_getPtr__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_getPtr'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::getPtr()\n" " ofMatrix4x4::getPtr() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isValid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isValid" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isValid(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_isNaN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isNaN",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isNaN" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isNaN(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_isIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isIdentity",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isIdentity" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isIdentity(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->set((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float *arg2 = (float *) (float *)0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "float const *const""'"); } + arg2 = reinterpret_cast< float * >(argp2); (arg1)->set((float const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "double const *const""'"); } + arg2 = reinterpret_cast< double * >(argp2); (arg1)->set((double const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + float arg8 ; float arg9 ; float arg10 ; float arg11 ; float arg12 ; float arg13 ; float arg14 ; float arg15 ; float arg16 ; + float arg17 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; + int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; int ecode11 = 0 ; float val12 ; + int ecode12 = 0 ; float val13 ; int ecode13 = 0 ; float val14 ; int ecode14 = 0 ; float val15 ; int ecode15 = 0 ; + float val16 ; int ecode16 = 0 ; float val17 ; int ecode17 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + PyObject * obj12 = 0 ; PyObject * obj13 = 0 ; PyObject * obj14 = 0 ; PyObject * obj15 = 0 ; PyObject * obj16 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOOOOO:ofMatrix4x4_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_set" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofMatrix4x4_set" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofMatrix4x4_set" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofMatrix4x4_set" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofMatrix4x4_set" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofMatrix4x4_set" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofMatrix4x4_set" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ecode13 = SWIG_AsVal_float(obj12, &val13); if (!SWIG_IsOK(ecode13)) { + SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "ofMatrix4x4_set" "', argument " "13"" of type '" "float""'"); } + arg13 = static_cast< float >(val13); ecode14 = SWIG_AsVal_float(obj13, &val14); if (!SWIG_IsOK(ecode14)) { + SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "ofMatrix4x4_set" "', argument " "14"" of type '" "float""'"); } + arg14 = static_cast< float >(val14); ecode15 = SWIG_AsVal_float(obj14, &val15); if (!SWIG_IsOK(ecode15)) { + SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "ofMatrix4x4_set" "', argument " "15"" of type '" "float""'"); } + arg15 = static_cast< float >(val15); ecode16 = SWIG_AsVal_float(obj15, &val16); if (!SWIG_IsOK(ecode16)) { + SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "ofMatrix4x4_set" "', argument " "16"" of type '" "float""'"); } + arg16 = static_cast< float >(val16); ecode17 = SWIG_AsVal_float(obj16, &val17); if (!SWIG_IsOK(ecode17)) { + SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "ofMatrix4x4_set" "', argument " "17"" of type '" "float""'"); } + arg17 = static_cast< float >(val17); + (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[18] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 17) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_2(self, args);} } } if (argc == 17) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[12], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[13], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[14], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[15], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[16], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_3(self, args);} } } } } } } } } } } } } } + } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_set'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::set(ofMatrix4x4 const &)\n" + " ofMatrix4x4::set(float const *const)\n" " ofMatrix4x4::set(double const *const)\n" + " ofMatrix4x4::set(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getInverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getInverse",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getInverse" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ((ofMatrix4x4 const *)arg1)->getInverse(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeLookAtViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; - int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_makeLookAtViewMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } - arg4 = reinterpret_cast< ofVec3f * >(argp4); - (arg1)->makeLookAtViewMatrix((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix4x4_getOrtho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double *arg2 = 0 ; double *arg3 = 0 ; double *arg4 = 0 ; double *arg5 = 0 ; double *arg6 = 0 ; double *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; @@ -45103,8 +53365,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_getLookAt__SWIG_1(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getLookAt" "', argument " "4"" of type '" "ofVec3f &""'"); } arg4 = reinterpret_cast< ofVec3f * >(argp4); ((ofMatrix4x4 const *)arg1)->getLookAt(*arg2,*arg3,*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_getLookAt(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getLookAt(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45150,197 +53412,6 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_decompose(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_decompose" "', argument " "5"" of type '" "ofQuaternion &""'"); } arg5 = reinterpret_cast< ofQuaternion * >(argp5); ((ofMatrix4x4 const *)arg1)->decompose(*arg2,*arg3,*arg4,*arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofMatrix4x4_newIdentityMatrix")) SWIG_fail; - result = ofMatrix4x4::newIdentityMatrix(); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newScaleMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ofMatrix4x4::newScaleMatrix((ofVec3f const &)*arg1); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newScaleMatrix",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = ofMatrix4x4::newScaleMatrix(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_newScaleMatrix__SWIG_0(self, args);} } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrix4x4_newScaleMatrix__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newScaleMatrix'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newScaleMatrix(ofVec3f const &)\n" - " ofMatrix4x4::newScaleMatrix(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newTranslationMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ofMatrix4x4::newTranslationMatrix((ofVec3f const &)*arg1); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; - float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newTranslationMatrix",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = ofMatrix4x4::newTranslationMatrix(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; - int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_newTranslationMatrix__SWIG_0(self, args);} } if (argc == 3) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrix4x4_newTranslationMatrix__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newTranslationMatrix'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newTranslationMatrix(ofVec3f const &)\n" - " ofMatrix4x4::newTranslationMatrix(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); - result = ofMatrix4x4::newRotationMatrix((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = ofMatrix4x4::newRotationMatrix(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; ofVec3f *arg2 = 0 ; float val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ofMatrix4x4::newRotationMatrix(arg1,(ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; float arg1 ; ofVec3f *arg2 = 0 ; float arg3 ; ofVec3f *arg4 = 0 ; float arg5 ; ofVec3f *arg6 = 0 ; - float val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; - float val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } - arg4 = reinterpret_cast< ofVec3f * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "6"" of type '" "ofVec3f const &""'"); } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "6"" of type '" "ofVec3f const &""'"); } - arg6 = reinterpret_cast< ofVec3f * >(argp6); - result = ofMatrix4x4::newRotationMatrix(arg1,(ofVec3f const &)*arg2,arg3,(ofVec3f const &)*arg4,arg5,(ofVec3f const &)*arg6); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newRotationMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofQuaternion, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofQuaternion const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofQuaternion const &""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ofMatrix4x4::newRotationMatrix((ofQuaternion const &)*arg1); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_4(self, args);} } if (argc == 2) { int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_0(self, args);} } } if (argc == 2) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_2(self, args);} } } if (argc == 4) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_1(self, args);} } } } } if (argc == 6) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_3(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newRotationMatrix'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newRotationMatrix(ofVec3f const &,ofVec3f const &)\n" - " ofMatrix4x4::newRotationMatrix(float,float,float,float)\n" " ofMatrix4x4::newRotationMatrix(float,ofVec3f const &)\n" - " ofMatrix4x4::newRotationMatrix(float,ofVec3f const &,float,ofVec3f const &,float,ofVec3f const &)\n" - " ofMatrix4x4::newRotationMatrix(ofQuaternion const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofMatrix4x4_getInverseOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getInverseOf",&obj0)) SWIG_fail; @@ -45371,187 +53442,356 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_getOrthoNormalOf(PyObject *SWIGUNUSEDPARM arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ofMatrix4x4::getOrthoNormalOf((ofMatrix4x4 const &)*arg1); resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newOrthoMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - double arg1 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double val1 ; int ecode1 = 0 ; - double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - double val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newOrthoMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "1"" of type '" "double""'"); } - arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "2"" of type '" "double""'"); } - arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "3"" of type '" "double""'"); } - arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "4"" of type '" "double""'"); } - arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "5"" of type '" "double""'"); } - arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "6"" of type '" "double""'"); } - arg6 = static_cast< double >(val6); result = ofMatrix4x4::newOrthoMatrix(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->postMult((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newOrtho2DMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; - int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newOrtho2DMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "1"" of type '" "double""'"); } - arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "2"" of type '" "double""'"); } - arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "3"" of type '" "double""'"); } - arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "4"" of type '" "double""'"); } - arg4 = static_cast< double >(val4); result = ofMatrix4x4::newOrtho2DMatrix(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->postMult((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newFrustumMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double val1 ; - int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; - int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newFrustumMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "1"" of type '" "double""'"); } - arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "2"" of type '" "double""'"); } - arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "3"" of type '" "double""'"); } - arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "4"" of type '" "double""'"); } - arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "5"" of type '" "double""'"); } - arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "6"" of type '" "double""'"); } - arg6 = static_cast< double >(val6); result = ofMatrix4x4::newFrustumMatrix(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->postMult((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newPerspectiveMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; - int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newPerspectiveMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "1"" of type '" "double""'"); } - arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "2"" of type '" "double""'"); } - arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "3"" of type '" "double""'"); } - arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "4"" of type '" "double""'"); } - arg4 = static_cast< double >(val4); result = ofMatrix4x4::newPerspectiveMatrix(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMult__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMult__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMult__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMult'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMult(ofVec3f const &) const\n" + " ofMatrix4x4::postMult(ofVec4f const &) const\n" " ofMatrix4x4::postMult(ofMatrix4x4 const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->preMult((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_newLookAtMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newLookAtMatrix",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); - result = ofMatrix4x4::newLookAtMatrix((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->preMult((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->preMult((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_preMult__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_preMult__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_preMult__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_preMult'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::preMult(ofVec3f const &) const\n" + " ofMatrix4x4::preMult(ofVec4f const &) const\n" " ofMatrix4x4::preMult(ofMatrix4x4 const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___imul__" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___imul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___imul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->operator *=((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); + result = ((ofMatrix4x4 const *)arg1)->operator *((ofMatrix4x4 const &)*arg2); resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->operator *((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->operator *((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4___mul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4___mul____SWIG_2(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultTranslate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->postMult((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->postMultTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultScale",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->operator *((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->postMultScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultRotate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } - arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->postMult((ofVec4f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->postMultRotate((ofQuaternion const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_postMultTranslate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->postMultTranslate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMultTranslate__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_postMultTranslate__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultTranslate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultTranslate(ofVec3f const &)\n" + " ofMatrix4x4::postMultTranslate(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_postMultRotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->postMultRotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMultRotate__SWIG_0(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_postMultRotate__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultRotate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultRotate(ofQuaternion const &)\n" + " ofMatrix4x4::postMultRotate(float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_postMultScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultScale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultScale" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->postMultScale(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMultScale__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_postMultScale__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultScale'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultScale(ofVec3f const &)\n" + " ofMatrix4x4::postMultScale(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultScale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } - arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->operator *((ofVec4f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->preMultScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultTranslate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultTranslate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->preMult((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->preMultTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultRotate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } - arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->preMult((ofVec4f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->preMultRotate((ofQuaternion const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix4x4_setRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -45593,8 +53833,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_setTranslation__SWIG_1(PyObject *SWIGUNUS SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_setTranslation" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setTranslation((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_setTranslation(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_setTranslation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45654,8 +53894,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(s SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_rotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->rotate((ofQuaternion const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_rotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45697,8 +53937,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_translate__SWIG_1(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_translate" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->translate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_translate(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_translate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45738,8 +53978,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_scale__SWIG_1(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_scale" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->scale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_scale(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_scale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45800,8 +54040,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_glRotate__SWIG_1(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_glRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->glRotate((ofQuaternion const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_glRotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45843,8 +54083,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_glTranslate__SWIG_1(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_glTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->glTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_glTranslate(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glTranslate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45885,8 +54125,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_glScale__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_glScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->glScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_glScale(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45957,8 +54197,8 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_transform3x3__SWIG_1(PyObject *SWIGUNUSED result = ofMatrix4x4::transform3x3((ofMatrix4x4 const &)*arg1,(ofVec3f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_transform3x3(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrix4x4_transform3x3(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { @@ -45969,272 +54209,6 @@ SWIGINTERN PyObject *_wrap_ofMatrix4x4_transform3x3(PyObject *self, PyObject *ar SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_transform3x3'.\n" " Possible C/C++ prototypes are:\n" " ofMatrix4x4::transform3x3(ofVec3f const &,ofMatrix4x4 const &)\n" " ofMatrix4x4::transform3x3(ofMatrix4x4 const &,ofVec3f const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->postMult((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_postMult__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_postMult__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_postMult__SWIG_2(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMult'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMult(ofVec3f const &) const\n" - " ofMatrix4x4::postMult(ofVec4f const &) const\n" " ofMatrix4x4::postMult(ofMatrix4x4 const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___imul__" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___imul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___imul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->operator *=((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); - result = ((ofMatrix4x4 const *)arg1)->operator *((ofMatrix4x4 const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4___mul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4___mul____SWIG_2(self, args);} } } fail: Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } - arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->preMult((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_preMult__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_preMult__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_preMult__SWIG_2(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_preMult'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::preMult(ofVec3f const &) const\n" - " ofMatrix4x4::preMult(ofVec4f const &) const\n" " ofMatrix4x4::preMult(ofMatrix4x4 const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultTranslate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->postMultTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultScale",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->postMultScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultRotate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->postMultRotate((ofQuaternion const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_postMultTranslate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->postMultTranslate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_postMultTranslate__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrix4x4_postMultTranslate__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultTranslate'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultTranslate(ofVec3f const &)\n" - " ofMatrix4x4::postMultTranslate(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_postMultRotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->postMultRotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_postMultRotate__SWIG_0(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrix4x4_postMultRotate__SWIG_1(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultRotate'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultRotate(ofQuaternion const &)\n" - " ofMatrix4x4::postMultRotate(float,float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_postMultScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultScale" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultScale" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->postMultScale(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrix4x4_postMultScale__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrix4x4_postMultScale__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultScale'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultScale(ofVec3f const &)\n" - " ofMatrix4x4::postMultScale(float,float,float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultScale",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->preMultScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultTranslate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultTranslate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->preMultTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultRotate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } - arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->preMultRotate((ofQuaternion const &)*arg2); - resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrix4x4___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4___str__",&obj0)) SWIG_fail; @@ -46339,8 +54313,8 @@ SWIGINTERN PyObject *_wrap_new_ofQuaternion__SWIG_4(PyObject *SWIGUNUSEDPARM(sel result = (ofQuaternion *)new ofQuaternion(arg1,(ofVec3f const &)*arg2,arg3,(ofVec3f const &)*arg4,arg5,(ofVec3f const &)*arg6); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofQuaternion(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofQuaternion(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofQuaternion__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -46365,76 +54339,6 @@ SWIGINTERN PyObject *_wrap_new_ofQuaternion(PyObject *self, PyObject *args) { in " ofQuaternion::ofQuaternion(float,float,float,float)\n" " ofQuaternion::ofQuaternion(ofVec4f const &)\n" " ofQuaternion::ofQuaternion(float,ofVec3f const &)\n" " ofQuaternion::ofQuaternion(float,ofVec3f const &,float,ofVec3f const &,float,ofVec3f const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofQuaternion___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___eq__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___eq__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___eq__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = (bool)((ofQuaternion const *)arg1)->operator ==((ofQuaternion const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___ne__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___ne__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___ne__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = (bool)((ofQuaternion const *)arg1)->operator !=((ofQuaternion const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___lshift__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ostream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ostream *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___lshift__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___lshift__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___lshift__" "', argument " "2"" of type '" "ostream &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___lshift__" "', argument " "2"" of type '" "ostream &""'"); } - arg2 = reinterpret_cast< ostream * >(argp2); result = (ostream *) &(arg1)->operator <<(*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ostream, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___rshift__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; istream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; istream *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___rshift__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___rshift__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_istream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___rshift__" "', argument " "2"" of type '" "istream &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___rshift__" "', argument " "2"" of type '" "istream &""'"); } - arg2 = reinterpret_cast< istream * >(argp2); result = (istream *) &(arg1)->operator >>(*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_istream, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion_asVec4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_asVec4",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_asVec4" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->asVec4(); - resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion_asVec3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_asVec3",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_asVec3" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->asVec3(); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofQuaternion_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; @@ -46478,8 +54382,8 @@ SWIGINTERN PyObject *_wrap_ofQuaternion_set__SWIG_2(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->set((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofQuaternion_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -46496,19 +54400,6 @@ SWIGINTERN PyObject *_wrap_ofQuaternion_set(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion_set'.\n" " Possible C/C++ prototypes are:\n" " ofQuaternion::set(float,float,float,float)\n" " ofQuaternion::set(ofVec4f const &)\n" " ofQuaternion::set(ofMatrix4x4 const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofQuaternion_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion_get",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_get" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_get" "', argument " "2"" of type '" "ofMatrix4x4 &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_get" "', argument " "2"" of type '" "ofMatrix4x4 &""'"); } - arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); ((ofQuaternion const *)arg1)->get(*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofQuaternion___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; @@ -46529,8 +54420,8 @@ SWIGINTERN PyObject *_wrap_ofQuaternion___getitem____SWIG_1(PyObject *SWIGUNUSED SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (float)((ofQuaternion const *)arg1)->operator [](arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofQuaternion___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -46541,6 +54432,19 @@ SWIGINTERN PyObject *_wrap_ofQuaternion___getitem__(PyObject *self, PyObject *ar SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___getitem__'.\n" " Possible C/C++ prototypes are:\n" " ofQuaternion::operator [](int)\n" " ofQuaternion::operator [](int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion_get",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_get" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_get" "', argument " "2"" of type '" "ofMatrix4x4 &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_get" "', argument " "2"" of type '" "ofMatrix4x4 &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); ((ofQuaternion const *)arg1)->get(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofQuaternion_x(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_x",&obj0)) SWIG_fail; @@ -46569,6 +54473,22 @@ SWIGINTERN PyObject *_wrap_ofQuaternion_w(PyObject *SWIGUNUSEDPARM(self), PyObje SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_w" "', argument " "1"" of type '" "ofQuaternion *""'"); } arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (float *) &(arg1)->w(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_asVec4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_asVec4",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_asVec4" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->asVec4(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_asVec3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_asVec3",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_asVec3" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->asVec3(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofQuaternion_zeroRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_zeroRotation",&obj0)) SWIG_fail; @@ -46576,239 +54496,6 @@ SWIGINTERN PyObject *_wrap_ofQuaternion_zeroRotation(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_zeroRotation" "', argument " "1"" of type '" "ofQuaternion const *""'"); } arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (bool)((ofQuaternion const *)arg1)->zeroRotation(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofQuaternion const *)arg1)->operator *(arg2); - resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___imul__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofQuaternion *) &(arg1)->operator *=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = ((ofQuaternion const *)arg1)->operator *((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___imul__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = (ofQuaternion *) &(arg1)->operator *=((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofQuaternion___imul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofQuaternion___imul____SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___imul__'.\n" - " Possible C/C++ prototypes are:\n" " ofQuaternion::operator *=(float)\n" - " ofQuaternion::operator *=(ofQuaternion const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofQuaternion___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___div__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofQuaternion const *)arg1)->operator /(arg2); - resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___idiv__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofQuaternion *) &(arg1)->operator /=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___div__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = ((ofQuaternion const *)arg1)->operator /((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___div__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofQuaternion___div____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofQuaternion___div____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofQuaternion___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___idiv__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = (ofQuaternion *) &(arg1)->operator /=((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofQuaternion___idiv____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofQuaternion___idiv____SWIG_0(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___idiv__'.\n" - " Possible C/C++ prototypes are:\n" " ofQuaternion::operator /=(float)\n" - " ofQuaternion::operator /=(ofQuaternion const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofQuaternion___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___add__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___add__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___add__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = ((ofQuaternion const *)arg1)->operator +((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___iadd__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___iadd__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___iadd__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = (ofQuaternion *) &(arg1)->operator +=((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___sub__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___sub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___sub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = ((ofQuaternion const *)arg1)->operator -((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___isub__" "', argument " "1"" of type '" "ofQuaternion *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___isub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___isub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } - arg2 = reinterpret_cast< ofQuaternion * >(argp2); - result = (ofQuaternion *) &(arg1)->operator -=((ofQuaternion const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion result; - if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion___neg__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___neg__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->operator -(); - resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } - arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofQuaternion const *)arg1)->operator *((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofQuaternion___mul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofQuaternion___mul____SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofQuaternion___mul____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; } SWIGINTERN PyObject *_wrap_ofQuaternion_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_length",&obj0)) SWIG_fail; @@ -46923,8 +54610,8 @@ SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate__SWIG_3(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->makeRotate((ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47019,8 +54706,8 @@ SWIGINTERN PyObject *_wrap_ofQuaternion_getRotate__SWIG_1(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_getRotate" "', argument " "3"" of type '" "ofVec3f &""'"); } arg3 = reinterpret_cast< ofVec3f * >(argp3); ((ofQuaternion const *)arg1)->getRotate(*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofQuaternion_getRotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofQuaternion_getRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47072,6 +54759,267 @@ SWIGINTERN PyObject *_wrap_ofQuaternion_normalize(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_normalize" "', argument " "1"" of type '" "ofQuaternion *""'"); } arg1 = reinterpret_cast< ofQuaternion * >(argp1); (arg1)->normalize(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___eq__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___eq__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___eq__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (bool)((ofQuaternion const *)arg1)->operator ==((ofQuaternion const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___ne__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___ne__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___ne__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (bool)((ofQuaternion const *)arg1)->operator !=((ofQuaternion const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofQuaternion const *)arg1)->operator *(arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator *((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofQuaternion const *)arg1)->operator *((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___mul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___mul____SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___mul____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofQuaternion___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___imul__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofQuaternion *) &(arg1)->operator *=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___imul__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator *=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___imul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___imul____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::operator *=(float)\n" + " ofQuaternion::operator *=(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___div__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofQuaternion const *)arg1)->operator /(arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___div__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator /((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___div____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___div____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofQuaternion___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___idiv__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofQuaternion *) &(arg1)->operator /=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___idiv__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator /=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___idiv____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___idiv____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::operator /=(float)\n" + " ofQuaternion::operator /=(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___add__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___add__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___add__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator +((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___iadd__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___iadd__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___iadd__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator +=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___isub__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___isub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___isub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator -=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___sub__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___sub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___sub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator -((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___neg__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofQuaternion___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion___str__",&obj0)) SWIG_fail; @@ -47167,8 +55115,8 @@ SWIGINTERN PyObject *_wrap_new_ofVec2f__SWIG_4(PyObject *SWIGUNUSEDPARM(self), P arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (ofVec2f *)new ofVec2f((ofVec4f const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofVec2f(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofVec2f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofVec2f__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47197,8 +55145,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getPtr" "', argument " "1"" of type '" "ofVec2f const *""'"); } arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float *)((ofVec2f const *)arg1)->getPtr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_getPtr(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofVec2f_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -47226,8 +55174,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (float)((ofVec2f const *)arg1)->operator [](arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -47238,14 +55186,6 @@ SWIGINTERN PyObject *_wrap_ofVec2f___getitem__(PyObject *self, PyObject *args) { SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___getitem__'.\n" " Possible C/C++ prototypes are:\n" " ofVec2f::operator [](int)\n" " ofVec2f::operator [](int) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_set" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_set",&obj0,&obj1,&obj2)) SWIG_fail; @@ -47256,7 +55196,7 @@ SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), P arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_set" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -47268,22 +55208,30 @@ SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), P SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_set" "', argument " "2"" of type '" "ofVec2f const &""'"); } arg2 = reinterpret_cast< ofVec2f * >(argp2); (arg1)->set((ofVec2f const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_set" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec2f_set__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + return _wrap_ofVec2f_set__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec2f_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + return _wrap_ofVec2f_set__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec2f_set__SWIG_1(self, args);} } } } fail: + return _wrap_ofVec2f_set__SWIG_0(self, args);} } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_set'.\n" - " Possible C/C++ prototypes are:\n" " ofVec2f::set(float)\n" " ofVec2f::set(float,float)\n" - " ofVec2f::set(ofVec2f const &)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofVec2f::set(float,float)\n" " ofVec2f::set(ofVec2f const &)\n" + " ofVec2f::set(float)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVec2f___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; @@ -47338,8 +55286,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_match__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_match" "', argument " "2"" of type '" "ofVec2f const &""'"); } arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->match((ofVec2f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_match(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_match(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47379,8 +55327,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_isAligned__SWIG_1(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_isAligned" "', argument " "2"" of type '" "ofVec2f const &""'"); } arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->isAligned((ofVec2f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_isAligned(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_isAligned(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47421,8 +55369,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_isAlignedRad__SWIG_1(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_isAlignedRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->isAlignedRad((ofVec2f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_isAlignedRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_isAlignedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47462,8 +55410,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_align__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_align" "', argument " "2"" of type '" "ofVec2f const &""'"); } arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->align((ofVec2f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_align(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_align(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47503,8 +55451,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_alignRad__SWIG_1(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_alignRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->alignRad((ofVec2f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_alignRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_alignRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47530,104 +55478,6 @@ SWIGINTERN PyObject *_wrap_ofVec2f___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator +((ofVec2f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___iadd__" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___iadd__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___iadd__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator +=((ofVec2f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___sub__" "', argument " "1"" of type '" "ofVec2f const *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___sub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___sub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator -((ofVec2f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___isub__" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___isub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___isub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator -=((ofVec2f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___mul__" "', argument " "1"" of type '" "ofVec2f const *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___mul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___mul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator *((ofVec2f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___imul__" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___imul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___imul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator *=((ofVec2f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___div__" "', argument " "1"" of type '" "ofVec2f const *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___div__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___div__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator /((ofVec2f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___idiv__" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___idiv__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___idiv__" "', argument " "2"" of type '" "ofVec2f const &""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator /=((ofVec2f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; @@ -47639,8 +55489,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator +(arg2); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___add__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47648,6 +55498,20 @@ SWIGINTERN PyObject *_wrap_ofVec2f___add__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec2f___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___iadd__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___iadd__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___iadd__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator +=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; @@ -47659,8 +55523,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator +=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___iadd__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47671,6 +55535,20 @@ SWIGINTERN PyObject *_wrap_ofVec2f___iadd__(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___iadd__'.\n" " Possible C/C++ prototypes are:\n" " ofVec2f::operator +=(ofVec2f const &)\n" " ofVec2f::operator +=(float const)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___sub__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___sub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___sub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator -((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; @@ -47682,8 +55560,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator -(arg2); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47691,6 +55569,28 @@ SWIGINTERN PyObject *_wrap_ofVec2f___sub__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec2f___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___neg__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___isub__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___isub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___isub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator -=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; @@ -47702,8 +55602,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator -=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___isub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47714,12 +55614,18 @@ SWIGINTERN PyObject *_wrap_ofVec2f___isub__(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___isub__'.\n" " Possible C/C++ prototypes are:\n" " ofVec2f::operator -=(ofVec2f const &)\n" " ofVec2f::operator -=(float const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofVec2f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f___neg__",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVec2f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___mul__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___neg__" "', argument " "1"" of type '" "ofVec2f const *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->operator -(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___mul__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___mul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___mul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator *((ofVec2f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; @@ -47733,8 +55639,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator *(arg2); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47742,6 +55648,20 @@ SWIGINTERN PyObject *_wrap_ofVec2f___mul__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec2f___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___imul__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___imul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___imul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator *=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; @@ -47753,8 +55673,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator *=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47765,6 +55685,20 @@ SWIGINTERN PyObject *_wrap_ofVec2f___imul__(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___imul__'.\n" " Possible C/C++ prototypes are:\n" " ofVec2f::operator *=(ofVec2f const &)\n" " ofVec2f::operator *=(float const)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___div__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___div__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___div__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator /((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; @@ -47776,8 +55710,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator /(arg2); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___div__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47785,6 +55719,20 @@ SWIGINTERN PyObject *_wrap_ofVec2f___div__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec2f___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___idiv__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___idiv__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___idiv__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator /=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; @@ -47796,8 +55744,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator /=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -47840,37 +55788,6 @@ SWIGINTERN PyObject *_wrap_ofVec2f_getRotated__SWIG_0(PyObject *SWIGUNUSEDPARM(s arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->getRotated(arg2); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_getRotatedRad",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getRotatedRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->getRotatedRad(arg2); - resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rotate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotate" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->rotate(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rotateRad",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotateRad" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotateRad" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->rotateRad(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_getRotated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -47887,8 +55804,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_getRotated__SWIG_1(PyObject *SWIGUNUSEDPARM(s arg3 = reinterpret_cast< ofVec2f * >(argp3); result = ((ofVec2f const *)arg1)->getRotated(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_getRotated(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_getRotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -47900,33 +55817,17 @@ SWIGINTERN PyObject *_wrap_ofVec2f_getRotated(PyObject *self, PyObject *args) { SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_getRotated'.\n" " Possible C/C++ prototypes are:\n" " ofVec2f::getRotated(float) const\n" " ofVec2f::getRotated(float,ofVec2f const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofVec2f_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_rotate",&obj0,&obj1,&obj2)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_getRotatedRad",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotate" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_rotate" "', argument " "3"" of type '" "ofVec2f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_rotate" "', argument " "3"" of type '" "ofVec2f const &""'"); } - arg3 = reinterpret_cast< ofVec2f * >(argp3); result = (ofVec2f *) &(arg1)->rotate(arg2,(ofVec2f const &)*arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_rotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec2f_rotate__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec2f_rotate__SWIG_1(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_rotate'.\n" - " Possible C/C++ prototypes are:\n" " ofVec2f::rotate(float)\n" " ofVec2f::rotate(float,ofVec2f const &)\n"); - return 0; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getRotatedRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->getRotatedRad(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -47944,8 +55845,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad__SWIG_1(PyObject *SWIGUNUSEDPAR arg3 = reinterpret_cast< ofVec2f * >(argp3); result = ((ofVec2f const *)arg1)->getRotatedRad(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -47957,6 +55858,53 @@ SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad(PyObject *self, PyObject *args) SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_getRotatedRad'.\n" " Possible C/C++ prototypes are:\n" " ofVec2f::getRotatedRad(float) const\n" " ofVec2f::getRotatedRad(float,ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotate" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->rotate(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_rotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotate" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_rotate" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_rotate" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); result = (ofVec2f *) &(arg1)->rotate(arg2,(ofVec2f const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_rotate__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_rotate__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_rotate'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::rotate(float)\n" " ofVec2f::rotate(float,ofVec2f const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rotateRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotateRad" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->rotateRad(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -47971,8 +55919,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad__SWIG_1(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_rotateRad" "', argument " "3"" of type '" "ofVec2f const &""'"); } arg3 = reinterpret_cast< ofVec2f * >(argp3); result = (ofVec2f *) &(arg1)->rotateRad(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -48120,17 +56068,18 @@ SWIGINTERN PyObject *_wrap_ofVec2f_middle(PyObject *SWIGUNUSEDPARM(self), PyObje arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->middle((ofVec2f const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_average(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_average",&obj0,&obj1,&obj2)) SWIG_fail; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_average",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_average" "', argument " "1"" of type '" "ofVec2f *""'"); } arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_average" "', argument " "2"" of type '" "ofVec2f const *""'"); } - arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_average" "', argument " "3"" of type '" "int""'"); } - arg3 = static_cast< int >(val3); result = (ofVec2f *) &(arg1)->average((ofVec2f const *)arg2,arg3); + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_average" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); result = (ofVec2f *) &(arg1)->average((ofVec2f const *)arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; @@ -48147,17 +56096,6 @@ SWIGINTERN PyObject *_wrap_ofVec2f_normalize(PyObject *SWIGUNUSEDPARM(self), PyO SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_normalize" "', argument " "1"" of type '" "ofVec2f *""'"); } arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (ofVec2f *) &(arg1)->normalize(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_getLimited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_getLimited",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getLimited" "', argument " "1"" of type '" "ofVec2f const *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getLimited" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->getLimited(arg2); - resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; @@ -48168,21 +56106,6 @@ SWIGINTERN PyObject *_wrap_ofVec2f_limit(PyObject *SWIGUNUSEDPARM(self), PyObjec SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_limit" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->limit(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_getPerpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_getPerpendicular",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getPerpendicular" "', argument " "1"" of type '" "ofVec2f const *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->getPerpendicular(); - resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_perpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_perpendicular",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_perpendicular" "', argument " "1"" of type '" "ofVec2f *""'"); } - arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (ofVec2f *) &(arg1)->perpendicular(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_length",&obj0)) SWIG_fail; @@ -48223,6 +56146,21 @@ SWIGINTERN PyObject *_wrap_ofVec2f_angleRad(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_angleRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (float)((ofVec2f const *)arg1)->angleRad((ofVec2f const &)*arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getPerpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_getPerpendicular",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getPerpendicular" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->getPerpendicular(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_perpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_perpendicular",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_perpendicular" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (ofVec2f *) &(arg1)->perpendicular(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec2f_dot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; @@ -48380,8 +56318,8 @@ SWIGINTERN PyObject *_wrap_ofVec2f_rotated__SWIG_1(PyObject *SWIGUNUSEDPARM(self arg3 = reinterpret_cast< ofVec2f * >(argp3); result = ((ofVec2f const *)arg1)->rotated(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec2f_rotated(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec2f_rotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -48524,8 +56462,8 @@ SWIGINTERN PyObject *_wrap_new_ofVec3f__SWIG_5(PyObject *SWIGUNUSEDPARM(self), P arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (ofVec3f *)new ofVec3f((ofVec4f const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofVec3f(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofVec3f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofVec3f__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -48558,8 +56496,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getPtr" "', argument " "1"" of type '" "ofVec3f const *""'"); } arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float *)((ofVec3f const *)arg1)->getPtr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_getPtr(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofVec3f_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -48587,8 +56525,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (float)((ofVec3f const *)arg1)->operator [](arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -48644,8 +56582,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), P arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_set" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -48719,8 +56657,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_match__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_match" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->match((ofVec3f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_match(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_match(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -48760,8 +56698,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_isAligned__SWIG_1(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_isAligned" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->isAligned((ofVec3f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_isAligned(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_isAligned(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -48773,47 +56711,6 @@ SWIGINTERN PyObject *_wrap_ofVec3f_isAligned(PyObject *self, PyObject *args) { i SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_isAligned'.\n" " Possible C/C++ prototypes are:\n" " ofVec3f::isAligned(ofVec3f const &,float) const\n" " ofVec3f::isAligned(ofVec3f const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofVec3f_align__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; - int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_align",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_align" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_align" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (bool)((ofVec3f const *)arg1)->align((ofVec3f const &)*arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_align__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_align",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_align" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->align((ofVec3f const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_align(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec3f_align__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec3f_align__SWIG_0(self, args);} } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_align'.\n" - " Possible C/C++ prototypes are:\n" " ofVec3f::align(ofVec3f const &,float) const\n" - " ofVec3f::align(ofVec3f const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -48843,8 +56740,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad__SWIG_1(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_isAlignedRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->isAlignedRad((ofVec3f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -48856,6 +56753,47 @@ SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad(PyObject *self, PyObject *args) SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_isAlignedRad'.\n" " Possible C/C++ prototypes are:\n" " ofVec3f::isAlignedRad(ofVec3f const &,float) const\n" " ofVec3f::isAlignedRad(ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_align__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_align",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_align" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_align" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec3f const *)arg1)->align((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_align__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_align",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_align" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->align((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_align(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_align__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_align__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_align'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::align(ofVec3f const &,float) const\n" + " ofVec3f::align(ofVec3f const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVec3f_alignRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; @@ -48884,8 +56822,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_alignRad__SWIG_1(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_alignRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->alignRad((ofVec3f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_alignRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_alignRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -48911,112 +56849,6 @@ SWIGINTERN PyObject *_wrap_ofVec3f___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator +((ofVec3f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___iadd__" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___iadd__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___iadd__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator +=((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___sub__" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___sub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___sub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator -((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___isub__" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___isub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___isub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator -=((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___mul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___mul__" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator *((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___imul__" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___imul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___imul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator *=((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___div__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___div__" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___div__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___div__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator /((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___idiv__" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___idiv__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___idiv__" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator /=((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f___neg__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___neg__" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ((ofVec3f const *)arg1)->operator -(); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; @@ -49028,8 +56860,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator +(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___add__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49037,6 +56869,20 @@ SWIGINTERN PyObject *_wrap_ofVec3f___add__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec3f___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___iadd__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___iadd__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___iadd__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator +=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; @@ -49048,8 +56894,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator +=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___iadd__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49060,6 +56906,20 @@ SWIGINTERN PyObject *_wrap_ofVec3f___iadd__(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___iadd__'.\n" " Possible C/C++ prototypes are:\n" " ofVec3f::operator +=(ofVec3f const &)\n" " ofVec3f::operator +=(float const)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___sub__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___sub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___sub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator -((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; @@ -49071,8 +56931,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator -(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49080,6 +56940,28 @@ SWIGINTERN PyObject *_wrap_ofVec3f___sub__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec3f___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___neg__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ((ofVec3f const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___isub__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___isub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___isub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator -=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; @@ -49091,8 +56973,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator -=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___isub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49103,6 +56985,20 @@ SWIGINTERN PyObject *_wrap_ofVec3f___isub__(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___isub__'.\n" " Possible C/C++ prototypes are:\n" " ofVec3f::operator -=(ofVec3f const &)\n" " ofVec3f::operator -=(float const)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___mul__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator *((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; @@ -49114,8 +57010,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator *(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49123,6 +57019,20 @@ SWIGINTERN PyObject *_wrap_ofVec3f___mul__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec3f___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___imul__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___imul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___imul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator *=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; @@ -49134,8 +57044,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator *=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49146,6 +57056,20 @@ SWIGINTERN PyObject *_wrap_ofVec3f___imul__(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___imul__'.\n" " Possible C/C++ prototypes are:\n" " ofVec3f::operator *=(ofVec3f const &)\n" " ofVec3f::operator *=(float const)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___div__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___div__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___div__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator /((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; @@ -49157,8 +57081,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator /(arg2); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___div__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49166,6 +57090,20 @@ SWIGINTERN PyObject *_wrap_ofVec3f___div__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec3f___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___idiv__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___idiv__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___idiv__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator /=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; @@ -49177,8 +57115,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator /=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -49226,51 +57164,6 @@ SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_0(PyObject *SWIGUNUSEDPARM(s arg3 = reinterpret_cast< ofVec3f * >(argp3); result = ((ofVec3f const *)arg1)->getRotated(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,(ofVec3f const &)*arg3); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_rotate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotate" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); result = (ofVec3f *) &(arg1)->rotate(arg2,(ofVec3f const &)*arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_rotateRad",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotateRad" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotateRad" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); result = (ofVec3f *) &(arg1)->rotateRad(arg2,(ofVec3f const &)*arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -49287,52 +57180,6 @@ SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_1(PyObject *SWIGUNUSEDPARM(s arg4 = static_cast< float >(val4); result = ((ofVec3f const *)arg1)->getRotated(arg2,arg3,arg4); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotate" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotate" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_rotate" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = (ofVec3f *) &(arg1)->rotate(arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; - int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotateRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotateRad" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotateRad" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_rotateRad" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); result = (ofVec3f *) &(arg1)->rotateRad(arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; @@ -49356,8 +57203,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_2(PyObject *SWIGUNUSEDPARM(s result = ((ofVec3f const *)arg1)->getRotated(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_getRotated(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_getRotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -49377,6 +57224,112 @@ SWIGINTERN PyObject *_wrap_ofVec3f_getRotated(PyObject *self, PyObject *args) { " Possible C/C++ prototypes are:\n" " ofVec3f::getRotated(float,ofVec3f const &) const\n" " ofVec3f::getRotated(float,float,float) const\n" " ofVec3f::getRotated(float,ofVec3f const &,ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getRotatedRad__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getRotatedRad__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_getRotatedRad__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_getRotatedRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::getRotatedRad(float,ofVec3f const &) const\n" + " ofVec3f::getRotatedRad(float,float,float) const\n" + " ofVec3f::getRotatedRad(float,ofVec3f const &,ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_rotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotate" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = (ofVec3f *) &(arg1)->rotate(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotate" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_rotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofVec3f *) &(arg1)->rotate(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; @@ -49398,8 +57351,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_2(PyObject *SWIGUNUSEDPARM(self) arg4 = reinterpret_cast< ofVec3f * >(argp4); result = (ofVec3f *) &(arg1)->rotate(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_rotate(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -49418,50 +57371,35 @@ SWIGINTERN PyObject *_wrap_ofVec3f_rotate(PyObject *self, PyObject *args) { int SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_rotate'.\n" " Possible C/C++ prototypes are:\n" " ofVec3f::rotate(float,ofVec3f const &)\n" " ofVec3f::rotate(float,float,float)\n" " ofVec3f::rotate(float,ofVec3f const &,ofVec3f const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; - int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_rotateRad",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotateRad" "', argument " "1"" of type '" "ofVec3f *""'"); } arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } - arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } - arg4 = reinterpret_cast< ofVec3f * >(argp4); - result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec3f_getRotatedRad__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec3f_getRotatedRad__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec3f_getRotatedRad__SWIG_1(self, args);} } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_getRotatedRad'.\n" - " Possible C/C++ prototypes are:\n" " ofVec3f::getRotatedRad(float,ofVec3f const &) const\n" - " ofVec3f::getRotatedRad(float,float,float) const\n" - " ofVec3f::getRotatedRad(float,ofVec3f const &,ofVec3f const &) const\n"); return 0; } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = (ofVec3f *) &(arg1)->rotateRad(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotateRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotateRad" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_rotateRad" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofVec3f *) &(arg1)->rotateRad(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; @@ -49483,8 +57421,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_2(PyObject *SWIGUNUSEDPARM(se arg4 = reinterpret_cast< ofVec3f * >(argp4); result = (ofVec3f *) &(arg1)->rotateRad(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -49699,33 +57637,46 @@ SWIGINTERN PyObject *_wrap_ofVec3f_limit(PyObject *SWIGUNUSEDPARM(self), PyObjec SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_limit" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->limit(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_getCrossed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofVec3f_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_length",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_length" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)((ofVec3f const *)arg1)->length(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_lengthSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_lengthSquared",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_lengthSquared" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)((ofVec3f const *)arg1)->lengthSquared(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_angle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_getCrossed",&obj0,&obj1)) SWIG_fail; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_angle",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getCrossed" "', argument " "1"" of type '" "ofVec3f const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_angle" "', argument " "1"" of type '" "ofVec3f const *""'"); } arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_getCrossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_angle" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getCrossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->getCrossed((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_cross(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_angle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->angle((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_angleRad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_cross",&obj0,&obj1)) SWIG_fail; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_angleRad",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_cross" "', argument " "1"" of type '" "ofVec3f *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_angleRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_cross" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_angleRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_cross" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->cross((ofVec3f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_angleRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->angleRad((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f_getPerpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; @@ -49753,46 +57704,33 @@ SWIGINTERN PyObject *_wrap_ofVec3f_perpendicular(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_perpendicular" "', argument " "2"" of type '" "ofVec3f const &""'"); } arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->perpendicular((ofVec3f const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_length",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_length" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)((ofVec3f const *)arg1)->length(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_lengthSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_lengthSquared",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_lengthSquared" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)((ofVec3f const *)arg1)->lengthSquared(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_angle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofVec3f_getCrossed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_angle",&obj0,&obj1)) SWIG_fail; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_getCrossed",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_angle" "', argument " "1"" of type '" "ofVec3f const *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getCrossed" "', argument " "1"" of type '" "ofVec3f const *""'"); } arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_angle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_getCrossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_angle" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->angle((ofVec3f const &)*arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_angleRad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getCrossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->getCrossed((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_cross(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_angleRad",&obj0,&obj1)) SWIG_fail; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_cross",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_angleRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } - arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_cross" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_angleRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_cross" "', argument " "2"" of type '" "ofVec3f const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_angleRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } - arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->angleRad((ofVec3f const &)*arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_cross" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->cross((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec3f_dot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; @@ -50003,8 +57941,8 @@ SWIGINTERN PyObject *_wrap_ofVec3f_rotated__SWIG_2(PyObject *SWIGUNUSEDPARM(self result = ((ofVec3f const *)arg1)->rotated(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec3f_rotated(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec3f_rotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -50163,8 +58101,8 @@ SWIGINTERN PyObject *_wrap_new_ofVec4f__SWIG_4(PyObject *SWIGUNUSEDPARM(self), P arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (ofVec4f *)new ofVec4f((ofVec3f const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofVec4f(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofVec4f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofVec4f__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50181,50 +58119,6 @@ SWIGINTERN PyObject *_wrap_new_ofVec4f(PyObject *self, PyObject *args) { int arg " Possible C/C++ prototypes are:\n" " ofVec4f::ofVec4f()\n" " ofVec4f::ofVec4f(float)\n" " ofVec4f::ofVec4f(float,float,float,float)\n" " ofVec4f::ofVec4f(ofVec2f const &)\n" " ofVec4f::ofVec4f(ofVec3f const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofVec4f_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVec4f_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_set" "', argument " "1"" of type '" "ofVec4f *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_set" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_set" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec4f_set" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVec4f_set" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_set" "', argument " "1"" of type '" "ofVec4f *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } - arg2 = reinterpret_cast< ofVec4f * >(argp2); (arg1)->set((ofVec4f const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f_set(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec4f_set__SWIG_1(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec4f_set__SWIG_0(self, args);} } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f_set'.\n" - " Possible C/C++ prototypes are:\n" " ofVec4f::set(float,float,float,float)\n" " ofVec4f::set(ofVec4f const &)\n"); - return 0; } SWIGINTERN PyObject *_wrap_ofVec4f_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_getPtr",&obj0)) SWIG_fail; @@ -50239,8 +58133,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self) SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getPtr" "', argument " "1"" of type '" "ofVec4f const *""'"); } arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float *)((ofVec4f const *)arg1)->getPtr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f_getPtr(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofVec4f_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -50268,8 +58162,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (float)((ofVec4f const *)arg1)->operator [](arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { @@ -50279,6 +58173,50 @@ SWIGINTERN PyObject *_wrap_ofVec4f___getitem__(PyObject *self, PyObject *args) { return _wrap_ofVec4f___getitem____SWIG_1(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___getitem__'.\n" " Possible C/C++ prototypes are:\n" " ofVec4f::operator [](int)\n" " ofVec4f::operator [](int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVec4f_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec4f_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVec4f_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); (arg1)->set((ofVec4f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f_set__SWIG_1(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f_set'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::set(float,float,float,float)\n" " ofVec4f::set(ofVec4f const &)\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofVec4f___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; @@ -50333,8 +58271,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f_match__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_match" "', argument " "2"" of type '" "ofVec4f const &""'"); } arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (bool)((ofVec4f const *)arg1)->match((ofVec4f const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f_match(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f_match(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50360,6 +58298,26 @@ SWIGINTERN PyObject *_wrap_ofVec4f___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator +((ofVec4f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___add__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___add__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator +(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } SWIGINTERN PyObject *_wrap_ofVec4f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; @@ -50374,6 +58332,29 @@ SWIGINTERN PyObject *_wrap_ofVec4f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(sel arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator +=((ofVec4f const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___iadd__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___iadd__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator +=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::operator +=(ofVec4f const &)\n" " ofVec4f::operator +=(float const)\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofVec4f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; @@ -50385,17 +58366,6 @@ SWIGINTERN PyObject *_wrap_ofVec4f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator -(arg2); resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___isub__" "', argument " "1"" of type '" "ofVec4f *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___isub__" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator -=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofVec4f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; @@ -50410,8 +58380,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator -((ofVec4f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50419,6 +58389,25 @@ SWIGINTERN PyObject *_wrap_ofVec4f___sub__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec4f___sub____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec4f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___neg__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = ((ofVec4f const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___isub__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___isub__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator -=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec4f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; @@ -50433,8 +58422,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator -=((ofVec4f const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___isub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50445,57 +58434,6 @@ SWIGINTERN PyObject *_wrap_ofVec4f___isub__(PyObject *self, PyObject *args) { in SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___isub__'.\n" " Possible C/C++ prototypes are:\n" " ofVec4f::operator -=(float const)\n" " ofVec4f::operator -=(ofVec4f const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofVec4f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___add__" "', argument " "1"" of type '" "ofVec4f const *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___add__" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator +(arg2); - resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___add__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec4f___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec4f___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_ofVec4f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___iadd__" "', argument " "1"" of type '" "ofVec4f *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___iadd__" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator +=(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___iadd__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofVec4f___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofVec4f___iadd____SWIG_1(self, args);} } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___iadd__'.\n" - " Possible C/C++ prototypes are:\n" " ofVec4f::operator +=(ofVec4f const &)\n" " ofVec4f::operator +=(float const)\n"); - return 0; } -SWIGINTERN PyObject *_wrap_ofVec4f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f___neg__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___neg__" "', argument " "1"" of type '" "ofVec4f const *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); result = ((ofVec4f const *)arg1)->operator -(); - resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVec4f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; @@ -50510,20 +58448,6 @@ SWIGINTERN PyObject *_wrap_ofVec4f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator *((ofVec4f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___imul__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___imul__" "', argument " "1"" of type '" "ofVec4f *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___imul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___imul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } - arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator *=((ofVec4f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofVec4f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; @@ -50535,8 +58459,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator *(arg2); resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___mul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50544,6 +58468,20 @@ SWIGINTERN PyObject *_wrap_ofVec4f___mul__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec4f___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec4f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___imul__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___imul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___imul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator *=((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec4f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; @@ -50555,8 +58493,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator *=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___imul__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50581,20 +58519,6 @@ SWIGINTERN PyObject *_wrap_ofVec4f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator /((ofVec4f const &)*arg2); resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___idiv__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___idiv__" "', argument " "1"" of type '" "ofVec4f *""'"); } - arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___idiv__" "', argument " "2"" of type '" "ofVec4f const &""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___idiv__" "', argument " "2"" of type '" "ofVec4f const &""'"); } - arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator /=((ofVec4f const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofVec4f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; @@ -50606,8 +58530,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator /(arg2); resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___div__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50615,6 +58539,20 @@ SWIGINTERN PyObject *_wrap_ofVec4f___div__(PyObject *self, PyObject *args) { int int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVec4f___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec4f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___idiv__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___idiv__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___idiv__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator /=((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofVec4f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; @@ -50626,8 +58564,8 @@ SWIGINTERN PyObject *_wrap_ofVec4f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(sel arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator /=(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVec4f___idiv__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVec4f___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -50931,29 +58869,6 @@ SWIGINTERN PyObject *ofVec4f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObje return SWIG_Py_Void(); } -SWIGINTERN PyObject *_wrap_ofNextPow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; - int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofNextPow2",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNextPow2" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); result = (int)ofNextPow2(arg1); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSeedRandom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - if (!PyArg_ParseTuple(args,(char *)":ofSeedRandom")) SWIG_fail; ofSeedRandom(); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSeedRandom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSeedRandom",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSeedRandom" "', argument " "1"" of type '" "int""'"); } - arg1 = static_cast< int >(val1); ofSeedRandom(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSeedRandom(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { - return _wrap_ofSeedRandom__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSeedRandom__SWIG_1(self, args);} } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSeedRandom'.\n" - " Possible C/C++ prototypes are:\n" " ofSeedRandom()\n" " ofSeedRandom(int)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofRandom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofRandom",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); @@ -50970,13 +58885,13 @@ SWIGINTERN PyObject *_wrap_ofRandom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyOb SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRandom" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); result = (float)ofRandom(arg1,arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRandom(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofRandom__SWIG_0(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofRandom__SWIG_1(self, args);} } } fail: +SWIGINTERN PyObject *_wrap_ofRandom(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofRandom__SWIG_0(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRandom__SWIG_1(self, args);} } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRandom'.\n" " Possible C/C++ prototypes are:\n" " ofRandom(float)\n" " ofRandom(float,float)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofRandomf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float result; @@ -50985,6 +58900,22 @@ SWIGINTERN PyObject *_wrap_ofRandomf(PyObject *SWIGUNUSEDPARM(self), PyObject *a SWIGINTERN PyObject *_wrap_ofRandomuf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float result; if (!PyArg_ParseTuple(args,(char *)":ofRandomuf")) SWIG_fail; result = (float)ofRandomuf(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSeedRandom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSeedRandom")) SWIG_fail; ofSeedRandom(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSeedRandom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSeedRandom",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSeedRandom" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSeedRandom(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSeedRandom(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSeedRandom__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSeedRandom__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSeedRandom'.\n" + " Possible C/C++ prototypes are:\n" " ofSeedRandom()\n" " ofSeedRandom(int)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofNormalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; @@ -51034,12 +58965,11 @@ SWIGINTERN PyObject *_wrap_ofMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObjec SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMap" "', argument " "5"" of type '" "float""'"); } arg5 = static_cast< float >(val5); result = (float)ofMap(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMap(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { +SWIGINTERN PyObject *_wrap_ofMap(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofMap__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { @@ -51065,6 +58995,18 @@ SWIGINTERN PyObject *_wrap_ofClamp(PyObject *SWIGUNUSEDPARM(self), PyObject *arg SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofClamp" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); result = (float)ofClamp(arg1,arg2,arg3); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofInRange",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofInRange" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofInRange" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofInRange" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)ofInRange(arg1,arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofLerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; @@ -51077,8 +59019,8 @@ SWIGINTERN PyObject *_wrap_ofLerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLerp" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); result = (float)ofLerp(arg1,arg2,arg3); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; - float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; +SWIGINTERN PyObject *_wrap_ofDist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { @@ -51091,8 +59033,45 @@ SWIGINTERN PyObject *_wrap_ofDist(PyObject *SWIGUNUSEDPARM(self), PyObject *args SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDist" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); result = (float)ofDist(arg1,arg2,arg3,arg4); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofDistSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; - float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; +SWIGINTERN PyObject *_wrap_ofDist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDist",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDist" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDist" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDist" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDist" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDist" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDist" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); result = (float)ofDist(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDist(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDist__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDist__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDist'.\n" + " Possible C/C++ prototypes are:\n" " ofDist(float,float,float,float)\n" + " ofDist(float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDistSquared__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDistSquared",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; @@ -51106,25 +59085,44 @@ SWIGINTERN PyObject *_wrap_ofDistSquared(PyObject *SWIGUNUSEDPARM(self), PyObjec SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDistSquared" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); result = (float)ofDistSquared(arg1,arg2,arg3,arg4); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; - float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofSign",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSign" "', argument " "1"" of type '" "float""'"); } - arg1 = static_cast< float >(val1); result = (int)ofSign(arg1); resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; - float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOO:ofInRange",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofInRange" "', argument " "1"" of type '" "float""'"); } +SWIGINTERN PyObject *_wrap_ofDistSquared__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDistSquared",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDistSquared" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofInRange" "', argument " "2"" of type '" "float""'"); } + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDistSquared" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofInRange" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); result = (bool)ofInRange(arg1,arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDistSquared" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDistSquared" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDistSquared" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDistSquared" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); result = (float)ofDistSquared(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDistSquared(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDistSquared__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDistSquared__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDistSquared'.\n" + " Possible C/C++ prototypes are:\n" " ofDistSquared(float,float,float,float)\n" + " ofDistSquared(float,float,float,float,float,float)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofRadToDeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofRadToDeg",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); @@ -51221,8 +59219,8 @@ SWIGINTERN PyObject *_wrap_ofWrapRadians__SWIG_2(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapRadians" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); result = (float)ofWrapRadians(arg1); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofWrapRadians(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofWrapRadians(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofWrapRadians__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); @@ -51263,8 +59261,8 @@ SWIGINTERN PyObject *_wrap_ofWrapDegrees__SWIG_2(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapDegrees" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); result = (float)ofWrapDegrees(arg1); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofWrapDegrees(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofWrapDegrees(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofWrapDegrees__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); @@ -51277,12 +59275,6 @@ SWIGINTERN PyObject *_wrap_ofWrapDegrees(PyObject *self, PyObject *args) { int a SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofWrapDegrees'.\n" " Possible C/C++ prototypes are:\n" " ofWrapDegrees(float,float,float)\n" " ofWrapDegrees(float,float)\n" " ofWrapDegrees(float)\n"); return 0; } -SWIGINTERN PyObject *_wrap_ofRandomWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float result; if (!PyArg_ParseTuple(args,(char *)":ofRandomWidth")) SWIG_fail; result = (float)ofRandomWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofRandomHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - float result; if (!PyArg_ParseTuple(args,(char *)":ofRandomHeight")) SWIG_fail; result = (float)ofRandomHeight(); - resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofNoise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); @@ -51300,6 +59292,15 @@ SWIGINTERN PyObject *_wrap_ofNoise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObj arg2 = static_cast< float >(val2); result = (float)ofNoise(arg1,arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofNoise__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float)ofNoise((ofVec2f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofNoise",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); @@ -51311,7 +59312,16 @@ SWIGINTERN PyObject *_wrap_ofNoise__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObj SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNoise" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); result = (float)ofNoise(arg1,arg2,arg3); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)ofNoise((ofVec3f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNoise",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; @@ -51325,25 +59335,40 @@ SWIGINTERN PyObject *_wrap_ofNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObj SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNoise" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); result = (float)ofNoise(arg1,arg2,arg3,arg4); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofNoise(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofNoise__SWIG_0(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofNoise__SWIG_1(self, args);} } } if (argc == 3) { int _v; { +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float)ofNoise((ofVec4f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNoise__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNoise__SWIG_4(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNoise__SWIG_6(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofNoise__SWIG_0(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofNoise__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNoise__SWIG_1(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNoise__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofNoise__SWIG_3(self, args);} } } } } fail: + return _wrap_ofNoise__SWIG_5(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNoise'.\n" - " Possible C/C++ prototypes are:\n" " ofNoise(float)\n" " ofNoise(float,float)\n" " ofNoise(float,float,float)\n" - " ofNoise(float,float,float,float)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofNoise(float)\n" " ofNoise(float,float)\n" " ofNoise(ofVec2f const &)\n" + " ofNoise(float,float,float)\n" " ofNoise(ofVec3f const &)\n" " ofNoise(float,float,float,float)\n" + " ofNoise(ofVec4f const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); @@ -51361,6 +59386,15 @@ SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), arg2 = static_cast< float >(val2); result = (float)ofSignedNoise(arg1,arg2); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float)ofSignedNoise((ofVec2f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofSignedNoise",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); @@ -51372,7 +59406,16 @@ SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_2(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSignedNoise" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); result = (float)ofSignedNoise(arg1,arg2,arg3); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)ofSignedNoise((ofVec3f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; float result; @@ -51387,25 +59430,41 @@ SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSignedNoise" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); result = (float)ofSignedNoise(arg1,arg2,arg3,arg4); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSignedNoise(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { - int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSignedNoise__SWIG_0(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { return _wrap_ofSignedNoise__SWIG_1(self, args);} } } if (argc == 3) { int _v; { +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float)ofSignedNoise((ofVec4f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSignedNoise__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSignedNoise__SWIG_4(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSignedNoise__SWIG_6(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSignedNoise__SWIG_0(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSignedNoise__SWIG_1(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSignedNoise__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + return _wrap_ofSignedNoise__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofSignedNoise__SWIG_3(self, args);} } } } } fail: + return _wrap_ofSignedNoise__SWIG_5(self, args);} } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSignedNoise'.\n" " Possible C/C++ prototypes are:\n" " ofSignedNoise(float)\n" " ofSignedNoise(float,float)\n" - " ofSignedNoise(float,float,float)\n" " ofSignedNoise(float,float,float,float)\n"); return 0; } + " ofSignedNoise(ofVec2f const &)\n" " ofSignedNoise(float,float,float)\n" " ofSignedNoise(ofVec3f const &)\n" + " ofSignedNoise(float,float,float,float)\n" " ofSignedNoise(ofVec4f const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofInsidePoly__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; float arg2 ; std::vector< ofPoint,std::allocator< ofPoint > > *arg3 = 0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -51440,8 +59499,8 @@ SWIGINTERN PyObject *_wrap_ofInsidePoly__SWIG_1(PyObject *SWIGUNUSEDPARM(self), arg2 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp2); result = (bool)ofInsidePoly((ofVec3f const &)*arg1,(std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofInsidePoly(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofInsidePoly(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); @@ -51455,156 +59514,172 @@ SWIGINTERN PyObject *_wrap_ofInsidePoly(PyObject *self, PyObject *args) { int ar " ofInsidePoly(float,float,std::vector< ofPoint,std::allocator< ofPoint > > const &)\n" " ofInsidePoly(ofPoint const &,std::vector< ofPoint,std::allocator< ofPoint > > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofLineSegmentIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint arg1 ; ofPoint arg2 ; ofPoint arg3 ; ofPoint arg4 ; ofPoint *arg5 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; - int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofLineSegmentIntersection",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLineSegmentIntersection" "', argument " "1"" of type '" "ofPoint""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "1"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLineSegmentIntersection" "', argument " "2"" of type '" "ofPoint""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "2"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofLineSegmentIntersection" "', argument " "3"" of type '" "ofPoint""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "3"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofLineSegmentIntersection" "', argument " "4"" of type '" "ofPoint""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "4"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res5)) { + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; ofPoint *arg5 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofLineSegmentIntersection",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLineSegmentIntersection" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLineSegmentIntersection" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofLineSegmentIntersection" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofLineSegmentIntersection" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofLineSegmentIntersection" "', argument " "5"" of type '" "ofPoint &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "5"" of type '" "ofPoint &""'"); } - arg5 = reinterpret_cast< ofPoint * >(argp5); result = (bool)ofLineSegmentIntersection(arg1,arg2,arg3,arg4,*arg5); + arg5 = reinterpret_cast< ofPoint * >(argp5); + result = (bool)ofLineSegmentIntersection((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBezierPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint arg1 ; ofPoint arg2 ; ofPoint arg3 ; ofPoint arg4 ; float arg5 ; void *argp1 ; int res1 = 0 ; void *argp2 ; - int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofBezierPoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierPoint" "', argument " "1"" of type '" "ofPoint""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "1"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierPoint" "', argument " "2"" of type '" "ofPoint""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "2"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierPoint" "', argument " "3"" of type '" "ofPoint""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "3"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBezierPoint" "', argument " "4"" of type '" "ofPoint""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "4"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofBezierPoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierPoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierPoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBezierPoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierPoint" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); result = ofBezierPoint(arg1,arg2,arg3,arg4,arg5); + arg5 = static_cast< float >(val5); + result = ofBezierPoint((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCurvePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint arg1 ; ofPoint arg2 ; ofPoint arg3 ; ofPoint arg4 ; float arg5 ; void *argp1 ; int res1 = 0 ; void *argp2 ; - int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCurvePoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurvePoint" "', argument " "1"" of type '" "ofPoint""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "1"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCurvePoint" "', argument " "2"" of type '" "ofPoint""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "2"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCurvePoint" "', argument " "3"" of type '" "ofPoint""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "3"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofCurvePoint" "', argument " "4"" of type '" "ofPoint""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "4"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCurvePoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurvePoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCurvePoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCurvePoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofCurvePoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurvePoint" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); result = ofCurvePoint(arg1,arg2,arg3,arg4,arg5); + arg5 = static_cast< float >(val5); + result = ofCurvePoint((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofBezierTangent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint arg1 ; ofPoint arg2 ; ofPoint arg3 ; ofPoint arg4 ; float arg5 ; void *argp1 ; int res1 = 0 ; void *argp2 ; - int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofBezierTangent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierTangent" "', argument " "1"" of type '" "ofPoint""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "1"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierTangent" "', argument " "2"" of type '" "ofPoint""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "2"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierTangent" "', argument " "3"" of type '" "ofPoint""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "3"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBezierTangent" "', argument " "4"" of type '" "ofPoint""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "4"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofBezierTangent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBezierTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierTangent" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); result = ofBezierTangent(arg1,arg2,arg3,arg4,arg5); + arg5 = static_cast< float >(val5); + result = ofBezierTangent((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofCurveTangent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofPoint arg1 ; ofPoint arg2 ; ofPoint arg3 ; ofPoint arg4 ; float arg5 ; void *argp1 ; int res1 = 0 ; void *argp2 ; - int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofPoint result; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCurveTangent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveTangent" "', argument " "1"" of type '" "ofPoint""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "1"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCurveTangent" "', argument " "2"" of type '" "ofPoint""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "2"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCurveTangent" "', argument " "3"" of type '" "ofPoint""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "3"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofCurveTangent" "', argument " "4"" of type '" "ofPoint""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "4"" of type '" "ofPoint""'"); } - else { ofPoint * temp = reinterpret_cast< ofPoint * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } - ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCurveTangent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCurveTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCurveTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofCurveTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurveTangent" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); result = ofCurveTangent(arg1,arg2,arg3,arg4,arg5); + arg5 = static_cast< float >(val5); + result = ofCurveTangent((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNextPow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; + int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNextPow2",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNextPow2" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = (int)ofNextPow2(arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSign",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSign" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (int)ofSign(arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ofXml__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofXml *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofXml")) SWIG_fail; result = (ofXml *)new ofXml(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofXml, SWIG_POINTER_NEW | 0 ); return resultobj; fail: @@ -51635,8 +59710,8 @@ SWIGINTERN PyObject *_wrap_new_ofXml__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyO arg1 = reinterpret_cast< ofXml * >(argp1); result = (ofXml *)new ofXml((ofXml const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofXml, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofXml(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_new_ofXml(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_ofXml__SWIG_0(self, args);} if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { @@ -51715,8 +59790,8 @@ SWIGINTERN PyObject *_wrap_ofXml_addXml__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_addXml" "', argument " "2"" of type '" "ofXml &""'"); } arg2 = reinterpret_cast< ofXml * >(argp2); (arg1)->addXml(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_addXml(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_addXml(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { @@ -51748,8 +59823,8 @@ SWIGINTERN PyObject *_wrap_ofXml_getValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self) arg2 = ptr; } result = ((ofXml const *)arg1)->getValue((std::string const &)*arg2); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_getValue(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_getValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_getValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -51780,8 +59855,8 @@ SWIGINTERN PyObject *_wrap_ofXml_getIntValue__SWIG_1(PyObject *SWIGUNUSEDPARM(se arg2 = ptr; } result = (int)((ofXml const *)arg1)->getIntValue((std::string const &)*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_getIntValue(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_getIntValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_getIntValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -51791,6 +59866,39 @@ SWIGINTERN PyObject *_wrap_ofXml_getIntValue(PyObject *self, PyObject *args) { i SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getIntValue'.\n" " Possible C/C++ prototypes are:\n" " ofXml::getIntValue() const\n" " ofXml::getIntValue(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_getInt64Value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int64_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getInt64Value",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getInt64Value" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = ((ofXml const *)arg1)->getInt64Value(); + resultobj = SWIG_NewPointerObj((new int64_t(static_cast< const int64_t& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getInt64Value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int64_t result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getInt64Value",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getInt64Value" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getInt64Value" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getInt64Value" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofXml const *)arg1)->getInt64Value((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new int64_t(static_cast< const int64_t& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getInt64Value(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getInt64Value__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getInt64Value__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getInt64Value'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getInt64Value() const\n" + " ofXml::getInt64Value(std::string const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofXml_getFloatValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getFloatValue",&obj0)) SWIG_fail; @@ -51812,8 +59920,8 @@ SWIGINTERN PyObject *_wrap_ofXml_getFloatValue__SWIG_1(PyObject *SWIGUNUSEDPARM( arg2 = ptr; } result = (float)((ofXml const *)arg1)->getFloatValue((std::string const &)*arg2); resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_getFloatValue(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_getFloatValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_getFloatValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -51844,8 +59952,8 @@ SWIGINTERN PyObject *_wrap_ofXml_getBoolValue__SWIG_1(PyObject *SWIGUNUSEDPARM(s arg2 = ptr; } result = (bool)((ofXml const *)arg1)->getBoolValue((std::string const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_getBoolValue(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_getBoolValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_getBoolValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -51937,8 +60045,8 @@ SWIGINTERN PyObject *_wrap_ofXml_getNumChildren__SWIG_1(PyObject *SWIGUNUSEDPARM arg2 = ptr; } result = (int)((ofXml const *)arg1)->getNumChildren((std::string const &)*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_getNumChildren(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_getNumChildren(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_getNumChildren__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -51983,8 +60091,8 @@ SWIGINTERN PyObject *_wrap_ofXml_removeAttributes__SWIG_1(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_removeAttributes" "', argument " "1"" of type '" "ofXml *""'"); } arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->removeAttributes(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_removeAttributes(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_removeAttributes(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_removeAttributes__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -52015,8 +60123,8 @@ SWIGINTERN PyObject *_wrap_ofXml_removeContents__SWIG_1(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_removeContents" "', argument " "1"" of type '" "ofXml *""'"); } arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->removeContents(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_removeContents(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_removeContents(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_removeContents__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -52046,8 +60154,8 @@ SWIGINTERN PyObject *_wrap_ofXml_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_remove" "', argument " "1"" of type '" "ofXml *""'"); } arg1 = reinterpret_cast< ofXml * >(argp1); (arg1)->remove(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_remove(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_remove(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_remove__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -52091,13 +60199,14 @@ SWIGINTERN PyObject *_wrap_ofXml_reset(PyObject *SWIGUNUSEDPARM(self), PyObject arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->reset(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofXml_setToChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofXml *arg1 = (ofXml *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_setToChild",&obj0,&obj1)) SWIG_fail; + ofXml *arg1 = (ofXml *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_setToChild",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setToChild" "', argument " "1"" of type '" "ofXml *""'"); } - arg1 = reinterpret_cast< ofXml * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofXml_setToChild" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); result = (bool)(arg1)->setToChild(arg2); + arg1 = reinterpret_cast< ofXml * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofXml_setToChild" "', argument " "2"" of type '" "unsigned long""'"); } + arg2 = static_cast< unsigned long >(val2); result = (bool)(arg1)->setToChild(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofXml_setTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; @@ -52129,8 +60238,8 @@ SWIGINTERN PyObject *_wrap_ofXml_setToParent__SWIG_1(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofXml_setToParent" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (bool)(arg1)->setToParent(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_setToParent(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_setToParent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_setToParent__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; @@ -52211,7 +60320,7 @@ SWIGINTERN PyObject *_wrap_ofXml_tokenize(PyObject *SWIGUNUSEDPARM(self), PyObje if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_tokenize" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } result = ofXml::tokenize((std::string const &)*arg1,(std::string const &)*arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ofXml_getPocoElement__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -52258,8 +60367,8 @@ SWIGINTERN PyObject *_wrap_ofXml_getPocoElement__SWIG_3(PyObject *SWIGUNUSEDPARM arg2 = ptr; } result = (Poco::XML::Element *)((ofXml const *)arg1)->getPocoElement((std::string const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Element, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_getPocoElement(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_getPocoElement(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_getPocoElement__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -52290,8 +60399,8 @@ SWIGINTERN PyObject *_wrap_ofXml_getPocoDocument__SWIG_1(PyObject *SWIGUNUSEDPAR arg1 = reinterpret_cast< ofXml * >(argp1); result = (Poco::XML::Document *)((ofXml const *)arg1)->getPocoDocument(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Document, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofXml_getPocoDocument(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofXml_getPocoDocument(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofXml_getPocoDocument__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; @@ -52307,14 +60416,12 @@ SWIGINTERN PyObject *ofXml_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject } SWIGINTERN PyObject *_wrap_new_ofMatrixStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofAppBaseWindow *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrixStack *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:new_ofMatrixStack",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofAppBaseWindow, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofMatrixStack" "', argument " "1"" of type '" "ofAppBaseWindow const &""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofMatrixStack" "', argument " "1"" of type '" "ofAppBaseWindow const &""'"); } + ofAppBaseWindow *arg1 = (ofAppBaseWindow *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrixStack *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofMatrixStack",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofAppBaseWindow, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofMatrixStack" "', argument " "1"" of type '" "ofAppBaseWindow const *""'"); } arg1 = reinterpret_cast< ofAppBaseWindow * >(argp1); - result = (ofMatrixStack *)new ofMatrixStack((ofAppBaseWindow const &)*arg1); + result = (ofMatrixStack *)new ofMatrixStack((ofAppBaseWindow const *)arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrixStack, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrixStack_setRenderSurface__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -52343,8 +60450,8 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_setRenderSurface__SWIG_1(PyObject *SWIG SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_setRenderSurface" "', argument " "2"" of type '" "ofAppBaseWindow const &""'"); } arg2 = reinterpret_cast< ofAppBaseWindow * >(argp2); (arg1)->setRenderSurface((ofAppBaseWindow const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_setRenderSurface(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrixStack_setRenderSurface(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[3] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { @@ -52374,11 +60481,11 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_getOrientation(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getOrientation" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (ofOrientation)((ofMatrixStack const *)arg1)->getOrientation(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; - int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; +SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; bool arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrixStack_viewport",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_viewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } @@ -52394,102 +60501,6 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport__SWIG_0(PyObject *SWIGUNUSEDPA SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrixStack_viewport" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); (arg1)->viewport(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; - void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; - float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrixStack_viewport",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_viewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } - arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_viewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_viewport" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrixStack_viewport" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrixStack_viewport" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->viewport(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; - fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrixStack_viewport",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_viewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } - arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_viewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_viewport" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrixStack_viewport" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->viewport(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; - int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrixStack_viewport",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_viewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } - arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_viewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_viewport" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->viewport(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; - float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_viewport",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_viewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } - arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_viewport" "', argument " "2"" of type '" "float""'"); } - arg2 = static_cast< float >(val2); (arg1)->viewport(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_viewport",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_viewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } - arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->viewport(); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; - void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { - return _wrap_ofMatrixStack_viewport__SWIG_5(self, args);} } if (argc == 2) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrixStack_viewport__SWIG_4(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrixStack_viewport__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrixStack_viewport__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrixStack_viewport__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { - int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { - int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { - return _wrap_ofMatrixStack_viewport__SWIG_0(self, args);} } } } } } } fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrixStack_viewport'.\n" - " Possible C/C++ prototypes are:\n" " ofMatrixStack::viewport(float,float,float,float,bool)\n" - " ofMatrixStack::viewport(float,float,float,float)\n" " ofMatrixStack::viewport(float,float,float)\n" - " ofMatrixStack::viewport(float,float)\n" " ofMatrixStack::viewport(float)\n" " ofMatrixStack::viewport()\n"); - return 0; } SWIGINTERN PyObject *_wrap_ofMatrixStack_nativeViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofRectangle arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -52507,16 +60518,24 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_getCurrentViewport(PyObject *SWIGUNUSED PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getCurrentViewport",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getCurrentViewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } - arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (arg1)->getCurrentViewport(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getCurrentViewport" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = ((ofMatrixStack const *)arg1)->getCurrentViewport(); resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrixStack_getNativeViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getNativeViewport",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getNativeViewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } - arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (arg1)->getNativeViewport(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getNativeViewport" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = ((ofMatrixStack const *)arg1)->getNativeViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getFullSurfaceViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getFullSurfaceViewport",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getFullSurfaceViewport" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = ((ofMatrixStack const *)arg1)->getFullSurfaceViewport(); resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrixStack_getProjectionMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { @@ -52528,6 +60547,14 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_getProjectionMatrix(PyObject *SWIGUNUSE result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getProjectionMatrix(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getViewMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getViewMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } SWIGINTERN PyObject *_wrap_ofMatrixStack_getModelViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getModelViewMatrix",&obj0)) SWIG_fail; @@ -52676,8 +60703,8 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_translate__SWIG_1(PyObject *SWIGUNUSEDP SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_translate" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); (arg1)->translate(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_translate(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrixStack_translate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -52718,8 +60745,8 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_scale__SWIG_1(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_scale" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); (arg1)->scale(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofMatrixStack_scale(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofMatrixStack_scale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -52789,6 +60816,32 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_multMatrix(PyObject *SWIGUNUSEDPARM(sel SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_multMatrix" "', argument " "2"" of type '" "float const *""'"); } arg2 = reinterpret_cast< float * >(argp2); (arg1)->multMatrix((float const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_loadViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_loadViewMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_loadViewMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_loadViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_loadViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->loadViewMatrix((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_multViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_multViewMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_multViewMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_multViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_multViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->multViewMatrix((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofMatrixStack_clearStacks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_clearStacks",&obj0)) SWIG_fail; @@ -52796,6 +60849,13 @@ SWIGINTERN PyObject *_wrap_ofMatrixStack_clearStacks(PyObject *SWIGUNUSEDPARM(se SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_clearStacks" "', argument " "1"" of type '" "ofMatrixStack *""'"); } arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->clearStacks(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_doesHardwareOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_doesHardwareOrientation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_doesHardwareOrientation" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (bool)((ofMatrixStack const *)arg1)->doesHardwareOrientation(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_ofMatrixStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMatrixStack",&obj0)) SWIG_fail; @@ -52822,44 +60882,21 @@ SWIGINTERN PyObject *_wrap_delete_ofVideoGrabber(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVideoGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_setGrabber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; SwigValueWrapper< ofPtr< ofBaseVideoGrabber > > arg2 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setGrabber",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPtrT_ofBaseVideoGrabber_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_setGrabber" "', argument " "2"" of type '" "ofPtr< ofBaseVideoGrabber >""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_setGrabber" "', argument " "2"" of type '" "ofPtr< ofBaseVideoGrabber >""'"); } - else { ofPtr< ofBaseVideoGrabber > * temp = reinterpret_cast< ofPtr< ofBaseVideoGrabber > * >(argp2); arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setGrabber(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_getGrabber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< ofPtr< ofBaseVideoGrabber > > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getGrabber",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (arg1)->getGrabber(); - resultobj = SWIG_NewPointerObj((new ofPtr< ofBaseVideoGrabber >(static_cast< const ofPtr< ofBaseVideoGrabber >& >(result))), SWIGTYPE_p_ofPtrT_ofBaseVideoGrabber_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_listDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< ofVideoDevice > > result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_listDevices",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_listDevices" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (arg1)->listDevices(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_listDevices" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = ((ofVideoGrabber const *)arg1)->listDevices(); resultobj = SWIG_NewPointerObj((new std::vector< ofVideoDevice >(static_cast< const std::vector< ofVideoDevice >& >(result))), SWIGTYPE_p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_isFrameNew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_isFrameNew",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isFrameNew" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)(arg1)->isFrameNew(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isFrameNew" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)((ofVideoGrabber const *)arg1)->isFrameNew(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -52875,6 +60912,48 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_close(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_close" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoGrabber_setup",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setup" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->setup(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVideoGrabber_setup",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setup" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_setup" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = (bool)(arg1)->setup(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_setup__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_setup__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_setup'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::setup(int,int)\n" " ofVideoGrabber::setup(int,int,bool)\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_initGrabber__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -52902,8 +60981,8 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_initGrabber__SWIG_1(PyObject *SWIGUNUS SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_initGrabber" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->initGrabber(arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_initGrabber(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofVideoGrabber_initGrabber(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { @@ -52931,8 +61010,8 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelFormat(PyObject *SWIGUNUSEDPAR PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPixelFormat result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixelFormat",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixelFormat" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixelFormat)(arg1)->getPixelFormat(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixelFormat" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixelFormat)((ofVideoGrabber const *)arg1)->getPixelFormat(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_videoSettings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -52941,15 +61020,33 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_videoSettings(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_videoSettings" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); (arg1)->videoSettings(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixels",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixels",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixels" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (unsigned char *)(arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixels" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &((ofVideoGrabber const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getPixels()\n" " ofVideoGrabber::getPixels() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixelsRef",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { @@ -52957,13 +61054,102 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef(PyObject *SWIGUNUSEDPARM( arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &(arg1)->getPixelsRef(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTextureReference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixelsRef" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &((ofVideoGrabber const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getPixelsRef()\n" " ofVideoGrabber::getPixelsRef() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexture" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexture" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofTexture *) &((ofVideoGrabber const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getTexture()\n" " ofVideoGrabber::getTexture() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTextureReference",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTextureReference" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTextureReference" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); + result = (ofTexture *) &((ofVideoGrabber const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getTextureReference()\n" + " ofVideoGrabber::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexturePlanes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexturePlanes" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (std::vector< ofTexture > *) &(arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexturePlanes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexturePlanes" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); + result = (std::vector< ofTexture > *) &((ofVideoGrabber const *)arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexturePlanes(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getTexturePlanes__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getTexturePlanes__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getTexturePlanes'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getTexturePlanes()\n" + " ofVideoGrabber::getTexturePlanes() const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_setVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -53004,6 +61190,13 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_setUseTexture(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setUseTexture" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isUsingTexture" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)((ofVideoGrabber const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; @@ -53011,7 +61204,7 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_0(PyObject *SWIGUNUSEDPARM( PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVideoGrabber_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -53020,53 +61213,53 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_0(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_draw" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVideoGrabber_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg5 = static_cast< float >(val5); ((ofVideoGrabber const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoGrabber_draw",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg3 = static_cast< float >(val3); ((ofVideoGrabber const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_2_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_draw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofVideoGrabber const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_2_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_draw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofVideoGrabber const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_2_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVideoGrabber_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } @@ -53076,10 +61269,10 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_2_2(PyObject *SWIGUNUSEDPAR SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_draw" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + arg4 = static_cast< float >(val4); ((ofVideoGrabber const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -53103,9 +61296,23 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw(PyObject *self, PyObject *args) { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVideoGrabber_draw__SWIG_0(self, args);} } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_draw'.\n" - " Possible C/C++ prototypes are:\n" " ofVideoGrabber::draw(float,float,float,float)\n" - " ofVideoGrabber::draw(float,float)\n" " draw(ofPoint const &)\n" " draw(ofRectangle const &)\n" - " draw(ofPoint const &,float,float)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::draw(float,float,float,float) const\n" + " ofVideoGrabber::draw(float,float) const\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_bind" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ((ofVideoGrabber const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_unbind" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ((ofVideoGrabber const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -53141,57 +61348,65 @@ SWIGINTERN PyObject *_wrap_ofVideoGrabber_getHeight(PyObject *SWIGUNUSEDPARM(sel ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getHeight" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (float)(arg1)->getHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getHeight" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (float)((ofVideoGrabber const *)arg1)->getHeight(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getWidth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getWidth" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (float)(arg1)->getWidth(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getWidth" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (float)((ofVideoGrabber const *)arg1)->getWidth(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoGrabber_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_isInitialized",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isInitialized" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)(arg1)->isInitialized(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isInitialized" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)((ofVideoGrabber const *)arg1)->isInitialized(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_height_set" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_height_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_height_get",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setGrabber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; SwigValueWrapper< shared_ptr< ofBaseVideoGrabber > > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setGrabber",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_height_get" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (int) ((arg1)->height); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_width_set",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_setGrabber" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoGrabber >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_setGrabber" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoGrabber >""'"); } + else { shared_ptr< ofBaseVideoGrabber > * temp = reinterpret_cast< shared_ptr< ofBaseVideoGrabber > * >(argp2); + arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setGrabber(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getGrabber__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoGrabber > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getGrabber",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_width_set" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_width_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoGrabber_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_width_get",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (arg1)->getGrabber(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoGrabber >(static_cast< const shared_ptr< ofBaseVideoGrabber >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getGrabber__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoGrabber > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getGrabber",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_width_get" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } - arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (int) ((arg1)->width); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getGrabber" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = ((ofVideoGrabber const *)arg1)->getGrabber(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoGrabber >(static_cast< const shared_ptr< ofBaseVideoGrabber >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getGrabber(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getGrabber__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getGrabber__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getGrabber'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getGrabber()\n" " ofVideoGrabber::getGrabber() const\n"); + return 0; } SWIGINTERN PyObject *ofVideoGrabber_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; @@ -53204,29 +61419,26 @@ SWIGINTERN PyObject *_wrap_new_ofVideoPlayer(PyObject *SWIGUNUSEDPARM(self), PyO result = (ofVideoPlayer *)new ofVideoPlayer(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVideoPlayer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; SwigValueWrapper< ofPtr< ofBaseVideoPlayer > > arg2 ; void *argp1 = 0 ; - int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setPlayer",&obj0,&obj1)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVideoPlayer_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_load",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setPlayer" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPtrT_ofBaseVideoPlayer_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_setPlayer" "', argument " "2"" of type '" "ofPtr< ofBaseVideoPlayer >""'"); } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_setPlayer" "', argument " "2"" of type '" "ofPtr< ofBaseVideoPlayer >""'"); } - else { ofPtr< ofBaseVideoPlayer > * temp = reinterpret_cast< ofPtr< ofBaseVideoPlayer > * >(argp2); arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setPlayer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - SwigValueWrapper< ofPtr< ofBaseVideoPlayer > > result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPlayer",&obj0)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_load" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofVideoPlayer_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_loadAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_loadAsync",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPlayer" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (arg1)->getPlayer(); - resultobj = SWIG_NewPointerObj((new ofPtr< ofBaseVideoPlayer >(static_cast< const ofPtr< ofBaseVideoPlayer >& >(result))), SWIGTYPE_p_ofPtrT_ofBaseVideoPlayer_t, SWIG_POINTER_OWN | 0 ); - return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_loadAsync" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofVideoPlayer_loadAsync" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->loadAsync(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_loadMovie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_loadMovie",&obj0,&obj1)) SWIG_fail; @@ -53241,8 +61453,8 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_getMoviePath(PyObject *SWIGUNUSEDPARM(s ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getMoviePath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getMoviePath" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (arg1)->getMoviePath(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getMoviePath" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = ((ofVideoPlayer const *)arg1)->getMoviePath(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofPixelFormat arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -53258,8 +61470,8 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelFormat(PyObject *SWIGUNUSEDPARM PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPixelFormat result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixelFormat",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixelFormat" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixelFormat)(arg1)->getPixelFormat(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixelFormat" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixelFormat)((ofVideoPlayer const *)arg1)->getPixelFormat(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_closeMovie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -53300,52 +61512,87 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_isFrameNew(PyObject *SWIGUNUSEDPARM(sel ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isFrameNew",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isFrameNew" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)(arg1)->isFrameNew(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isFrameNew" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isFrameNew(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned char *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixels",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixels",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixels" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (unsigned char *)(arg1)->getPixels(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelsRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels *result = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixelsRef",&obj0)) SWIG_fail; + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixels" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &((ofVideoPlayer const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getPixels()\n" " ofVideoPlayer::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixelsRef",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixelsRef" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &(arg1)->getPixelsRef(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixelsRef" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &((ofVideoPlayer const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getPixelsRef()\n" " ofVideoPlayer::getPixelsRef() const\n"); + return 0; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPosition",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPosition" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)(arg1)->getPosition(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPosition" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getPosition(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_getSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getSpeed",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getSpeed" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)(arg1)->getSpeed(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getSpeed" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getSpeed(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_getDuration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getDuration",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getDuration" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)(arg1)->getDuration(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getDuration" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getDuration(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_getIsMovieDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getIsMovieDone",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getIsMovieDone" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)(arg1)->getIsMovieDone(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getIsMovieDone" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->getIsMovieDone(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; @@ -53381,8 +61628,8 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_getLoopState(PyObject *SWIGUNUSEDPARM(s ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofLoopType result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getLoopState",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getLoopState" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofLoopType)(arg1)->getLoopState(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getLoopState" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofLoopType)((ofVideoPlayer const *)arg1)->getLoopState(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_setSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; @@ -53412,20 +61659,98 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_setUseTexture(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setUseTexture" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTextureReference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isUsingTexture" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexture" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexture" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofTexture *) &((ofVideoPlayer const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getTexture()\n" " ofVideoPlayer::getTexture() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTextureReference",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTextureReference" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTextureReference" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); + result = (ofTexture *) &((ofVideoPlayer const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getTextureReference()\n" + " ofVideoPlayer::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexturePlanes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexturePlanes" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (std::vector< ofTexture > *) &(arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexturePlanes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexturePlanes" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); + result = (std::vector< ofTexture > *) &((ofVideoPlayer const *)arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexturePlanes(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexturePlanes__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexturePlanes__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getTexturePlanes'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getTexturePlanes()\n" + " ofVideoPlayer::getTexturePlanes() const\n"); return 0; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVideoPlayer_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { @@ -53434,53 +61759,53 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(s SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoPlayer_draw" "', argument " "4"" of type '" "float""'"); } arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVideoPlayer_draw" "', argument " "5"" of type '" "float""'"); } - arg5 = static_cast< float >(val5); (arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg5 = static_cast< float >(val5); ((ofVideoPlayer const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoPlayer_draw",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoPlayer_draw" "', argument " "3"" of type '" "float""'"); } - arg3 = static_cast< float >(val3); (arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } + arg3 = static_cast< float >(val3); ((ofVideoPlayer const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_2_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_draw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } - arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofVideoPlayer const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_2_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_draw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } - arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofVideoPlayer const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_2_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVideoPlayer_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } @@ -53490,10 +61815,10 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_2_2(PyObject *SWIGUNUSEDPARM SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoPlayer_draw" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoPlayer_draw" "', argument " "4"" of type '" "float""'"); } - arg4 = static_cast< float >(val4); (arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); - return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; + arg4 = static_cast< float >(val4); ((ofVideoPlayer const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { @@ -53517,9 +61842,23 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw(PyObject *self, PyObject *args) { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofVideoPlayer_draw__SWIG_0(self, args);} } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_draw'.\n" - " Possible C/C++ prototypes are:\n" " ofVideoPlayer::draw(float,float,float,float)\n" - " ofVideoPlayer::draw(float,float)\n" " draw(ofPoint const &)\n" " draw(ofRectangle const &)\n" - " draw(ofPoint const &,float,float)\n"); return 0; } + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::draw(float,float,float,float) const\n" + " ofVideoPlayer::draw(float,float) const\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_bind" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ((ofVideoPlayer const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_unbind" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ((ofVideoPlayer const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -53564,15 +61903,15 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_getCurrentFrame(PyObject *SWIGUNUSEDPAR PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getCurrentFrame",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getCurrentFrame" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int)(arg1)->getCurrentFrame(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getCurrentFrame" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int)((ofVideoPlayer const *)arg1)->getCurrentFrame(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTotalNumFrames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTotalNumFrames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTotalNumFrames" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int)(arg1)->getTotalNumFrames(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTotalNumFrames" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int)((ofVideoPlayer const *)arg1)->getTotalNumFrames(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_firstFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; @@ -53599,71 +61938,85 @@ SWIGINTERN PyObject *_wrap_ofVideoPlayer_getHeight(PyObject *SWIGUNUSEDPARM(self ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getHeight",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getHeight" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)(arg1)->getHeight(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getHeight" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getHeight(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getWidth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getWidth" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)(arg1)->getWidth(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getWidth" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getWidth(); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_isPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isPaused",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isPaused" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)(arg1)->isPaused(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isPaused" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isPaused(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isLoaded",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isLoaded" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)(arg1)->isLoaded(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isLoaded" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isLoaded(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofVideoPlayer_isPlaying(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isPlaying",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isPlaying" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)(arg1)->isPlaying(); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isPlaying" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isPlaying(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_height_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_height_set" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_height_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_height_get",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isInitialized",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_height_get" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int) ((arg1)->height); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_width_set",&obj0,&obj1)) SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isInitialized" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isInitialized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; SwigValueWrapper< shared_ptr< ofBaseVideoPlayer > > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setPlayer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_width_set" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_width_set" "', argument " "2"" of type '" "int""'"); } - arg2 = static_cast< int >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setPlayer" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoPlayer >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoPlayer >""'"); } + else { shared_ptr< ofBaseVideoPlayer > * temp = reinterpret_cast< shared_ptr< ofBaseVideoPlayer > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setPlayer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofVideoPlayer_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; - if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_width_get",&obj0)) SWIG_fail; +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPlayer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoPlayer > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPlayer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_width_get" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } - arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int) ((arg1)->width); - resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPlayer" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (arg1)->getPlayer(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoPlayer >(static_cast< const shared_ptr< ofBaseVideoPlayer >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPlayer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoPlayer > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPlayer" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = ((ofVideoPlayer const *)arg1)->getPlayer(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoPlayer >(static_cast< const shared_ptr< ofBaseVideoPlayer >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPlayer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPlayer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPlayer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getPlayer'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getPlayer()\n" " ofVideoPlayer::getPlayer() const\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_ofVideoPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVideoPlayer",&obj0)) SWIG_fail; @@ -53688,8 +62041,8 @@ SWIGINTERN PyObject *_wrap_ofGetMousePressed__SWIG_0(PyObject *SWIGUNUSEDPARM(se SWIGINTERN PyObject *_wrap_ofGetMousePressed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetMousePressed")) SWIG_fail; result = (bool)ofGetMousePressed(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetMousePressed(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofGetMousePressed(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofGetMousePressed__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofGetMousePressed__SWIG_0(self, args);} } fail: @@ -53705,8 +62058,8 @@ SWIGINTERN PyObject *_wrap_ofGetKeyPressed__SWIG_0(PyObject *SWIGUNUSEDPARM(self SWIGINTERN PyObject *_wrap_ofGetKeyPressed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetKeyPressed")) SWIG_fail; result = (bool)ofGetKeyPressed(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofGetKeyPressed(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofGetKeyPressed(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofGetKeyPressed__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofGetKeyPressed__SWIG_0(self, args);} } fail: @@ -53724,13 +62077,6 @@ SWIGINTERN PyObject *_wrap_ofGetPreviousMouseX(PyObject *SWIGUNUSEDPARM(self), P SWIGINTERN PyObject *_wrap_ofGetPreviousMouseY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":ofGetPreviousMouseY")) SWIG_fail; result = (int)ofGetPreviousMouseY(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSetEscapeQuitsApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; - if (!PyArg_ParseTuple(args,(char *)"O:ofSetEscapeQuitsApp",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetEscapeQuitsApp" "', argument " "1"" of type '" "bool""'"); } - arg1 = static_cast< bool >(val1); ofSetEscapeQuitsApp(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: - return NULL; } SWIGINTERN PyObject *_wrap_ofDragInfo_files_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofDragInfo *arg1 = (ofDragInfo *) 0 ; std::vector< std::string > *arg2 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -53788,22 +62134,54 @@ SWIGINTERN PyObject *ofDragInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyO return SWIG_Py_Void(); } +SWIGINTERN PyObject *_wrap_new_ofTouchEventArgs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":new_ofTouchEventArgs")) SWIG_fail; result = (ofTouchEventArgs *)new ofTouchEventArgs(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTouchEventArgs, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTouchEventArgs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs::Type arg1 ; float arg2 ; float arg3 ; int arg4 ; int val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofTouchEventArgs *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofTouchEventArgs",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofTouchEventArgs" "', argument " "1"" of type '" "ofTouchEventArgs::Type""'"); } + arg1 = static_cast< ofTouchEventArgs::Type >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofTouchEventArgs" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofTouchEventArgs" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofTouchEventArgs" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = (ofTouchEventArgs *)new ofTouchEventArgs(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTouchEventArgs, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTouchEventArgs(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofTouchEventArgs__SWIG_0(self, args);} if (argc == 4) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofTouchEventArgs__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofTouchEventArgs'.\n" + " Possible C/C++ prototypes are:\n" " ofTouchEventArgs::ofTouchEventArgs()\n" + " ofTouchEventArgs::ofTouchEventArgs(ofTouchEventArgs::Type,float,float,int)\n"); return 0; } SWIGINTERN PyObject *_wrap_ofTouchEventArgs_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; enum ofTouchEventArgs::Type arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; ofTouchEventArgs::Type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_type_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_type_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_type_set" "', argument " "2"" of type '" "enum ofTouchEventArgs::Type""'"); } - arg2 = static_cast< enum ofTouchEventArgs::Type >(val2); if (arg1) (arg1)->type = arg2; resultobj = SWIG_Py_Void(); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_type_set" "', argument " "2"" of type '" "ofTouchEventArgs::Type""'"); } + arg2 = static_cast< ofTouchEventArgs::Type >(val2); if (arg1) (arg1)->type = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTouchEventArgs_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; - enum ofTouchEventArgs::Type result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_type_get",&obj0)) SWIG_fail; + ofTouchEventArgs::Type result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_type_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_type_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } - arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (enum ofTouchEventArgs::Type) ((arg1)->type); + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (ofTouchEventArgs::Type) ((arg1)->type); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ofTouchEventArgs_id_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; @@ -54026,11 +62404,6 @@ SWIGINTERN PyObject *_wrap_ofTouchEventArgs_yaccel_get(PyObject *SWIGUNUSEDPARM( SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_yaccel_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->yaccel); resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_new_ofTouchEventArgs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; - ofTouchEventArgs *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTouchEventArgs")) SWIG_fail; - result = (ofTouchEventArgs *)new ofTouchEventArgs(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTouchEventArgs, SWIG_POINTER_NEW | 0 ); - return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_ofTouchEventArgs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTouchEventArgs",&obj0)) SWIG_fail; @@ -54060,8 +62433,8 @@ SWIGINTERN PyObject *_wrap_ofSendMessage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSendMessage" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofSendMessage(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ofSendMessage(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; - if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; +SWIGINTERN PyObject *_wrap_ofSendMessage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMessage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ofSendMessage__SWIG_0(self, args);} } if (argc == 1) { int _v; @@ -54093,23 +62466,23 @@ static PyMethodDef SwigMethods[] = { { (char *)"IntVector___nonzero__", _wrap_IntVector___nonzero__, METH_VARARGS, NULL}, { (char *)"IntVector___bool__", _wrap_IntVector___bool__, METH_VARARGS, NULL}, { (char *)"IntVector___len__", _wrap_IntVector___len__, METH_VARARGS, NULL}, - { (char *)"IntVector_pop", _wrap_IntVector_pop, METH_VARARGS, NULL}, { (char *)"IntVector___getslice__", _wrap_IntVector___getslice__, METH_VARARGS, NULL}, { (char *)"IntVector___setslice__", _wrap_IntVector___setslice__, METH_VARARGS, NULL}, { (char *)"IntVector___delslice__", _wrap_IntVector___delslice__, METH_VARARGS, NULL}, { (char *)"IntVector___delitem__", _wrap_IntVector___delitem__, METH_VARARGS, NULL}, { (char *)"IntVector___getitem__", _wrap_IntVector___getitem__, METH_VARARGS, NULL}, { (char *)"IntVector___setitem__", _wrap_IntVector___setitem__, METH_VARARGS, NULL}, + { (char *)"IntVector_pop", _wrap_IntVector_pop, METH_VARARGS, NULL}, { (char *)"IntVector_append", _wrap_IntVector_append, METH_VARARGS, NULL}, { (char *)"IntVector_empty", _wrap_IntVector_empty, METH_VARARGS, NULL}, { (char *)"IntVector_size", _wrap_IntVector_size, METH_VARARGS, NULL}, - { (char *)"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL}, { (char *)"IntVector_swap", _wrap_IntVector_swap, METH_VARARGS, NULL}, - { (char *)"IntVector_get_allocator", _wrap_IntVector_get_allocator, METH_VARARGS, NULL}, { (char *)"IntVector_begin", _wrap_IntVector_begin, METH_VARARGS, NULL}, { (char *)"IntVector_end", _wrap_IntVector_end, METH_VARARGS, NULL}, { (char *)"IntVector_rbegin", _wrap_IntVector_rbegin, METH_VARARGS, NULL}, { (char *)"IntVector_rend", _wrap_IntVector_rend, METH_VARARGS, NULL}, + { (char *)"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL}, + { (char *)"IntVector_get_allocator", _wrap_IntVector_get_allocator, METH_VARARGS, NULL}, { (char *)"IntVector_pop_back", _wrap_IntVector_pop_back, METH_VARARGS, NULL}, { (char *)"IntVector_erase", _wrap_IntVector_erase, METH_VARARGS, NULL}, { (char *)"new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL}, @@ -54127,23 +62500,23 @@ static PyMethodDef SwigMethods[] = { { (char *)"FloatVector___nonzero__", _wrap_FloatVector___nonzero__, METH_VARARGS, NULL}, { (char *)"FloatVector___bool__", _wrap_FloatVector___bool__, METH_VARARGS, NULL}, { (char *)"FloatVector___len__", _wrap_FloatVector___len__, METH_VARARGS, NULL}, - { (char *)"FloatVector_pop", _wrap_FloatVector_pop, METH_VARARGS, NULL}, { (char *)"FloatVector___getslice__", _wrap_FloatVector___getslice__, METH_VARARGS, NULL}, { (char *)"FloatVector___setslice__", _wrap_FloatVector___setslice__, METH_VARARGS, NULL}, { (char *)"FloatVector___delslice__", _wrap_FloatVector___delslice__, METH_VARARGS, NULL}, { (char *)"FloatVector___delitem__", _wrap_FloatVector___delitem__, METH_VARARGS, NULL}, { (char *)"FloatVector___getitem__", _wrap_FloatVector___getitem__, METH_VARARGS, NULL}, { (char *)"FloatVector___setitem__", _wrap_FloatVector___setitem__, METH_VARARGS, NULL}, + { (char *)"FloatVector_pop", _wrap_FloatVector_pop, METH_VARARGS, NULL}, { (char *)"FloatVector_append", _wrap_FloatVector_append, METH_VARARGS, NULL}, { (char *)"FloatVector_empty", _wrap_FloatVector_empty, METH_VARARGS, NULL}, { (char *)"FloatVector_size", _wrap_FloatVector_size, METH_VARARGS, NULL}, - { (char *)"FloatVector_clear", _wrap_FloatVector_clear, METH_VARARGS, NULL}, { (char *)"FloatVector_swap", _wrap_FloatVector_swap, METH_VARARGS, NULL}, - { (char *)"FloatVector_get_allocator", _wrap_FloatVector_get_allocator, METH_VARARGS, NULL}, { (char *)"FloatVector_begin", _wrap_FloatVector_begin, METH_VARARGS, NULL}, { (char *)"FloatVector_end", _wrap_FloatVector_end, METH_VARARGS, NULL}, { (char *)"FloatVector_rbegin", _wrap_FloatVector_rbegin, METH_VARARGS, NULL}, { (char *)"FloatVector_rend", _wrap_FloatVector_rend, METH_VARARGS, NULL}, + { (char *)"FloatVector_clear", _wrap_FloatVector_clear, METH_VARARGS, NULL}, + { (char *)"FloatVector_get_allocator", _wrap_FloatVector_get_allocator, METH_VARARGS, NULL}, { (char *)"FloatVector_pop_back", _wrap_FloatVector_pop_back, METH_VARARGS, NULL}, { (char *)"FloatVector_erase", _wrap_FloatVector_erase, METH_VARARGS, NULL}, { (char *)"new_FloatVector", _wrap_new_FloatVector, METH_VARARGS, NULL}, @@ -54161,23 +62534,23 @@ static PyMethodDef SwigMethods[] = { { (char *)"StringVector___nonzero__", _wrap_StringVector___nonzero__, METH_VARARGS, NULL}, { (char *)"StringVector___bool__", _wrap_StringVector___bool__, METH_VARARGS, NULL}, { (char *)"StringVector___len__", _wrap_StringVector___len__, METH_VARARGS, NULL}, - { (char *)"StringVector_pop", _wrap_StringVector_pop, METH_VARARGS, NULL}, { (char *)"StringVector___getslice__", _wrap_StringVector___getslice__, METH_VARARGS, NULL}, { (char *)"StringVector___setslice__", _wrap_StringVector___setslice__, METH_VARARGS, NULL}, { (char *)"StringVector___delslice__", _wrap_StringVector___delslice__, METH_VARARGS, NULL}, { (char *)"StringVector___delitem__", _wrap_StringVector___delitem__, METH_VARARGS, NULL}, { (char *)"StringVector___getitem__", _wrap_StringVector___getitem__, METH_VARARGS, NULL}, { (char *)"StringVector___setitem__", _wrap_StringVector___setitem__, METH_VARARGS, NULL}, + { (char *)"StringVector_pop", _wrap_StringVector_pop, METH_VARARGS, NULL}, { (char *)"StringVector_append", _wrap_StringVector_append, METH_VARARGS, NULL}, { (char *)"StringVector_empty", _wrap_StringVector_empty, METH_VARARGS, NULL}, { (char *)"StringVector_size", _wrap_StringVector_size, METH_VARARGS, NULL}, - { (char *)"StringVector_clear", _wrap_StringVector_clear, METH_VARARGS, NULL}, { (char *)"StringVector_swap", _wrap_StringVector_swap, METH_VARARGS, NULL}, - { (char *)"StringVector_get_allocator", _wrap_StringVector_get_allocator, METH_VARARGS, NULL}, { (char *)"StringVector_begin", _wrap_StringVector_begin, METH_VARARGS, NULL}, { (char *)"StringVector_end", _wrap_StringVector_end, METH_VARARGS, NULL}, { (char *)"StringVector_rbegin", _wrap_StringVector_rbegin, METH_VARARGS, NULL}, { (char *)"StringVector_rend", _wrap_StringVector_rend, METH_VARARGS, NULL}, + { (char *)"StringVector_clear", _wrap_StringVector_clear, METH_VARARGS, NULL}, + { (char *)"StringVector_get_allocator", _wrap_StringVector_get_allocator, METH_VARARGS, NULL}, { (char *)"StringVector_pop_back", _wrap_StringVector_pop_back, METH_VARARGS, NULL}, { (char *)"StringVector_erase", _wrap_StringVector_erase, METH_VARARGS, NULL}, { (char *)"new_StringVector", _wrap_new_StringVector, METH_VARARGS, NULL}, @@ -54191,10 +62564,185 @@ static PyMethodDef SwigMethods[] = { { (char *)"StringVector_capacity", _wrap_StringVector_capacity, METH_VARARGS, NULL}, { (char *)"delete_StringVector", _wrap_delete_StringVector, METH_VARARGS, NULL}, { (char *)"StringVector_swigregister", StringVector_swigregister, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_MAJOR_swigconstant", OF_VERSION_MAJOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_MINOR_swigconstant", OF_VERSION_MINOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_PATCH_swigconstant", OF_VERSION_PATCH_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_PRE_RELEASE_swigconstant", OF_VERSION_PRE_RELEASE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOOP_NONE_swigconstant", OF_LOOP_NONE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOOP_PALINDROME_swigconstant", OF_LOOP_PALINDROME_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOOP_NORMAL_swigconstant", OF_LOOP_NORMAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_OSX_swigconstant", OF_TARGET_OSX_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_MINGW_swigconstant", OF_TARGET_MINGW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_WINVS_swigconstant", OF_TARGET_WINVS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_IOS_swigconstant", OF_TARGET_IOS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_ANDROID_swigconstant", OF_TARGET_ANDROID_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUX_swigconstant", OF_TARGET_LINUX_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUX64_swigconstant", OF_TARGET_LINUX64_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUXARMV6L_swigconstant", OF_TARGET_LINUXARMV6L_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUXARMV7L_swigconstant", OF_TARGET_LINUXARMV7L_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_EMSCRIPTEN_swigconstant", OF_TARGET_EMSCRIPTEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"B14400_swigconstant", B14400_swigconstant, METH_VARARGS, NULL}, + { (char *)"B28800_swigconstant", B28800_swigconstant, METH_VARARGS, NULL}, + { (char *)"HAS_TLS_swigconstant", HAS_TLS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SERIAL_NO_DATA_swigconstant", OF_SERIAL_NO_DATA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SERIAL_ERROR_swigconstant", OF_SERIAL_ERROR_swigconstant, METH_VARARGS, NULL}, + { (char *)"PI_swigconstant", PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"TWO_PI_swigconstant", TWO_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"M_TWO_PI_swigconstant", M_TWO_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"FOUR_PI_swigconstant", FOUR_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"HALF_PI_swigconstant", HALF_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"DEG_TO_RAD_swigconstant", DEG_TO_RAD_swigconstant, METH_VARARGS, NULL}, + { (char *)"RAD_TO_DEG_swigconstant", RAD_TO_DEG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_OUTLINE_swigconstant", OF_OUTLINE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_FILLED_swigconstant", OF_FILLED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_WINDOW_swigconstant", OF_WINDOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_FULLSCREEN_swigconstant", OF_FULLSCREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GAME_MODE_swigconstant", OF_GAME_MODE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ASPECT_RATIO_IGNORE_swigconstant", OF_ASPECT_RATIO_IGNORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ASPECT_RATIO_KEEP_swigconstant", OF_ASPECT_RATIO_KEEP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant", OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_IGNORE_swigconstant", OF_ALIGN_VERT_IGNORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_TOP_swigconstant", OF_ALIGN_VERT_TOP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_BOTTOM_swigconstant", OF_ALIGN_VERT_BOTTOM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_CENTER_swigconstant", OF_ALIGN_VERT_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_IGNORE_swigconstant", OF_ALIGN_HORZ_IGNORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_LEFT_swigconstant", OF_ALIGN_HORZ_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_RIGHT_swigconstant", OF_ALIGN_HORZ_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_CENTER_swigconstant", OF_ALIGN_HORZ_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_RECTMODE_CORNER_swigconstant", OF_RECTMODE_CORNER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_RECTMODE_CENTER_swigconstant", OF_RECTMODE_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_FIT_swigconstant", OF_SCALEMODE_FIT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_FILL_swigconstant", OF_SCALEMODE_FILL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_CENTER_swigconstant", OF_SCALEMODE_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_STRETCH_TO_FILL_swigconstant", OF_SCALEMODE_STRETCH_TO_FILL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_GRAYSCALE_swigconstant", OF_IMAGE_GRAYSCALE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_COLOR_swigconstant", OF_IMAGE_COLOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_COLOR_ALPHA_swigconstant", OF_IMAGE_COLOR_ALPHA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_UNDEFINED_swigconstant", OF_IMAGE_UNDEFINED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MAX_STYLE_HISTORY_swigconstant", OF_MAX_STYLE_HISTORY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MAX_VIEWPORT_HISTORY_swigconstant", OF_MAX_VIEWPORT_HISTORY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MAX_CIRCLE_PTS_swigconstant", OF_MAX_CIRCLE_PTS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_DISABLED_swigconstant", OF_BLENDMODE_DISABLED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_ALPHA_swigconstant", OF_BLENDMODE_ALPHA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_ADD_swigconstant", OF_BLENDMODE_ADD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_SUBTRACT_swigconstant", OF_BLENDMODE_SUBTRACT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_MULTIPLY_swigconstant", OF_BLENDMODE_MULTIPLY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_SCREEN_swigconstant", OF_BLENDMODE_SCREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_DEFAULT_swigconstant", OF_ORIENTATION_DEFAULT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_180_swigconstant", OF_ORIENTATION_180_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_90_LEFT_swigconstant", OF_ORIENTATION_90_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_90_RIGHT_swigconstant", OF_ORIENTATION_90_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_UNKNOWN_swigconstant", OF_ORIENTATION_UNKNOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GRADIENT_LINEAR_swigconstant", OF_GRADIENT_LINEAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GRADIENT_CIRCULAR_swigconstant", OF_GRADIENT_CIRCULAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GRADIENT_BAR_swigconstant", OF_GRADIENT_BAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_ODD_swigconstant", OF_POLY_WINDING_ODD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_NONZERO_swigconstant", OF_POLY_WINDING_NONZERO_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_POSITIVE_swigconstant", OF_POLY_WINDING_POSITIVE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_NEGATIVE_swigconstant", OF_POLY_WINDING_NEGATIVE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant", OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CLOSE_swigconstant", OF_CLOSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LEFT_HANDED_swigconstant", OF_LEFT_HANDED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_RIGHT_HANDED_swigconstant", OF_RIGHT_HANDED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MATRIX_MODELVIEW_swigconstant", OF_MATRIX_MODELVIEW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MATRIX_PROJECTION_swigconstant", OF_MATRIX_PROJECTION_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MATRIX_TEXTURE_swigconstant", OF_MATRIX_TEXTURE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_MODIFIER_swigconstant", OF_KEY_MODIFIER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RETURN_swigconstant", OF_KEY_RETURN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_ESC_swigconstant", OF_KEY_ESC_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_TAB_swigconstant", OF_KEY_TAB_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_BACKSPACE_swigconstant", OF_KEY_BACKSPACE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_DEL_swigconstant", OF_KEY_DEL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F1_swigconstant", OF_KEY_F1_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F2_swigconstant", OF_KEY_F2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F3_swigconstant", OF_KEY_F3_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F4_swigconstant", OF_KEY_F4_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F5_swigconstant", OF_KEY_F5_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F6_swigconstant", OF_KEY_F6_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F7_swigconstant", OF_KEY_F7_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F8_swigconstant", OF_KEY_F8_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F9_swigconstant", OF_KEY_F9_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F10_swigconstant", OF_KEY_F10_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F11_swigconstant", OF_KEY_F11_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F12_swigconstant", OF_KEY_F12_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_swigconstant", OF_KEY_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_UP_swigconstant", OF_KEY_UP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_swigconstant", OF_KEY_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_DOWN_swigconstant", OF_KEY_DOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_PAGE_UP_swigconstant", OF_KEY_PAGE_UP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_PAGE_DOWN_swigconstant", OF_KEY_PAGE_DOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_HOME_swigconstant", OF_KEY_HOME_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_END_swigconstant", OF_KEY_END_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_INSERT_swigconstant", OF_KEY_INSERT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_CONTROL_swigconstant", OF_KEY_CONTROL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_ALT_swigconstant", OF_KEY_ALT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_SHIFT_swigconstant", OF_KEY_SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_SUPER_swigconstant", OF_KEY_SUPER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_SHIFT_swigconstant", OF_KEY_LEFT_SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_SHIFT_swigconstant", OF_KEY_RIGHT_SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_CONTROL_swigconstant", OF_KEY_LEFT_CONTROL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_CONTROL_swigconstant", OF_KEY_RIGHT_CONTROL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_ALT_swigconstant", OF_KEY_LEFT_ALT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_ALT_swigconstant", OF_KEY_RIGHT_ALT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_SUPER_swigconstant", OF_KEY_LEFT_SUPER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_SUPER_swigconstant", OF_KEY_RIGHT_SUPER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_COMMAND_swigconstant", OF_KEY_LEFT_COMMAND_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_COMMAND_swigconstant", OF_KEY_RIGHT_COMMAND_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_1_swigconstant", OF_MOUSE_BUTTON_1_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_2_swigconstant", OF_MOUSE_BUTTON_2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_3_swigconstant", OF_MOUSE_BUTTON_3_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_4_swigconstant", OF_MOUSE_BUTTON_4_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_5_swigconstant", OF_MOUSE_BUTTON_5_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_6_swigconstant", OF_MOUSE_BUTTON_6_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_7_swigconstant", OF_MOUSE_BUTTON_7_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_8_swigconstant", OF_MOUSE_BUTTON_8_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_LAST_swigconstant", OF_MOUSE_BUTTON_LAST_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_LEFT_swigconstant", OF_MOUSE_BUTTON_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_MIDDLE_swigconstant", OF_MOUSE_BUTTON_MIDDLE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_RIGHT_swigconstant", OF_MOUSE_BUTTON_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_RESTORE_swigconstant", OF_CONSOLE_COLOR_RESTORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_BLACK_swigconstant", OF_CONSOLE_COLOR_BLACK_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_RED_swigconstant", OF_CONSOLE_COLOR_RED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_GREEN_swigconstant", OF_CONSOLE_COLOR_GREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_YELLOW_swigconstant", OF_CONSOLE_COLOR_YELLOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_BLUE_swigconstant", OF_CONSOLE_COLOR_BLUE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_PURPLE_swigconstant", OF_CONSOLE_COLOR_PURPLE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_CYAN_swigconstant", OF_CONSOLE_COLOR_CYAN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_WHITE_swigconstant", OF_CONSOLE_COLOR_WHITE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_GRAY_swigconstant", OF_PIXELS_GRAY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_GRAY_ALPHA_swigconstant", OF_PIXELS_GRAY_ALPHA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_RGB_swigconstant", OF_PIXELS_RGB_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_BGR_swigconstant", OF_PIXELS_BGR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_RGBA_swigconstant", OF_PIXELS_RGBA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_BGRA_swigconstant", OF_PIXELS_BGRA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_RGB565_swigconstant", OF_PIXELS_RGB565_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NV12_swigconstant", OF_PIXELS_NV12_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NV21_swigconstant", OF_PIXELS_NV21_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_YV12_swigconstant", OF_PIXELS_YV12_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_I420_swigconstant", OF_PIXELS_I420_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_YUY2_swigconstant", OF_PIXELS_YUY2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_UYVY_swigconstant", OF_PIXELS_UYVY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_Y_swigconstant", OF_PIXELS_Y_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_U_swigconstant", OF_PIXELS_U_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_V_swigconstant", OF_PIXELS_V_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_UV_swigconstant", OF_PIXELS_UV_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_VU_swigconstant", OF_PIXELS_VU_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NUM_FORMATS_swigconstant", OF_PIXELS_NUM_FORMATS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_UNKNOWN_swigconstant", OF_PIXELS_UNKNOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NATIVE_swigconstant", OF_PIXELS_NATIVE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_SIMPLE_swigconstant", OF_BITMAPMODE_SIMPLE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_SCREEN_swigconstant", OF_BITMAPMODE_SCREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_VIEWPORT_swigconstant", OF_BITMAPMODE_VIEWPORT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_MODEL_swigconstant", OF_BITMAPMODE_MODEL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant", OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ENCODING_UTF8_swigconstant", OF_ENCODING_UTF8_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ENCODING_ISO_8859_15_swigconstant", OF_ENCODING_ISO_8859_15_swigconstant, METH_VARARGS, NULL}, { (char *)"new_ofFbo", _wrap_new_ofFbo, METH_VARARGS, NULL}, { (char *)"delete_ofFbo", _wrap_delete_ofFbo, METH_VARARGS, NULL}, { (char *)"ofFbo_allocate", _wrap_ofFbo_allocate, METH_VARARGS, NULL}, { (char *)"ofFbo_isAllocated", _wrap_ofFbo_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofFbo_destroy", _wrap_ofFbo_destroy, METH_VARARGS, NULL}, + { (char *)"ofFbo_clear", _wrap_ofFbo_clear, METH_VARARGS, NULL}, { (char *)"ofFbo_draw", _wrap_ofFbo_draw, METH_VARARGS, NULL}, { (char *)"ofFbo_setAnchorPercent", _wrap_ofFbo_setAnchorPercent, METH_VARARGS, NULL}, { (char *)"ofFbo_setAnchorPoint", _wrap_ofFbo_setAnchorPoint, METH_VARARGS, NULL}, @@ -54202,8 +62750,10 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofFbo_setDefaultTextureIndex", _wrap_ofFbo_setDefaultTextureIndex, METH_VARARGS, NULL}, { (char *)"ofFbo_getDefaultTextureIndex", _wrap_ofFbo_getDefaultTextureIndex, METH_VARARGS, NULL}, { (char *)"ofFbo_getTextureReference", _wrap_ofFbo_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofFbo_getTexture", _wrap_ofFbo_getTexture, METH_VARARGS, NULL}, { (char *)"ofFbo_getDepthTexture", _wrap_ofFbo_getDepthTexture, METH_VARARGS, NULL}, { (char *)"ofFbo_setUseTexture", _wrap_ofFbo_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_isUsingTexture", _wrap_ofFbo_isUsingTexture, METH_VARARGS, NULL}, { (char *)"ofFbo_begin", _wrap_ofFbo_begin, METH_VARARGS, NULL}, { (char *)"ofFbo_end", _wrap_ofFbo_end, METH_VARARGS, NULL}, { (char *)"ofFbo_readToPixels", _wrap_ofFbo_readToPixels, METH_VARARGS, NULL}, @@ -54211,6 +62761,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofFbo_getHeight", _wrap_ofFbo_getHeight, METH_VARARGS, NULL}, { (char *)"ofFbo_bind", _wrap_ofFbo_bind, METH_VARARGS, NULL}, { (char *)"ofFbo_unbind", _wrap_ofFbo_unbind, METH_VARARGS, NULL}, + { (char *)"ofFbo_flagDirty", _wrap_ofFbo_flagDirty, METH_VARARGS, NULL}, + { (char *)"ofFbo_updateTexture", _wrap_ofFbo_updateTexture, METH_VARARGS, NULL}, { (char *)"ofFbo_checkStatus", _wrap_ofFbo_checkStatus, METH_VARARGS, NULL}, { (char *)"ofFbo_createAndAttachTexture", _wrap_ofFbo_createAndAttachTexture, METH_VARARGS, NULL}, { (char *)"ofFbo_attachTexture", _wrap_ofFbo_attachTexture, METH_VARARGS, NULL}, @@ -54221,6 +62773,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofFbo_setActiveDrawBuffers", _wrap_ofFbo_setActiveDrawBuffers, METH_VARARGS, NULL}, { (char *)"ofFbo_activateAllDrawBuffers", _wrap_ofFbo_activateAllDrawBuffers, METH_VARARGS, NULL}, { (char *)"ofFbo_getFbo", _wrap_ofFbo_getFbo, METH_VARARGS, NULL}, + { (char *)"ofFbo_getId", _wrap_ofFbo_getId, METH_VARARGS, NULL}, + { (char *)"ofFbo_getIdDrawBuffer", _wrap_ofFbo_getIdDrawBuffer, METH_VARARGS, NULL}, { (char *)"ofFbo_checkGLSupport", _wrap_ofFbo_checkGLSupport, METH_VARARGS, NULL}, { (char *)"ofFbo_maxColorAttachments", _wrap_ofFbo_maxColorAttachments, METH_VARARGS, NULL}, { (char *)"ofFbo_maxDrawBuffers", _wrap_ofFbo_maxDrawBuffers, METH_VARARGS, NULL}, @@ -54234,13 +62788,16 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofGetUsingNormalizedTexCoords", _wrap_ofGetUsingNormalizedTexCoords, METH_VARARGS, NULL}, { (char *)"ofEnableNormalizedTexCoords", _wrap_ofEnableNormalizedTexCoords, METH_VARARGS, NULL}, { (char *)"ofDisableNormalizedTexCoords", _wrap_ofDisableNormalizedTexCoords, METH_VARARGS, NULL}, + { (char *)"OF_COMPRESS_NONE_swigconstant", OF_COMPRESS_NONE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_COMPRESS_SRGB_swigconstant", OF_COMPRESS_SRGB_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_COMPRESS_ARB_swigconstant", OF_COMPRESS_ARB_swigconstant, METH_VARARGS, NULL}, { (char *)"new_ofTextureData", _wrap_new_ofTextureData, METH_VARARGS, NULL}, { (char *)"ofTextureData_textureID_set", _wrap_ofTextureData_textureID_set, METH_VARARGS, NULL}, { (char *)"ofTextureData_textureID_get", _wrap_ofTextureData_textureID_get, METH_VARARGS, NULL}, { (char *)"ofTextureData_textureTarget_set", _wrap_ofTextureData_textureTarget_set, METH_VARARGS, NULL}, { (char *)"ofTextureData_textureTarget_get", _wrap_ofTextureData_textureTarget_get, METH_VARARGS, NULL}, - { (char *)"ofTextureData_glTypeInternal_set", _wrap_ofTextureData_glTypeInternal_set, METH_VARARGS, NULL}, - { (char *)"ofTextureData_glTypeInternal_get", _wrap_ofTextureData_glTypeInternal_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_glInternalFormat_set", _wrap_ofTextureData_glInternalFormat_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_glInternalFormat_get", _wrap_ofTextureData_glInternalFormat_get, METH_VARARGS, NULL}, { (char *)"ofTextureData_tex_t_set", _wrap_ofTextureData_tex_t_set, METH_VARARGS, NULL}, { (char *)"ofTextureData_tex_t_get", _wrap_ofTextureData_tex_t_get, METH_VARARGS, NULL}, { (char *)"ofTextureData_tex_u_set", _wrap_ofTextureData_tex_u_set, METH_VARARGS, NULL}, @@ -54259,177 +62816,223 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofTextureData_compressionType_get", _wrap_ofTextureData_compressionType_get, METH_VARARGS, NULL}, { (char *)"ofTextureData_bAllocated_set", _wrap_ofTextureData_bAllocated_set, METH_VARARGS, NULL}, { (char *)"ofTextureData_bAllocated_get", _wrap_ofTextureData_bAllocated_get, METH_VARARGS, NULL}, - { (char *)"ofTextureData_bUseExternalTextureID_set", _wrap_ofTextureData_bUseExternalTextureID_set, METH_VARARGS, NULL}, - { (char *)"ofTextureData_bUseExternalTextureID_get", _wrap_ofTextureData_bUseExternalTextureID_get, METH_VARARGS, NULL}, - { (char *)"ofTextureData_textureMatrix_set", _wrap_ofTextureData_textureMatrix_set, METH_VARARGS, NULL}, - { (char *)"ofTextureData_textureMatrix_get", _wrap_ofTextureData_textureMatrix_get, METH_VARARGS, NULL}, - { (char *)"ofTextureData_useTextureMatrix_set", _wrap_ofTextureData_useTextureMatrix_set, METH_VARARGS, NULL}, - { (char *)"ofTextureData_useTextureMatrix_get", _wrap_ofTextureData_useTextureMatrix_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_minFilter_set", _wrap_ofTextureData_minFilter_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_minFilter_get", _wrap_ofTextureData_minFilter_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_magFilter_set", _wrap_ofTextureData_magFilter_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_magFilter_get", _wrap_ofTextureData_magFilter_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeHorizontal_set", _wrap_ofTextureData_wrapModeHorizontal_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeHorizontal_get", _wrap_ofTextureData_wrapModeHorizontal_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeVertical_set", _wrap_ofTextureData_wrapModeVertical_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeVertical_get", _wrap_ofTextureData_wrapModeVertical_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bufferId_set", _wrap_ofTextureData_bufferId_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bufferId_get", _wrap_ofTextureData_bufferId_get, METH_VARARGS, NULL}, { (char *)"delete_ofTextureData", _wrap_delete_ofTextureData, METH_VARARGS, NULL}, { (char *)"ofTextureData_swigregister", ofTextureData_swigregister, METH_VARARGS, NULL}, { (char *)"ofEnableTextureEdgeHack", _wrap_ofEnableTextureEdgeHack, METH_VARARGS, NULL}, { (char *)"ofDisableTextureEdgeHack", _wrap_ofDisableTextureEdgeHack, METH_VARARGS, NULL}, { (char *)"ofIsTextureEdgeHackEnabled", _wrap_ofIsTextureEdgeHackEnabled, METH_VARARGS, NULL}, { (char *)"new_ofTexture", _wrap_new_ofTexture, METH_VARARGS, NULL}, - { (char *)"delete_ofTexture", _wrap_delete_ofTexture, METH_VARARGS, NULL}, { (char *)"ofTexture_allocate", _wrap_ofTexture_allocate, METH_VARARGS, NULL}, + { (char *)"ofTexture_allocateAsBufferTexture", _wrap_ofTexture_allocateAsBufferTexture, METH_VARARGS, NULL}, + { (char *)"ofTexture_isAllocated", _wrap_ofTexture_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofTexture_bAllocated", _wrap_ofTexture_bAllocated, METH_VARARGS, NULL}, + { (char *)"delete_ofTexture", _wrap_delete_ofTexture, METH_VARARGS, NULL}, { (char *)"ofTexture_clear", _wrap_ofTexture_clear, METH_VARARGS, NULL}, { (char *)"ofTexture_setUseExternalTextureID", _wrap_ofTexture_setUseExternalTextureID, METH_VARARGS, NULL}, { (char *)"ofTexture_loadData", _wrap_ofTexture_loadData, METH_VARARGS, NULL}, - { (char *)"ofTexture_setRGToRGBASwizzles", _wrap_ofTexture_setRGToRGBASwizzles, METH_VARARGS, NULL}, { (char *)"ofTexture_loadScreenData", _wrap_ofTexture_loadScreenData, METH_VARARGS, NULL}, - { (char *)"ofTexture_setAnchorPercent", _wrap_ofTexture_setAnchorPercent, METH_VARARGS, NULL}, - { (char *)"ofTexture_setAnchorPoint", _wrap_ofTexture_setAnchorPoint, METH_VARARGS, NULL}, - { (char *)"ofTexture_resetAnchor", _wrap_ofTexture_resetAnchor, METH_VARARGS, NULL}, { (char *)"ofTexture_draw", _wrap_ofTexture_draw, METH_VARARGS, NULL}, { (char *)"ofTexture_drawSubsection", _wrap_ofTexture_drawSubsection, METH_VARARGS, NULL}, - { (char *)"ofTexture_readToPixels", _wrap_ofTexture_readToPixels, METH_VARARGS, NULL}, + { (char *)"ofTexture_getQuad", _wrap_ofTexture_getQuad, METH_VARARGS, NULL}, + { (char *)"ofTexture_getMeshForSubsection", _wrap_ofTexture_getMeshForSubsection, METH_VARARGS, NULL}, { (char *)"ofTexture_bind", _wrap_ofTexture_bind, METH_VARARGS, NULL}, { (char *)"ofTexture_unbind", _wrap_ofTexture_unbind, METH_VARARGS, NULL}, + { (char *)"ofTexture_getAlphaMask", _wrap_ofTexture_getAlphaMask, METH_VARARGS, NULL}, + { (char *)"ofTexture_getHeight", _wrap_ofTexture_getHeight, METH_VARARGS, NULL}, + { (char *)"ofTexture_getWidth", _wrap_ofTexture_getWidth, METH_VARARGS, NULL}, + { (char *)"ofTexture_setAnchorPercent", _wrap_ofTexture_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofTexture_setAnchorPoint", _wrap_ofTexture_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofTexture_resetAnchor", _wrap_ofTexture_resetAnchor, METH_VARARGS, NULL}, { (char *)"ofTexture_getCoordFromPoint", _wrap_ofTexture_getCoordFromPoint, METH_VARARGS, NULL}, { (char *)"ofTexture_getCoordFromPercent", _wrap_ofTexture_getCoordFromPercent, METH_VARARGS, NULL}, + { (char *)"ofTexture_setAlphaMask", _wrap_ofTexture_setAlphaMask, METH_VARARGS, NULL}, + { (char *)"ofTexture_disableAlphaMask", _wrap_ofTexture_disableAlphaMask, METH_VARARGS, NULL}, { (char *)"ofTexture_setTextureWrap", _wrap_ofTexture_setTextureWrap, METH_VARARGS, NULL}, { (char *)"ofTexture_setTextureMinMagFilter", _wrap_ofTexture_setTextureMinMagFilter, METH_VARARGS, NULL}, + { (char *)"ofTexture_setTextureMatrix", _wrap_ofTexture_setTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofTexture_getTextureMatrix", _wrap_ofTexture_getTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofTexture_isUsingTextureMatrix", _wrap_ofTexture_isUsingTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofTexture_disableTextureMatrix", _wrap_ofTexture_disableTextureMatrix, METH_VARARGS, NULL}, { (char *)"ofTexture_setCompression", _wrap_ofTexture_setCompression, METH_VARARGS, NULL}, - { (char *)"ofTexture_bAllocated", _wrap_ofTexture_bAllocated, METH_VARARGS, NULL}, - { (char *)"ofTexture_isAllocated", _wrap_ofTexture_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofTexture_setRGToRGBASwizzles", _wrap_ofTexture_setRGToRGBASwizzles, METH_VARARGS, NULL}, + { (char *)"ofTexture_setSwizzle", _wrap_ofTexture_setSwizzle, METH_VARARGS, NULL}, + { (char *)"ofTexture_readToPixels", _wrap_ofTexture_readToPixels, METH_VARARGS, NULL}, + { (char *)"ofTexture_copyTo", _wrap_ofTexture_copyTo, METH_VARARGS, NULL}, { (char *)"ofTexture_getTextureData", _wrap_ofTexture_getTextureData, METH_VARARGS, NULL}, + { (char *)"ofTexture_enableMipmap", _wrap_ofTexture_enableMipmap, METH_VARARGS, NULL}, + { (char *)"ofTexture_disableMipmap", _wrap_ofTexture_disableMipmap, METH_VARARGS, NULL}, + { (char *)"ofTexture_generateMipmap", _wrap_ofTexture_generateMipmap, METH_VARARGS, NULL}, + { (char *)"ofTexture_hasMipmap", _wrap_ofTexture_hasMipmap, METH_VARARGS, NULL}, { (char *)"ofTexture_texData_set", _wrap_ofTexture_texData_set, METH_VARARGS, NULL}, { (char *)"ofTexture_texData_get", _wrap_ofTexture_texData_get, METH_VARARGS, NULL}, - { (char *)"ofTexture_getHeight", _wrap_ofTexture_getHeight, METH_VARARGS, NULL}, - { (char *)"ofTexture_getWidth", _wrap_ofTexture_getWidth, METH_VARARGS, NULL}, { (char *)"ofTexture_swigregister", ofTexture_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_ofImage", _wrap_delete_ofImage, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_BEST_swigconstant", OF_IMAGE_QUALITY_BEST_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_HIGH_swigconstant", OF_IMAGE_QUALITY_HIGH_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_MEDIUM_swigconstant", OF_IMAGE_QUALITY_MEDIUM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_LOW_swigconstant", OF_IMAGE_QUALITY_LOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_WORST_swigconstant", OF_IMAGE_QUALITY_WORST_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_BMP_swigconstant", OF_IMAGE_FORMAT_BMP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_ICO_swigconstant", OF_IMAGE_FORMAT_ICO_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_JPEG_swigconstant", OF_IMAGE_FORMAT_JPEG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_JNG_swigconstant", OF_IMAGE_FORMAT_JNG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_KOALA_swigconstant", OF_IMAGE_FORMAT_KOALA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_LBM_swigconstant", OF_IMAGE_FORMAT_LBM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_IFF_swigconstant", OF_IMAGE_FORMAT_IFF_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_MNG_swigconstant", OF_IMAGE_FORMAT_MNG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PBM_swigconstant", OF_IMAGE_FORMAT_PBM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PBMRAW_swigconstant", OF_IMAGE_FORMAT_PBMRAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PCD_swigconstant", OF_IMAGE_FORMAT_PCD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PCX_swigconstant", OF_IMAGE_FORMAT_PCX_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PGM_swigconstant", OF_IMAGE_FORMAT_PGM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PGMRAW_swigconstant", OF_IMAGE_FORMAT_PGMRAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PNG_swigconstant", OF_IMAGE_FORMAT_PNG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PPM_swigconstant", OF_IMAGE_FORMAT_PPM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PPMRAW_swigconstant", OF_IMAGE_FORMAT_PPMRAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_RAS_swigconstant", OF_IMAGE_FORMAT_RAS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_TARGA_swigconstant", OF_IMAGE_FORMAT_TARGA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_TIFF_swigconstant", OF_IMAGE_FORMAT_TIFF_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_WBMP_swigconstant", OF_IMAGE_FORMAT_WBMP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PSD_swigconstant", OF_IMAGE_FORMAT_PSD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_CUT_swigconstant", OF_IMAGE_FORMAT_CUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_XBM_swigconstant", OF_IMAGE_FORMAT_XBM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_XPM_swigconstant", OF_IMAGE_FORMAT_XPM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_DDS_swigconstant", OF_IMAGE_FORMAT_DDS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_GIF_swigconstant", OF_IMAGE_FORMAT_GIF_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_HDR_swigconstant", OF_IMAGE_FORMAT_HDR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_FAXG3_swigconstant", OF_IMAGE_FORMAT_FAXG3_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_SGI_swigconstant", OF_IMAGE_FORMAT_SGI_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_EXR_swigconstant", OF_IMAGE_FORMAT_EXR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_J2K_swigconstant", OF_IMAGE_FORMAT_J2K_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_JP2_swigconstant", OF_IMAGE_FORMAT_JP2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PFM_swigconstant", OF_IMAGE_FORMAT_PFM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PICT_swigconstant", OF_IMAGE_FORMAT_PICT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_RAW_swigconstant", OF_IMAGE_FORMAT_RAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"new_ofImage", _wrap_new_ofImage, METH_VARARGS, NULL}, { (char *)"ofImage_allocate", _wrap_ofImage_allocate, METH_VARARGS, NULL}, + { (char *)"ofImage_isAllocated", _wrap_ofImage_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofImage_bAllocated", _wrap_ofImage_bAllocated, METH_VARARGS, NULL}, { (char *)"ofImage_clear", _wrap_ofImage_clear, METH_VARARGS, NULL}, - { (char *)"new_ofImage", _wrap_new_ofImage, METH_VARARGS, NULL}, + { (char *)"ofImage_load", _wrap_ofImage_load, METH_VARARGS, NULL}, + { (char *)"ofImage_loadImage", _wrap_ofImage_loadImage, METH_VARARGS, NULL}, + { (char *)"delete_ofImage", _wrap_delete_ofImage, METH_VARARGS, NULL}, + { (char *)"ofImage_draw", _wrap_ofImage_draw, METH_VARARGS, NULL}, + { (char *)"ofImage_drawSubsection", _wrap_ofImage_drawSubsection, METH_VARARGS, NULL}, + { (char *)"ofImage_update", _wrap_ofImage_update, METH_VARARGS, NULL}, { (char *)"ofImage_setUseTexture", _wrap_ofImage_setUseTexture, METH_VARARGS, NULL}, { (char *)"ofImage_isUsingTexture", _wrap_ofImage_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofImage_getTexture", _wrap_ofImage_getTexture, METH_VARARGS, NULL}, { (char *)"ofImage_getTextureReference", _wrap_ofImage_getTextureReference, METH_VARARGS, NULL}, { (char *)"ofImage_bind", _wrap_ofImage_bind, METH_VARARGS, NULL}, { (char *)"ofImage_unbind", _wrap_ofImage_unbind, METH_VARARGS, NULL}, - { (char *)"ofImage_loadImage", _wrap_ofImage_loadImage, METH_VARARGS, NULL}, - { (char *)"ofImage_saveImage", _wrap_ofImage_saveImage, METH_VARARGS, NULL}, { (char *)"ofImage_setCompression", _wrap_ofImage_setCompression, METH_VARARGS, NULL}, { (char *)"ofImage_getPixels", _wrap_ofImage_getPixels, METH_VARARGS, NULL}, { (char *)"ofImage_getPixelsRef", _wrap_ofImage_getPixelsRef, METH_VARARGS, NULL}, { (char *)"ofImage_getColor", _wrap_ofImage_getColor, METH_VARARGS, NULL}, + { (char *)"ofImage_getHeight", _wrap_ofImage_getHeight, METH_VARARGS, NULL}, + { (char *)"ofImage_getWidth", _wrap_ofImage_getWidth, METH_VARARGS, NULL}, { (char *)"ofImage_setColor", _wrap_ofImage_setColor, METH_VARARGS, NULL}, { (char *)"ofImage_setFromPixels", _wrap_ofImage_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofImage_grabScreen", _wrap_ofImage_grabScreen, METH_VARARGS, NULL}, { (char *)"ofImage_setImageType", _wrap_ofImage_setImageType, METH_VARARGS, NULL}, + { (char *)"ofImage_getImageType", _wrap_ofImage_getImageType, METH_VARARGS, NULL}, { (char *)"ofImage_resize", _wrap_ofImage_resize, METH_VARARGS, NULL}, - { (char *)"ofImage_grabScreen", _wrap_ofImage_grabScreen, METH_VARARGS, NULL}, { (char *)"ofImage_crop", _wrap_ofImage_crop, METH_VARARGS, NULL}, { (char *)"ofImage_cropFrom", _wrap_ofImage_cropFrom, METH_VARARGS, NULL}, { (char *)"ofImage_rotate90", _wrap_ofImage_rotate90, METH_VARARGS, NULL}, { (char *)"ofImage_mirror", _wrap_ofImage_mirror, METH_VARARGS, NULL}, - { (char *)"ofImage_update", _wrap_ofImage_update, METH_VARARGS, NULL}, { (char *)"ofImage_setAnchorPercent", _wrap_ofImage_setAnchorPercent, METH_VARARGS, NULL}, { (char *)"ofImage_setAnchorPoint", _wrap_ofImage_setAnchorPoint, METH_VARARGS, NULL}, { (char *)"ofImage_resetAnchor", _wrap_ofImage_resetAnchor, METH_VARARGS, NULL}, - { (char *)"ofImage_draw", _wrap_ofImage_draw, METH_VARARGS, NULL}, - { (char *)"ofImage_drawSubsection", _wrap_ofImage_drawSubsection, METH_VARARGS, NULL}, - { (char *)"ofImage_getHeight", _wrap_ofImage_getHeight, METH_VARARGS, NULL}, - { (char *)"ofImage_getWidth", _wrap_ofImage_getWidth, METH_VARARGS, NULL}, - { (char *)"ofImage_bAllocated", _wrap_ofImage_bAllocated, METH_VARARGS, NULL}, - { (char *)"ofImage_isAllocated", _wrap_ofImage_isAllocated, METH_VARARGS, NULL}, - { (char *)"ofImage_reloadTexture", _wrap_ofImage_reloadTexture, METH_VARARGS, NULL}, - { (char *)"ofImage_width_set", _wrap_ofImage_width_set, METH_VARARGS, NULL}, - { (char *)"ofImage_width_get", _wrap_ofImage_width_get, METH_VARARGS, NULL}, - { (char *)"ofImage_height_set", _wrap_ofImage_height_set, METH_VARARGS, NULL}, - { (char *)"ofImage_height_get", _wrap_ofImage_height_get, METH_VARARGS, NULL}, - { (char *)"ofImage_bpp_set", _wrap_ofImage_bpp_set, METH_VARARGS, NULL}, - { (char *)"ofImage_bpp_get", _wrap_ofImage_bpp_get, METH_VARARGS, NULL}, - { (char *)"ofImage_type_set", _wrap_ofImage_type_set, METH_VARARGS, NULL}, - { (char *)"ofImage_type_get", _wrap_ofImage_type_get, METH_VARARGS, NULL}, + { (char *)"ofImage_save", _wrap_ofImage_save, METH_VARARGS, NULL}, + { (char *)"ofImage_saveImage", _wrap_ofImage_saveImage, METH_VARARGS, NULL}, { (char *)"ofImage_swigregister", ofImage_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_ofFloatImage", _wrap_delete_ofFloatImage, METH_VARARGS, NULL}, + { (char *)"new_ofFloatImage", _wrap_new_ofFloatImage, METH_VARARGS, NULL}, { (char *)"ofFloatImage_allocate", _wrap_ofFloatImage_allocate, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_isAllocated", _wrap_ofFloatImage_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_bAllocated", _wrap_ofFloatImage_bAllocated, METH_VARARGS, NULL}, { (char *)"ofFloatImage_clear", _wrap_ofFloatImage_clear, METH_VARARGS, NULL}, - { (char *)"new_ofFloatImage", _wrap_new_ofFloatImage, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_load", _wrap_ofFloatImage_load, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_loadImage", _wrap_ofFloatImage_loadImage, METH_VARARGS, NULL}, + { (char *)"delete_ofFloatImage", _wrap_delete_ofFloatImage, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_draw", _wrap_ofFloatImage_draw, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_drawSubsection", _wrap_ofFloatImage_drawSubsection, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_update", _wrap_ofFloatImage_update, METH_VARARGS, NULL}, { (char *)"ofFloatImage_setUseTexture", _wrap_ofFloatImage_setUseTexture, METH_VARARGS, NULL}, { (char *)"ofFloatImage_isUsingTexture", _wrap_ofFloatImage_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getTexture", _wrap_ofFloatImage_getTexture, METH_VARARGS, NULL}, { (char *)"ofFloatImage_getTextureReference", _wrap_ofFloatImage_getTextureReference, METH_VARARGS, NULL}, { (char *)"ofFloatImage_bind", _wrap_ofFloatImage_bind, METH_VARARGS, NULL}, { (char *)"ofFloatImage_unbind", _wrap_ofFloatImage_unbind, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_loadImage", _wrap_ofFloatImage_loadImage, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_saveImage", _wrap_ofFloatImage_saveImage, METH_VARARGS, NULL}, { (char *)"ofFloatImage_setCompression", _wrap_ofFloatImage_setCompression, METH_VARARGS, NULL}, { (char *)"ofFloatImage_getPixels", _wrap_ofFloatImage_getPixels, METH_VARARGS, NULL}, { (char *)"ofFloatImage_getPixelsRef", _wrap_ofFloatImage_getPixelsRef, METH_VARARGS, NULL}, { (char *)"ofFloatImage_getColor", _wrap_ofFloatImage_getColor, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getHeight", _wrap_ofFloatImage_getHeight, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getWidth", _wrap_ofFloatImage_getWidth, METH_VARARGS, NULL}, { (char *)"ofFloatImage_setColor", _wrap_ofFloatImage_setColor, METH_VARARGS, NULL}, { (char *)"ofFloatImage_setFromPixels", _wrap_ofFloatImage_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_grabScreen", _wrap_ofFloatImage_grabScreen, METH_VARARGS, NULL}, { (char *)"ofFloatImage_setImageType", _wrap_ofFloatImage_setImageType, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getImageType", _wrap_ofFloatImage_getImageType, METH_VARARGS, NULL}, { (char *)"ofFloatImage_resize", _wrap_ofFloatImage_resize, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_grabScreen", _wrap_ofFloatImage_grabScreen, METH_VARARGS, NULL}, { (char *)"ofFloatImage_crop", _wrap_ofFloatImage_crop, METH_VARARGS, NULL}, { (char *)"ofFloatImage_cropFrom", _wrap_ofFloatImage_cropFrom, METH_VARARGS, NULL}, { (char *)"ofFloatImage_rotate90", _wrap_ofFloatImage_rotate90, METH_VARARGS, NULL}, { (char *)"ofFloatImage_mirror", _wrap_ofFloatImage_mirror, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_update", _wrap_ofFloatImage_update, METH_VARARGS, NULL}, { (char *)"ofFloatImage_setAnchorPercent", _wrap_ofFloatImage_setAnchorPercent, METH_VARARGS, NULL}, { (char *)"ofFloatImage_setAnchorPoint", _wrap_ofFloatImage_setAnchorPoint, METH_VARARGS, NULL}, { (char *)"ofFloatImage_resetAnchor", _wrap_ofFloatImage_resetAnchor, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_draw", _wrap_ofFloatImage_draw, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_drawSubsection", _wrap_ofFloatImage_drawSubsection, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_getHeight", _wrap_ofFloatImage_getHeight, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_getWidth", _wrap_ofFloatImage_getWidth, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_bAllocated", _wrap_ofFloatImage_bAllocated, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_isAllocated", _wrap_ofFloatImage_isAllocated, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_reloadTexture", _wrap_ofFloatImage_reloadTexture, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_width_set", _wrap_ofFloatImage_width_set, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_width_get", _wrap_ofFloatImage_width_get, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_height_set", _wrap_ofFloatImage_height_set, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_height_get", _wrap_ofFloatImage_height_get, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_bpp_set", _wrap_ofFloatImage_bpp_set, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_bpp_get", _wrap_ofFloatImage_bpp_get, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_type_set", _wrap_ofFloatImage_type_set, METH_VARARGS, NULL}, - { (char *)"ofFloatImage_type_get", _wrap_ofFloatImage_type_get, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_save", _wrap_ofFloatImage_save, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_saveImage", _wrap_ofFloatImage_saveImage, METH_VARARGS, NULL}, { (char *)"ofFloatImage_swigregister", ofFloatImage_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_ofShortImage", _wrap_delete_ofShortImage, METH_VARARGS, NULL}, + { (char *)"new_ofShortImage", _wrap_new_ofShortImage, METH_VARARGS, NULL}, { (char *)"ofShortImage_allocate", _wrap_ofShortImage_allocate, METH_VARARGS, NULL}, + { (char *)"ofShortImage_isAllocated", _wrap_ofShortImage_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofShortImage_bAllocated", _wrap_ofShortImage_bAllocated, METH_VARARGS, NULL}, { (char *)"ofShortImage_clear", _wrap_ofShortImage_clear, METH_VARARGS, NULL}, - { (char *)"new_ofShortImage", _wrap_new_ofShortImage, METH_VARARGS, NULL}, + { (char *)"ofShortImage_load", _wrap_ofShortImage_load, METH_VARARGS, NULL}, + { (char *)"ofShortImage_loadImage", _wrap_ofShortImage_loadImage, METH_VARARGS, NULL}, + { (char *)"delete_ofShortImage", _wrap_delete_ofShortImage, METH_VARARGS, NULL}, + { (char *)"ofShortImage_draw", _wrap_ofShortImage_draw, METH_VARARGS, NULL}, + { (char *)"ofShortImage_drawSubsection", _wrap_ofShortImage_drawSubsection, METH_VARARGS, NULL}, + { (char *)"ofShortImage_update", _wrap_ofShortImage_update, METH_VARARGS, NULL}, { (char *)"ofShortImage_setUseTexture", _wrap_ofShortImage_setUseTexture, METH_VARARGS, NULL}, { (char *)"ofShortImage_isUsingTexture", _wrap_ofShortImage_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getTexture", _wrap_ofShortImage_getTexture, METH_VARARGS, NULL}, { (char *)"ofShortImage_getTextureReference", _wrap_ofShortImage_getTextureReference, METH_VARARGS, NULL}, { (char *)"ofShortImage_bind", _wrap_ofShortImage_bind, METH_VARARGS, NULL}, { (char *)"ofShortImage_unbind", _wrap_ofShortImage_unbind, METH_VARARGS, NULL}, - { (char *)"ofShortImage_loadImage", _wrap_ofShortImage_loadImage, METH_VARARGS, NULL}, - { (char *)"ofShortImage_saveImage", _wrap_ofShortImage_saveImage, METH_VARARGS, NULL}, { (char *)"ofShortImage_setCompression", _wrap_ofShortImage_setCompression, METH_VARARGS, NULL}, { (char *)"ofShortImage_getPixels", _wrap_ofShortImage_getPixels, METH_VARARGS, NULL}, { (char *)"ofShortImage_getPixelsRef", _wrap_ofShortImage_getPixelsRef, METH_VARARGS, NULL}, { (char *)"ofShortImage_getColor", _wrap_ofShortImage_getColor, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getHeight", _wrap_ofShortImage_getHeight, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getWidth", _wrap_ofShortImage_getWidth, METH_VARARGS, NULL}, { (char *)"ofShortImage_setColor", _wrap_ofShortImage_setColor, METH_VARARGS, NULL}, { (char *)"ofShortImage_setFromPixels", _wrap_ofShortImage_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofShortImage_grabScreen", _wrap_ofShortImage_grabScreen, METH_VARARGS, NULL}, { (char *)"ofShortImage_setImageType", _wrap_ofShortImage_setImageType, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getImageType", _wrap_ofShortImage_getImageType, METH_VARARGS, NULL}, { (char *)"ofShortImage_resize", _wrap_ofShortImage_resize, METH_VARARGS, NULL}, - { (char *)"ofShortImage_grabScreen", _wrap_ofShortImage_grabScreen, METH_VARARGS, NULL}, { (char *)"ofShortImage_crop", _wrap_ofShortImage_crop, METH_VARARGS, NULL}, { (char *)"ofShortImage_cropFrom", _wrap_ofShortImage_cropFrom, METH_VARARGS, NULL}, { (char *)"ofShortImage_rotate90", _wrap_ofShortImage_rotate90, METH_VARARGS, NULL}, { (char *)"ofShortImage_mirror", _wrap_ofShortImage_mirror, METH_VARARGS, NULL}, - { (char *)"ofShortImage_update", _wrap_ofShortImage_update, METH_VARARGS, NULL}, { (char *)"ofShortImage_setAnchorPercent", _wrap_ofShortImage_setAnchorPercent, METH_VARARGS, NULL}, { (char *)"ofShortImage_setAnchorPoint", _wrap_ofShortImage_setAnchorPoint, METH_VARARGS, NULL}, { (char *)"ofShortImage_resetAnchor", _wrap_ofShortImage_resetAnchor, METH_VARARGS, NULL}, - { (char *)"ofShortImage_draw", _wrap_ofShortImage_draw, METH_VARARGS, NULL}, - { (char *)"ofShortImage_drawSubsection", _wrap_ofShortImage_drawSubsection, METH_VARARGS, NULL}, - { (char *)"ofShortImage_getHeight", _wrap_ofShortImage_getHeight, METH_VARARGS, NULL}, - { (char *)"ofShortImage_getWidth", _wrap_ofShortImage_getWidth, METH_VARARGS, NULL}, - { (char *)"ofShortImage_bAllocated", _wrap_ofShortImage_bAllocated, METH_VARARGS, NULL}, - { (char *)"ofShortImage_isAllocated", _wrap_ofShortImage_isAllocated, METH_VARARGS, NULL}, - { (char *)"ofShortImage_reloadTexture", _wrap_ofShortImage_reloadTexture, METH_VARARGS, NULL}, - { (char *)"ofShortImage_width_set", _wrap_ofShortImage_width_set, METH_VARARGS, NULL}, - { (char *)"ofShortImage_width_get", _wrap_ofShortImage_width_get, METH_VARARGS, NULL}, - { (char *)"ofShortImage_height_set", _wrap_ofShortImage_height_set, METH_VARARGS, NULL}, - { (char *)"ofShortImage_height_get", _wrap_ofShortImage_height_get, METH_VARARGS, NULL}, - { (char *)"ofShortImage_bpp_set", _wrap_ofShortImage_bpp_set, METH_VARARGS, NULL}, - { (char *)"ofShortImage_bpp_get", _wrap_ofShortImage_bpp_get, METH_VARARGS, NULL}, - { (char *)"ofShortImage_type_set", _wrap_ofShortImage_type_set, METH_VARARGS, NULL}, - { (char *)"ofShortImage_type_get", _wrap_ofShortImage_type_get, METH_VARARGS, NULL}, + { (char *)"ofShortImage_save", _wrap_ofShortImage_save, METH_VARARGS, NULL}, + { (char *)"ofShortImage_saveImage", _wrap_ofShortImage_saveImage, METH_VARARGS, NULL}, { (char *)"ofShortImage_swigregister", ofShortImage_swigregister, METH_VARARGS, NULL}, { (char *)"ofSoundStreamSetup", _wrap_ofSoundStreamSetup, METH_VARARGS, NULL}, { (char *)"ofSoundStreamStop", _wrap_ofSoundStreamStop, METH_VARARGS, NULL}, @@ -54439,8 +63042,11 @@ static PyMethodDef SwigMethods[] = { { (char *)"new_ofSoundStream", _wrap_new_ofSoundStream, METH_VARARGS, NULL}, { (char *)"ofSoundStream_setSoundStream", _wrap_ofSoundStream_setSoundStream, METH_VARARGS, NULL}, { (char *)"ofSoundStream_getSoundStream", _wrap_ofSoundStream_getSoundStream, METH_VARARGS, NULL}, - { (char *)"ofSoundStream_listDevices", _wrap_ofSoundStream_listDevices, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_printDeviceList", _wrap_ofSoundStream_printDeviceList, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getDeviceList", _wrap_ofSoundStream_getDeviceList, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getMatchingDevices", _wrap_ofSoundStream_getMatchingDevices, METH_VARARGS, NULL}, { (char *)"ofSoundStream_setDeviceID", _wrap_ofSoundStream_setDeviceID, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_setDevice", _wrap_ofSoundStream_setDevice, METH_VARARGS, NULL}, { (char *)"ofSoundStream_setup", _wrap_ofSoundStream_setup, METH_VARARGS, NULL}, { (char *)"ofSoundStream_setInput", _wrap_ofSoundStream_setInput, METH_VARARGS, NULL}, { (char *)"ofSoundStream_setOutput", _wrap_ofSoundStream_setOutput, METH_VARARGS, NULL}, @@ -54452,12 +63058,15 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofSoundStream_getNumOutputChannels", _wrap_ofSoundStream_getNumOutputChannels, METH_VARARGS, NULL}, { (char *)"ofSoundStream_getSampleRate", _wrap_ofSoundStream_getSampleRate, METH_VARARGS, NULL}, { (char *)"ofSoundStream_getBufferSize", _wrap_ofSoundStream_getBufferSize, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_listDevices", _wrap_ofSoundStream_listDevices, METH_VARARGS, NULL}, { (char *)"delete_ofSoundStream", _wrap_delete_ofSoundStream, METH_VARARGS, NULL}, { (char *)"ofSoundStream_swigregister", ofSoundStream_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofSoundPlayer", _wrap_new_ofSoundPlayer, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_setPlayer", _wrap_ofSoundPlayer_setPlayer, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_getPlayer", _wrap_ofSoundPlayer_getPlayer, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_load", _wrap_ofSoundPlayer_load, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_loadSound", _wrap_ofSoundPlayer_loadSound, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_unload", _wrap_ofSoundPlayer_unload, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_unloadSound", _wrap_ofSoundPlayer_unloadSound, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_play", _wrap_ofSoundPlayer_play, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_stop", _wrap_ofSoundPlayer_stop, METH_VARARGS, NULL}, @@ -54471,6 +63080,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofSoundPlayer_setPositionMS", _wrap_ofSoundPlayer_setPositionMS, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_getPositionMS", _wrap_ofSoundPlayer_getPositionMS, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_getPosition", _wrap_ofSoundPlayer_getPosition, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_isPlaying", _wrap_ofSoundPlayer_isPlaying, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_getIsPlaying", _wrap_ofSoundPlayer_getIsPlaying, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_getSpeed", _wrap_ofSoundPlayer_getSpeed, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_getPan", _wrap_ofSoundPlayer_getPan, METH_VARARGS, NULL}, @@ -54478,13 +63088,16 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofSoundPlayer_isLoaded", _wrap_ofSoundPlayer_isLoaded, METH_VARARGS, NULL}, { (char *)"delete_ofSoundPlayer", _wrap_delete_ofSoundPlayer, METH_VARARGS, NULL}, { (char *)"ofSoundPlayer_swigregister", ofSoundPlayer_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_ofColor", _wrap_delete_ofColor, METH_VARARGS, NULL}, { (char *)"new_ofColor", _wrap_new_ofColor, METH_VARARGS, NULL}, { (char *)"ofColor_fromHsb", _wrap_ofColor_fromHsb, METH_VARARGS, NULL}, { (char *)"ofColor_fromHex", _wrap_ofColor_fromHex, METH_VARARGS, NULL}, { (char *)"ofColor_set", _wrap_ofColor_set, METH_VARARGS, NULL}, { (char *)"ofColor_setHex", _wrap_ofColor_setHex, METH_VARARGS, NULL}, - { (char *)"ofColor_getHex", _wrap_ofColor_getHex, METH_VARARGS, NULL}, + { (char *)"ofColor_setHue", _wrap_ofColor_setHue, METH_VARARGS, NULL}, + { (char *)"ofColor_setHueAngle", _wrap_ofColor_setHueAngle, METH_VARARGS, NULL}, + { (char *)"ofColor_setSaturation", _wrap_ofColor_setSaturation, METH_VARARGS, NULL}, + { (char *)"ofColor_setBrightness", _wrap_ofColor_setBrightness, METH_VARARGS, NULL}, + { (char *)"ofColor_setHsb", _wrap_ofColor_setHsb, METH_VARARGS, NULL}, { (char *)"ofColor_clamp", _wrap_ofColor_clamp, METH_VARARGS, NULL}, { (char *)"ofColor_invert", _wrap_ofColor_invert, METH_VARARGS, NULL}, { (char *)"ofColor_normalize", _wrap_ofColor_normalize, METH_VARARGS, NULL}, @@ -54493,17 +63106,14 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofColor_getInverted", _wrap_ofColor_getInverted, METH_VARARGS, NULL}, { (char *)"ofColor_getNormalized", _wrap_ofColor_getNormalized, METH_VARARGS, NULL}, { (char *)"ofColor_getLerped", _wrap_ofColor_getLerped, METH_VARARGS, NULL}, + { (char *)"ofColor_getHex", _wrap_ofColor_getHex, METH_VARARGS, NULL}, { (char *)"ofColor_getHue", _wrap_ofColor_getHue, METH_VARARGS, NULL}, { (char *)"ofColor_getHueAngle", _wrap_ofColor_getHueAngle, METH_VARARGS, NULL}, { (char *)"ofColor_getSaturation", _wrap_ofColor_getSaturation, METH_VARARGS, NULL}, { (char *)"ofColor_getBrightness", _wrap_ofColor_getBrightness, METH_VARARGS, NULL}, { (char *)"ofColor_getLightness", _wrap_ofColor_getLightness, METH_VARARGS, NULL}, { (char *)"ofColor_getHsb", _wrap_ofColor_getHsb, METH_VARARGS, NULL}, - { (char *)"ofColor_setHue", _wrap_ofColor_setHue, METH_VARARGS, NULL}, - { (char *)"ofColor_setHueAngle", _wrap_ofColor_setHueAngle, METH_VARARGS, NULL}, - { (char *)"ofColor_setSaturation", _wrap_ofColor_setSaturation, METH_VARARGS, NULL}, - { (char *)"ofColor_setBrightness", _wrap_ofColor_setBrightness, METH_VARARGS, NULL}, - { (char *)"ofColor_setHsb", _wrap_ofColor_setHsb, METH_VARARGS, NULL}, + { (char *)"ofColor_limit", _wrap_ofColor_limit, METH_VARARGS, NULL}, { (char *)"ofColor___eq__", _wrap_ofColor___eq__, METH_VARARGS, NULL}, { (char *)"ofColor___ne__", _wrap_ofColor___ne__, METH_VARARGS, NULL}, { (char *)"ofColor___add__", _wrap_ofColor___add__, METH_VARARGS, NULL}, @@ -54515,7 +63125,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofColor___div__", _wrap_ofColor___div__, METH_VARARGS, NULL}, { (char *)"ofColor___idiv__", _wrap_ofColor___idiv__, METH_VARARGS, NULL}, { (char *)"ofColor___getitem__", _wrap_ofColor___getitem__, METH_VARARGS, NULL}, - { (char *)"ofColor_limit", _wrap_ofColor_limit, METH_VARARGS, NULL}, { (char *)"ofColor_getR", _wrap_ofColor_getR, METH_VARARGS, NULL}, { (char *)"ofColor_getG", _wrap_ofColor_getG, METH_VARARGS, NULL}, { (char *)"ofColor_getB", _wrap_ofColor_getB, METH_VARARGS, NULL}, @@ -54533,14 +63142,18 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofColor_b_get", _wrap_ofColor_b_get, METH_VARARGS, NULL}, { (char *)"ofColor_a_set", _wrap_ofColor_a_set, METH_VARARGS, NULL}, { (char *)"ofColor_a_get", _wrap_ofColor_a_get, METH_VARARGS, NULL}, + { (char *)"delete_ofColor", _wrap_delete_ofColor, METH_VARARGS, NULL}, { (char *)"ofColor_swigregister", ofColor_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_ofFloatColor", _wrap_delete_ofFloatColor, METH_VARARGS, NULL}, { (char *)"new_ofFloatColor", _wrap_new_ofFloatColor, METH_VARARGS, NULL}, { (char *)"ofFloatColor_fromHsb", _wrap_ofFloatColor_fromHsb, METH_VARARGS, NULL}, { (char *)"ofFloatColor_fromHex", _wrap_ofFloatColor_fromHex, METH_VARARGS, NULL}, { (char *)"ofFloatColor_set", _wrap_ofFloatColor_set, METH_VARARGS, NULL}, { (char *)"ofFloatColor_setHex", _wrap_ofFloatColor_setHex, METH_VARARGS, NULL}, - { (char *)"ofFloatColor_getHex", _wrap_ofFloatColor_getHex, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setHue", _wrap_ofFloatColor_setHue, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setHueAngle", _wrap_ofFloatColor_setHueAngle, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setSaturation", _wrap_ofFloatColor_setSaturation, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setBrightness", _wrap_ofFloatColor_setBrightness, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setHsb", _wrap_ofFloatColor_setHsb, METH_VARARGS, NULL}, { (char *)"ofFloatColor_clamp", _wrap_ofFloatColor_clamp, METH_VARARGS, NULL}, { (char *)"ofFloatColor_invert", _wrap_ofFloatColor_invert, METH_VARARGS, NULL}, { (char *)"ofFloatColor_normalize", _wrap_ofFloatColor_normalize, METH_VARARGS, NULL}, @@ -54549,17 +63162,14 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofFloatColor_getInverted", _wrap_ofFloatColor_getInverted, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getNormalized", _wrap_ofFloatColor_getNormalized, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getLerped", _wrap_ofFloatColor_getLerped, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getHex", _wrap_ofFloatColor_getHex, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getHue", _wrap_ofFloatColor_getHue, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getHueAngle", _wrap_ofFloatColor_getHueAngle, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getSaturation", _wrap_ofFloatColor_getSaturation, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getBrightness", _wrap_ofFloatColor_getBrightness, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getLightness", _wrap_ofFloatColor_getLightness, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getHsb", _wrap_ofFloatColor_getHsb, METH_VARARGS, NULL}, - { (char *)"ofFloatColor_setHue", _wrap_ofFloatColor_setHue, METH_VARARGS, NULL}, - { (char *)"ofFloatColor_setHueAngle", _wrap_ofFloatColor_setHueAngle, METH_VARARGS, NULL}, - { (char *)"ofFloatColor_setSaturation", _wrap_ofFloatColor_setSaturation, METH_VARARGS, NULL}, - { (char *)"ofFloatColor_setBrightness", _wrap_ofFloatColor_setBrightness, METH_VARARGS, NULL}, - { (char *)"ofFloatColor_setHsb", _wrap_ofFloatColor_setHsb, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_limit", _wrap_ofFloatColor_limit, METH_VARARGS, NULL}, { (char *)"ofFloatColor___eq__", _wrap_ofFloatColor___eq__, METH_VARARGS, NULL}, { (char *)"ofFloatColor___ne__", _wrap_ofFloatColor___ne__, METH_VARARGS, NULL}, { (char *)"ofFloatColor___add__", _wrap_ofFloatColor___add__, METH_VARARGS, NULL}, @@ -54571,7 +63181,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofFloatColor___div__", _wrap_ofFloatColor___div__, METH_VARARGS, NULL}, { (char *)"ofFloatColor___idiv__", _wrap_ofFloatColor___idiv__, METH_VARARGS, NULL}, { (char *)"ofFloatColor___getitem__", _wrap_ofFloatColor___getitem__, METH_VARARGS, NULL}, - { (char *)"ofFloatColor_limit", _wrap_ofFloatColor_limit, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getR", _wrap_ofFloatColor_getR, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getG", _wrap_ofFloatColor_getG, METH_VARARGS, NULL}, { (char *)"ofFloatColor_getB", _wrap_ofFloatColor_getB, METH_VARARGS, NULL}, @@ -54589,14 +63198,18 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofFloatColor_b_get", _wrap_ofFloatColor_b_get, METH_VARARGS, NULL}, { (char *)"ofFloatColor_a_set", _wrap_ofFloatColor_a_set, METH_VARARGS, NULL}, { (char *)"ofFloatColor_a_get", _wrap_ofFloatColor_a_get, METH_VARARGS, NULL}, + { (char *)"delete_ofFloatColor", _wrap_delete_ofFloatColor, METH_VARARGS, NULL}, { (char *)"ofFloatColor_swigregister", ofFloatColor_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_ofShortColor", _wrap_delete_ofShortColor, METH_VARARGS, NULL}, { (char *)"new_ofShortColor", _wrap_new_ofShortColor, METH_VARARGS, NULL}, { (char *)"ofShortColor_fromHsb", _wrap_ofShortColor_fromHsb, METH_VARARGS, NULL}, { (char *)"ofShortColor_fromHex", _wrap_ofShortColor_fromHex, METH_VARARGS, NULL}, { (char *)"ofShortColor_set", _wrap_ofShortColor_set, METH_VARARGS, NULL}, { (char *)"ofShortColor_setHex", _wrap_ofShortColor_setHex, METH_VARARGS, NULL}, - { (char *)"ofShortColor_getHex", _wrap_ofShortColor_getHex, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setHue", _wrap_ofShortColor_setHue, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setHueAngle", _wrap_ofShortColor_setHueAngle, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setSaturation", _wrap_ofShortColor_setSaturation, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setBrightness", _wrap_ofShortColor_setBrightness, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setHsb", _wrap_ofShortColor_setHsb, METH_VARARGS, NULL}, { (char *)"ofShortColor_clamp", _wrap_ofShortColor_clamp, METH_VARARGS, NULL}, { (char *)"ofShortColor_invert", _wrap_ofShortColor_invert, METH_VARARGS, NULL}, { (char *)"ofShortColor_normalize", _wrap_ofShortColor_normalize, METH_VARARGS, NULL}, @@ -54605,17 +63218,14 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofShortColor_getInverted", _wrap_ofShortColor_getInverted, METH_VARARGS, NULL}, { (char *)"ofShortColor_getNormalized", _wrap_ofShortColor_getNormalized, METH_VARARGS, NULL}, { (char *)"ofShortColor_getLerped", _wrap_ofShortColor_getLerped, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getHex", _wrap_ofShortColor_getHex, METH_VARARGS, NULL}, { (char *)"ofShortColor_getHue", _wrap_ofShortColor_getHue, METH_VARARGS, NULL}, { (char *)"ofShortColor_getHueAngle", _wrap_ofShortColor_getHueAngle, METH_VARARGS, NULL}, { (char *)"ofShortColor_getSaturation", _wrap_ofShortColor_getSaturation, METH_VARARGS, NULL}, { (char *)"ofShortColor_getBrightness", _wrap_ofShortColor_getBrightness, METH_VARARGS, NULL}, { (char *)"ofShortColor_getLightness", _wrap_ofShortColor_getLightness, METH_VARARGS, NULL}, { (char *)"ofShortColor_getHsb", _wrap_ofShortColor_getHsb, METH_VARARGS, NULL}, - { (char *)"ofShortColor_setHue", _wrap_ofShortColor_setHue, METH_VARARGS, NULL}, - { (char *)"ofShortColor_setHueAngle", _wrap_ofShortColor_setHueAngle, METH_VARARGS, NULL}, - { (char *)"ofShortColor_setSaturation", _wrap_ofShortColor_setSaturation, METH_VARARGS, NULL}, - { (char *)"ofShortColor_setBrightness", _wrap_ofShortColor_setBrightness, METH_VARARGS, NULL}, - { (char *)"ofShortColor_setHsb", _wrap_ofShortColor_setHsb, METH_VARARGS, NULL}, + { (char *)"ofShortColor_limit", _wrap_ofShortColor_limit, METH_VARARGS, NULL}, { (char *)"ofShortColor___eq__", _wrap_ofShortColor___eq__, METH_VARARGS, NULL}, { (char *)"ofShortColor___ne__", _wrap_ofShortColor___ne__, METH_VARARGS, NULL}, { (char *)"ofShortColor___add__", _wrap_ofShortColor___add__, METH_VARARGS, NULL}, @@ -54627,7 +63237,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofShortColor___div__", _wrap_ofShortColor___div__, METH_VARARGS, NULL}, { (char *)"ofShortColor___idiv__", _wrap_ofShortColor___idiv__, METH_VARARGS, NULL}, { (char *)"ofShortColor___getitem__", _wrap_ofShortColor___getitem__, METH_VARARGS, NULL}, - { (char *)"ofShortColor_limit", _wrap_ofShortColor_limit, METH_VARARGS, NULL}, { (char *)"ofShortColor_getR", _wrap_ofShortColor_getR, METH_VARARGS, NULL}, { (char *)"ofShortColor_getG", _wrap_ofShortColor_getG, METH_VARARGS, NULL}, { (char *)"ofShortColor_getB", _wrap_ofShortColor_getB, METH_VARARGS, NULL}, @@ -54645,8 +63254,35 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofShortColor_b_get", _wrap_ofShortColor_b_get, METH_VARARGS, NULL}, { (char *)"ofShortColor_a_set", _wrap_ofShortColor_a_set, METH_VARARGS, NULL}, { (char *)"ofShortColor_a_get", _wrap_ofShortColor_a_get, METH_VARARGS, NULL}, + { (char *)"delete_ofShortColor", _wrap_delete_ofShortColor, METH_VARARGS, NULL}, { (char *)"ofShortColor_swigregister", ofShortColor_swigregister, METH_VARARGS, NULL}, { (char *)"ofIsVFlipped", _wrap_ofIsVFlipped, METH_VARARGS, NULL}, + { (char *)"delete_ofBaseHasTexturePlanes", _wrap_delete_ofBaseHasTexturePlanes, METH_VARARGS, NULL}, + { (char *)"ofBaseHasTexturePlanes_getTexturePlanes", _wrap_ofBaseHasTexturePlanes_getTexturePlanes, METH_VARARGS, NULL}, + { (char *)"ofBaseHasTexturePlanes_swigregister", ofBaseHasTexturePlanes_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofBaseURLFileLoader", _wrap_delete_ofBaseURLFileLoader, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_get", _wrap_ofBaseURLFileLoader_get, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_getAsync", _wrap_ofBaseURLFileLoader_getAsync, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_saveTo", _wrap_ofBaseURLFileLoader_saveTo, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_saveAsync", _wrap_ofBaseURLFileLoader_saveAsync, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_remove", _wrap_ofBaseURLFileLoader_remove, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_clear", _wrap_ofBaseURLFileLoader_clear, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_stop", _wrap_ofBaseURLFileLoader_stop, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_handleRequest", _wrap_ofBaseURLFileLoader_handleRequest, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_swigregister", ofBaseURLFileLoader_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofBaseMaterial", _wrap_delete_ofBaseMaterial, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getDiffuseColor", _wrap_ofBaseMaterial_getDiffuseColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getAmbientColor", _wrap_ofBaseMaterial_getAmbientColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getSpecularColor", _wrap_ofBaseMaterial_getSpecularColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getEmissiveColor", _wrap_ofBaseMaterial_getEmissiveColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getShininess", _wrap_ofBaseMaterial_getShininess, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_begin", _wrap_ofBaseMaterial_begin, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_end", _wrap_ofBaseMaterial_end, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getShader", _wrap_ofBaseMaterial_getShader, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_uploadMatrices", _wrap_ofBaseMaterial_uploadMatrices, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_updateMaterial", _wrap_ofBaseMaterial_updateMaterial, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_updateLights", _wrap_ofBaseMaterial_updateLights, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_swigregister", ofBaseMaterial_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofSerialDeviceInfo", _wrap_new_ofSerialDeviceInfo, METH_VARARGS, NULL}, { (char *)"ofSerialDeviceInfo_getDevicePath", _wrap_ofSerialDeviceInfo_getDevicePath, METH_VARARGS, NULL}, { (char *)"ofSerialDeviceInfo_getDeviceName", _wrap_ofSerialDeviceInfo_getDeviceName, METH_VARARGS, NULL}, @@ -54691,27 +63327,39 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofGetUnixTime", _wrap_ofGetUnixTime, METH_VARARGS, NULL}, { (char *)"ofGetSystemTime", _wrap_ofGetSystemTime, METH_VARARGS, NULL}, { (char *)"ofGetSystemTimeMicros", _wrap_ofGetSystemTimeMicros, METH_VARARGS, NULL}, + { (char *)"ofSleepMillis", _wrap_ofSleepMillis, METH_VARARGS, NULL}, { (char *)"ofGetTimestampString", _wrap_ofGetTimestampString, METH_VARARGS, NULL}, { (char *)"ofGetYear", _wrap_ofGetYear, METH_VARARGS, NULL}, { (char *)"ofGetMonth", _wrap_ofGetMonth, METH_VARARGS, NULL}, { (char *)"ofGetDay", _wrap_ofGetDay, METH_VARARGS, NULL}, { (char *)"ofGetWeekday", _wrap_ofGetWeekday, METH_VARARGS, NULL}, - { (char *)"ofLaunchBrowser", _wrap_ofLaunchBrowser, METH_VARARGS, NULL}, { (char *)"ofEnableDataPath", _wrap_ofEnableDataPath, METH_VARARGS, NULL}, { (char *)"ofDisableDataPath", _wrap_ofDisableDataPath, METH_VARARGS, NULL}, { (char *)"ofToDataPath", _wrap_ofToDataPath, METH_VARARGS, NULL}, - { (char *)"ofSetWorkingDirectoryToDefault", _wrap_ofSetWorkingDirectoryToDefault, METH_VARARGS, NULL}, + { (char *)"ofRestoreWorkingDirectoryToDefault", _wrap_ofRestoreWorkingDirectoryToDefault, METH_VARARGS, NULL}, { (char *)"ofSetDataPathRoot", _wrap_ofSetDataPathRoot, METH_VARARGS, NULL}, + { (char *)"ofSplitString", _wrap_ofSplitString, METH_VARARGS, NULL}, + { (char *)"ofJoinString", _wrap_ofJoinString, METH_VARARGS, NULL}, + { (char *)"ofStringReplace", _wrap_ofStringReplace, METH_VARARGS, NULL}, + { (char *)"ofIsStringInString", _wrap_ofIsStringInString, METH_VARARGS, NULL}, + { (char *)"ofStringTimesInString", _wrap_ofStringTimesInString, METH_VARARGS, NULL}, + { (char *)"ofToLower", _wrap_ofToLower, METH_VARARGS, NULL}, + { (char *)"ofToUpper", _wrap_ofToUpper, METH_VARARGS, NULL}, + { (char *)"ofTrimFront", _wrap_ofTrimFront, METH_VARARGS, NULL}, + { (char *)"ofTrimBack", _wrap_ofTrimBack, METH_VARARGS, NULL}, + { (char *)"ofTrim", _wrap_ofTrim, METH_VARARGS, NULL}, + { (char *)"ofAppendUTF8", _wrap_ofAppendUTF8, METH_VARARGS, NULL}, + { (char *)"ofToInt", _wrap_ofToInt, METH_VARARGS, NULL}, + { (char *)"ofToInt64", _wrap_ofToInt64, METH_VARARGS, NULL}, + { (char *)"ofToFloat", _wrap_ofToFloat, METH_VARARGS, NULL}, + { (char *)"ofToDouble", _wrap_ofToDouble, METH_VARARGS, NULL}, + { (char *)"ofToBool", _wrap_ofToBool, METH_VARARGS, NULL}, { (char *)"ofToHex", _wrap_ofToHex, METH_VARARGS, NULL}, { (char *)"ofHexToInt", _wrap_ofHexToInt, METH_VARARGS, NULL}, { (char *)"ofHexToChar", _wrap_ofHexToChar, METH_VARARGS, NULL}, { (char *)"ofHexToFloat", _wrap_ofHexToFloat, METH_VARARGS, NULL}, { (char *)"ofHexToString", _wrap_ofHexToString, METH_VARARGS, NULL}, - { (char *)"ofToInt", _wrap_ofToInt, METH_VARARGS, NULL}, { (char *)"ofToChar", _wrap_ofToChar, METH_VARARGS, NULL}, - { (char *)"ofToFloat", _wrap_ofToFloat, METH_VARARGS, NULL}, - { (char *)"ofToDouble", _wrap_ofToDouble, METH_VARARGS, NULL}, - { (char *)"ofToBool", _wrap_ofToBool, METH_VARARGS, NULL}, { (char *)"ofToBinary", _wrap_ofToBinary, METH_VARARGS, NULL}, { (char *)"ofBinaryToInt", _wrap_ofBinaryToInt, METH_VARARGS, NULL}, { (char *)"ofBinaryToChar", _wrap_ofBinaryToChar, METH_VARARGS, NULL}, @@ -54721,143 +63369,31 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofGetVersionMajor", _wrap_ofGetVersionMajor, METH_VARARGS, NULL}, { (char *)"ofGetVersionMinor", _wrap_ofGetVersionMinor, METH_VARARGS, NULL}, { (char *)"ofGetVersionPatch", _wrap_ofGetVersionPatch, METH_VARARGS, NULL}, + { (char *)"ofGetVersionPreRelease", _wrap_ofGetVersionPreRelease, METH_VARARGS, NULL}, { (char *)"ofSaveScreen", _wrap_ofSaveScreen, METH_VARARGS, NULL}, { (char *)"ofSaveFrame", _wrap_ofSaveFrame, METH_VARARGS, NULL}, { (char *)"ofSaveViewport", _wrap_ofSaveViewport, METH_VARARGS, NULL}, - { (char *)"ofSplitString", _wrap_ofSplitString, METH_VARARGS, NULL}, - { (char *)"ofJoinString", _wrap_ofJoinString, METH_VARARGS, NULL}, - { (char *)"ofStringReplace", _wrap_ofStringReplace, METH_VARARGS, NULL}, - { (char *)"ofIsStringInString", _wrap_ofIsStringInString, METH_VARARGS, NULL}, - { (char *)"ofStringTimesInString", _wrap_ofStringTimesInString, METH_VARARGS, NULL}, - { (char *)"ofToLower", _wrap_ofToLower, METH_VARARGS, NULL}, - { (char *)"ofToUpper", _wrap_ofToUpper, METH_VARARGS, NULL}, + { (char *)"ofLaunchBrowser", _wrap_ofLaunchBrowser, METH_VARARGS, NULL}, { (char *)"ofSystem", _wrap_ofSystem, METH_VARARGS, NULL}, { (char *)"ofGetTargetPlatform", _wrap_ofGetTargetPlatform, METH_VARARGS, NULL}, - { (char *)"new_ofBuffer", _wrap_new_ofBuffer, METH_VARARGS, NULL}, - { (char *)"delete_ofBuffer", _wrap_delete_ofBuffer, METH_VARARGS, NULL}, - { (char *)"ofBuffer_set", _wrap_ofBuffer_set, METH_VARARGS, NULL}, - { (char *)"ofBuffer_append", _wrap_ofBuffer_append, METH_VARARGS, NULL}, - { (char *)"ofBuffer_writeTo", _wrap_ofBuffer_writeTo, METH_VARARGS, NULL}, - { (char *)"ofBuffer_clear", _wrap_ofBuffer_clear, METH_VARARGS, NULL}, - { (char *)"ofBuffer_allocate", _wrap_ofBuffer_allocate, METH_VARARGS, NULL}, - { (char *)"ofBuffer_getBinaryBuffer", _wrap_ofBuffer_getBinaryBuffer, METH_VARARGS, NULL}, - { (char *)"ofBuffer_getText", _wrap_ofBuffer_getText, METH_VARARGS, NULL}, - { (char *)"ofBuffer_size", _wrap_ofBuffer_size, METH_VARARGS, NULL}, - { (char *)"ofBuffer_getNextLine", _wrap_ofBuffer_getNextLine, METH_VARARGS, NULL}, - { (char *)"ofBuffer_getFirstLine", _wrap_ofBuffer_getFirstLine, METH_VARARGS, NULL}, - { (char *)"ofBuffer_isLastLine", _wrap_ofBuffer_isLastLine, METH_VARARGS, NULL}, - { (char *)"ofBuffer_resetLineReader", _wrap_ofBuffer_resetLineReader, METH_VARARGS, NULL}, - { (char *)"ofBuffer_swigregister", ofBuffer_swigregister, METH_VARARGS, NULL}, - { (char *)"ofBufferFromFile", _wrap_ofBufferFromFile, METH_VARARGS, NULL}, - { (char *)"ofBufferToFile", _wrap_ofBufferToFile, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getFileExt", _wrap_ofFilePath_getFileExt, METH_VARARGS, NULL}, - { (char *)"ofFilePath_removeExt", _wrap_ofFilePath_removeExt, METH_VARARGS, NULL}, - { (char *)"ofFilePath_addLeadingSlash", _wrap_ofFilePath_addLeadingSlash, METH_VARARGS, NULL}, - { (char *)"ofFilePath_addTrailingSlash", _wrap_ofFilePath_addTrailingSlash, METH_VARARGS, NULL}, - { (char *)"ofFilePath_removeTrailingSlash", _wrap_ofFilePath_removeTrailingSlash, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getPathForDirectory", _wrap_ofFilePath_getPathForDirectory, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getAbsolutePath", _wrap_ofFilePath_getAbsolutePath, METH_VARARGS, NULL}, - { (char *)"ofFilePath_isAbsolute", _wrap_ofFilePath_isAbsolute, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getFileName", _wrap_ofFilePath_getFileName, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getBaseName", _wrap_ofFilePath_getBaseName, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getEnclosingDirectory", _wrap_ofFilePath_getEnclosingDirectory, METH_VARARGS, NULL}, - { (char *)"ofFilePath_createEnclosingDirectory", _wrap_ofFilePath_createEnclosingDirectory, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getCurrentWorkingDirectory", _wrap_ofFilePath_getCurrentWorkingDirectory, METH_VARARGS, NULL}, - { (char *)"ofFilePath_join", _wrap_ofFilePath_join, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getCurrentExePath", _wrap_ofFilePath_getCurrentExePath, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getCurrentExeDir", _wrap_ofFilePath_getCurrentExeDir, METH_VARARGS, NULL}, - { (char *)"ofFilePath_getUserHomeDir", _wrap_ofFilePath_getUserHomeDir, METH_VARARGS, NULL}, - { (char *)"new_ofFilePath", _wrap_new_ofFilePath, METH_VARARGS, NULL}, - { (char *)"delete_ofFilePath", _wrap_delete_ofFilePath, METH_VARARGS, NULL}, - { (char *)"ofFilePath_swigregister", ofFilePath_swigregister, METH_VARARGS, NULL}, - { (char *)"new_ofFile", _wrap_new_ofFile, METH_VARARGS, NULL}, - { (char *)"delete_ofFile", _wrap_delete_ofFile, METH_VARARGS, NULL}, - { (char *)"ofFile_open", _wrap_ofFile_open, METH_VARARGS, NULL}, - { (char *)"ofFile_changeMode", _wrap_ofFile_changeMode, METH_VARARGS, NULL}, - { (char *)"ofFile_close", _wrap_ofFile_close, METH_VARARGS, NULL}, - { (char *)"ofFile_create", _wrap_ofFile_create, METH_VARARGS, NULL}, - { (char *)"ofFile_exists", _wrap_ofFile_exists, METH_VARARGS, NULL}, - { (char *)"ofFile_path", _wrap_ofFile_path, METH_VARARGS, NULL}, - { (char *)"ofFile_getExtension", _wrap_ofFile_getExtension, METH_VARARGS, NULL}, - { (char *)"ofFile_getFileName", _wrap_ofFile_getFileName, METH_VARARGS, NULL}, - { (char *)"ofFile_getBaseName", _wrap_ofFile_getBaseName, METH_VARARGS, NULL}, - { (char *)"ofFile_getEnclosingDirectory", _wrap_ofFile_getEnclosingDirectory, METH_VARARGS, NULL}, - { (char *)"ofFile_getAbsolutePath", _wrap_ofFile_getAbsolutePath, METH_VARARGS, NULL}, - { (char *)"ofFile_canRead", _wrap_ofFile_canRead, METH_VARARGS, NULL}, - { (char *)"ofFile_canWrite", _wrap_ofFile_canWrite, METH_VARARGS, NULL}, - { (char *)"ofFile_canExecute", _wrap_ofFile_canExecute, METH_VARARGS, NULL}, - { (char *)"ofFile_isFile", _wrap_ofFile_isFile, METH_VARARGS, NULL}, - { (char *)"ofFile_isLink", _wrap_ofFile_isLink, METH_VARARGS, NULL}, - { (char *)"ofFile_isDirectory", _wrap_ofFile_isDirectory, METH_VARARGS, NULL}, - { (char *)"ofFile_isDevice", _wrap_ofFile_isDevice, METH_VARARGS, NULL}, - { (char *)"ofFile_isHidden", _wrap_ofFile_isHidden, METH_VARARGS, NULL}, - { (char *)"ofFile_setWriteable", _wrap_ofFile_setWriteable, METH_VARARGS, NULL}, - { (char *)"ofFile_setReadOnly", _wrap_ofFile_setReadOnly, METH_VARARGS, NULL}, - { (char *)"ofFile_setExecutable", _wrap_ofFile_setExecutable, METH_VARARGS, NULL}, - { (char *)"ofFile_copyTo", _wrap_ofFile_copyTo, METH_VARARGS, NULL}, - { (char *)"ofFile_moveTo", _wrap_ofFile_moveTo, METH_VARARGS, NULL}, - { (char *)"ofFile_renameTo", _wrap_ofFile_renameTo, METH_VARARGS, NULL}, - { (char *)"ofFile_remove", _wrap_ofFile_remove, METH_VARARGS, NULL}, - { (char *)"ofFile_getSize", _wrap_ofFile_getSize, METH_VARARGS, NULL}, - { (char *)"ofFile_getPocoFile", _wrap_ofFile_getPocoFile, METH_VARARGS, NULL}, - { (char *)"ofFile___eq__", _wrap_ofFile___eq__, METH_VARARGS, NULL}, - { (char *)"ofFile___ne__", _wrap_ofFile___ne__, METH_VARARGS, NULL}, - { (char *)"ofFile___lt__", _wrap_ofFile___lt__, METH_VARARGS, NULL}, - { (char *)"ofFile___le__", _wrap_ofFile___le__, METH_VARARGS, NULL}, - { (char *)"ofFile___gt__", _wrap_ofFile___gt__, METH_VARARGS, NULL}, - { (char *)"ofFile___ge__", _wrap_ofFile___ge__, METH_VARARGS, NULL}, - { (char *)"ofFile_readToBuffer", _wrap_ofFile_readToBuffer, METH_VARARGS, NULL}, - { (char *)"ofFile_writeFromBuffer", _wrap_ofFile_writeFromBuffer, METH_VARARGS, NULL}, - { (char *)"ofFile_getFileBuffer", _wrap_ofFile_getFileBuffer, METH_VARARGS, NULL}, - { (char *)"ofFile_copyFromTo", _wrap_ofFile_copyFromTo, METH_VARARGS, NULL}, - { (char *)"ofFile_moveFromTo", _wrap_ofFile_moveFromTo, METH_VARARGS, NULL}, - { (char *)"ofFile_doesFileExist", _wrap_ofFile_doesFileExist, METH_VARARGS, NULL}, - { (char *)"ofFile_removeFile", _wrap_ofFile_removeFile, METH_VARARGS, NULL}, - { (char *)"ofFile_swigregister", ofFile_swigregister, METH_VARARGS, NULL}, - { (char *)"new_ofDirectory", _wrap_new_ofDirectory, METH_VARARGS, NULL}, - { (char *)"ofDirectory_open", _wrap_ofDirectory_open, METH_VARARGS, NULL}, - { (char *)"ofDirectory_close", _wrap_ofDirectory_close, METH_VARARGS, NULL}, - { (char *)"ofDirectory_create", _wrap_ofDirectory_create, METH_VARARGS, NULL}, - { (char *)"ofDirectory_exists", _wrap_ofDirectory_exists, METH_VARARGS, NULL}, - { (char *)"ofDirectory_path", _wrap_ofDirectory_path, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getAbsolutePath", _wrap_ofDirectory_getAbsolutePath, METH_VARARGS, NULL}, - { (char *)"ofDirectory_isDirectory", _wrap_ofDirectory_isDirectory, METH_VARARGS, NULL}, - { (char *)"ofDirectory_isHidden", _wrap_ofDirectory_isHidden, METH_VARARGS, NULL}, - { (char *)"ofDirectory_setWriteable", _wrap_ofDirectory_setWriteable, METH_VARARGS, NULL}, - { (char *)"ofDirectory_setReadOnly", _wrap_ofDirectory_setReadOnly, METH_VARARGS, NULL}, - { (char *)"ofDirectory_setExecutable", _wrap_ofDirectory_setExecutable, METH_VARARGS, NULL}, - { (char *)"ofDirectory_setShowHidden", _wrap_ofDirectory_setShowHidden, METH_VARARGS, NULL}, - { (char *)"ofDirectory_copyTo", _wrap_ofDirectory_copyTo, METH_VARARGS, NULL}, - { (char *)"ofDirectory_moveTo", _wrap_ofDirectory_moveTo, METH_VARARGS, NULL}, - { (char *)"ofDirectory_renameTo", _wrap_ofDirectory_renameTo, METH_VARARGS, NULL}, - { (char *)"ofDirectory_remove", _wrap_ofDirectory_remove, METH_VARARGS, NULL}, - { (char *)"ofDirectory_allowExt", _wrap_ofDirectory_allowExt, METH_VARARGS, NULL}, - { (char *)"ofDirectory_listDir", _wrap_ofDirectory_listDir, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getOriginalDirectory", _wrap_ofDirectory_getOriginalDirectory, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getName", _wrap_ofDirectory_getName, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getPath", _wrap_ofDirectory_getPath, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getFile", _wrap_ofDirectory_getFile, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getFiles", _wrap_ofDirectory_getFiles, METH_VARARGS, NULL}, - { (char *)"ofDirectory___getitem__", _wrap_ofDirectory___getitem__, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getShowHidden", _wrap_ofDirectory_getShowHidden, METH_VARARGS, NULL}, - { (char *)"ofDirectory_reset", _wrap_ofDirectory_reset, METH_VARARGS, NULL}, - { (char *)"ofDirectory_sort", _wrap_ofDirectory_sort, METH_VARARGS, NULL}, - { (char *)"ofDirectory_size", _wrap_ofDirectory_size, METH_VARARGS, NULL}, - { (char *)"ofDirectory_numFiles", _wrap_ofDirectory_numFiles, METH_VARARGS, NULL}, - { (char *)"ofDirectory_getPocoFile", _wrap_ofDirectory_getPocoFile, METH_VARARGS, NULL}, - { (char *)"ofDirectory___eq__", _wrap_ofDirectory___eq__, METH_VARARGS, NULL}, - { (char *)"ofDirectory___ne__", _wrap_ofDirectory___ne__, METH_VARARGS, NULL}, - { (char *)"ofDirectory___lt__", _wrap_ofDirectory___lt__, METH_VARARGS, NULL}, - { (char *)"ofDirectory___le__", _wrap_ofDirectory___le__, METH_VARARGS, NULL}, - { (char *)"ofDirectory___gt__", _wrap_ofDirectory___gt__, METH_VARARGS, NULL}, - { (char *)"ofDirectory___ge__", _wrap_ofDirectory___ge__, METH_VARARGS, NULL}, - { (char *)"ofDirectory_createDirectory", _wrap_ofDirectory_createDirectory, METH_VARARGS, NULL}, - { (char *)"ofDirectory_isDirectoryEmpty", _wrap_ofDirectory_isDirectoryEmpty, METH_VARARGS, NULL}, - { (char *)"ofDirectory_doesDirectoryExist", _wrap_ofDirectory_doesDirectoryExist, METH_VARARGS, NULL}, - { (char *)"ofDirectory_removeDirectory", _wrap_ofDirectory_removeDirectory, METH_VARARGS, NULL}, - { (char *)"delete_ofDirectory", _wrap_delete_ofDirectory, METH_VARARGS, NULL}, - { (char *)"ofDirectory_swigregister", ofDirectory_swigregister, METH_VARARGS, NULL}, + { (char *)"ofGetEnv", _wrap_ofGetEnv, METH_VARARGS, NULL}, + { (char *)"new_ofUTF8Iterator", _wrap_new_ofUTF8Iterator, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_begin", _wrap_ofUTF8Iterator_begin, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_end", _wrap_ofUTF8Iterator_end, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_rbegin", _wrap_ofUTF8Iterator_rbegin, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_rend", _wrap_ofUTF8Iterator_rend, METH_VARARGS, NULL}, + { (char *)"delete_ofUTF8Iterator", _wrap_delete_ofUTF8Iterator, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_swigregister", ofUTF8Iterator_swigregister, METH_VARARGS, NULL}, + { (char *)"setWorkingDirectoryToDefault", _wrap_setWorkingDirectoryToDefault, METH_VARARGS, NULL}, + { (char *)"initutils", _wrap_initutils, METH_VARARGS, NULL}, + { (char *)"endutils", _wrap_endutils, METH_VARARGS, NULL}, { (char *)"log", _wrap_log, METH_VARARGS, NULL}, + { (char *)"OF_LOG_VERBOSE_swigconstant", OF_LOG_VERBOSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_NOTICE_swigconstant", OF_LOG_NOTICE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_WARNING_swigconstant", OF_LOG_WARNING_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_ERROR_swigconstant", OF_LOG_ERROR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_FATAL_ERROR_swigconstant", OF_LOG_FATAL_ERROR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_SILENT_swigconstant", OF_LOG_SILENT_swigconstant, METH_VARARGS, NULL}, { (char *)"ofSetLogLevel", _wrap_ofSetLogLevel, METH_VARARGS, NULL}, { (char *)"ofGetLogLevel", _wrap_ofGetLogLevel, METH_VARARGS, NULL}, { (char *)"ofGetLogLevelName", _wrap_ofGetLogLevelName, METH_VARARGS, NULL}, @@ -54885,6 +63421,9 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofHttpRequest_name_get", _wrap_ofHttpRequest_name_get, METH_VARARGS, NULL}, { (char *)"ofHttpRequest_saveTo_set", _wrap_ofHttpRequest_saveTo_set, METH_VARARGS, NULL}, { (char *)"ofHttpRequest_saveTo_get", _wrap_ofHttpRequest_saveTo_get, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_headers_set", _wrap_ofHttpRequest_headers_set, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_headers_get", _wrap_ofHttpRequest_headers_get, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_getId", _wrap_ofHttpRequest_getId, METH_VARARGS, NULL}, { (char *)"ofHttpRequest_getID", _wrap_ofHttpRequest_getID, METH_VARARGS, NULL}, { (char *)"delete_ofHttpRequest", _wrap_delete_ofHttpRequest, METH_VARARGS, NULL}, { (char *)"ofHttpRequest_swigregister", ofHttpRequest_swigregister, METH_VARARGS, NULL}, @@ -54915,16 +63454,18 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofURLFileLoader_remove", _wrap_ofURLFileLoader_remove, METH_VARARGS, NULL}, { (char *)"ofURLFileLoader_clear", _wrap_ofURLFileLoader_clear, METH_VARARGS, NULL}, { (char *)"ofURLFileLoader_stop", _wrap_ofURLFileLoader_stop, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_handleRequest", _wrap_ofURLFileLoader_handleRequest, METH_VARARGS, NULL}, { (char *)"delete_ofURLFileLoader", _wrap_delete_ofURLFileLoader, METH_VARARGS, NULL}, { (char *)"ofURLFileLoader_swigregister", ofURLFileLoader_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_ofRectangle", _wrap_delete_ofRectangle, METH_VARARGS, NULL}, { (char *)"new_ofRectangle", _wrap_new_ofRectangle, METH_VARARGS, NULL}, + { (char *)"delete_ofRectangle", _wrap_delete_ofRectangle, METH_VARARGS, NULL}, { (char *)"ofRectangle_set", _wrap_ofRectangle_set, METH_VARARGS, NULL}, { (char *)"ofRectangle_setX", _wrap_ofRectangle_setX, METH_VARARGS, NULL}, { (char *)"ofRectangle_setY", _wrap_ofRectangle_setY, METH_VARARGS, NULL}, { (char *)"ofRectangle_setWidth", _wrap_ofRectangle_setWidth, METH_VARARGS, NULL}, { (char *)"ofRectangle_setHeight", _wrap_ofRectangle_setHeight, METH_VARARGS, NULL}, { (char *)"ofRectangle_setPosition", _wrap_ofRectangle_setPosition, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setSize", _wrap_ofRectangle_setSize, METH_VARARGS, NULL}, { (char *)"ofRectangle_setFromCenter", _wrap_ofRectangle_setFromCenter, METH_VARARGS, NULL}, { (char *)"ofRectangle_translate", _wrap_ofRectangle_translate, METH_VARARGS, NULL}, { (char *)"ofRectangle_translateX", _wrap_ofRectangle_translateX, METH_VARARGS, NULL}, @@ -54975,8 +63516,10 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofRectangle_getWidth", _wrap_ofRectangle_getWidth, METH_VARARGS, NULL}, { (char *)"ofRectangle_getHeight", _wrap_ofRectangle_getHeight, METH_VARARGS, NULL}, { (char *)"ofRectangle___add__", _wrap_ofRectangle___add__, METH_VARARGS, NULL}, + { (char *)"ofRectangle___sub__", _wrap_ofRectangle___sub__, METH_VARARGS, NULL}, { (char *)"ofRectangle___eq__", _wrap_ofRectangle___eq__, METH_VARARGS, NULL}, { (char *)"ofRectangle___ne__", _wrap_ofRectangle___ne__, METH_VARARGS, NULL}, + { (char *)"ofRectangle_isZero", _wrap_ofRectangle_isZero, METH_VARARGS, NULL}, { (char *)"ofRectangle_position_set", _wrap_ofRectangle_position_set, METH_VARARGS, NULL}, { (char *)"ofRectangle_position_get", _wrap_ofRectangle_position_get, METH_VARARGS, NULL}, { (char *)"ofRectangle_width_set", _wrap_ofRectangle_width_set, METH_VARARGS, NULL}, @@ -54989,8 +63532,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofRectangle_y_get", _wrap_ofRectangle_y_get, METH_VARARGS, NULL}, { (char *)"ofRectangle___str__", _wrap_ofRectangle___str__, METH_VARARGS, NULL}, { (char *)"ofRectangle_swigregister", ofRectangle_swigregister, METH_VARARGS, NULL}, - { (char *)"new_ofNode", _wrap_new_ofNode, METH_VARARGS, NULL}, { (char *)"delete_ofNode", _wrap_delete_ofNode, METH_VARARGS, NULL}, + { (char *)"new_ofNode", _wrap_new_ofNode, METH_VARARGS, NULL}, { (char *)"ofNode_setParent", _wrap_ofNode_setParent, METH_VARARGS, NULL}, { (char *)"ofNode_clearParent", _wrap_ofNode_clearParent, METH_VARARGS, NULL}, { (char *)"ofNode_getParent", _wrap_ofNode_getParent, METH_VARARGS, NULL}, @@ -55074,6 +63617,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofCamera_screenToWorld", _wrap_ofCamera_screenToWorld, METH_VARARGS, NULL}, { (char *)"ofCamera_worldToCamera", _wrap_ofCamera_worldToCamera, METH_VARARGS, NULL}, { (char *)"ofCamera_cameraToWorld", _wrap_ofCamera_cameraToWorld, METH_VARARGS, NULL}, + { (char *)"ofCamera_setRenderer", _wrap_ofCamera_setRenderer, METH_VARARGS, NULL}, { (char *)"ofCamera_swigregister", ofCamera_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofEasyCam", _wrap_new_ofEasyCam, METH_VARARGS, NULL}, { (char *)"delete_ofEasyCam", _wrap_delete_ofEasyCam, METH_VARARGS, NULL}, @@ -55085,6 +63629,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofEasyCam_getDistance", _wrap_ofEasyCam_getDistance, METH_VARARGS, NULL}, { (char *)"ofEasyCam_setDrag", _wrap_ofEasyCam_setDrag, METH_VARARGS, NULL}, { (char *)"ofEasyCam_getDrag", _wrap_ofEasyCam_getDrag, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setAutoDistance", _wrap_ofEasyCam_setAutoDistance, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setEvents", _wrap_ofEasyCam_setEvents, METH_VARARGS, NULL}, { (char *)"ofEasyCam_setTranslationKey", _wrap_ofEasyCam_setTranslationKey, METH_VARARGS, NULL}, { (char *)"ofEasyCam_getTranslationKey", _wrap_ofEasyCam_getTranslationKey, METH_VARARGS, NULL}, { (char *)"ofEasyCam_enableMouseInput", _wrap_ofEasyCam_enableMouseInput, METH_VARARGS, NULL}, @@ -55093,105 +63639,105 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofEasyCam_enableMouseMiddleButton", _wrap_ofEasyCam_enableMouseMiddleButton, METH_VARARGS, NULL}, { (char *)"ofEasyCam_disableMouseMiddleButton", _wrap_ofEasyCam_disableMouseMiddleButton, METH_VARARGS, NULL}, { (char *)"ofEasyCam_getMouseMiddleButtonEnabled", _wrap_ofEasyCam_getMouseMiddleButtonEnabled, METH_VARARGS, NULL}, - { (char *)"ofEasyCam_setAutoDistance", _wrap_ofEasyCam_setAutoDistance, METH_VARARGS, NULL}, { (char *)"ofEasyCam_swigregister", ofEasyCam_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofMesh", _wrap_new_ofMesh, METH_VARARGS, NULL}, - { (char *)"delete_ofMesh", _wrap_delete_ofMesh, METH_VARARGS, NULL}, + { (char *)"ofMesh_setFromTriangles", _wrap_ofMesh_setFromTriangles, METH_VARARGS, NULL}, { (char *)"ofMesh_setMode", _wrap_ofMesh_setMode, METH_VARARGS, NULL}, { (char *)"ofMesh_getMode", _wrap_ofMesh_getMode, METH_VARARGS, NULL}, - { (char *)"ofMesh_clear", _wrap_ofMesh_clear, METH_VARARGS, NULL}, - { (char *)"ofMesh_setupIndicesAuto", _wrap_ofMesh_setupIndicesAuto, METH_VARARGS, NULL}, - { (char *)"ofMesh_getVertex", _wrap_ofMesh_getVertex, METH_VARARGS, NULL}, + { (char *)"ofMesh_plane", _wrap_ofMesh_plane, METH_VARARGS, NULL}, + { (char *)"ofMesh_sphere", _wrap_ofMesh_sphere, METH_VARARGS, NULL}, + { (char *)"ofMesh_icosahedron", _wrap_ofMesh_icosahedron, METH_VARARGS, NULL}, + { (char *)"ofMesh_icosphere", _wrap_ofMesh_icosphere, METH_VARARGS, NULL}, + { (char *)"ofMesh_cylinder", _wrap_ofMesh_cylinder, METH_VARARGS, NULL}, + { (char *)"ofMesh_cone", _wrap_ofMesh_cone, METH_VARARGS, NULL}, + { (char *)"ofMesh_box", _wrap_ofMesh_box, METH_VARARGS, NULL}, + { (char *)"ofMesh_axis", _wrap_ofMesh_axis, METH_VARARGS, NULL}, { (char *)"ofMesh_addVertex", _wrap_ofMesh_addVertex, METH_VARARGS, NULL}, { (char *)"ofMesh_addVertices", _wrap_ofMesh_addVertices, METH_VARARGS, NULL}, { (char *)"ofMesh_removeVertex", _wrap_ofMesh_removeVertex, METH_VARARGS, NULL}, { (char *)"ofMesh_setVertex", _wrap_ofMesh_setVertex, METH_VARARGS, NULL}, { (char *)"ofMesh_clearVertices", _wrap_ofMesh_clearVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_clear", _wrap_ofMesh_clear, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumVertices", _wrap_ofMesh_getNumVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_getVerticesPointer", _wrap_ofMesh_getVerticesPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getVertex", _wrap_ofMesh_getVertex, METH_VARARGS, NULL}, + { (char *)"ofMesh_getVertices", _wrap_ofMesh_getVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveVertsChanged", _wrap_ofMesh_haveVertsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasVertices", _wrap_ofMesh_hasVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_append", _wrap_ofMesh_append, METH_VARARGS, NULL}, + { (char *)"ofMesh_mergeDuplicateVertices", _wrap_ofMesh_mergeDuplicateVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_getCentroid", _wrap_ofMesh_getCentroid, METH_VARARGS, NULL}, { (char *)"ofMesh_getNormal", _wrap_ofMesh_getNormal, METH_VARARGS, NULL}, { (char *)"ofMesh_addNormal", _wrap_ofMesh_addNormal, METH_VARARGS, NULL}, { (char *)"ofMesh_addNormals", _wrap_ofMesh_addNormals, METH_VARARGS, NULL}, { (char *)"ofMesh_removeNormal", _wrap_ofMesh_removeNormal, METH_VARARGS, NULL}, { (char *)"ofMesh_setNormal", _wrap_ofMesh_setNormal, METH_VARARGS, NULL}, { (char *)"ofMesh_clearNormals", _wrap_ofMesh_clearNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumNormals", _wrap_ofMesh_getNumNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNormalsPointer", _wrap_ofMesh_getNormalsPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNormals", _wrap_ofMesh_getNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveNormalsChanged", _wrap_ofMesh_haveNormalsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasNormals", _wrap_ofMesh_hasNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_enableNormals", _wrap_ofMesh_enableNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_disableNormals", _wrap_ofMesh_disableNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_usingNormals", _wrap_ofMesh_usingNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_smoothNormals", _wrap_ofMesh_smoothNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getFace", _wrap_ofMesh_getFace, METH_VARARGS, NULL}, + { (char *)"ofMesh_getFaceNormals", _wrap_ofMesh_getFaceNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getUniqueFaces", _wrap_ofMesh_getUniqueFaces, METH_VARARGS, NULL}, { (char *)"ofMesh_getColor", _wrap_ofMesh_getColor, METH_VARARGS, NULL}, { (char *)"ofMesh_addColor", _wrap_ofMesh_addColor, METH_VARARGS, NULL}, { (char *)"ofMesh_addColors", _wrap_ofMesh_addColors, METH_VARARGS, NULL}, { (char *)"ofMesh_removeColor", _wrap_ofMesh_removeColor, METH_VARARGS, NULL}, { (char *)"ofMesh_setColor", _wrap_ofMesh_setColor, METH_VARARGS, NULL}, { (char *)"ofMesh_clearColors", _wrap_ofMesh_clearColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumColors", _wrap_ofMesh_getNumColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_getColorsPointer", _wrap_ofMesh_getColorsPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getColors", _wrap_ofMesh_getColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveColorsChanged", _wrap_ofMesh_haveColorsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasColors", _wrap_ofMesh_hasColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_enableColors", _wrap_ofMesh_enableColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_disableColors", _wrap_ofMesh_disableColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_usingColors", _wrap_ofMesh_usingColors, METH_VARARGS, NULL}, { (char *)"ofMesh_getTexCoord", _wrap_ofMesh_getTexCoord, METH_VARARGS, NULL}, { (char *)"ofMesh_addTexCoord", _wrap_ofMesh_addTexCoord, METH_VARARGS, NULL}, { (char *)"ofMesh_addTexCoords", _wrap_ofMesh_addTexCoords, METH_VARARGS, NULL}, { (char *)"ofMesh_removeTexCoord", _wrap_ofMesh_removeTexCoord, METH_VARARGS, NULL}, { (char *)"ofMesh_setTexCoord", _wrap_ofMesh_setTexCoord, METH_VARARGS, NULL}, { (char *)"ofMesh_clearTexCoords", _wrap_ofMesh_clearTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumTexCoords", _wrap_ofMesh_getNumTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_getTexCoordsPointer", _wrap_ofMesh_getTexCoordsPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getTexCoords", _wrap_ofMesh_getTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveTexCoordsChanged", _wrap_ofMesh_haveTexCoordsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasTexCoords", _wrap_ofMesh_hasTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_enableTextures", _wrap_ofMesh_enableTextures, METH_VARARGS, NULL}, + { (char *)"ofMesh_disableTextures", _wrap_ofMesh_disableTextures, METH_VARARGS, NULL}, + { (char *)"ofMesh_usingTextures", _wrap_ofMesh_usingTextures, METH_VARARGS, NULL}, + { (char *)"ofMesh_setupIndicesAuto", _wrap_ofMesh_setupIndicesAuto, METH_VARARGS, NULL}, { (char *)"ofMesh_getIndex", _wrap_ofMesh_getIndex, METH_VARARGS, NULL}, { (char *)"ofMesh_addIndex", _wrap_ofMesh_addIndex, METH_VARARGS, NULL}, { (char *)"ofMesh_addIndices", _wrap_ofMesh_addIndices, METH_VARARGS, NULL}, { (char *)"ofMesh_removeIndex", _wrap_ofMesh_removeIndex, METH_VARARGS, NULL}, { (char *)"ofMesh_setIndex", _wrap_ofMesh_setIndex, METH_VARARGS, NULL}, { (char *)"ofMesh_clearIndices", _wrap_ofMesh_clearIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_addTriangle", _wrap_ofMesh_addTriangle, METH_VARARGS, NULL}, - { (char *)"ofMesh_getNumVertices", _wrap_ofMesh_getNumVertices, METH_VARARGS, NULL}, - { (char *)"ofMesh_getNumColors", _wrap_ofMesh_getNumColors, METH_VARARGS, NULL}, - { (char *)"ofMesh_getNumNormals", _wrap_ofMesh_getNumNormals, METH_VARARGS, NULL}, - { (char *)"ofMesh_getNumTexCoords", _wrap_ofMesh_getNumTexCoords, METH_VARARGS, NULL}, { (char *)"ofMesh_getNumIndices", _wrap_ofMesh_getNumIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_getVerticesPointer", _wrap_ofMesh_getVerticesPointer, METH_VARARGS, NULL}, - { (char *)"ofMesh_getColorsPointer", _wrap_ofMesh_getColorsPointer, METH_VARARGS, NULL}, - { (char *)"ofMesh_getNormalsPointer", _wrap_ofMesh_getNormalsPointer, METH_VARARGS, NULL}, - { (char *)"ofMesh_getTexCoordsPointer", _wrap_ofMesh_getTexCoordsPointer, METH_VARARGS, NULL}, { (char *)"ofMesh_getIndexPointer", _wrap_ofMesh_getIndexPointer, METH_VARARGS, NULL}, - { (char *)"ofMesh_getVertices", _wrap_ofMesh_getVertices, METH_VARARGS, NULL}, - { (char *)"ofMesh_getColors", _wrap_ofMesh_getColors, METH_VARARGS, NULL}, - { (char *)"ofMesh_getNormals", _wrap_ofMesh_getNormals, METH_VARARGS, NULL}, - { (char *)"ofMesh_getTexCoords", _wrap_ofMesh_getTexCoords, METH_VARARGS, NULL}, { (char *)"ofMesh_getIndices", _wrap_ofMesh_getIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_getCentroid", _wrap_ofMesh_getCentroid, METH_VARARGS, NULL}, - { (char *)"ofMesh_haveVertsChanged", _wrap_ofMesh_haveVertsChanged, METH_VARARGS, NULL}, - { (char *)"ofMesh_haveColorsChanged", _wrap_ofMesh_haveColorsChanged, METH_VARARGS, NULL}, - { (char *)"ofMesh_haveNormalsChanged", _wrap_ofMesh_haveNormalsChanged, METH_VARARGS, NULL}, - { (char *)"ofMesh_haveTexCoordsChanged", _wrap_ofMesh_haveTexCoordsChanged, METH_VARARGS, NULL}, { (char *)"ofMesh_haveIndicesChanged", _wrap_ofMesh_haveIndicesChanged, METH_VARARGS, NULL}, - { (char *)"ofMesh_hasVertices", _wrap_ofMesh_hasVertices, METH_VARARGS, NULL}, - { (char *)"ofMesh_hasColors", _wrap_ofMesh_hasColors, METH_VARARGS, NULL}, - { (char *)"ofMesh_hasNormals", _wrap_ofMesh_hasNormals, METH_VARARGS, NULL}, - { (char *)"ofMesh_hasTexCoords", _wrap_ofMesh_hasTexCoords, METH_VARARGS, NULL}, { (char *)"ofMesh_hasIndices", _wrap_ofMesh_hasIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_drawVertices", _wrap_ofMesh_drawVertices, METH_VARARGS, NULL}, - { (char *)"ofMesh_drawWireframe", _wrap_ofMesh_drawWireframe, METH_VARARGS, NULL}, - { (char *)"ofMesh_drawFaces", _wrap_ofMesh_drawFaces, METH_VARARGS, NULL}, - { (char *)"ofMesh_load", _wrap_ofMesh_load, METH_VARARGS, NULL}, - { (char *)"ofMesh_save", _wrap_ofMesh_save, METH_VARARGS, NULL}, - { (char *)"ofMesh_enableColors", _wrap_ofMesh_enableColors, METH_VARARGS, NULL}, - { (char *)"ofMesh_enableTextures", _wrap_ofMesh_enableTextures, METH_VARARGS, NULL}, - { (char *)"ofMesh_enableNormals", _wrap_ofMesh_enableNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_addTriangle", _wrap_ofMesh_addTriangle, METH_VARARGS, NULL}, { (char *)"ofMesh_enableIndices", _wrap_ofMesh_enableIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_disableColors", _wrap_ofMesh_disableColors, METH_VARARGS, NULL}, - { (char *)"ofMesh_disableTextures", _wrap_ofMesh_disableTextures, METH_VARARGS, NULL}, - { (char *)"ofMesh_disableNormals", _wrap_ofMesh_disableNormals, METH_VARARGS, NULL}, { (char *)"ofMesh_disableIndices", _wrap_ofMesh_disableIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_usingColors", _wrap_ofMesh_usingColors, METH_VARARGS, NULL}, - { (char *)"ofMesh_usingTextures", _wrap_ofMesh_usingTextures, METH_VARARGS, NULL}, - { (char *)"ofMesh_usingNormals", _wrap_ofMesh_usingNormals, METH_VARARGS, NULL}, { (char *)"ofMesh_usingIndices", _wrap_ofMesh_usingIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_append", _wrap_ofMesh_append, METH_VARARGS, NULL}, { (char *)"ofMesh_setColorForIndices", _wrap_ofMesh_setColorForIndices, METH_VARARGS, NULL}, { (char *)"ofMesh_getMeshForIndices", _wrap_ofMesh_getMeshForIndices, METH_VARARGS, NULL}, - { (char *)"ofMesh_mergeDuplicateVertices", _wrap_ofMesh_mergeDuplicateVertices, METH_VARARGS, NULL}, - { (char *)"ofMesh_getUniqueFaces", _wrap_ofMesh_getUniqueFaces, METH_VARARGS, NULL}, - { (char *)"ofMesh_getFaceNormals", _wrap_ofMesh_getFaceNormals, METH_VARARGS, NULL}, - { (char *)"ofMesh_setFromTriangles", _wrap_ofMesh_setFromTriangles, METH_VARARGS, NULL}, - { (char *)"ofMesh_smoothNormals", _wrap_ofMesh_smoothNormals, METH_VARARGS, NULL}, - { (char *)"ofMesh_plane", _wrap_ofMesh_plane, METH_VARARGS, NULL}, - { (char *)"ofMesh_sphere", _wrap_ofMesh_sphere, METH_VARARGS, NULL}, - { (char *)"ofMesh_icosahedron", _wrap_ofMesh_icosahedron, METH_VARARGS, NULL}, - { (char *)"ofMesh_icosphere", _wrap_ofMesh_icosphere, METH_VARARGS, NULL}, - { (char *)"ofMesh_cylinder", _wrap_ofMesh_cylinder, METH_VARARGS, NULL}, - { (char *)"ofMesh_cone", _wrap_ofMesh_cone, METH_VARARGS, NULL}, - { (char *)"ofMesh_box", _wrap_ofMesh_box, METH_VARARGS, NULL}, - { (char *)"ofMesh_axis", _wrap_ofMesh_axis, METH_VARARGS, NULL}, + { (char *)"ofMesh_drawVertices", _wrap_ofMesh_drawVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_drawWireframe", _wrap_ofMesh_drawWireframe, METH_VARARGS, NULL}, + { (char *)"ofMesh_drawFaces", _wrap_ofMesh_drawFaces, METH_VARARGS, NULL}, { (char *)"ofMesh_draw", _wrap_ofMesh_draw, METH_VARARGS, NULL}, + { (char *)"ofMesh_load", _wrap_ofMesh_load, METH_VARARGS, NULL}, + { (char *)"ofMesh_save", _wrap_ofMesh_save, METH_VARARGS, NULL}, + { (char *)"delete_ofMesh", _wrap_delete_ofMesh, METH_VARARGS, NULL}, { (char *)"ofMesh_swigregister", ofMesh_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofMeshFace", _wrap_new_ofMeshFace, METH_VARARGS, NULL}, { (char *)"ofMeshFace_getFaceNormal", _wrap_ofMeshFace_getFaceNormal, METH_VARARGS, NULL}, @@ -55320,14 +63866,18 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofBoxPrimitive_getDepth", _wrap_ofBoxPrimitive_getDepth, METH_VARARGS, NULL}, { (char *)"ofBoxPrimitive_getSize", _wrap_ofBoxPrimitive_getSize, METH_VARARGS, NULL}, { (char *)"ofBoxPrimitive_swigregister", ofBoxPrimitive_swigregister, METH_VARARGS, NULL}, + { (char *)"ofInit", _wrap_ofInit, METH_VARARGS, NULL}, + { (char *)"ofCreateWindow", _wrap_ofCreateWindow, METH_VARARGS, NULL}, + { (char *)"ofGetMainLoop", _wrap_ofGetMainLoop, METH_VARARGS, NULL}, + { (char *)"ofSetMainLoop", _wrap_ofSetMainLoop, METH_VARARGS, NULL}, { (char *)"ofSetupOpenGL", _wrap_ofSetupOpenGL, METH_VARARGS, NULL}, { (char *)"ofRunApp", _wrap_ofRunApp, METH_VARARGS, NULL}, + { (char *)"ofRunMainLoop", _wrap_ofRunMainLoop, METH_VARARGS, NULL}, { (char *)"ofGetAppPtr", _wrap_ofGetAppPtr, METH_VARARGS, NULL}, { (char *)"ofExit", _wrap_ofExit, METH_VARARGS, NULL}, { (char *)"ofGetFrameRate", _wrap_ofGetFrameRate, METH_VARARGS, NULL}, { (char *)"ofGetTargetFrameRate", _wrap_ofGetTargetFrameRate, METH_VARARGS, NULL}, { (char *)"ofSetFrameRate", _wrap_ofSetFrameRate, METH_VARARGS, NULL}, - { (char *)"ofSleepMillis", _wrap_ofSleepMillis, METH_VARARGS, NULL}, { (char *)"ofGetLastFrameTime", _wrap_ofGetLastFrameTime, METH_VARARGS, NULL}, { (char *)"ofSetOrientation", _wrap_ofSetOrientation, METH_VARARGS, NULL}, { (char *)"ofGetOrientation", _wrap_ofGetOrientation, METH_VARARGS, NULL}, @@ -55342,6 +63892,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofGetHeight", _wrap_ofGetHeight, METH_VARARGS, NULL}, { (char *)"ofGetWindowWidth", _wrap_ofGetWindowWidth, METH_VARARGS, NULL}, { (char *)"ofGetWindowHeight", _wrap_ofGetWindowHeight, METH_VARARGS, NULL}, + { (char *)"ofRandomWidth", _wrap_ofRandomWidth, METH_VARARGS, NULL}, + { (char *)"ofRandomHeight", _wrap_ofRandomHeight, METH_VARARGS, NULL}, { (char *)"ofDoesHWOrientation", _wrap_ofDoesHWOrientation, METH_VARARGS, NULL}, { (char *)"ofGetWindowSize", _wrap_ofGetWindowSize, METH_VARARGS, NULL}, { (char *)"ofGetWindowRect", _wrap_ofGetWindowRect, METH_VARARGS, NULL}, @@ -55354,20 +63906,79 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofSetFullscreen", _wrap_ofSetFullscreen, METH_VARARGS, NULL}, { (char *)"ofToggleFullscreen", _wrap_ofToggleFullscreen, METH_VARARGS, NULL}, { (char *)"ofSetVerticalSync", _wrap_ofSetVerticalSync, METH_VARARGS, NULL}, + { (char *)"ofEvents", _wrap_ofEvents, METH_VARARGS, NULL}, + { (char *)"ofSetCurrentRenderer", _wrap_ofSetCurrentRenderer, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentRenderer", _wrap_ofGetCurrentRenderer, METH_VARARGS, NULL}, + { (char *)"ofSetEscapeQuitsApp", _wrap_ofSetEscapeQuitsApp, METH_VARARGS, NULL}, + { (char *)"FIRMATA_MAJOR_VERSION_swigconstant", FIRMATA_MAJOR_VERSION_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_MINOR_VERSION_swigconstant", FIRMATA_MINOR_VERSION_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_MAX_DATA_BYTES_swigconstant", FIRMATA_MAX_DATA_BYTES_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_DIGITAL_MESSAGE_swigconstant", FIRMATA_DIGITAL_MESSAGE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_ANALOG_MESSAGE_swigconstant", FIRMATA_ANALOG_MESSAGE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_REPORT_ANALOG_swigconstant", FIRMATA_REPORT_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_REPORT_DIGITAL_swigconstant", FIRMATA_REPORT_DIGITAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SET_PIN_MODE_swigconstant", FIRMATA_SET_PIN_MODE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_REPORT_VERSION_swigconstant", FIRMATA_REPORT_VERSION_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSTEM_RESET_swigconstant", FIRMATA_SYSTEM_RESET_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_START_SYSEX_swigconstant", FIRMATA_START_SYSEX_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_END_SYSEX_swigconstant", FIRMATA_END_SYSEX_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_INPUT_swigconstant", FIRMATA_INPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_OUTPUT_swigconstant", FIRMATA_OUTPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_ANALOG_swigconstant", FIRMATA_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_PWM_swigconstant", FIRMATA_PWM_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SERVO_swigconstant", FIRMATA_SERVO_swigconstant, METH_VARARGS, NULL}, + { (char *)"SHIFT_swigconstant", SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_swigconstant", I2C_swigconstant, METH_VARARGS, NULL}, + { (char *)"TOTAL_PIN_MODES_swigconstant", TOTAL_PIN_MODES_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_SERVO_CONFIG_swigconstant", FIRMATA_SYSEX_SERVO_CONFIG_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_FIRMATA_STRING_swigconstant", FIRMATA_SYSEX_FIRMATA_STRING_swigconstant, METH_VARARGS, NULL}, + { (char *)"SHIFT_DATA_swigconstant", SHIFT_DATA_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_REQUEST_swigconstant", I2C_REQUEST_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_REPLY_swigconstant", I2C_REPLY_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_CONFIG_swigconstant", I2C_CONFIG_swigconstant, METH_VARARGS, NULL}, + { (char *)"EXTENDED_ANALOG_swigconstant", EXTENDED_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"PIN_STATE_QUERY_swigconstant", PIN_STATE_QUERY_swigconstant, METH_VARARGS, NULL}, + { (char *)"PIN_STATE_RESPONSE_swigconstant", PIN_STATE_RESPONSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"CAPABILITY_QUERY_swigconstant", CAPABILITY_QUERY_swigconstant, METH_VARARGS, NULL}, + { (char *)"CAPABILITY_RESPONSE_swigconstant", CAPABILITY_RESPONSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"ANALOG_MAPPING_QUERY_swigconstant", ANALOG_MAPPING_QUERY_swigconstant, METH_VARARGS, NULL}, + { (char *)"ANALOG_MAPPING_RESPONSE_swigconstant", ANALOG_MAPPING_RESPONSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant", FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant, METH_VARARGS, NULL}, + { (char *)"SAMPLING_INTERVAL_swigconstant", SAMPLING_INTERVAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_NON_REALTIME_swigconstant", FIRMATA_SYSEX_NON_REALTIME_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_REALTIME_swigconstant", FIRMATA_SYSEX_REALTIME_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_TOTAL_DIGITAL_PINS_swigconstant", ARD_TOTAL_DIGITAL_PINS_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_TOTAL_ANALOG_PINS_swigconstant", ARD_TOTAL_ANALOG_PINS_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_TOTAL_PORTS_swigconstant", ARD_TOTAL_PORTS_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_INPUT_swigconstant", ARD_INPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_OUTPUT_swigconstant", ARD_OUTPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_ANALOG_swigconstant", ARD_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_PWM_swigconstant", ARD_PWM_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_SERVO_swigconstant", ARD_SERVO_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_HIGH_swigconstant", ARD_HIGH_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_LOW_swigconstant", ARD_LOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_ON_swigconstant", ARD_ON_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_OFF_swigconstant", ARD_OFF_swigconstant, METH_VARARGS, NULL}, + { (char *)"SYSEX_SERVO_ATTACH_swigconstant", SYSEX_SERVO_ATTACH_swigconstant, METH_VARARGS, NULL}, + { (char *)"SYSEX_SERVO_DETACH_swigconstant", SYSEX_SERVO_DETACH_swigconstant, METH_VARARGS, NULL}, + { (char *)"SYSEX_SERVO_WRITE_swigconstant", SYSEX_SERVO_WRITE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ARDUINO_DELAY_LENGTH_swigconstant", OF_ARDUINO_DELAY_LENGTH_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMWARE2_2_swigconstant", FIRMWARE2_2_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMWARE2_3_swigconstant", FIRMWARE2_3_swigconstant, METH_VARARGS, NULL}, { (char *)"new_ofArduino", _wrap_new_ofArduino, METH_VARARGS, NULL}, { (char *)"delete_ofArduino", _wrap_delete_ofArduino, METH_VARARGS, NULL}, { (char *)"ofArduino_connect", _wrap_ofArduino_connect, METH_VARARGS, NULL}, - { (char *)"ofArduino_disconnect", _wrap_ofArduino_disconnect, METH_VARARGS, NULL}, + { (char *)"ofArduino_isInitialized", _wrap_ofArduino_isInitialized, METH_VARARGS, NULL}, { (char *)"ofArduino_isArduinoReady", _wrap_ofArduino_isArduinoReady, METH_VARARGS, NULL}, - { (char *)"ofArduino_setUseDelay", _wrap_ofArduino_setUseDelay, METH_VARARGS, NULL}, + { (char *)"ofArduino_disconnect", _wrap_ofArduino_disconnect, METH_VARARGS, NULL}, { (char *)"ofArduino_update", _wrap_ofArduino_update, METH_VARARGS, NULL}, - { (char *)"ofArduino_isInitialized", _wrap_ofArduino_isInitialized, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendDigitalPinMode", _wrap_ofArduino_sendDigitalPinMode, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendAnalogPinReporting", _wrap_ofArduino_sendAnalogPinReporting, METH_VARARGS, NULL}, + { (char *)"ofArduino_setUseDelay", _wrap_ofArduino_setUseDelay, METH_VARARGS, NULL}, { (char *)"ofArduino_setDigitalHistoryLength", _wrap_ofArduino_setDigitalHistoryLength, METH_VARARGS, NULL}, { (char *)"ofArduino_setAnalogHistoryLength", _wrap_ofArduino_setAnalogHistoryLength, METH_VARARGS, NULL}, { (char *)"ofArduino_setStringHistoryLength", _wrap_ofArduino_setStringHistoryLength, METH_VARARGS, NULL}, { (char *)"ofArduino_setSysExHistoryLength", _wrap_ofArduino_setSysExHistoryLength, METH_VARARGS, NULL}, - { (char *)"ofArduino_sendDigitalPinMode", _wrap_ofArduino_sendDigitalPinMode, METH_VARARGS, NULL}, - { (char *)"ofArduino_sendAnalogPinReporting", _wrap_ofArduino_sendAnalogPinReporting, METH_VARARGS, NULL}, { (char *)"ofArduino_sendDigital", _wrap_ofArduino_sendDigital, METH_VARARGS, NULL}, { (char *)"ofArduino_sendPwm", _wrap_ofArduino_sendPwm, METH_VARARGS, NULL}, { (char *)"ofArduino_sendSysEx", _wrap_ofArduino_sendSysEx, METH_VARARGS, NULL}, @@ -55420,17 +64031,21 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofSerial_listDevices", _wrap_ofSerial_listDevices, METH_VARARGS, NULL}, { (char *)"ofSerial_enumerateDevices", _wrap_ofSerial_enumerateDevices, METH_VARARGS, NULL}, { (char *)"ofSerial_getDeviceList", _wrap_ofSerial_getDeviceList, METH_VARARGS, NULL}, - { (char *)"ofSerial_close", _wrap_ofSerial_close, METH_VARARGS, NULL}, { (char *)"ofSerial_setup", _wrap_ofSerial_setup, METH_VARARGS, NULL}, + { (char *)"ofSerial_isInitialized", _wrap_ofSerial_isInitialized, METH_VARARGS, NULL}, + { (char *)"ofSerial_close", _wrap_ofSerial_close, METH_VARARGS, NULL}, + { (char *)"ofSerial_available", _wrap_ofSerial_available, METH_VARARGS, NULL}, { (char *)"ofSerial_readBytes", _wrap_ofSerial_readBytes, METH_VARARGS, NULL}, + { (char *)"ofSerial_readByte", _wrap_ofSerial_readByte, METH_VARARGS, NULL}, { (char *)"ofSerial_writeBytes", _wrap_ofSerial_writeBytes, METH_VARARGS, NULL}, { (char *)"ofSerial_writeByte", _wrap_ofSerial_writeByte, METH_VARARGS, NULL}, - { (char *)"ofSerial_readByte", _wrap_ofSerial_readByte, METH_VARARGS, NULL}, { (char *)"ofSerial_flush", _wrap_ofSerial_flush, METH_VARARGS, NULL}, - { (char *)"ofSerial_available", _wrap_ofSerial_available, METH_VARARGS, NULL}, { (char *)"ofSerial_drain", _wrap_ofSerial_drain, METH_VARARGS, NULL}, - { (char *)"ofSerial_isInitialized", _wrap_ofSerial_isInitialized, METH_VARARGS, NULL}, { (char *)"ofSerial_swigregister", ofSerial_swigregister, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_POINT_swigconstant", OF_LIGHT_POINT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_DIRECTIONAL_swigconstant", OF_LIGHT_DIRECTIONAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_SPOT_swigconstant", OF_LIGHT_SPOT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_AREA_swigconstant", OF_LIGHT_AREA_swigconstant, METH_VARARGS, NULL}, { (char *)"ofEnableLighting", _wrap_ofEnableLighting, METH_VARARGS, NULL}, { (char *)"ofDisableLighting", _wrap_ofDisableLighting, METH_VARARGS, NULL}, { (char *)"ofEnableSeparateSpecularLight", _wrap_ofEnableSeparateSpecularLight, METH_VARARGS, NULL}, @@ -55438,9 +64053,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofGetLightingEnabled", _wrap_ofGetLightingEnabled, METH_VARARGS, NULL}, { (char *)"ofSetSmoothLighting", _wrap_ofSetSmoothLighting, METH_VARARGS, NULL}, { (char *)"ofSetGlobalAmbientColor", _wrap_ofSetGlobalAmbientColor, METH_VARARGS, NULL}, + { (char *)"ofGetGlobalAmbientColor", _wrap_ofGetGlobalAmbientColor, METH_VARARGS, NULL}, { (char *)"new_ofLight", _wrap_new_ofLight, METH_VARARGS, NULL}, - { (char *)"delete_ofLight", _wrap_delete_ofLight, METH_VARARGS, NULL}, - { (char *)"ofLight_destroy", _wrap_ofLight_destroy, METH_VARARGS, NULL}, { (char *)"ofLight_setup", _wrap_ofLight_setup, METH_VARARGS, NULL}, { (char *)"ofLight_enable", _wrap_ofLight_enable, METH_VARARGS, NULL}, { (char *)"ofLight_disable", _wrap_ofLight_disable, METH_VARARGS, NULL}, @@ -55459,6 +64073,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofLight_getAttenuationConstant", _wrap_ofLight_getAttenuationConstant, METH_VARARGS, NULL}, { (char *)"ofLight_getAttenuationLinear", _wrap_ofLight_getAttenuationLinear, METH_VARARGS, NULL}, { (char *)"ofLight_getAttenuationQuadratic", _wrap_ofLight_getAttenuationQuadratic, METH_VARARGS, NULL}, + { (char *)"ofLight_setAreaLight", _wrap_ofLight_setAreaLight, METH_VARARGS, NULL}, + { (char *)"ofLight_getIsAreaLight", _wrap_ofLight_getIsAreaLight, METH_VARARGS, NULL}, { (char *)"ofLight_getType", _wrap_ofLight_getType, METH_VARARGS, NULL}, { (char *)"ofLight_setAmbientColor", _wrap_ofLight_setAmbientColor, METH_VARARGS, NULL}, { (char *)"ofLight_setDiffuseColor", _wrap_ofLight_setDiffuseColor, METH_VARARGS, NULL}, @@ -55467,7 +64083,9 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofLight_getDiffuseColor", _wrap_ofLight_getDiffuseColor, METH_VARARGS, NULL}, { (char *)"ofLight_getSpecularColor", _wrap_ofLight_getSpecularColor, METH_VARARGS, NULL}, { (char *)"ofLight_getLightID", _wrap_ofLight_getLightID, METH_VARARGS, NULL}, + { (char *)"delete_ofLight", _wrap_delete_ofLight, METH_VARARGS, NULL}, { (char *)"ofLight_swigregister", ofLight_swigregister, METH_VARARGS, NULL}, + { (char *)"ofLightsData", _wrap_ofLightsData, METH_VARARGS, NULL}, { (char *)"new_ofMaterial", _wrap_new_ofMaterial, METH_VARARGS, NULL}, { (char *)"delete_ofMaterial", _wrap_delete_ofMaterial, METH_VARARGS, NULL}, { (char *)"ofMaterial_setColors", _wrap_ofMaterial_setColors, METH_VARARGS, NULL}, @@ -55476,13 +64094,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofMaterial_setSpecularColor", _wrap_ofMaterial_setSpecularColor, METH_VARARGS, NULL}, { (char *)"ofMaterial_setEmissiveColor", _wrap_ofMaterial_setEmissiveColor, METH_VARARGS, NULL}, { (char *)"ofMaterial_setShininess", _wrap_ofMaterial_setShininess, METH_VARARGS, NULL}, - { (char *)"ofMaterial_getDiffuseColor", _wrap_ofMaterial_getDiffuseColor, METH_VARARGS, NULL}, - { (char *)"ofMaterial_getAmbientColor", _wrap_ofMaterial_getAmbientColor, METH_VARARGS, NULL}, - { (char *)"ofMaterial_getSpecularColor", _wrap_ofMaterial_getSpecularColor, METH_VARARGS, NULL}, - { (char *)"ofMaterial_getEmissiveColor", _wrap_ofMaterial_getEmissiveColor, METH_VARARGS, NULL}, - { (char *)"ofMaterial_getShininess", _wrap_ofMaterial_getShininess, METH_VARARGS, NULL}, - { (char *)"ofMaterial_begin", _wrap_ofMaterial_begin, METH_VARARGS, NULL}, - { (char *)"ofMaterial_end", _wrap_ofMaterial_end, METH_VARARGS, NULL}, + { (char *)"ofMaterial_getData", _wrap_ofMaterial_getData, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setData", _wrap_ofMaterial_setData, METH_VARARGS, NULL}, { (char *)"ofMaterial_swigregister", ofMaterial_swigregister, METH_VARARGS, NULL}, { (char *)"delete_ofShader", _wrap_delete_ofShader, METH_VARARGS, NULL}, { (char *)"new_ofShader", _wrap_new_ofShader, METH_VARARGS, NULL}, @@ -55512,7 +64125,10 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofShader_setUniform2fv", _wrap_ofShader_setUniform2fv, METH_VARARGS, NULL}, { (char *)"ofShader_setUniform3fv", _wrap_ofShader_setUniform3fv, METH_VARARGS, NULL}, { (char *)"ofShader_setUniform4fv", _wrap_ofShader_setUniform4fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniforms", _wrap_ofShader_setUniforms, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniformMatrix3f", _wrap_ofShader_setUniformMatrix3f, METH_VARARGS, NULL}, { (char *)"ofShader_setUniformMatrix4f", _wrap_ofShader_setUniformMatrix4f, METH_VARARGS, NULL}, + { (char *)"ofShader_getUniformLocation", _wrap_ofShader_getUniformLocation, METH_VARARGS, NULL}, { (char *)"ofShader_getAttributeLocation", _wrap_ofShader_getAttributeLocation, METH_VARARGS, NULL}, { (char *)"ofShader_setAttribute1s", _wrap_ofShader_setAttribute1s, METH_VARARGS, NULL}, { (char *)"ofShader_setAttribute2s", _wrap_ofShader_setAttribute2s, METH_VARARGS, NULL}, @@ -55552,6 +64168,19 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVbo_setNormalData", _wrap_ofVbo_setNormalData, METH_VARARGS, NULL}, { (char *)"ofVbo_setTexCoordData", _wrap_ofVbo_setTexCoordData, METH_VARARGS, NULL}, { (char *)"ofVbo_setAttributeData", _wrap_ofVbo_setAttributeData, METH_VARARGS, NULL}, + { (char *)"ofVbo_setAttributeDivisor", _wrap_ofVbo_setAttributeDivisor, METH_VARARGS, NULL}, + { (char *)"ofVbo_setVertexBuffer", _wrap_ofVbo_setVertexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setColorBuffer", _wrap_ofVbo_setColorBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setNormalBuffer", _wrap_ofVbo_setNormalBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setTexCoordBuffer", _wrap_ofVbo_setTexCoordBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setIndexBuffer", _wrap_ofVbo_setIndexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setAttributeBuffer", _wrap_ofVbo_setAttributeBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getVertexBuffer", _wrap_ofVbo_getVertexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getColorBuffer", _wrap_ofVbo_getColorBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getNormalBuffer", _wrap_ofVbo_getNormalBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getTexCoordBuffer", _wrap_ofVbo_getTexCoordBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getIndexBuffer", _wrap_ofVbo_getIndexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getAttributeBuffer", _wrap_ofVbo_getAttributeBuffer, METH_VARARGS, NULL}, { (char *)"ofVbo_updateMesh", _wrap_ofVbo_updateMesh, METH_VARARGS, NULL}, { (char *)"ofVbo_updateIndexData", _wrap_ofVbo_updateIndexData, METH_VARARGS, NULL}, { (char *)"ofVbo_updateVertexData", _wrap_ofVbo_updateVertexData, METH_VARARGS, NULL}, @@ -55567,11 +64196,13 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVbo_disableNormals", _wrap_ofVbo_disableNormals, METH_VARARGS, NULL}, { (char *)"ofVbo_disableTexCoords", _wrap_ofVbo_disableTexCoords, METH_VARARGS, NULL}, { (char *)"ofVbo_disableIndices", _wrap_ofVbo_disableIndices, METH_VARARGS, NULL}, + { (char *)"ofVbo_getVaoId", _wrap_ofVbo_getVaoId, METH_VARARGS, NULL}, { (char *)"ofVbo_getVertId", _wrap_ofVbo_getVertId, METH_VARARGS, NULL}, { (char *)"ofVbo_getColorId", _wrap_ofVbo_getColorId, METH_VARARGS, NULL}, { (char *)"ofVbo_getNormalId", _wrap_ofVbo_getNormalId, METH_VARARGS, NULL}, { (char *)"ofVbo_getTexCoordId", _wrap_ofVbo_getTexCoordId, METH_VARARGS, NULL}, { (char *)"ofVbo_getIndexId", _wrap_ofVbo_getIndexId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getAttributeId", _wrap_ofVbo_getAttributeId, METH_VARARGS, NULL}, { (char *)"ofVbo_getIsAllocated", _wrap_ofVbo_getIsAllocated, METH_VARARGS, NULL}, { (char *)"ofVbo_getUsingVerts", _wrap_ofVbo_getUsingVerts, METH_VARARGS, NULL}, { (char *)"ofVbo_getUsingColors", _wrap_ofVbo_getUsingColors, METH_VARARGS, NULL}, @@ -55590,26 +64221,28 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVbo_clearColors", _wrap_ofVbo_clearColors, METH_VARARGS, NULL}, { (char *)"ofVbo_clearTexCoords", _wrap_ofVbo_clearTexCoords, METH_VARARGS, NULL}, { (char *)"ofVbo_clearIndices", _wrap_ofVbo_clearIndices, METH_VARARGS, NULL}, + { (char *)"ofVbo_clearAttribute", _wrap_ofVbo_clearAttribute, METH_VARARGS, NULL}, { (char *)"ofVbo_getNumVertices", _wrap_ofVbo_getNumVertices, METH_VARARGS, NULL}, { (char *)"ofVbo_getNumIndices", _wrap_ofVbo_getNumIndices, METH_VARARGS, NULL}, - { (char *)"ofVbo_disableVAOs", _wrap_ofVbo_disableVAOs, METH_VARARGS, NULL}, - { (char *)"ofVbo_enableVAOs", _wrap_ofVbo_enableVAOs, METH_VARARGS, NULL}, + { (char *)"ofVbo_hasAttribute", _wrap_ofVbo_hasAttribute, METH_VARARGS, NULL}, { (char *)"ofVbo_swigregister", ofVbo_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofVboMesh", _wrap_new_ofVboMesh, METH_VARARGS, NULL}, + { (char *)"delete_ofVboMesh", _wrap_delete_ofVboMesh, METH_VARARGS, NULL}, { (char *)"ofVboMesh_setUsage", _wrap_ofVboMesh_setUsage, METH_VARARGS, NULL}, { (char *)"ofVboMesh_draw", _wrap_ofVboMesh_draw, METH_VARARGS, NULL}, { (char *)"ofVboMesh_drawInstanced", _wrap_ofVboMesh_drawInstanced, METH_VARARGS, NULL}, { (char *)"ofVboMesh_getVbo", _wrap_ofVboMesh_getVbo, METH_VARARGS, NULL}, - { (char *)"delete_ofVboMesh", _wrap_delete_ofVboMesh, METH_VARARGS, NULL}, { (char *)"ofVboMesh_swigregister", ofVboMesh_swigregister, METH_VARARGS, NULL}, + { (char *)"OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant", OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_INTERPOLATE_BILINEAR_swigconstant", OF_INTERPOLATE_BILINEAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_INTERPOLATE_BICUBIC_swigconstant", OF_INTERPOLATE_BICUBIC_swigconstant, METH_VARARGS, NULL}, { (char *)"delete_ofPixels", _wrap_delete_ofPixels, METH_VARARGS, NULL}, { (char *)"new_ofPixels", _wrap_new_ofPixels, METH_VARARGS, NULL}, { (char *)"ofPixels_allocate", _wrap_ofPixels_allocate, METH_VARARGS, NULL}, - { (char *)"ofPixels_allocatePixelFormat", _wrap_ofPixels_allocatePixelFormat, METH_VARARGS, NULL}, - { (char *)"ofPixels_allocateImageType", _wrap_ofPixels_allocateImageType, METH_VARARGS, NULL}, + { (char *)"ofPixels_isAllocated", _wrap_ofPixels_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofPixels_clear", _wrap_ofPixels_clear, METH_VARARGS, NULL}, { (char *)"ofPixels_set", _wrap_ofPixels_set, METH_VARARGS, NULL}, { (char *)"ofPixels_setFromPixels", _wrap_ofPixels_setFromPixels, METH_VARARGS, NULL}, - { (char *)"ofPixels_setFromPixelsImageType", _wrap_ofPixels_setFromPixelsImageType, METH_VARARGS, NULL}, { (char *)"ofPixels_setFromExternalPixels", _wrap_ofPixels_setFromExternalPixels, METH_VARARGS, NULL}, { (char *)"ofPixels_setFromAlignedPixels", _wrap_ofPixels_setFromAlignedPixels, METH_VARARGS, NULL}, { (char *)"ofPixels_swap", _wrap_ofPixels_swap, METH_VARARGS, NULL}, @@ -55622,36 +64255,50 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofPixels_resize", _wrap_ofPixels_resize, METH_VARARGS, NULL}, { (char *)"ofPixels_resizeTo", _wrap_ofPixels_resizeTo, METH_VARARGS, NULL}, { (char *)"ofPixels_pasteInto", _wrap_ofPixels_pasteInto, METH_VARARGS, NULL}, + { (char *)"ofPixels_blendInto", _wrap_ofPixels_blendInto, METH_VARARGS, NULL}, { (char *)"ofPixels_swapRgb", _wrap_ofPixels_swapRgb, METH_VARARGS, NULL}, - { (char *)"ofPixels_clear", _wrap_ofPixels_clear, METH_VARARGS, NULL}, + { (char *)"ofPixels_getData", _wrap_ofPixels_getData, METH_VARARGS, NULL}, { (char *)"ofPixels_getPixels", _wrap_ofPixels_getPixels, METH_VARARGS, NULL}, { (char *)"ofPixels_getPixelIndex", _wrap_ofPixels_getPixelIndex, METH_VARARGS, NULL}, { (char *)"ofPixels_getColor", _wrap_ofPixels_getColor, METH_VARARGS, NULL}, { (char *)"ofPixels_setColor", _wrap_ofPixels_setColor, METH_VARARGS, NULL}, { (char *)"ofPixels___getitem__", _wrap_ofPixels___getitem__, METH_VARARGS, NULL}, - { (char *)"ofPixels_isAllocated", _wrap_ofPixels_isAllocated, METH_VARARGS, NULL}, { (char *)"ofPixels_getWidth", _wrap_ofPixels_getWidth, METH_VARARGS, NULL}, { (char *)"ofPixels_getHeight", _wrap_ofPixels_getHeight, METH_VARARGS, NULL}, { (char *)"ofPixels_getBytesPerPixel", _wrap_ofPixels_getBytesPerPixel, METH_VARARGS, NULL}, { (char *)"ofPixels_getBitsPerPixel", _wrap_ofPixels_getBitsPerPixel, METH_VARARGS, NULL}, { (char *)"ofPixels_getBytesPerChannel", _wrap_ofPixels_getBytesPerChannel, METH_VARARGS, NULL}, { (char *)"ofPixels_getBitsPerChannel", _wrap_ofPixels_getBitsPerChannel, METH_VARARGS, NULL}, + { (char *)"ofPixels_getBytesStride", _wrap_ofPixels_getBytesStride, METH_VARARGS, NULL}, { (char *)"ofPixels_getNumChannels", _wrap_ofPixels_getNumChannels, METH_VARARGS, NULL}, + { (char *)"ofPixels_getTotalBytes", _wrap_ofPixels_getTotalBytes, METH_VARARGS, NULL}, + { (char *)"ofPixels_getNumPlanes", _wrap_ofPixels_getNumPlanes, METH_VARARGS, NULL}, + { (char *)"ofPixels_getPlane", _wrap_ofPixels_getPlane, METH_VARARGS, NULL}, { (char *)"ofPixels_getChannel", _wrap_ofPixels_getChannel, METH_VARARGS, NULL}, - { (char *)"ofPixels_setChannel", _wrap_ofPixels_setChannel, METH_VARARGS, NULL}, + { (char *)"ofPixels_getPixelFormat", _wrap_ofPixels_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofPixels_size", _wrap_ofPixels_size, METH_VARARGS, NULL}, { (char *)"ofPixels_getImageType", _wrap_ofPixels_getImageType, METH_VARARGS, NULL}, + { (char *)"ofPixels_setChannel", _wrap_ofPixels_setChannel, METH_VARARGS, NULL}, { (char *)"ofPixels_setImageType", _wrap_ofPixels_setImageType, METH_VARARGS, NULL}, { (char *)"ofPixels_setNumChannels", _wrap_ofPixels_setNumChannels, METH_VARARGS, NULL}, - { (char *)"ofPixels_size", _wrap_ofPixels_size, METH_VARARGS, NULL}, + { (char *)"ofPixels_pixelBitsFromPixelFormat", _wrap_ofPixels_pixelBitsFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofPixels_bytesFromPixelFormat", _wrap_ofPixels_bytesFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofPixels_begin", _wrap_ofPixels_begin, METH_VARARGS, NULL}, + { (char *)"ofPixels_end", _wrap_ofPixels_end, METH_VARARGS, NULL}, + { (char *)"ofPixels_rbegin", _wrap_ofPixels_rbegin, METH_VARARGS, NULL}, + { (char *)"ofPixels_rend", _wrap_ofPixels_rend, METH_VARARGS, NULL}, + { (char *)"ofPixels_getLine", _wrap_ofPixels_getLine, METH_VARARGS, NULL}, + { (char *)"ofPixels_getLines", _wrap_ofPixels_getLines, METH_VARARGS, NULL}, + { (char *)"ofPixels_getConstLine", _wrap_ofPixels_getConstLine, METH_VARARGS, NULL}, + { (char *)"ofPixels_getConstLines", _wrap_ofPixels_getConstLines, METH_VARARGS, NULL}, { (char *)"ofPixels_swigregister", ofPixels_swigregister, METH_VARARGS, NULL}, { (char *)"delete_ofFloatPixels", _wrap_delete_ofFloatPixels, METH_VARARGS, NULL}, { (char *)"new_ofFloatPixels", _wrap_new_ofFloatPixels, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_allocate", _wrap_ofFloatPixels_allocate, METH_VARARGS, NULL}, - { (char *)"ofFloatPixels_allocatePixelFormat", _wrap_ofFloatPixels_allocatePixelFormat, METH_VARARGS, NULL}, - { (char *)"ofFloatPixels_allocateImageType", _wrap_ofFloatPixels_allocateImageType, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_isAllocated", _wrap_ofFloatPixels_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_clear", _wrap_ofFloatPixels_clear, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_set", _wrap_ofFloatPixels_set, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_setFromPixels", _wrap_ofFloatPixels_setFromPixels, METH_VARARGS, NULL}, - { (char *)"ofFloatPixels_setFromPixelsImageType", _wrap_ofFloatPixels_setFromPixelsImageType, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_setFromExternalPixels", _wrap_ofFloatPixels_setFromExternalPixels, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_setFromAlignedPixels", _wrap_ofFloatPixels_setFromAlignedPixels, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_swap", _wrap_ofFloatPixels_swap, METH_VARARGS, NULL}, @@ -55664,36 +64311,50 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofFloatPixels_resize", _wrap_ofFloatPixels_resize, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_resizeTo", _wrap_ofFloatPixels_resizeTo, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_pasteInto", _wrap_ofFloatPixels_pasteInto, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_blendInto", _wrap_ofFloatPixels_blendInto, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_swapRgb", _wrap_ofFloatPixels_swapRgb, METH_VARARGS, NULL}, - { (char *)"ofFloatPixels_clear", _wrap_ofFloatPixels_clear, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getData", _wrap_ofFloatPixels_getData, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getPixels", _wrap_ofFloatPixels_getPixels, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getPixelIndex", _wrap_ofFloatPixels_getPixelIndex, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getColor", _wrap_ofFloatPixels_getColor, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_setColor", _wrap_ofFloatPixels_setColor, METH_VARARGS, NULL}, { (char *)"ofFloatPixels___getitem__", _wrap_ofFloatPixels___getitem__, METH_VARARGS, NULL}, - { (char *)"ofFloatPixels_isAllocated", _wrap_ofFloatPixels_isAllocated, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getWidth", _wrap_ofFloatPixels_getWidth, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getHeight", _wrap_ofFloatPixels_getHeight, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getBytesPerPixel", _wrap_ofFloatPixels_getBytesPerPixel, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getBitsPerPixel", _wrap_ofFloatPixels_getBitsPerPixel, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getBytesPerChannel", _wrap_ofFloatPixels_getBytesPerChannel, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getBitsPerChannel", _wrap_ofFloatPixels_getBitsPerChannel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getBytesStride", _wrap_ofFloatPixels_getBytesStride, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getNumChannels", _wrap_ofFloatPixels_getNumChannels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getTotalBytes", _wrap_ofFloatPixels_getTotalBytes, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getNumPlanes", _wrap_ofFloatPixels_getNumPlanes, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getPlane", _wrap_ofFloatPixels_getPlane, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getChannel", _wrap_ofFloatPixels_getChannel, METH_VARARGS, NULL}, - { (char *)"ofFloatPixels_setChannel", _wrap_ofFloatPixels_setChannel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getPixelFormat", _wrap_ofFloatPixels_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_size", _wrap_ofFloatPixels_size, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_getImageType", _wrap_ofFloatPixels_getImageType, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setChannel", _wrap_ofFloatPixels_setChannel, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_setImageType", _wrap_ofFloatPixels_setImageType, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_setNumChannels", _wrap_ofFloatPixels_setNumChannels, METH_VARARGS, NULL}, - { (char *)"ofFloatPixels_size", _wrap_ofFloatPixels_size, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_pixelBitsFromPixelFormat", _wrap_ofFloatPixels_pixelBitsFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_bytesFromPixelFormat", _wrap_ofFloatPixels_bytesFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_begin", _wrap_ofFloatPixels_begin, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_end", _wrap_ofFloatPixels_end, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_rbegin", _wrap_ofFloatPixels_rbegin, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_rend", _wrap_ofFloatPixels_rend, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getLine", _wrap_ofFloatPixels_getLine, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getLines", _wrap_ofFloatPixels_getLines, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getConstLine", _wrap_ofFloatPixels_getConstLine, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getConstLines", _wrap_ofFloatPixels_getConstLines, METH_VARARGS, NULL}, { (char *)"ofFloatPixels_swigregister", ofFloatPixels_swigregister, METH_VARARGS, NULL}, { (char *)"delete_ofShortPixels", _wrap_delete_ofShortPixels, METH_VARARGS, NULL}, { (char *)"new_ofShortPixels", _wrap_new_ofShortPixels, METH_VARARGS, NULL}, { (char *)"ofShortPixels_allocate", _wrap_ofShortPixels_allocate, METH_VARARGS, NULL}, - { (char *)"ofShortPixels_allocatePixelFormat", _wrap_ofShortPixels_allocatePixelFormat, METH_VARARGS, NULL}, - { (char *)"ofShortPixels_allocateImageType", _wrap_ofShortPixels_allocateImageType, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_isAllocated", _wrap_ofShortPixels_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_clear", _wrap_ofShortPixels_clear, METH_VARARGS, NULL}, { (char *)"ofShortPixels_set", _wrap_ofShortPixels_set, METH_VARARGS, NULL}, { (char *)"ofShortPixels_setFromPixels", _wrap_ofShortPixels_setFromPixels, METH_VARARGS, NULL}, - { (char *)"ofShortPixels_setFromPixelsImageType", _wrap_ofShortPixels_setFromPixelsImageType, METH_VARARGS, NULL}, { (char *)"ofShortPixels_setFromExternalPixels", _wrap_ofShortPixels_setFromExternalPixels, METH_VARARGS, NULL}, { (char *)"ofShortPixels_setFromAlignedPixels", _wrap_ofShortPixels_setFromAlignedPixels, METH_VARARGS, NULL}, { (char *)"ofShortPixels_swap", _wrap_ofShortPixels_swap, METH_VARARGS, NULL}, @@ -55706,27 +64367,42 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofShortPixels_resize", _wrap_ofShortPixels_resize, METH_VARARGS, NULL}, { (char *)"ofShortPixels_resizeTo", _wrap_ofShortPixels_resizeTo, METH_VARARGS, NULL}, { (char *)"ofShortPixels_pasteInto", _wrap_ofShortPixels_pasteInto, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_blendInto", _wrap_ofShortPixels_blendInto, METH_VARARGS, NULL}, { (char *)"ofShortPixels_swapRgb", _wrap_ofShortPixels_swapRgb, METH_VARARGS, NULL}, - { (char *)"ofShortPixels_clear", _wrap_ofShortPixels_clear, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getData", _wrap_ofShortPixels_getData, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getPixels", _wrap_ofShortPixels_getPixels, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getPixelIndex", _wrap_ofShortPixels_getPixelIndex, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getColor", _wrap_ofShortPixels_getColor, METH_VARARGS, NULL}, { (char *)"ofShortPixels_setColor", _wrap_ofShortPixels_setColor, METH_VARARGS, NULL}, { (char *)"ofShortPixels___getitem__", _wrap_ofShortPixels___getitem__, METH_VARARGS, NULL}, - { (char *)"ofShortPixels_isAllocated", _wrap_ofShortPixels_isAllocated, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getWidth", _wrap_ofShortPixels_getWidth, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getHeight", _wrap_ofShortPixels_getHeight, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getBytesPerPixel", _wrap_ofShortPixels_getBytesPerPixel, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getBitsPerPixel", _wrap_ofShortPixels_getBitsPerPixel, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getBytesPerChannel", _wrap_ofShortPixels_getBytesPerChannel, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getBitsPerChannel", _wrap_ofShortPixels_getBitsPerChannel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getBytesStride", _wrap_ofShortPixels_getBytesStride, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getNumChannels", _wrap_ofShortPixels_getNumChannels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getTotalBytes", _wrap_ofShortPixels_getTotalBytes, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getNumPlanes", _wrap_ofShortPixels_getNumPlanes, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getPlane", _wrap_ofShortPixels_getPlane, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getChannel", _wrap_ofShortPixels_getChannel, METH_VARARGS, NULL}, - { (char *)"ofShortPixels_setChannel", _wrap_ofShortPixels_setChannel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getPixelFormat", _wrap_ofShortPixels_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_size", _wrap_ofShortPixels_size, METH_VARARGS, NULL}, { (char *)"ofShortPixels_getImageType", _wrap_ofShortPixels_getImageType, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setChannel", _wrap_ofShortPixels_setChannel, METH_VARARGS, NULL}, { (char *)"ofShortPixels_setImageType", _wrap_ofShortPixels_setImageType, METH_VARARGS, NULL}, { (char *)"ofShortPixels_setNumChannels", _wrap_ofShortPixels_setNumChannels, METH_VARARGS, NULL}, - { (char *)"ofShortPixels_size", _wrap_ofShortPixels_size, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_pixelBitsFromPixelFormat", _wrap_ofShortPixels_pixelBitsFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_bytesFromPixelFormat", _wrap_ofShortPixels_bytesFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_begin", _wrap_ofShortPixels_begin, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_end", _wrap_ofShortPixels_end, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_rbegin", _wrap_ofShortPixels_rbegin, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_rend", _wrap_ofShortPixels_rend, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getLine", _wrap_ofShortPixels_getLine, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getLines", _wrap_ofShortPixels_getLines, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getConstLine", _wrap_ofShortPixels_getConstLine, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getConstLines", _wrap_ofShortPixels_getConstLines, METH_VARARGS, NULL}, { (char *)"ofShortPixels_swigregister", ofShortPixels_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofPath", _wrap_new_ofPath, METH_VARARGS, NULL}, { (char *)"ofPath_clear", _wrap_ofPath_clear, METH_VARARGS, NULL}, @@ -55745,6 +64421,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofPath_rectangle", _wrap_ofPath_rectangle, METH_VARARGS, NULL}, { (char *)"ofPath_rectRounded", _wrap_ofPath_rectRounded, METH_VARARGS, NULL}, { (char *)"ofPath_setPolyWindingMode", _wrap_ofPath_setPolyWindingMode, METH_VARARGS, NULL}, + { (char *)"ofPath_getWindingMode", _wrap_ofPath_getWindingMode, METH_VARARGS, NULL}, { (char *)"ofPath_setFilled", _wrap_ofPath_setFilled, METH_VARARGS, NULL}, { (char *)"ofPath_setStrokeWidth", _wrap_ofPath_setStrokeWidth, METH_VARARGS, NULL}, { (char *)"ofPath_setColor", _wrap_ofPath_setColor, METH_VARARGS, NULL}, @@ -55753,29 +64430,27 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofPath_setFillHexColor", _wrap_ofPath_setFillHexColor, METH_VARARGS, NULL}, { (char *)"ofPath_setStrokeColor", _wrap_ofPath_setStrokeColor, METH_VARARGS, NULL}, { (char *)"ofPath_setStrokeHexColor", _wrap_ofPath_setStrokeHexColor, METH_VARARGS, NULL}, - { (char *)"ofPath_getWindingMode", _wrap_ofPath_getWindingMode, METH_VARARGS, NULL}, { (char *)"ofPath_isFilled", _wrap_ofPath_isFilled, METH_VARARGS, NULL}, { (char *)"ofPath_getFillColor", _wrap_ofPath_getFillColor, METH_VARARGS, NULL}, { (char *)"ofPath_getStrokeColor", _wrap_ofPath_getStrokeColor, METH_VARARGS, NULL}, { (char *)"ofPath_getStrokeWidth", _wrap_ofPath_getStrokeWidth, METH_VARARGS, NULL}, { (char *)"ofPath_hasOutline", _wrap_ofPath_hasOutline, METH_VARARGS, NULL}, - { (char *)"ofPath_draw", _wrap_ofPath_draw, METH_VARARGS, NULL}, - { (char *)"ofPath_getOutline", _wrap_ofPath_getOutline, METH_VARARGS, NULL}, - { (char *)"ofPath_getTessellation", _wrap_ofPath_getTessellation, METH_VARARGS, NULL}, - { (char *)"ofPath_simplify", _wrap_ofPath_simplify, METH_VARARGS, NULL}, - { (char *)"ofPath_flagShapeChanged", _wrap_ofPath_flagShapeChanged, METH_VARARGS, NULL}, - { (char *)"ofPath_hasChanged", _wrap_ofPath_hasChanged, METH_VARARGS, NULL}, - { (char *)"ofPath_setMode", _wrap_ofPath_setMode, METH_VARARGS, NULL}, - { (char *)"ofPath_getMode", _wrap_ofPath_getMode, METH_VARARGS, NULL}, { (char *)"ofPath_setCurveResolution", _wrap_ofPath_setCurveResolution, METH_VARARGS, NULL}, { (char *)"ofPath_setCircleResolution", _wrap_ofPath_setCircleResolution, METH_VARARGS, NULL}, { (char *)"ofPath_getCircleResolution", _wrap_ofPath_getCircleResolution, METH_VARARGS, NULL}, { (char *)"ofPath_setUseShapeColor", _wrap_ofPath_setUseShapeColor, METH_VARARGS, NULL}, { (char *)"ofPath_getUseShapeColor", _wrap_ofPath_getUseShapeColor, METH_VARARGS, NULL}, + { (char *)"ofPath_draw", _wrap_ofPath_draw, METH_VARARGS, NULL}, + { (char *)"ofPath_getOutline", _wrap_ofPath_getOutline, METH_VARARGS, NULL}, { (char *)"ofPath_tessellate", _wrap_ofPath_tessellate, METH_VARARGS, NULL}, + { (char *)"ofPath_getTessellation", _wrap_ofPath_getTessellation, METH_VARARGS, NULL}, + { (char *)"ofPath_simplify", _wrap_ofPath_simplify, METH_VARARGS, NULL}, { (char *)"ofPath_translate", _wrap_ofPath_translate, METH_VARARGS, NULL}, { (char *)"ofPath_rotate", _wrap_ofPath_rotate, METH_VARARGS, NULL}, { (char *)"ofPath_scale", _wrap_ofPath_scale, METH_VARARGS, NULL}, + { (char *)"ofPath_append", _wrap_ofPath_append, METH_VARARGS, NULL}, + { (char *)"ofPath_setMode", _wrap_ofPath_setMode, METH_VARARGS, NULL}, + { (char *)"ofPath_getMode", _wrap_ofPath_getMode, METH_VARARGS, NULL}, { (char *)"ofPath_getCommands", _wrap_ofPath_getCommands, METH_VARARGS, NULL}, { (char *)"delete_ofPath", _wrap_delete_ofPath, METH_VARARGS, NULL}, { (char *)"ofPath_swigregister", ofPath_swigregister, METH_VARARGS, NULL}, @@ -55784,8 +64459,16 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofPolyline_clear", _wrap_ofPolyline_clear, METH_VARARGS, NULL}, { (char *)"ofPolyline_addVertex", _wrap_ofPolyline_addVertex, METH_VARARGS, NULL}, { (char *)"ofPolyline_addVertices", _wrap_ofPolyline_addVertices, METH_VARARGS, NULL}, - { (char *)"ofPolyline_lineTo", _wrap_ofPolyline_lineTo, METH_VARARGS, NULL}, { (char *)"ofPolyline_insertVertex", _wrap_ofPolyline_insertVertex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_resize", _wrap_ofPolyline_resize, METH_VARARGS, NULL}, + { (char *)"ofPolyline_size", _wrap_ofPolyline_size, METH_VARARGS, NULL}, + { (char *)"ofPolyline___getitem__", _wrap_ofPolyline___getitem__, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getVertices", _wrap_ofPolyline_getVertices, METH_VARARGS, NULL}, + { (char *)"ofPolyline_begin", _wrap_ofPolyline_begin, METH_VARARGS, NULL}, + { (char *)"ofPolyline_rbegin", _wrap_ofPolyline_rbegin, METH_VARARGS, NULL}, + { (char *)"ofPolyline_end", _wrap_ofPolyline_end, METH_VARARGS, NULL}, + { (char *)"ofPolyline_rend", _wrap_ofPolyline_rend, METH_VARARGS, NULL}, + { (char *)"ofPolyline_lineTo", _wrap_ofPolyline_lineTo, METH_VARARGS, NULL}, { (char *)"ofPolyline_arc", _wrap_ofPolyline_arc, METH_VARARGS, NULL}, { (char *)"ofPolyline_arcNegative", _wrap_ofPolyline_arcNegative, METH_VARARGS, NULL}, { (char *)"ofPolyline_curveTo", _wrap_ofPolyline_curveTo, METH_VARARGS, NULL}, @@ -55794,25 +64477,18 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofPolyline_getSmoothed", _wrap_ofPolyline_getSmoothed, METH_VARARGS, NULL}, { (char *)"ofPolyline_getResampledBySpacing", _wrap_ofPolyline_getResampledBySpacing, METH_VARARGS, NULL}, { (char *)"ofPolyline_getResampledByCount", _wrap_ofPolyline_getResampledByCount, METH_VARARGS, NULL}, - { (char *)"ofPolyline_getBoundingBox", _wrap_ofPolyline_getBoundingBox, METH_VARARGS, NULL}, - { (char *)"ofPolyline_getClosestPoint", _wrap_ofPolyline_getClosestPoint, METH_VARARGS, NULL}, - { (char *)"ofPolyline_inside", _wrap_ofPolyline_inside, METH_VARARGS, NULL}, { (char *)"ofPolyline_simplify", _wrap_ofPolyline_simplify, METH_VARARGS, NULL}, - { (char *)"ofPolyline_size", _wrap_ofPolyline_size, METH_VARARGS, NULL}, - { (char *)"ofPolyline___getitem__", _wrap_ofPolyline___getitem__, METH_VARARGS, NULL}, - { (char *)"ofPolyline_resize", _wrap_ofPolyline_resize, METH_VARARGS, NULL}, + { (char *)"ofPolyline_close", _wrap_ofPolyline_close, METH_VARARGS, NULL}, { (char *)"ofPolyline_setClosed", _wrap_ofPolyline_setClosed, METH_VARARGS, NULL}, { (char *)"ofPolyline_isClosed", _wrap_ofPolyline_isClosed, METH_VARARGS, NULL}, - { (char *)"ofPolyline_close", _wrap_ofPolyline_close, METH_VARARGS, NULL}, { (char *)"ofPolyline_hasChanged", _wrap_ofPolyline_hasChanged, METH_VARARGS, NULL}, { (char *)"ofPolyline_flagHasChanged", _wrap_ofPolyline_flagHasChanged, METH_VARARGS, NULL}, - { (char *)"ofPolyline_getVertices", _wrap_ofPolyline_getVertices, METH_VARARGS, NULL}, + { (char *)"ofPolyline_inside", _wrap_ofPolyline_inside, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getBoundingBox", _wrap_ofPolyline_getBoundingBox, METH_VARARGS, NULL}, { (char *)"ofPolyline_getPerimeter", _wrap_ofPolyline_getPerimeter, METH_VARARGS, NULL}, { (char *)"ofPolyline_getArea", _wrap_ofPolyline_getArea, METH_VARARGS, NULL}, { (char *)"ofPolyline_getCentroid2D", _wrap_ofPolyline_getCentroid2D, METH_VARARGS, NULL}, - { (char *)"ofPolyline_draw", _wrap_ofPolyline_draw, METH_VARARGS, NULL}, - { (char *)"ofPolyline_setRightVector", _wrap_ofPolyline_setRightVector, METH_VARARGS, NULL}, - { (char *)"ofPolyline_getRightVector", _wrap_ofPolyline_getRightVector, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getClosestPoint", _wrap_ofPolyline_getClosestPoint, METH_VARARGS, NULL}, { (char *)"ofPolyline_getIndexAtLength", _wrap_ofPolyline_getIndexAtLength, METH_VARARGS, NULL}, { (char *)"ofPolyline_getIndexAtPercent", _wrap_ofPolyline_getIndexAtPercent, METH_VARARGS, NULL}, { (char *)"ofPolyline_getLengthAtIndex", _wrap_ofPolyline_getLengthAtIndex, METH_VARARGS, NULL}, @@ -55829,66 +64505,18 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofPolyline_getNormalAtIndex", _wrap_ofPolyline_getNormalAtIndex, METH_VARARGS, NULL}, { (char *)"ofPolyline_getNormalAtIndexInterpolated", _wrap_ofPolyline_getNormalAtIndexInterpolated, METH_VARARGS, NULL}, { (char *)"ofPolyline_getWrappedIndex", _wrap_ofPolyline_getWrappedIndex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_setRightVector", _wrap_ofPolyline_setRightVector, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getRightVector", _wrap_ofPolyline_getRightVector, METH_VARARGS, NULL}, + { (char *)"ofPolyline_draw", _wrap_ofPolyline_draw, METH_VARARGS, NULL}, { (char *)"delete_ofPolyline", _wrap_delete_ofPolyline, METH_VARARGS, NULL}, { (char *)"ofPolyline_swigregister", ofPolyline_swigregister, METH_VARARGS, NULL}, - { (char *)"ofBeginSaveScreenAsPDF", _wrap_ofBeginSaveScreenAsPDF, METH_VARARGS, NULL}, - { (char *)"ofEndSaveScreenAsPDF", _wrap_ofEndSaveScreenAsPDF, METH_VARARGS, NULL}, - { (char *)"ofPushView", _wrap_ofPushView, METH_VARARGS, NULL}, - { (char *)"ofPopView", _wrap_ofPopView, METH_VARARGS, NULL}, - { (char *)"ofViewport", _wrap_ofViewport, METH_VARARGS, NULL}, - { (char *)"ofSetupScreenPerspective", _wrap_ofSetupScreenPerspective, METH_VARARGS, NULL}, - { (char *)"ofSetupScreenOrtho", _wrap_ofSetupScreenOrtho, METH_VARARGS, NULL}, - { (char *)"ofGetCurrentViewport", _wrap_ofGetCurrentViewport, METH_VARARGS, NULL}, - { (char *)"ofGetNativeViewport", _wrap_ofGetNativeViewport, METH_VARARGS, NULL}, - { (char *)"ofGetViewportWidth", _wrap_ofGetViewportWidth, METH_VARARGS, NULL}, - { (char *)"ofGetViewportHeight", _wrap_ofGetViewportHeight, METH_VARARGS, NULL}, - { (char *)"ofOrientationToDegrees", _wrap_ofOrientationToDegrees, METH_VARARGS, NULL}, - { (char *)"ofSetCoordHandedness", _wrap_ofSetCoordHandedness, METH_VARARGS, NULL}, - { (char *)"ofGetCoordHandedness", _wrap_ofGetCoordHandedness, METH_VARARGS, NULL}, - { (char *)"ofPushMatrix", _wrap_ofPushMatrix, METH_VARARGS, NULL}, - { (char *)"ofPopMatrix", _wrap_ofPopMatrix, METH_VARARGS, NULL}, - { (char *)"ofGetCurrentMatrix", _wrap_ofGetCurrentMatrix, METH_VARARGS, NULL}, - { (char *)"ofGetCurrentOrientationMatrix", _wrap_ofGetCurrentOrientationMatrix, METH_VARARGS, NULL}, - { (char *)"ofTranslate", _wrap_ofTranslate, METH_VARARGS, NULL}, - { (char *)"ofScale", _wrap_ofScale, METH_VARARGS, NULL}, - { (char *)"ofRotateX", _wrap_ofRotateX, METH_VARARGS, NULL}, - { (char *)"ofRotateY", _wrap_ofRotateY, METH_VARARGS, NULL}, - { (char *)"ofRotateZ", _wrap_ofRotateZ, METH_VARARGS, NULL}, - { (char *)"ofRotate", _wrap_ofRotate, METH_VARARGS, NULL}, - { (char *)"ofLoadIdentityMatrix", _wrap_ofLoadIdentityMatrix, METH_VARARGS, NULL}, - { (char *)"ofLoadMatrix", _wrap_ofLoadMatrix, METH_VARARGS, NULL}, - { (char *)"ofMultMatrix", _wrap_ofMultMatrix, METH_VARARGS, NULL}, - { (char *)"ofSetMatrixMode", _wrap_ofSetMatrixMode, METH_VARARGS, NULL}, - { (char *)"ofSetupGraphicDefaults", _wrap_ofSetupGraphicDefaults, METH_VARARGS, NULL}, - { (char *)"ofSetupScreen", _wrap_ofSetupScreen, METH_VARARGS, NULL}, - { (char *)"ofGetRectMode", _wrap_ofGetRectMode, METH_VARARGS, NULL}, - { (char *)"ofSetCircleResolution", _wrap_ofSetCircleResolution, METH_VARARGS, NULL}, - { (char *)"ofSetCurveResolution", _wrap_ofSetCurveResolution, METH_VARARGS, NULL}, + { (char *)"CIRC_RESOLUTION_swigconstant", CIRC_RESOLUTION_swigconstant, METH_VARARGS, NULL}, + { (char *)"ofSetColor", _wrap_ofSetColor, METH_VARARGS, NULL}, + { (char *)"ofSetHexColor", _wrap_ofSetHexColor, METH_VARARGS, NULL}, { (char *)"ofNoFill", _wrap_ofNoFill, METH_VARARGS, NULL}, { (char *)"ofFill", _wrap_ofFill, METH_VARARGS, NULL}, { (char *)"ofGetFill", _wrap_ofGetFill, METH_VARARGS, NULL}, - { (char *)"ofSetLineWidth", _wrap_ofSetLineWidth, METH_VARARGS, NULL}, - { (char *)"ofSetDepthTest", _wrap_ofSetDepthTest, METH_VARARGS, NULL}, - { (char *)"ofEnableDepthTest", _wrap_ofEnableDepthTest, METH_VARARGS, NULL}, - { (char *)"ofDisableDepthTest", _wrap_ofDisableDepthTest, METH_VARARGS, NULL}, - { (char *)"ofSetColor", _wrap_ofSetColor, METH_VARARGS, NULL}, - { (char *)"ofSetHexColor", _wrap_ofSetHexColor, METH_VARARGS, NULL}, - { (char *)"ofEnableBlendMode", _wrap_ofEnableBlendMode, METH_VARARGS, NULL}, - { (char *)"ofDisableBlendMode", _wrap_ofDisableBlendMode, METH_VARARGS, NULL}, - { (char *)"ofEnablePointSprites", _wrap_ofEnablePointSprites, METH_VARARGS, NULL}, - { (char *)"ofDisablePointSprites", _wrap_ofDisablePointSprites, METH_VARARGS, NULL}, - { (char *)"ofEnableAlphaBlending", _wrap_ofEnableAlphaBlending, METH_VARARGS, NULL}, - { (char *)"ofDisableAlphaBlending", _wrap_ofDisableAlphaBlending, METH_VARARGS, NULL}, - { (char *)"ofEnableSmoothing", _wrap_ofEnableSmoothing, METH_VARARGS, NULL}, - { (char *)"ofDisableSmoothing", _wrap_ofDisableSmoothing, METH_VARARGS, NULL}, - { (char *)"ofEnableAntiAliasing", _wrap_ofEnableAntiAliasing, METH_VARARGS, NULL}, - { (char *)"ofDisableAntiAliasing", _wrap_ofDisableAntiAliasing, METH_VARARGS, NULL}, - { (char *)"ofGetStyle", _wrap_ofGetStyle, METH_VARARGS, NULL}, - { (char *)"ofSetStyle", _wrap_ofSetStyle, METH_VARARGS, NULL}, - { (char *)"ofPushStyle", _wrap_ofPushStyle, METH_VARARGS, NULL}, - { (char *)"ofPopStyle", _wrap_ofPopStyle, METH_VARARGS, NULL}, - { (char *)"ofSetPolyMode", _wrap_ofSetPolyMode, METH_VARARGS, NULL}, - { (char *)"ofSetRectMode", _wrap_ofSetRectMode, METH_VARARGS, NULL}, + { (char *)"ofGetBackgroundColor", _wrap_ofGetBackgroundColor, METH_VARARGS, NULL}, { (char *)"ofGetBackground", _wrap_ofGetBackground, METH_VARARGS, NULL}, { (char *)"ofBackground", _wrap_ofBackground, METH_VARARGS, NULL}, { (char *)"ofBackgroundHex", _wrap_ofBackgroundHex, METH_VARARGS, NULL}, @@ -55896,8 +64524,17 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofSetBackgroundColor", _wrap_ofSetBackgroundColor, METH_VARARGS, NULL}, { (char *)"ofSetBackgroundColorHex", _wrap_ofSetBackgroundColorHex, METH_VARARGS, NULL}, { (char *)"ofSetBackgroundAuto", _wrap_ofSetBackgroundAuto, METH_VARARGS, NULL}, + { (char *)"ofGetBackgroundAuto", _wrap_ofGetBackgroundAuto, METH_VARARGS, NULL}, { (char *)"ofClear", _wrap_ofClear, METH_VARARGS, NULL}, { (char *)"ofClearAlpha", _wrap_ofClearAlpha, METH_VARARGS, NULL}, + { (char *)"ofDrawTriangle", _wrap_ofDrawTriangle, METH_VARARGS, NULL}, + { (char *)"ofDrawCircle", _wrap_ofDrawCircle, METH_VARARGS, NULL}, + { (char *)"ofDrawEllipse", _wrap_ofDrawEllipse, METH_VARARGS, NULL}, + { (char *)"ofDrawLine", _wrap_ofDrawLine, METH_VARARGS, NULL}, + { (char *)"ofDrawRectangle", _wrap_ofDrawRectangle, METH_VARARGS, NULL}, + { (char *)"ofDrawRectRounded", _wrap_ofDrawRectRounded, METH_VARARGS, NULL}, + { (char *)"ofDrawCurve", _wrap_ofDrawCurve, METH_VARARGS, NULL}, + { (char *)"ofDrawBezier", _wrap_ofDrawBezier, METH_VARARGS, NULL}, { (char *)"ofTriangle", _wrap_ofTriangle, METH_VARARGS, NULL}, { (char *)"ofCircle", _wrap_ofCircle, METH_VARARGS, NULL}, { (char *)"ofEllipse", _wrap_ofEllipse, METH_VARARGS, NULL}, @@ -55915,8 +64552,66 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofEndShape", _wrap_ofEndShape, METH_VARARGS, NULL}, { (char *)"ofNextContour", _wrap_ofNextContour, METH_VARARGS, NULL}, { (char *)"ofSetDrawBitmapMode", _wrap_ofSetDrawBitmapMode, METH_VARARGS, NULL}, - { (char *)"ofDrawBitmapString", _wrap_ofDrawBitmapString, METH_VARARGS, NULL}, { (char *)"ofDrawBitmapStringHighlight", _wrap_ofDrawBitmapStringHighlight, METH_VARARGS, NULL}, + { (char *)"ofSetupGraphicDefaults", _wrap_ofSetupGraphicDefaults, METH_VARARGS, NULL}, + { (char *)"ofSetupScreen", _wrap_ofSetupScreen, METH_VARARGS, NULL}, + { (char *)"ofGetRectMode", _wrap_ofGetRectMode, METH_VARARGS, NULL}, + { (char *)"ofSetCircleResolution", _wrap_ofSetCircleResolution, METH_VARARGS, NULL}, + { (char *)"ofSetCurveResolution", _wrap_ofSetCurveResolution, METH_VARARGS, NULL}, + { (char *)"ofSetLineWidth", _wrap_ofSetLineWidth, METH_VARARGS, NULL}, + { (char *)"ofSetDepthTest", _wrap_ofSetDepthTest, METH_VARARGS, NULL}, + { (char *)"ofEnableDepthTest", _wrap_ofEnableDepthTest, METH_VARARGS, NULL}, + { (char *)"ofDisableDepthTest", _wrap_ofDisableDepthTest, METH_VARARGS, NULL}, + { (char *)"ofEnableBlendMode", _wrap_ofEnableBlendMode, METH_VARARGS, NULL}, + { (char *)"ofDisableBlendMode", _wrap_ofDisableBlendMode, METH_VARARGS, NULL}, + { (char *)"ofEnablePointSprites", _wrap_ofEnablePointSprites, METH_VARARGS, NULL}, + { (char *)"ofDisablePointSprites", _wrap_ofDisablePointSprites, METH_VARARGS, NULL}, + { (char *)"ofEnableAlphaBlending", _wrap_ofEnableAlphaBlending, METH_VARARGS, NULL}, + { (char *)"ofDisableAlphaBlending", _wrap_ofDisableAlphaBlending, METH_VARARGS, NULL}, + { (char *)"ofEnableSmoothing", _wrap_ofEnableSmoothing, METH_VARARGS, NULL}, + { (char *)"ofDisableSmoothing", _wrap_ofDisableSmoothing, METH_VARARGS, NULL}, + { (char *)"ofEnableAntiAliasing", _wrap_ofEnableAntiAliasing, METH_VARARGS, NULL}, + { (char *)"ofDisableAntiAliasing", _wrap_ofDisableAntiAliasing, METH_VARARGS, NULL}, + { (char *)"ofGetStyle", _wrap_ofGetStyle, METH_VARARGS, NULL}, + { (char *)"ofSetStyle", _wrap_ofSetStyle, METH_VARARGS, NULL}, + { (char *)"ofPushStyle", _wrap_ofPushStyle, METH_VARARGS, NULL}, + { (char *)"ofPopStyle", _wrap_ofPopStyle, METH_VARARGS, NULL}, + { (char *)"ofSetPolyMode", _wrap_ofSetPolyMode, METH_VARARGS, NULL}, + { (char *)"ofSetRectMode", _wrap_ofSetRectMode, METH_VARARGS, NULL}, + { (char *)"ofPushMatrix", _wrap_ofPushMatrix, METH_VARARGS, NULL}, + { (char *)"ofPopMatrix", _wrap_ofPopMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentMatrix", _wrap_ofGetCurrentMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentOrientationMatrix", _wrap_ofGetCurrentOrientationMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentNormalMatrix", _wrap_ofGetCurrentNormalMatrix, METH_VARARGS, NULL}, + { (char *)"ofTranslate", _wrap_ofTranslate, METH_VARARGS, NULL}, + { (char *)"ofScale", _wrap_ofScale, METH_VARARGS, NULL}, + { (char *)"ofRotate", _wrap_ofRotate, METH_VARARGS, NULL}, + { (char *)"ofRotateX", _wrap_ofRotateX, METH_VARARGS, NULL}, + { (char *)"ofRotateY", _wrap_ofRotateY, METH_VARARGS, NULL}, + { (char *)"ofRotateZ", _wrap_ofRotateZ, METH_VARARGS, NULL}, + { (char *)"ofLoadIdentityMatrix", _wrap_ofLoadIdentityMatrix, METH_VARARGS, NULL}, + { (char *)"ofLoadMatrix", _wrap_ofLoadMatrix, METH_VARARGS, NULL}, + { (char *)"ofMultMatrix", _wrap_ofMultMatrix, METH_VARARGS, NULL}, + { (char *)"ofSetMatrixMode", _wrap_ofSetMatrixMode, METH_VARARGS, NULL}, + { (char *)"ofLoadViewMatrix", _wrap_ofLoadViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMultViewMatrix", _wrap_ofMultViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentViewMatrix", _wrap_ofGetCurrentViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofPushView", _wrap_ofPushView, METH_VARARGS, NULL}, + { (char *)"ofPopView", _wrap_ofPopView, METH_VARARGS, NULL}, + { (char *)"ofViewport", _wrap_ofViewport, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentViewport", _wrap_ofGetCurrentViewport, METH_VARARGS, NULL}, + { (char *)"ofGetNativeViewport", _wrap_ofGetNativeViewport, METH_VARARGS, NULL}, + { (char *)"ofGetViewportWidth", _wrap_ofGetViewportWidth, METH_VARARGS, NULL}, + { (char *)"ofGetViewportHeight", _wrap_ofGetViewportHeight, METH_VARARGS, NULL}, + { (char *)"ofSetupScreenPerspective", _wrap_ofSetupScreenPerspective, METH_VARARGS, NULL}, + { (char *)"ofSetupScreenOrtho", _wrap_ofSetupScreenOrtho, METH_VARARGS, NULL}, + { (char *)"ofOrientationToDegrees", _wrap_ofOrientationToDegrees, METH_VARARGS, NULL}, + { (char *)"ofSetCoordHandedness", _wrap_ofSetCoordHandedness, METH_VARARGS, NULL}, + { (char *)"ofGetCoordHandedness", _wrap_ofGetCoordHandedness, METH_VARARGS, NULL}, + { (char *)"ofBeginSaveScreenAsPDF", _wrap_ofBeginSaveScreenAsPDF, METH_VARARGS, NULL}, + { (char *)"ofEndSaveScreenAsPDF", _wrap_ofEndSaveScreenAsPDF, METH_VARARGS, NULL}, + { (char *)"ofBeginSaveScreenAsSVG", _wrap_ofBeginSaveScreenAsSVG, METH_VARARGS, NULL}, + { (char *)"ofEndSaveScreenAsSVG", _wrap_ofEndSaveScreenAsSVG, METH_VARARGS, NULL}, { (char *)"ofSetPlaneResolution", _wrap_ofSetPlaneResolution, METH_VARARGS, NULL}, { (char *)"ofGetPlaneResolution", _wrap_ofGetPlaneResolution, METH_VARARGS, NULL}, { (char *)"ofDrawPlane", _wrap_ofDrawPlane, METH_VARARGS, NULL}, @@ -55935,16 +64630,46 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofSetBoxResolution", _wrap_ofSetBoxResolution, METH_VARARGS, NULL}, { (char *)"ofGetBoxResolution", _wrap_ofGetBoxResolution, METH_VARARGS, NULL}, { (char *)"ofDrawBox", _wrap_ofDrawBox, METH_VARARGS, NULL}, + { (char *)"new_of3dGraphics", _wrap_new_of3dGraphics, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setPlaneResolution", _wrap_of3dGraphics_setPlaneResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getPlaneResolution", _wrap_of3dGraphics_getPlaneResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawPlane", _wrap_of3dGraphics_drawPlane, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setSphereResolution", _wrap_of3dGraphics_setSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getSphereResolution", _wrap_of3dGraphics_getSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawSphere", _wrap_of3dGraphics_drawSphere, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setIcoSphereResolution", _wrap_of3dGraphics_setIcoSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getIcoSphereResolution", _wrap_of3dGraphics_getIcoSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawIcoSphere", _wrap_of3dGraphics_drawIcoSphere, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setCylinderResolution", _wrap_of3dGraphics_setCylinderResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getCylinderResolution", _wrap_of3dGraphics_getCylinderResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawCylinder", _wrap_of3dGraphics_drawCylinder, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setConeResolution", _wrap_of3dGraphics_setConeResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getConeResolution", _wrap_of3dGraphics_getConeResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawCone", _wrap_of3dGraphics_drawCone, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setBoxResolution", _wrap_of3dGraphics_setBoxResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getBoxResolution", _wrap_of3dGraphics_getBoxResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawBox", _wrap_of3dGraphics_drawBox, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawAxis", _wrap_of3dGraphics_drawAxis, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawGrid", _wrap_of3dGraphics_drawGrid, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawGridPlane", _wrap_of3dGraphics_drawGridPlane, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawArrow", _wrap_of3dGraphics_drawArrow, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawRotationAxes", _wrap_of3dGraphics_drawRotationAxes, METH_VARARGS, NULL}, + { (char *)"delete_of3dGraphics", _wrap_delete_of3dGraphics, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_swigregister", of3dGraphics_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofTrueTypeFont", _wrap_new_ofTrueTypeFont, METH_VARARGS, NULL}, { (char *)"delete_ofTrueTypeFont", _wrap_delete_ofTrueTypeFont, METH_VARARGS, NULL}, - { (char *)"ofTrueTypeFont_setGlobalDpi", _wrap_ofTrueTypeFont_setGlobalDpi, METH_VARARGS, NULL}, - { (char *)"ofTrueTypeFont_loadFont", _wrap_ofTrueTypeFont_loadFont, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_load", _wrap_ofTrueTypeFont_load, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_isLoaded", _wrap_ofTrueTypeFont_isLoaded, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_setGlobalDpi", _wrap_ofTrueTypeFont_setGlobalDpi, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_isAntiAliased", _wrap_ofTrueTypeFont_isAntiAliased, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_hasFullCharacterSet", _wrap_ofTrueTypeFont_hasFullCharacterSet, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getNumCharacters", _wrap_ofTrueTypeFont_getNumCharacters, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getSize", _wrap_ofTrueTypeFont_getSize, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getLineHeight", _wrap_ofTrueTypeFont_getLineHeight, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_setLineHeight", _wrap_ofTrueTypeFont_setLineHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getAscenderHeight", _wrap_ofTrueTypeFont_getAscenderHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getDescenderHeight", _wrap_ofTrueTypeFont_getDescenderHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getGlyphBBox", _wrap_ofTrueTypeFont_getGlyphBBox, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getLetterSpacing", _wrap_ofTrueTypeFont_getLetterSpacing, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_setLetterSpacing", _wrap_ofTrueTypeFont_setLetterSpacing, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getSpaceSize", _wrap_ofTrueTypeFont_getSpaceSize, METH_VARARGS, NULL}, @@ -55954,15 +64679,10 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofTrueTypeFont_getStringBoundingBox", _wrap_ofTrueTypeFont_getStringBoundingBox, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_drawString", _wrap_ofTrueTypeFont_drawString, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_drawStringAsShapes", _wrap_ofTrueTypeFont_drawStringAsShapes, METH_VARARGS, NULL}, - { (char *)"ofTrueTypeFont_getNumCharacters", _wrap_ofTrueTypeFont_getNumCharacters, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getCharacterAsPoints", _wrap_ofTrueTypeFont_getCharacterAsPoints, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getStringAsPoints", _wrap_ofTrueTypeFont_getStringAsPoints, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getStringMesh", _wrap_ofTrueTypeFont_getStringMesh, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_getFontTexture", _wrap_ofTrueTypeFont_getFontTexture, METH_VARARGS, NULL}, - { (char *)"ofTrueTypeFont_bind", _wrap_ofTrueTypeFont_bind, METH_VARARGS, NULL}, - { (char *)"ofTrueTypeFont_unbind", _wrap_ofTrueTypeFont_unbind, METH_VARARGS, NULL}, - { (char *)"ofTrueTypeFont_getEncoding", _wrap_ofTrueTypeFont_getEncoding, METH_VARARGS, NULL}, - { (char *)"ofTrueTypeFont_setEncoding", _wrap_ofTrueTypeFont_setEncoding, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_lineHeight_set", _wrap_ofTrueTypeFont_lineHeight_set, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_lineHeight_get", _wrap_ofTrueTypeFont_lineHeight_get, METH_VARARGS, NULL}, { (char *)"ofTrueTypeFont_letterSpacing_set", _wrap_ofTrueTypeFont_letterSpacing_set, METH_VARARGS, NULL}, @@ -55993,13 +64713,13 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofMatrix3x3___getitem__", _wrap_ofMatrix3x3___getitem__, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3_transpose", _wrap_ofMatrix3x3_transpose, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3_determinant", _wrap_ofMatrix3x3_determinant, METH_VARARGS, NULL}, - { (char *)"ofMatrix3x3_invert", _wrap_ofMatrix3x3_invert, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3_inverse", _wrap_ofMatrix3x3_inverse, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_invert", _wrap_ofMatrix3x3_invert, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_entrywiseTimes", _wrap_ofMatrix3x3_entrywiseTimes, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3___add__", _wrap_ofMatrix3x3___add__, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3___iadd__", _wrap_ofMatrix3x3___iadd__, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3___sub__", _wrap_ofMatrix3x3___sub__, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3___isub__", _wrap_ofMatrix3x3___isub__, METH_VARARGS, NULL}, - { (char *)"ofMatrix3x3_entrywiseTimes", _wrap_ofMatrix3x3_entrywiseTimes, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3___imul__", _wrap_ofMatrix3x3___imul__, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3___mul__", _wrap_ofMatrix3x3___mul__, METH_VARARGS, NULL}, { (char *)"ofMatrix3x3___div__", _wrap_ofMatrix3x3___div__, METH_VARARGS, NULL}, @@ -56011,14 +64731,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofMatrix4x4__mat_get", _wrap_ofMatrix4x4__mat_get, METH_VARARGS, NULL}, { (char *)"new_ofMatrix4x4", _wrap_new_ofMatrix4x4, METH_VARARGS, NULL}, { (char *)"delete_ofMatrix4x4", _wrap_delete_ofMatrix4x4, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4___call__", _wrap_ofMatrix4x4___call__, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getRowAsVec3f", _wrap_ofMatrix4x4_getRowAsVec3f, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getRowAsVec4f", _wrap_ofMatrix4x4_getRowAsVec4f, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_isValid", _wrap_ofMatrix4x4_isValid, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_isNaN", _wrap_ofMatrix4x4_isNaN, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_set", _wrap_ofMatrix4x4_set, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getPtr", _wrap_ofMatrix4x4_getPtr, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_isIdentity", _wrap_ofMatrix4x4_isIdentity, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeIdentityMatrix", _wrap_ofMatrix4x4_makeIdentityMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeScaleMatrix", _wrap_ofMatrix4x4_makeScaleMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeTranslationMatrix", _wrap_ofMatrix4x4_makeTranslationMatrix, METH_VARARGS, NULL}, @@ -56026,30 +64738,48 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofMatrix4x4_makeInvertOf", _wrap_ofMatrix4x4_makeInvertOf, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeOrthoNormalOf", _wrap_ofMatrix4x4_makeOrthoNormalOf, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeFromMultiplicationOf", _wrap_ofMatrix4x4_makeFromMultiplicationOf, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getInverse", _wrap_ofMatrix4x4_getInverse, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeOrthoMatrix", _wrap_ofMatrix4x4_makeOrthoMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeOrtho2DMatrix", _wrap_ofMatrix4x4_makeOrtho2DMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeFrustumMatrix", _wrap_ofMatrix4x4_makeFrustumMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makePerspectiveMatrix", _wrap_ofMatrix4x4_makePerspectiveMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeLookAtMatrix", _wrap_ofMatrix4x4_makeLookAtMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_makeLookAtViewMatrix", _wrap_ofMatrix4x4_makeLookAtViewMatrix, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getOrtho", _wrap_ofMatrix4x4_getOrtho, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getFrustum", _wrap_ofMatrix4x4_getFrustum, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getPerspective", _wrap_ofMatrix4x4_getPerspective, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getLookAt", _wrap_ofMatrix4x4_getLookAt, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_decompose", _wrap_ofMatrix4x4_decompose, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newIdentityMatrix", _wrap_ofMatrix4x4_newIdentityMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newScaleMatrix", _wrap_ofMatrix4x4_newScaleMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newTranslationMatrix", _wrap_ofMatrix4x4_newTranslationMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newRotationMatrix", _wrap_ofMatrix4x4_newRotationMatrix, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getInverseOf", _wrap_ofMatrix4x4_getInverseOf, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getTransposedOf", _wrap_ofMatrix4x4_getTransposedOf, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_getOrthoNormalOf", _wrap_ofMatrix4x4_getOrthoNormalOf, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newOrthoMatrix", _wrap_ofMatrix4x4_newOrthoMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newOrtho2DMatrix", _wrap_ofMatrix4x4_newOrtho2DMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newFrustumMatrix", _wrap_ofMatrix4x4_newFrustumMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newPerspectiveMatrix", _wrap_ofMatrix4x4_newPerspectiveMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_newLookAtMatrix", _wrap_ofMatrix4x4_newLookAtMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4___call__", _wrap_ofMatrix4x4___call__, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getRowAsVec3f", _wrap_ofMatrix4x4_getRowAsVec3f, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getRowAsVec4f", _wrap_ofMatrix4x4_getRowAsVec4f, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getPtr", _wrap_ofMatrix4x4_getPtr, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_isValid", _wrap_ofMatrix4x4_isValid, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_isNaN", _wrap_ofMatrix4x4_isNaN, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_isIdentity", _wrap_ofMatrix4x4_isIdentity, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_set", _wrap_ofMatrix4x4_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getInverse", _wrap_ofMatrix4x4_getInverse, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getOrtho", _wrap_ofMatrix4x4_getOrtho, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getFrustum", _wrap_ofMatrix4x4_getFrustum, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getPerspective", _wrap_ofMatrix4x4_getPerspective, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getLookAt", _wrap_ofMatrix4x4_getLookAt, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_decompose", _wrap_ofMatrix4x4_decompose, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getInverseOf", _wrap_ofMatrix4x4_getInverseOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getTransposedOf", _wrap_ofMatrix4x4_getTransposedOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getOrthoNormalOf", _wrap_ofMatrix4x4_getOrthoNormalOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMult", _wrap_ofMatrix4x4_postMult, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMult", _wrap_ofMatrix4x4_preMult, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4___imul__", _wrap_ofMatrix4x4___imul__, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4___mul__", _wrap_ofMatrix4x4___mul__, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMultTranslate", _wrap_ofMatrix4x4_postMultTranslate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMultRotate", _wrap_ofMatrix4x4_postMultRotate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMultScale", _wrap_ofMatrix4x4_postMultScale, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMultScale", _wrap_ofMatrix4x4_preMultScale, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMultTranslate", _wrap_ofMatrix4x4_preMultTranslate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMultRotate", _wrap_ofMatrix4x4_preMultRotate, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_setRotate", _wrap_ofMatrix4x4_setRotate, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_setTranslation", _wrap_ofMatrix4x4_setTranslation, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_rotateRad", _wrap_ofMatrix4x4_rotateRad, METH_VARARGS, NULL}, @@ -56064,44 +64794,21 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofMatrix4x4_getTranslation", _wrap_ofMatrix4x4_getTranslation, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_getScale", _wrap_ofMatrix4x4_getScale, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_transform3x3", _wrap_ofMatrix4x4_transform3x3, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_postMult", _wrap_ofMatrix4x4_postMult, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4___imul__", _wrap_ofMatrix4x4___imul__, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4___mul__", _wrap_ofMatrix4x4___mul__, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_preMult", _wrap_ofMatrix4x4_preMult, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_postMultTranslate", _wrap_ofMatrix4x4_postMultTranslate, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_postMultRotate", _wrap_ofMatrix4x4_postMultRotate, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_postMultScale", _wrap_ofMatrix4x4_postMultScale, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_preMultScale", _wrap_ofMatrix4x4_preMultScale, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_preMultTranslate", _wrap_ofMatrix4x4_preMultTranslate, METH_VARARGS, NULL}, - { (char *)"ofMatrix4x4_preMultRotate", _wrap_ofMatrix4x4_preMultRotate, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4___str__", _wrap_ofMatrix4x4___str__, METH_VARARGS, NULL}, { (char *)"ofMatrix4x4_swigregister", ofMatrix4x4_swigregister, METH_VARARGS, NULL}, { (char *)"ofQuaternion__v_set", _wrap_ofQuaternion__v_set, METH_VARARGS, NULL}, { (char *)"ofQuaternion__v_get", _wrap_ofQuaternion__v_get, METH_VARARGS, NULL}, { (char *)"new_ofQuaternion", _wrap_new_ofQuaternion, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___eq__", _wrap_ofQuaternion___eq__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___ne__", _wrap_ofQuaternion___ne__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___lshift__", _wrap_ofQuaternion___lshift__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___rshift__", _wrap_ofQuaternion___rshift__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion_asVec4", _wrap_ofQuaternion_asVec4, METH_VARARGS, NULL}, - { (char *)"ofQuaternion_asVec3", _wrap_ofQuaternion_asVec3, METH_VARARGS, NULL}, { (char *)"ofQuaternion_set", _wrap_ofQuaternion_set, METH_VARARGS, NULL}, - { (char *)"ofQuaternion_get", _wrap_ofQuaternion_get, METH_VARARGS, NULL}, { (char *)"ofQuaternion___getitem__", _wrap_ofQuaternion___getitem__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_get", _wrap_ofQuaternion_get, METH_VARARGS, NULL}, { (char *)"ofQuaternion_x", _wrap_ofQuaternion_x, METH_VARARGS, NULL}, { (char *)"ofQuaternion_y", _wrap_ofQuaternion_y, METH_VARARGS, NULL}, { (char *)"ofQuaternion_z", _wrap_ofQuaternion_z, METH_VARARGS, NULL}, { (char *)"ofQuaternion_w", _wrap_ofQuaternion_w, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_asVec4", _wrap_ofQuaternion_asVec4, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_asVec3", _wrap_ofQuaternion_asVec3, METH_VARARGS, NULL}, { (char *)"ofQuaternion_zeroRotation", _wrap_ofQuaternion_zeroRotation, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___imul__", _wrap_ofQuaternion___imul__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___div__", _wrap_ofQuaternion___div__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___idiv__", _wrap_ofQuaternion___idiv__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___add__", _wrap_ofQuaternion___add__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___iadd__", _wrap_ofQuaternion___iadd__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___sub__", _wrap_ofQuaternion___sub__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___isub__", _wrap_ofQuaternion___isub__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___neg__", _wrap_ofQuaternion___neg__, METH_VARARGS, NULL}, - { (char *)"ofQuaternion___mul__", _wrap_ofQuaternion___mul__, METH_VARARGS, NULL}, { (char *)"ofQuaternion_length", _wrap_ofQuaternion_length, METH_VARARGS, NULL}, { (char *)"ofQuaternion_length2", _wrap_ofQuaternion_length2, METH_VARARGS, NULL}, { (char *)"ofQuaternion_conj", _wrap_ofQuaternion_conj, METH_VARARGS, NULL}, @@ -56112,6 +64819,17 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofQuaternion_getEuler", _wrap_ofQuaternion_getEuler, METH_VARARGS, NULL}, { (char *)"ofQuaternion_slerp", _wrap_ofQuaternion_slerp, METH_VARARGS, NULL}, { (char *)"ofQuaternion_normalize", _wrap_ofQuaternion_normalize, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___eq__", _wrap_ofQuaternion___eq__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___ne__", _wrap_ofQuaternion___ne__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___mul__", _wrap_ofQuaternion___mul__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___imul__", _wrap_ofQuaternion___imul__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___div__", _wrap_ofQuaternion___div__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___idiv__", _wrap_ofQuaternion___idiv__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___add__", _wrap_ofQuaternion___add__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___iadd__", _wrap_ofQuaternion___iadd__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___isub__", _wrap_ofQuaternion___isub__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___sub__", _wrap_ofQuaternion___sub__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___neg__", _wrap_ofQuaternion___neg__, METH_VARARGS, NULL}, { (char *)"ofQuaternion___str__", _wrap_ofQuaternion___str__, METH_VARARGS, NULL}, { (char *)"delete_ofQuaternion", _wrap_delete_ofQuaternion, METH_VARARGS, NULL}, { (char *)"ofQuaternion_swigregister", ofQuaternion_swigregister, METH_VARARGS, NULL}, @@ -56133,8 +64851,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec2f___add__", _wrap_ofVec2f___add__, METH_VARARGS, NULL}, { (char *)"ofVec2f___iadd__", _wrap_ofVec2f___iadd__, METH_VARARGS, NULL}, { (char *)"ofVec2f___sub__", _wrap_ofVec2f___sub__, METH_VARARGS, NULL}, - { (char *)"ofVec2f___isub__", _wrap_ofVec2f___isub__, METH_VARARGS, NULL}, { (char *)"ofVec2f___neg__", _wrap_ofVec2f___neg__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___isub__", _wrap_ofVec2f___isub__, METH_VARARGS, NULL}, { (char *)"ofVec2f___mul__", _wrap_ofVec2f___mul__, METH_VARARGS, NULL}, { (char *)"ofVec2f___imul__", _wrap_ofVec2f___imul__, METH_VARARGS, NULL}, { (char *)"ofVec2f___div__", _wrap_ofVec2f___div__, METH_VARARGS, NULL}, @@ -56142,8 +64860,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec2f_getScaled", _wrap_ofVec2f_getScaled, METH_VARARGS, NULL}, { (char *)"ofVec2f_scale", _wrap_ofVec2f_scale, METH_VARARGS, NULL}, { (char *)"ofVec2f_getRotated", _wrap_ofVec2f_getRotated, METH_VARARGS, NULL}, - { (char *)"ofVec2f_rotate", _wrap_ofVec2f_rotate, METH_VARARGS, NULL}, { (char *)"ofVec2f_getRotatedRad", _wrap_ofVec2f_getRotatedRad, METH_VARARGS, NULL}, + { (char *)"ofVec2f_rotate", _wrap_ofVec2f_rotate, METH_VARARGS, NULL}, { (char *)"ofVec2f_rotateRad", _wrap_ofVec2f_rotateRad, METH_VARARGS, NULL}, { (char *)"ofVec2f_getMapped", _wrap_ofVec2f_getMapped, METH_VARARGS, NULL}, { (char *)"ofVec2f_map", _wrap_ofVec2f_map, METH_VARARGS, NULL}, @@ -56156,14 +64874,13 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec2f_average", _wrap_ofVec2f_average, METH_VARARGS, NULL}, { (char *)"ofVec2f_getNormalized", _wrap_ofVec2f_getNormalized, METH_VARARGS, NULL}, { (char *)"ofVec2f_normalize", _wrap_ofVec2f_normalize, METH_VARARGS, NULL}, - { (char *)"ofVec2f_getLimited", _wrap_ofVec2f_getLimited, METH_VARARGS, NULL}, { (char *)"ofVec2f_limit", _wrap_ofVec2f_limit, METH_VARARGS, NULL}, - { (char *)"ofVec2f_getPerpendicular", _wrap_ofVec2f_getPerpendicular, METH_VARARGS, NULL}, - { (char *)"ofVec2f_perpendicular", _wrap_ofVec2f_perpendicular, METH_VARARGS, NULL}, { (char *)"ofVec2f_length", _wrap_ofVec2f_length, METH_VARARGS, NULL}, { (char *)"ofVec2f_lengthSquared", _wrap_ofVec2f_lengthSquared, METH_VARARGS, NULL}, { (char *)"ofVec2f_angle", _wrap_ofVec2f_angle, METH_VARARGS, NULL}, { (char *)"ofVec2f_angleRad", _wrap_ofVec2f_angleRad, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getPerpendicular", _wrap_ofVec2f_getPerpendicular, METH_VARARGS, NULL}, + { (char *)"ofVec2f_perpendicular", _wrap_ofVec2f_perpendicular, METH_VARARGS, NULL}, { (char *)"ofVec2f_dot", _wrap_ofVec2f_dot, METH_VARARGS, NULL}, { (char *)"ofVec2f_rescaled", _wrap_ofVec2f_rescaled, METH_VARARGS, NULL}, { (char *)"ofVec2f_rescale", _wrap_ofVec2f_rescale, METH_VARARGS, NULL}, @@ -56194,13 +64911,13 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec3f___ne__", _wrap_ofVec3f___ne__, METH_VARARGS, NULL}, { (char *)"ofVec3f_match", _wrap_ofVec3f_match, METH_VARARGS, NULL}, { (char *)"ofVec3f_isAligned", _wrap_ofVec3f_isAligned, METH_VARARGS, NULL}, - { (char *)"ofVec3f_align", _wrap_ofVec3f_align, METH_VARARGS, NULL}, { (char *)"ofVec3f_isAlignedRad", _wrap_ofVec3f_isAlignedRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f_align", _wrap_ofVec3f_align, METH_VARARGS, NULL}, { (char *)"ofVec3f_alignRad", _wrap_ofVec3f_alignRad, METH_VARARGS, NULL}, - { (char *)"ofVec3f___neg__", _wrap_ofVec3f___neg__, METH_VARARGS, NULL}, { (char *)"ofVec3f___add__", _wrap_ofVec3f___add__, METH_VARARGS, NULL}, { (char *)"ofVec3f___iadd__", _wrap_ofVec3f___iadd__, METH_VARARGS, NULL}, { (char *)"ofVec3f___sub__", _wrap_ofVec3f___sub__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___neg__", _wrap_ofVec3f___neg__, METH_VARARGS, NULL}, { (char *)"ofVec3f___isub__", _wrap_ofVec3f___isub__, METH_VARARGS, NULL}, { (char *)"ofVec3f___mul__", _wrap_ofVec3f___mul__, METH_VARARGS, NULL}, { (char *)"ofVec3f___imul__", _wrap_ofVec3f___imul__, METH_VARARGS, NULL}, @@ -56209,8 +64926,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec3f_getScaled", _wrap_ofVec3f_getScaled, METH_VARARGS, NULL}, { (char *)"ofVec3f_scale", _wrap_ofVec3f_scale, METH_VARARGS, NULL}, { (char *)"ofVec3f_getRotated", _wrap_ofVec3f_getRotated, METH_VARARGS, NULL}, - { (char *)"ofVec3f_rotate", _wrap_ofVec3f_rotate, METH_VARARGS, NULL}, { (char *)"ofVec3f_getRotatedRad", _wrap_ofVec3f_getRotatedRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f_rotate", _wrap_ofVec3f_rotate, METH_VARARGS, NULL}, { (char *)"ofVec3f_rotateRad", _wrap_ofVec3f_rotateRad, METH_VARARGS, NULL}, { (char *)"ofVec3f_getMapped", _wrap_ofVec3f_getMapped, METH_VARARGS, NULL}, { (char *)"ofVec3f_map", _wrap_ofVec3f_map, METH_VARARGS, NULL}, @@ -56225,14 +64942,14 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec3f_normalize", _wrap_ofVec3f_normalize, METH_VARARGS, NULL}, { (char *)"ofVec3f_getLimited", _wrap_ofVec3f_getLimited, METH_VARARGS, NULL}, { (char *)"ofVec3f_limit", _wrap_ofVec3f_limit, METH_VARARGS, NULL}, - { (char *)"ofVec3f_getCrossed", _wrap_ofVec3f_getCrossed, METH_VARARGS, NULL}, - { (char *)"ofVec3f_cross", _wrap_ofVec3f_cross, METH_VARARGS, NULL}, - { (char *)"ofVec3f_getPerpendicular", _wrap_ofVec3f_getPerpendicular, METH_VARARGS, NULL}, - { (char *)"ofVec3f_perpendicular", _wrap_ofVec3f_perpendicular, METH_VARARGS, NULL}, { (char *)"ofVec3f_length", _wrap_ofVec3f_length, METH_VARARGS, NULL}, { (char *)"ofVec3f_lengthSquared", _wrap_ofVec3f_lengthSquared, METH_VARARGS, NULL}, { (char *)"ofVec3f_angle", _wrap_ofVec3f_angle, METH_VARARGS, NULL}, { (char *)"ofVec3f_angleRad", _wrap_ofVec3f_angleRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getPerpendicular", _wrap_ofVec3f_getPerpendicular, METH_VARARGS, NULL}, + { (char *)"ofVec3f_perpendicular", _wrap_ofVec3f_perpendicular, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getCrossed", _wrap_ofVec3f_getCrossed, METH_VARARGS, NULL}, + { (char *)"ofVec3f_cross", _wrap_ofVec3f_cross, METH_VARARGS, NULL}, { (char *)"ofVec3f_dot", _wrap_ofVec3f_dot, METH_VARARGS, NULL}, { (char *)"ofVec3f_rescaled", _wrap_ofVec3f_rescaled, METH_VARARGS, NULL}, { (char *)"ofVec3f_rescale", _wrap_ofVec3f_rescale, METH_VARARGS, NULL}, @@ -56259,17 +64976,17 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec4f_w_set", _wrap_ofVec4f_w_set, METH_VARARGS, NULL}, { (char *)"ofVec4f_w_get", _wrap_ofVec4f_w_get, METH_VARARGS, NULL}, { (char *)"new_ofVec4f", _wrap_new_ofVec4f, METH_VARARGS, NULL}, - { (char *)"ofVec4f_set", _wrap_ofVec4f_set, METH_VARARGS, NULL}, { (char *)"ofVec4f_getPtr", _wrap_ofVec4f_getPtr, METH_VARARGS, NULL}, { (char *)"ofVec4f___getitem__", _wrap_ofVec4f___getitem__, METH_VARARGS, NULL}, + { (char *)"ofVec4f_set", _wrap_ofVec4f_set, METH_VARARGS, NULL}, { (char *)"ofVec4f___eq__", _wrap_ofVec4f___eq__, METH_VARARGS, NULL}, { (char *)"ofVec4f___ne__", _wrap_ofVec4f___ne__, METH_VARARGS, NULL}, { (char *)"ofVec4f_match", _wrap_ofVec4f_match, METH_VARARGS, NULL}, - { (char *)"ofVec4f___sub__", _wrap_ofVec4f___sub__, METH_VARARGS, NULL}, - { (char *)"ofVec4f___isub__", _wrap_ofVec4f___isub__, METH_VARARGS, NULL}, { (char *)"ofVec4f___add__", _wrap_ofVec4f___add__, METH_VARARGS, NULL}, { (char *)"ofVec4f___iadd__", _wrap_ofVec4f___iadd__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___sub__", _wrap_ofVec4f___sub__, METH_VARARGS, NULL}, { (char *)"ofVec4f___neg__", _wrap_ofVec4f___neg__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___isub__", _wrap_ofVec4f___isub__, METH_VARARGS, NULL}, { (char *)"ofVec4f___mul__", _wrap_ofVec4f___mul__, METH_VARARGS, NULL}, { (char *)"ofVec4f___imul__", _wrap_ofVec4f___imul__, METH_VARARGS, NULL}, { (char *)"ofVec4f___div__", _wrap_ofVec4f___div__, METH_VARARGS, NULL}, @@ -56302,19 +65019,17 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVec4f___str__", _wrap_ofVec4f___str__, METH_VARARGS, NULL}, { (char *)"delete_ofVec4f", _wrap_delete_ofVec4f, METH_VARARGS, NULL}, { (char *)"ofVec4f_swigregister", ofVec4f_swigregister, METH_VARARGS, NULL}, - { (char *)"ofNextPow2", _wrap_ofNextPow2, METH_VARARGS, NULL}, - { (char *)"ofSeedRandom", _wrap_ofSeedRandom, METH_VARARGS, NULL}, { (char *)"ofRandom", _wrap_ofRandom, METH_VARARGS, NULL}, { (char *)"ofRandomf", _wrap_ofRandomf, METH_VARARGS, NULL}, { (char *)"ofRandomuf", _wrap_ofRandomuf, METH_VARARGS, NULL}, + { (char *)"ofSeedRandom", _wrap_ofSeedRandom, METH_VARARGS, NULL}, { (char *)"ofNormalize", _wrap_ofNormalize, METH_VARARGS, NULL}, { (char *)"ofMap", _wrap_ofMap, METH_VARARGS, NULL}, { (char *)"ofClamp", _wrap_ofClamp, METH_VARARGS, NULL}, + { (char *)"ofInRange", _wrap_ofInRange, METH_VARARGS, NULL}, { (char *)"ofLerp", _wrap_ofLerp, METH_VARARGS, NULL}, { (char *)"ofDist", _wrap_ofDist, METH_VARARGS, NULL}, { (char *)"ofDistSquared", _wrap_ofDistSquared, METH_VARARGS, NULL}, - { (char *)"ofSign", _wrap_ofSign, METH_VARARGS, NULL}, - { (char *)"ofInRange", _wrap_ofInRange, METH_VARARGS, NULL}, { (char *)"ofRadToDeg", _wrap_ofRadToDeg, METH_VARARGS, NULL}, { (char *)"ofDegToRad", _wrap_ofDegToRad, METH_VARARGS, NULL}, { (char *)"ofLerpDegrees", _wrap_ofLerpDegrees, METH_VARARGS, NULL}, @@ -56324,8 +65039,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofWrap", _wrap_ofWrap, METH_VARARGS, NULL}, { (char *)"ofWrapRadians", _wrap_ofWrapRadians, METH_VARARGS, NULL}, { (char *)"ofWrapDegrees", _wrap_ofWrapDegrees, METH_VARARGS, NULL}, - { (char *)"ofRandomWidth", _wrap_ofRandomWidth, METH_VARARGS, NULL}, - { (char *)"ofRandomHeight", _wrap_ofRandomHeight, METH_VARARGS, NULL}, { (char *)"ofNoise", _wrap_ofNoise, METH_VARARGS, NULL}, { (char *)"ofSignedNoise", _wrap_ofSignedNoise, METH_VARARGS, NULL}, { (char *)"ofInsidePoly", _wrap_ofInsidePoly, METH_VARARGS, NULL}, @@ -56334,6 +65047,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofCurvePoint", _wrap_ofCurvePoint, METH_VARARGS, NULL}, { (char *)"ofBezierTangent", _wrap_ofBezierTangent, METH_VARARGS, NULL}, { (char *)"ofCurveTangent", _wrap_ofCurveTangent, METH_VARARGS, NULL}, + { (char *)"ofNextPow2", _wrap_ofNextPow2, METH_VARARGS, NULL}, + { (char *)"ofSign", _wrap_ofSign, METH_VARARGS, NULL}, { (char *)"delete_ofXml", _wrap_delete_ofXml, METH_VARARGS, NULL}, { (char *)"new_ofXml", _wrap_new_ofXml, METH_VARARGS, NULL}, { (char *)"ofXml_load", _wrap_ofXml_load, METH_VARARGS, NULL}, @@ -56342,6 +65057,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofXml_addXml", _wrap_ofXml_addXml, METH_VARARGS, NULL}, { (char *)"ofXml_getValue", _wrap_ofXml_getValue, METH_VARARGS, NULL}, { (char *)"ofXml_getIntValue", _wrap_ofXml_getIntValue, METH_VARARGS, NULL}, + { (char *)"ofXml_getInt64Value", _wrap_ofXml_getInt64Value, METH_VARARGS, NULL}, { (char *)"ofXml_getFloatValue", _wrap_ofXml_getFloatValue, METH_VARARGS, NULL}, { (char *)"ofXml_getBoolValue", _wrap_ofXml_getBoolValue, METH_VARARGS, NULL}, { (char *)"ofXml_setValue", _wrap_ofXml_setValue, METH_VARARGS, NULL}, @@ -56378,7 +65094,9 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofMatrixStack_nativeViewport", _wrap_ofMatrixStack_nativeViewport, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_getCurrentViewport", _wrap_ofMatrixStack_getCurrentViewport, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_getNativeViewport", _wrap_ofMatrixStack_getNativeViewport, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getFullSurfaceViewport", _wrap_ofMatrixStack_getFullSurfaceViewport, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_getProjectionMatrix", _wrap_ofMatrixStack_getProjectionMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getViewMatrix", _wrap_ofMatrixStack_getViewMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_getModelViewMatrix", _wrap_ofMatrixStack_getModelViewMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_getModelViewProjectionMatrix", _wrap_ofMatrixStack_getModelViewProjectionMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_getTextureMatrix", _wrap_ofMatrixStack_getTextureMatrix, METH_VARARGS, NULL}, @@ -56401,43 +65119,48 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofMatrixStack_loadIdentityMatrix", _wrap_ofMatrixStack_loadIdentityMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_loadMatrix", _wrap_ofMatrixStack_loadMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_multMatrix", _wrap_ofMatrixStack_multMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_loadViewMatrix", _wrap_ofMatrixStack_loadViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_multViewMatrix", _wrap_ofMatrixStack_multViewMatrix, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_clearStacks", _wrap_ofMatrixStack_clearStacks, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_doesHardwareOrientation", _wrap_ofMatrixStack_doesHardwareOrientation, METH_VARARGS, NULL}, { (char *)"delete_ofMatrixStack", _wrap_delete_ofMatrixStack, METH_VARARGS, NULL}, { (char *)"ofMatrixStack_swigregister", ofMatrixStack_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofVideoGrabber", _wrap_new_ofVideoGrabber, METH_VARARGS, NULL}, { (char *)"delete_ofVideoGrabber", _wrap_delete_ofVideoGrabber, METH_VARARGS, NULL}, - { (char *)"ofVideoGrabber_setGrabber", _wrap_ofVideoGrabber_setGrabber, METH_VARARGS, NULL}, - { (char *)"ofVideoGrabber_getGrabber", _wrap_ofVideoGrabber_getGrabber, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_listDevices", _wrap_ofVideoGrabber_listDevices, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_isFrameNew", _wrap_ofVideoGrabber_isFrameNew, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_update", _wrap_ofVideoGrabber_update, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_close", _wrap_ofVideoGrabber_close, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setup", _wrap_ofVideoGrabber_setup, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_initGrabber", _wrap_ofVideoGrabber_initGrabber, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_setPixelFormat", _wrap_ofVideoGrabber_setPixelFormat, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_getPixelFormat", _wrap_ofVideoGrabber_getPixelFormat, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_videoSettings", _wrap_ofVideoGrabber_videoSettings, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_getPixels", _wrap_ofVideoGrabber_getPixels, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_getPixelsRef", _wrap_ofVideoGrabber_getPixelsRef, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getTexture", _wrap_ofVideoGrabber_getTexture, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_getTextureReference", _wrap_ofVideoGrabber_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getTexturePlanes", _wrap_ofVideoGrabber_getTexturePlanes, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_setVerbose", _wrap_ofVideoGrabber_setVerbose, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_setDeviceID", _wrap_ofVideoGrabber_setDeviceID, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_setDesiredFrameRate", _wrap_ofVideoGrabber_setDesiredFrameRate, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_setUseTexture", _wrap_ofVideoGrabber_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_isUsingTexture", _wrap_ofVideoGrabber_isUsingTexture, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_draw", _wrap_ofVideoGrabber_draw, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_bind", _wrap_ofVideoGrabber_bind, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_unbind", _wrap_ofVideoGrabber_unbind, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_setAnchorPercent", _wrap_ofVideoGrabber_setAnchorPercent, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_setAnchorPoint", _wrap_ofVideoGrabber_setAnchorPoint, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_resetAnchor", _wrap_ofVideoGrabber_resetAnchor, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_getHeight", _wrap_ofVideoGrabber_getHeight, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_getWidth", _wrap_ofVideoGrabber_getWidth, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_isInitialized", _wrap_ofVideoGrabber_isInitialized, METH_VARARGS, NULL}, - { (char *)"ofVideoGrabber_height_set", _wrap_ofVideoGrabber_height_set, METH_VARARGS, NULL}, - { (char *)"ofVideoGrabber_height_get", _wrap_ofVideoGrabber_height_get, METH_VARARGS, NULL}, - { (char *)"ofVideoGrabber_width_set", _wrap_ofVideoGrabber_width_set, METH_VARARGS, NULL}, - { (char *)"ofVideoGrabber_width_get", _wrap_ofVideoGrabber_width_get, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setGrabber", _wrap_ofVideoGrabber_setGrabber, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getGrabber", _wrap_ofVideoGrabber_getGrabber, METH_VARARGS, NULL}, { (char *)"ofVideoGrabber_swigregister", ofVideoGrabber_swigregister, METH_VARARGS, NULL}, { (char *)"new_ofVideoPlayer", _wrap_new_ofVideoPlayer, METH_VARARGS, NULL}, - { (char *)"ofVideoPlayer_setPlayer", _wrap_ofVideoPlayer_setPlayer, METH_VARARGS, NULL}, - { (char *)"ofVideoPlayer_getPlayer", _wrap_ofVideoPlayer_getPlayer, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_load", _wrap_ofVideoPlayer_load, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_loadAsync", _wrap_ofVideoPlayer_loadAsync, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_loadMovie", _wrap_ofVideoPlayer_loadMovie, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_getMoviePath", _wrap_ofVideoPlayer_getMoviePath, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_setPixelFormat", _wrap_ofVideoPlayer_setPixelFormat, METH_VARARGS, NULL}, @@ -56461,8 +65184,13 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVideoPlayer_setSpeed", _wrap_ofVideoPlayer_setSpeed, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_setFrame", _wrap_ofVideoPlayer_setFrame, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_setUseTexture", _wrap_ofVideoPlayer_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isUsingTexture", _wrap_ofVideoPlayer_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getTexture", _wrap_ofVideoPlayer_getTexture, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_getTextureReference", _wrap_ofVideoPlayer_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getTexturePlanes", _wrap_ofVideoPlayer_getTexturePlanes, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_draw", _wrap_ofVideoPlayer_draw, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_bind", _wrap_ofVideoPlayer_bind, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_unbind", _wrap_ofVideoPlayer_unbind, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_setAnchorPercent", _wrap_ofVideoPlayer_setAnchorPercent, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_setAnchorPoint", _wrap_ofVideoPlayer_setAnchorPoint, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_resetAnchor", _wrap_ofVideoPlayer_resetAnchor, METH_VARARGS, NULL}, @@ -56477,10 +65205,9 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofVideoPlayer_isPaused", _wrap_ofVideoPlayer_isPaused, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_isLoaded", _wrap_ofVideoPlayer_isLoaded, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_isPlaying", _wrap_ofVideoPlayer_isPlaying, METH_VARARGS, NULL}, - { (char *)"ofVideoPlayer_height_set", _wrap_ofVideoPlayer_height_set, METH_VARARGS, NULL}, - { (char *)"ofVideoPlayer_height_get", _wrap_ofVideoPlayer_height_get, METH_VARARGS, NULL}, - { (char *)"ofVideoPlayer_width_set", _wrap_ofVideoPlayer_width_set, METH_VARARGS, NULL}, - { (char *)"ofVideoPlayer_width_get", _wrap_ofVideoPlayer_width_get, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isInitialized", _wrap_ofVideoPlayer_isInitialized, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setPlayer", _wrap_ofVideoPlayer_setPlayer, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getPlayer", _wrap_ofVideoPlayer_getPlayer, METH_VARARGS, NULL}, { (char *)"delete_ofVideoPlayer", _wrap_delete_ofVideoPlayer, METH_VARARGS, NULL}, { (char *)"ofVideoPlayer_swigregister", ofVideoPlayer_swigregister, METH_VARARGS, NULL}, { (char *)"ofGetMousePressed", _wrap_ofGetMousePressed, METH_VARARGS, NULL}, @@ -56489,7 +65216,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofGetMouseY", _wrap_ofGetMouseY, METH_VARARGS, NULL}, { (char *)"ofGetPreviousMouseX", _wrap_ofGetPreviousMouseX, METH_VARARGS, NULL}, { (char *)"ofGetPreviousMouseY", _wrap_ofGetPreviousMouseY, METH_VARARGS, NULL}, - { (char *)"ofSetEscapeQuitsApp", _wrap_ofSetEscapeQuitsApp, METH_VARARGS, NULL}, { (char *)"ofDragInfo_files_set", _wrap_ofDragInfo_files_set, METH_VARARGS, NULL}, { (char *)"ofDragInfo_files_get", _wrap_ofDragInfo_files_get, METH_VARARGS, NULL}, { (char *)"ofDragInfo_position_set", _wrap_ofDragInfo_position_set, METH_VARARGS, NULL}, @@ -56497,6 +65223,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"new_ofDragInfo", _wrap_new_ofDragInfo, METH_VARARGS, NULL}, { (char *)"delete_ofDragInfo", _wrap_delete_ofDragInfo, METH_VARARGS, NULL}, { (char *)"ofDragInfo_swigregister", ofDragInfo_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofTouchEventArgs", _wrap_new_ofTouchEventArgs, METH_VARARGS, NULL}, { (char *)"ofTouchEventArgs_type_set", _wrap_ofTouchEventArgs_type_set, METH_VARARGS, NULL}, { (char *)"ofTouchEventArgs_type_get", _wrap_ofTouchEventArgs_type_get, METH_VARARGS, NULL}, { (char *)"ofTouchEventArgs_id_set", _wrap_ofTouchEventArgs_id_set, METH_VARARGS, NULL}, @@ -56525,7 +65252,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"ofTouchEventArgs_xaccel_get", _wrap_ofTouchEventArgs_xaccel_get, METH_VARARGS, NULL}, { (char *)"ofTouchEventArgs_yaccel_set", _wrap_ofTouchEventArgs_yaccel_set, METH_VARARGS, NULL}, { (char *)"ofTouchEventArgs_yaccel_get", _wrap_ofTouchEventArgs_yaccel_get, METH_VARARGS, NULL}, - { (char *)"new_ofTouchEventArgs", _wrap_new_ofTouchEventArgs, METH_VARARGS, NULL}, { (char *)"delete_ofTouchEventArgs", _wrap_delete_ofTouchEventArgs, METH_VARARGS, NULL}, { (char *)"ofTouchEventArgs_swigregister", ofTouchEventArgs_swigregister, METH_VARARGS, NULL}, { (char *)"ofSendMessage", _wrap_ofSendMessage, METH_VARARGS, NULL}, @@ -56538,24 +65264,27 @@ static PyMethodDef SwigMethods[] = { static void *_p_ofImage_T_unsigned_char_tTo_p_ofBaseImage_T_unsigned_char_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseImage_< unsigned char > *) ((ofImage_< unsigned char > *) x)); } -static void *_p_ofBaseVideoDrawsTo_p_ofBaseImage_T_unsigned_char_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((ofBaseImage_< unsigned char > *) ((ofBaseVideoDraws *) x)); -} -static void *_p_ofVideoGrabberTo_p_ofBaseImage_T_unsigned_char_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((ofBaseImage_< unsigned char > *) (ofBaseVideoDraws *) ((ofVideoGrabber *) x)); -} -static void *_p_ofVideoPlayerTo_p_ofBaseImage_T_unsigned_char_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((ofBaseImage_< unsigned char > *) (ofBaseVideoDraws *) ((ofVideoPlayer *) x)); -} static void *_p_ofImage_T_float_tTo_p_ofBaseImage_T_float_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseImage_< float > *) ((ofImage_< float > *) x)); } +static void *_p_ofMaterialTo_p_ofBaseMaterial(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseMaterial *) ((ofMaterial *) x)); +} static void *_p_ofSoundPlayerTo_p_ofBaseSoundPlayer(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseSoundPlayer *) ((ofSoundPlayer *) x)); } static void *_p_ofEasyCamTo_p_ofCamera(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofCamera *) ((ofEasyCam *) x)); } +static void *_p_ofBaseVideoDrawsTo_p_ofBaseHasTexturePlanes(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexturePlanes *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseHasTexturePlanes(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexturePlanes *) (ofBaseVideoDraws *) ((ofVideoGrabber *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseHasTexturePlanes(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexturePlanes *) (ofBaseVideoDraws *) ((ofVideoPlayer *) x)); +} static void *_p_ofMouseEventArgsTo_p_ofVec2f(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofVec2f *) ((ofMouseEventArgs *) x)); } @@ -56637,15 +65366,24 @@ static void *_p_ofVideoPlayerTo_p_ofBaseVideo(void *x, int *SWIGUNUSEDPARM(newme static void *_p_ofVboMeshTo_p_ofMesh(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofMesh *) ((ofVboMesh *) x)); } -static void *_p_ofFileTo_p_fstream(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((fstream *) ((ofFile *) x)); -} static void *_p_ofAbstractImageTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseHasTexture *) ((ofAbstractImage *) x)); } +static void *_p_ofBaseVideoDrawsTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) (ofBaseHasTexturePlanes *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) (ofBaseHasTexturePlanes *)(ofBaseVideoDraws *) ((ofVideoGrabber *) x)); +} static void *_p_ofFboTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseHasTexture *) ((ofFbo *) x)); } +static void *_p_ofBaseHasTexturePlanesTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) ((ofBaseHasTexturePlanes *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) (ofBaseHasTexturePlanes *)(ofBaseVideoDraws *) ((ofVideoPlayer *) x)); +} static void *_p_ofXmlTo_p_ofBaseFileSerializer(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseFileSerializer *) ((ofXml *) x)); } @@ -56658,9 +65396,6 @@ static void *_p_ofXmlTo_p_ofBaseSerializer(void *x, int *SWIGUNUSEDPARM(newmemor static void *_p_ofBaseGLRendererTo_p_ofBaseRenderer(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseRenderer *) ((ofBaseGLRenderer *) x)); } -static void *_p_ofEntryEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((ofEventArgs *) ((ofEntryEventArgs *) x)); -} static void *_p_ofKeyEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofEventArgs *) ((ofKeyEventArgs *) x)); } @@ -56670,9 +65405,6 @@ static void *_p_ofMouseEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(ne static void *_p_ofTouchEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofEventArgs *) ((ofTouchEventArgs *) x)); } -static void *_p_ofAudioEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((ofEventArgs *) ((ofAudioEventArgs *) x)); -} static void *_p_ofResizeEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofEventArgs *) ((ofResizeEventArgs *) x)); } @@ -56682,12 +65414,21 @@ static void *_p_ofMessageTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory static void *_p_ofAbstractImageTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseDraws *) ((ofAbstractImage *) x)); } +static void *_p_ofBaseVideoDrawsTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) (ofBaseVideoDraws *) ((ofVideoGrabber *) x)); +} static void *_p_ofTextureTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseDraws *) ((ofTexture *) x)); } static void *_p_ofFboTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseDraws *) ((ofFbo *) x)); } +static void *_p_ofVideoPlayerTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) (ofBaseVideoDraws *) ((ofVideoPlayer *) x)); +} static void *_p_ofVideoGrabberTo_p_ofBaseVideoGrabber(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseVideoGrabber *) ((ofVideoGrabber *) x)); } @@ -56733,9 +65474,6 @@ static void *_p_ofVideoPlayerTo_p_ofBaseHasPixels(void *x, int *SWIGUNUSEDPARM(n static void *_p_ofImage_T_unsigned_short_tTo_p_ofBaseImage_T_unsigned_short_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseImage_< unsigned short > *) ((ofImage_< unsigned short > *) x)); } -static void *_p_ofURLFileLoaderTo_p_ofThread(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((ofThread *) ((ofURLFileLoader *) x)); -} static void *_p_ofBaseVideoDrawsTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((ofBaseUpdates *) (ofBaseVideo *) ((ofBaseVideoDraws *) x)); } @@ -56757,21 +65495,19 @@ static void *_p_ofVideoPlayerTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(new static swig_type_info _swigt__p_GLenum = {"_p_GLenum", "GLenum *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_GLsizei = {"_p_GLsizei", "GLsizei *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_GLuint = {"_p_GLuint", "GLuint *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Poco__File = {"_p_Poco__File", "Poco::File *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Poco__XML__Document = {"_p_Poco__XML__Document", "Poco::XML::Document *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Poco__XML__Element = {"_p_Poco__XML__Element", "Poco::XML::Element *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_filebuf = {"_p_filebuf", "filebuf *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_float = {"_p_float", "float *|GLfloat *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_fstream = {"_p_fstream", "fstream *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_float = {"_p_float", "float *|GLfloat *|ofPixels_< float >::iterator|ofPixels_< float >::const_iterator|ofPixels_< float >::reverse_iterator|ofPixels_< float >::const_reverse_iterator", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *|GLint *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_istream = {"_p_istream", "istream *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_int64_t = {"_p_int64_t", "int64_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_listT_int_t = {"_p_listT_int_t", "list< int > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_listT_std__string_t = {"_p_listT_std__string_t", "list< std::string > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t = {"_p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t", "list< std::vector< unsigned char > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_of3dGraphics = {"_p_of3dGraphics", "of3dGraphics *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_of3dPrimitive = {"_p_of3dPrimitive", "of3dPrimitive *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofAbstractParameter = {"_p_ofAbstractParameter", "ofAbstractParameter *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofAppBaseWindow = {"_p_ofAppBaseWindow", "ofAppBaseWindow *", 0, 0, (void*)0, 0}; @@ -56782,18 +65518,21 @@ static swig_type_info _swigt__p_ofAbstractImage = {"_p_ofAbstractImage", 0, 0, 0 static swig_type_info _swigt__p_ofBaseFileSerializer = {"_p_ofBaseFileSerializer", "ofBaseFileSerializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseHasPixels = {"_p_ofBaseHasPixels", "ofBaseHasPixels *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseHasTexture = {"_p_ofBaseHasTexture", "ofBaseHasTexture *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseHasTexturePlanes = {"_p_ofBaseHasTexturePlanes", "ofBaseHasTexturePlanes *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseImage_T_float_t = {"_p_ofBaseImage_T_float_t", "ofBaseImage_< float > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseImage_T_unsigned_char_t = {"_p_ofBaseImage_T_unsigned_char_t", "ofBaseImage_< unsigned char > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseImage_T_unsigned_short_t = {"_p_ofBaseImage_T_unsigned_short_t", "ofBaseImage_< unsigned short > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseLoggerChannel = {"_p_ofBaseLoggerChannel", "ofBaseLoggerChannel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofConsoleLoggerChannel = {"_p_ofConsoleLoggerChannel", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofFileLoggerChannel = {"_p_ofFileLoggerChannel", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofBaseMaterial = {"_p_ofBaseMaterial", "ofBaseMaterial *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseRenderer = {"_p_ofBaseRenderer", "ofBaseRenderer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseGLRenderer = {"_p_ofBaseGLRenderer", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofBaseSerializer = {"_p_ofBaseSerializer", "ofBaseSerializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseSoundInput = {"_p_ofBaseSoundInput", "ofBaseSoundInput *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseSoundOutput = {"_p_ofBaseSoundOutput", "ofBaseSoundOutput *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseSoundPlayer = {"_p_ofBaseSoundPlayer", "ofBaseSoundPlayer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseURLFileLoader = {"_p_ofBaseURLFileLoader", "ofBaseURLFileLoader *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseUpdates = {"_p_ofBaseUpdates", "ofBaseUpdates *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseVideo = {"_p_ofBaseVideo", "ofBaseVideo *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBaseVideoDraws = {"_p_ofBaseVideoDraws", "ofBaseVideoDraws *", 0, 0, (void*)0, 0}; @@ -56801,20 +65540,19 @@ static swig_type_info _swigt__p_ofBaseVideoGrabber = {"_p_ofBaseVideoGrabber", " static swig_type_info _swigt__p_ofBaseVideoPlayer = {"_p_ofBaseVideoPlayer", "ofBaseVideoPlayer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBoxPrimitive = {"_p_ofBoxPrimitive", "ofBoxPrimitive *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofBuffer = {"_p_ofBuffer", "ofBuffer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBufferObject = {"_p_ofBufferObject", "ofBufferObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofCamera = {"_p_ofCamera", "ofCamera *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofColor_T_float_t = {"_p_ofColor_T_float_t", "ofColor_< float > *|ofFloatColor *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofColor_T_unsigned_char_t = {"_p_ofColor_T_unsigned_char_t", "ofColor_< unsigned char > *|ofColor *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofColor_T_unsigned_short_t = {"_p_ofColor_T_unsigned_short_t", "ofColor_< unsigned short > *|ofShortColor *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofConePrimitive = {"_p_ofConePrimitive", "ofConePrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofCoreEvents = {"_p_ofCoreEvents", "ofCoreEvents *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofCylinderPrimitive = {"_p_ofCylinderPrimitive", "ofCylinderPrimitive *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofDirectory = {"_p_ofDirectory", "ofDirectory *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofDragInfo = {"_p_ofDragInfo", "ofDragInfo *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofEasyCam = {"_p_ofEasyCam", "ofEasyCam *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofEventArgs = {"_p_ofEventArgs", "ofEventArgs *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofEntryEventArgs = {"_p_ofEntryEventArgs", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofKeyEventArgs = {"_p_ofKeyEventArgs", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofMouseEventArgs = {"_p_ofMouseEventArgs", 0, 0, 0, 0, 0}; -static swig_type_info _swigt__p_ofAudioEventArgs = {"_p_ofAudioEventArgs", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofResizeEventArgs = {"_p_ofResizeEventArgs", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofEventT_int_const_t = {"_p_ofEventT_int_const_t", "ofEvent< int const > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofEventT_ofHttpResponse_t = {"_p_ofEventT_ofHttpResponse_t", "ofEvent< ofHttpResponse > *", 0, 0, (void*)0, 0}; @@ -56824,7 +65562,7 @@ static swig_type_info _swigt__p_ofFbo = {"_p_ofFbo", "ofFbo *", 0, 0, (void*)0, static swig_type_info _swigt__p_ofFbo__Settings = {"_p_ofFbo__Settings", "ofFbo::Settings *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofFile = {"_p_ofFile", "ofFile *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofFileDialogResult = {"_p_ofFileDialogResult", "ofFileDialogResult *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofFilePath = {"_p_ofFilePath", "ofFilePath *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofGLProgrammableRenderer = {"_p_ofGLProgrammableRenderer", "ofGLProgrammableRenderer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofHttpRequest = {"_p_ofHttpRequest", "ofHttpRequest *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofHttpResponse = {"_p_ofHttpResponse", "ofHttpResponse *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofIcoSpherePrimitive = {"_p_ofIcoSpherePrimitive", "ofIcoSpherePrimitive *", 0, 0, (void*)0, 0}; @@ -56839,6 +65577,7 @@ static swig_type_info _swigt__p_ofLogFatalError = {"_p_ofLogFatalError", 0, 0, 0 static swig_type_info _swigt__p_ofLogVerbose = {"_p_ofLogVerbose", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofLogWarning = {"_p_ofLogWarning", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_ofMaterial = {"_p_ofMaterial", "ofMaterial *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMaterial__Data = {"_p_ofMaterial__Data", "ofMaterial::Data *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofMatrix3x3 = {"_p_ofMatrix3x3", "ofMatrix3x3 *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofMatrix4x4 = {"_p_ofMatrix4x4", "ofMatrix4x4 *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofMatrixStack = {"_p_ofMatrixStack", "ofMatrixStack *", 0, 0, (void*)0, 0}; @@ -56846,26 +65585,33 @@ static swig_type_info _swigt__p_ofMesh = {"_p_ofMesh", "ofMesh *", 0, 0, (void*) static swig_type_info _swigt__p_ofMeshFace = {"_p_ofMeshFace", "ofMeshFace *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofMessage = {"_p_ofMessage", "ofMessage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofNode = {"_p_ofNode", "ofNode *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofParameterGroup = {"_p_ofParameterGroup", "ofParameterGroup *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPath = {"_p_ofPath", "ofPath *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofPixels_T_PixelType_t = {"_p_ofPixels_T_PixelType_t", "ofPixels_< PixelType > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPixels_T_float_t = {"_p_ofPixels_T_float_t", "ofPixels_< float > *|ofFloatPixels *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__ConstLine = {"_p_ofPixels_T_float_t__ConstLine", "ofPixels_< float >::ConstLine *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__ConstLines = {"_p_ofPixels_T_float_t__ConstLines", "ofPixels_< float >::ConstLines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__Line = {"_p_ofPixels_T_float_t__Line", "ofPixels_< float >::Line *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__Lines = {"_p_ofPixels_T_float_t__Lines", "ofPixels_< float >::Lines *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t = {"_p_ofPixels_T_unsigned_char_t", "ofPixels_< unsigned char > *|ofPixels *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__ConstLine = {"_p_ofPixels_T_unsigned_char_t__ConstLine", "ofPixels_< unsigned char >::ConstLine *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__ConstLines = {"_p_ofPixels_T_unsigned_char_t__ConstLines", "ofPixels_< unsigned char >::ConstLines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__Line = {"_p_ofPixels_T_unsigned_char_t__Line", "ofPixels_< unsigned char >::Line *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__Lines = {"_p_ofPixels_T_unsigned_char_t__Lines", "ofPixels_< unsigned char >::Lines *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t = {"_p_ofPixels_T_unsigned_short_t", "ofPixels_< unsigned short > *|ofShortPixels *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__ConstLine = {"_p_ofPixels_T_unsigned_short_t__ConstLine", "ofPixels_< unsigned short >::ConstLine *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__ConstLines = {"_p_ofPixels_T_unsigned_short_t__ConstLines", "ofPixels_< unsigned short >::ConstLines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__Line = {"_p_ofPixels_T_unsigned_short_t__Line", "ofPixels_< unsigned short >::Line *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__Lines = {"_p_ofPixels_T_unsigned_short_t__Lines", "ofPixels_< unsigned short >::Lines *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPlanePrimitive = {"_p_ofPlanePrimitive", "ofPlanePrimitive *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPolyRenderMode = {"_p_ofPolyRenderMode", "ofPolyRenderMode *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPolyline = {"_p_ofPolyline", "ofPolyline *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofPrimitiveMode = {"_p_ofPrimitiveMode", "ofPrimitiveMode *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofPtrT_ofAppBaseWindow_t = {"_p_ofPtrT_ofAppBaseWindow_t", "ofPtr< ofAppBaseWindow > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofPtrT_ofBaseApp_t = {"_p_ofPtrT_ofBaseApp_t", "ofPtr< ofBaseApp > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofPtrT_ofBaseSoundPlayer_t = {"_p_ofPtrT_ofBaseSoundPlayer_t", "ofPtr< ofBaseSoundPlayer > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofPtrT_ofBaseSoundStream_t = {"_p_ofPtrT_ofBaseSoundStream_t", "ofPtr< ofBaseSoundStream > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofPtrT_ofBaseVideoGrabber_t = {"_p_ofPtrT_ofBaseVideoGrabber_t", "ofPtr< ofBaseVideoGrabber > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofPtrT_ofBaseVideoPlayer_t = {"_p_ofPtrT_ofBaseVideoPlayer_t", "ofPtr< ofBaseVideoPlayer > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofQuaternion = {"_p_ofQuaternion", "ofQuaternion *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofRectangle = {"_p_ofRectangle", "ofRectangle *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofSerial = {"_p_ofSerial", "ofSerial *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofSerialDeviceInfo = {"_p_ofSerialDeviceInfo", "ofSerialDeviceInfo *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofShader = {"_p_ofShader", "ofShader *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofSoundDevice = {"_p_ofSoundDevice", "ofSoundDevice *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofSoundPlayer = {"_p_ofSoundPlayer", "ofSoundPlayer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofSoundStream = {"_p_ofSoundStream", "ofSoundStream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofSpherePrimitive = {"_p_ofSpherePrimitive", "ofSpherePrimitive *", 0, 0, (void*)0, 0}; @@ -56873,10 +65619,10 @@ static swig_type_info _swigt__p_ofStyle = {"_p_ofStyle", "ofStyle *", 0, 0, (voi static swig_type_info _swigt__p_ofTTFCharacter = {"_p_ofTTFCharacter", "ofTTFCharacter *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofTexture = {"_p_ofTexture", "ofTexture *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofTextureData = {"_p_ofTextureData", "ofTextureData *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ofThread = {"_p_ofThread", "ofThread *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofTouchEventArgs = {"_p_ofTouchEventArgs", "ofTouchEventArgs *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofTrueTypeFont = {"_p_ofTrueTypeFont", "ofTrueTypeFont *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofURLFileLoader = {"_p_ofURLFileLoader", "ofURLFileLoader *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofUTF8Iterator = {"_p_ofUTF8Iterator", "ofUTF8Iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofVbo = {"_p_ofVbo", "ofVbo *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofVboMesh = {"_p_ofVboMesh", "ofVboMesh *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofVec2f = {"_p_ofVec2f", "ofVec2f *", 0, 0, (void*)0, 0}; @@ -56884,9 +65630,18 @@ static swig_type_info _swigt__p_ofVec3f = {"_p_ofVec3f", "ofPoint *|ofVec3f *", static swig_type_info _swigt__p_ofVec4f = {"_p_ofVec4f", "ofVec4f *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofVideoGrabber = {"_p_ofVideoGrabber", "ofVideoGrabber *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofVideoPlayer = {"_p_ofVideoPlayer", "ofVideoPlayer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofWindowSettings = {"_p_ofWindowSettings", "ofWindowSettings *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ofXml = {"_p_ofXml", "ofXml *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ostream = {"_p_ostream", "ostream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofAppBaseWindow_t = {"_p_shared_ptrT_ofAppBaseWindow_t", "shared_ptr< ofAppBaseWindow > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofAppGLFWWindow_t = {"_p_shared_ptrT_ofAppGLFWWindow_t", "shared_ptr< ofAppGLFWWindow > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseApp_t = {"_p_shared_ptrT_ofBaseApp_t", "shared_ptr< ofBaseApp > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseRenderer_t = {"_p_shared_ptrT_ofBaseRenderer_t", "shared_ptr< ofBaseRenderer > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseSoundPlayer_t = {"_p_shared_ptrT_ofBaseSoundPlayer_t", "shared_ptr< ofBaseSoundPlayer > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseSoundStream_t = {"_p_shared_ptrT_ofBaseSoundStream_t", "shared_ptr< ofBaseSoundStream > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseVideoGrabber_t = {"_p_shared_ptrT_ofBaseVideoGrabber_t", "shared_ptr< ofBaseVideoGrabber > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseVideoPlayer_t = {"_p_shared_ptrT_ofBaseVideoPlayer_t", "shared_ptr< ofBaseVideoPlayer > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofMainLoop_t = {"_p_shared_ptrT_ofMainLoop_t", "shared_ptr< ofMainLoop > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_float_t = {"_p_std__allocatorT_float_t", "std::vector< float >::allocator_type *|std::allocator< float > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_int_t = {"_p_std__allocatorT_int_t", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0}; @@ -56894,69 +65649,77 @@ static swig_type_info _swigt__p_std__allocatorT_std__string_t = {"_p_std__alloca static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t = {"_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t", "std::map< std::string,std::string > *|std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT__Tp__Alloc_t = {"_p_std__vectorT__Tp__Alloc_t", "std::vector< _Tp,_Alloc > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_float_std__allocatorT_float_t_t = {"_p_std__vectorT_float_std__allocatorT_float_t_t", "std::vector< float > *|std::vector< float,std::allocator< float > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t = {"_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t", "std::vector< ofColor_< float > > *|std::vector< ofFloatColor > *|std::vector< ofColor_< float >,std::allocator< ofColor_< float > > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t = {"_p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t", "std::vector< ofFile,std::allocator< ofFile > > *|std::vector< ofFile > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t = {"_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t", "std::vector< ofMeshFace > *|std::vector< ofMeshFace,std::allocator< ofMeshFace > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t = {"_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t", "std::vector< ofPath::Command,std::allocator< ofPath::Command > > *|std::vector< ofPath::Command > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t = {"_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t", "std::vector< ofPolyline > *|std::vector< ofPolyline,std::allocator< ofPolyline > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t = {"_p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t", "std::vector< ofSerialDeviceInfo,std::allocator< ofSerialDeviceInfo > > *|std::vector< ofSerialDeviceInfo > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t = {"_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t", "std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t = {"_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t", "std::vector< ofTTFCharacter > *|std::vector< ofTTFCharacter,std::allocator< ofTTFCharacter > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t = {"_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t", "std::vector< ofTexture,std::allocator< ofTexture > > *|std::vector< ofTexture > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t = {"_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t", "std::vector< ofVec2f > *|std::vector< ofVec2f,std::allocator< ofVec2f > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t", "std::vector< ofVec3f,std::allocator< ofVec3f > > *|std::vector< ofPoint,std::allocator< ofPoint > > *|std::vector< ofVec3f > *|std::vector< ofPoint > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::const_iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::const_reverse_iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::reverse_iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t = {"_p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t", "std::vector< ofVideoDevice,std::allocator< ofVideoDevice > > *|std::vector< ofVideoDevice > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_size_t_std__allocatorT_size_t_t_t = {"_p_std__vectorT_size_t_std__allocatorT_size_t_t_t", "std::vector< size_t,std::allocator< size_t > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t = {"_p_std__vectorT_std__string_std__allocatorT_std__string_t_t", "std::vector< std::string,std::allocator< std::string > > *|std::vector< std::string > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t = {"_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t", "std::vector< unsigned char > *|std::vector< unsigned char,std::allocator< unsigned char > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t = {"_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t", "std::vector< unsigned int,std::allocator< unsigned int > > *|std::vector< unsigned int > *|std::vector< ofIndexType > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t = {"_p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t", "std::vector< weak_ptr< ofLight::Data >,std::allocator< weak_ptr< ofLight::Data > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint64_t = {"_p_uint64_t", "uint64_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|ofPixels_< unsigned char >::iterator|ofPixels_< unsigned char >::const_iterator|ofPixels_< unsigned char >::reverse_iterator|ofPixels_< unsigned char >::const_reverse_iterator", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "ofIndexType *|unsigned int *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|ofPixels_< unsigned short >::iterator|ofPixels_< unsigned short >::const_iterator|ofPixels_< unsigned short >::reverse_iterator|ofPixels_< unsigned short >::const_reverse_iterator", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_utf8__iteratorT_std__string__const_iterator_t = {"_p_utf8__iteratorT_std__string__const_iterator_t", "utf8::iterator< std::string::const_iterator > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_utf8__iteratorT_std__string__const_reverse_iterator_t = {"_p_utf8__iteratorT_std__string__const_reverse_iterator_t", "utf8::iterator< std::string::const_reverse_iterator > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_GLenum, &_swigt__p_GLsizei, &_swigt__p_GLuint, - &_swigt__p_Poco__File, &_swigt__p_Poco__XML__Document, &_swigt__p_Poco__XML__Element, &_swigt__p_allocator_type, &_swigt__p_char, &_swigt__p_difference_type, &_swigt__p_double, - &_swigt__p_filebuf, &_swigt__p_float, - &_swigt__p_fstream, &_swigt__p_int, - &_swigt__p_istream, + &_swigt__p_int64_t, &_swigt__p_listT_int_t, &_swigt__p_listT_std__string_t, &_swigt__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t, + &_swigt__p_of3dGraphics, &_swigt__p_of3dPrimitive, &_swigt__p_ofAbstractImage, &_swigt__p_ofAbstractParameter, &_swigt__p_ofAppBaseWindow, &_swigt__p_ofArduino, - &_swigt__p_ofAudioEventArgs, &_swigt__p_ofBaseApp, &_swigt__p_ofBaseDraws, &_swigt__p_ofBaseFileSerializer, &_swigt__p_ofBaseGLRenderer, &_swigt__p_ofBaseHasPixels, &_swigt__p_ofBaseHasTexture, + &_swigt__p_ofBaseHasTexturePlanes, &_swigt__p_ofBaseImage_T_float_t, &_swigt__p_ofBaseImage_T_unsigned_char_t, &_swigt__p_ofBaseImage_T_unsigned_short_t, &_swigt__p_ofBaseLoggerChannel, + &_swigt__p_ofBaseMaterial, &_swigt__p_ofBaseRenderer, &_swigt__p_ofBaseSerializer, &_swigt__p_ofBaseSoundInput, &_swigt__p_ofBaseSoundOutput, &_swigt__p_ofBaseSoundPlayer, + &_swigt__p_ofBaseURLFileLoader, &_swigt__p_ofBaseUpdates, &_swigt__p_ofBaseVideo, &_swigt__p_ofBaseVideoDraws, @@ -56964,17 +65727,17 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_ofBaseVideoPlayer, &_swigt__p_ofBoxPrimitive, &_swigt__p_ofBuffer, + &_swigt__p_ofBufferObject, &_swigt__p_ofCamera, &_swigt__p_ofColor_T_float_t, &_swigt__p_ofColor_T_unsigned_char_t, &_swigt__p_ofColor_T_unsigned_short_t, &_swigt__p_ofConePrimitive, &_swigt__p_ofConsoleLoggerChannel, + &_swigt__p_ofCoreEvents, &_swigt__p_ofCylinderPrimitive, - &_swigt__p_ofDirectory, &_swigt__p_ofDragInfo, &_swigt__p_ofEasyCam, - &_swigt__p_ofEntryEventArgs, &_swigt__p_ofEventArgs, &_swigt__p_ofEventT_int_const_t, &_swigt__p_ofEventT_ofHttpResponse_t, @@ -56985,7 +65748,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_ofFile, &_swigt__p_ofFileDialogResult, &_swigt__p_ofFileLoggerChannel, - &_swigt__p_ofFilePath, + &_swigt__p_ofGLProgrammableRenderer, &_swigt__p_ofHttpRequest, &_swigt__p_ofHttpResponse, &_swigt__p_ofIcoSpherePrimitive, @@ -57001,6 +65764,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_ofLogVerbose, &_swigt__p_ofLogWarning, &_swigt__p_ofMaterial, + &_swigt__p_ofMaterial__Data, &_swigt__p_ofMatrix3x3, &_swigt__p_ofMatrix4x4, &_swigt__p_ofMatrixStack, @@ -57009,27 +65773,34 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_ofMessage, &_swigt__p_ofMouseEventArgs, &_swigt__p_ofNode, + &_swigt__p_ofParameterGroup, &_swigt__p_ofPath, - &_swigt__p_ofPixels_T_PixelType_t, &_swigt__p_ofPixels_T_float_t, + &_swigt__p_ofPixels_T_float_t__ConstLine, + &_swigt__p_ofPixels_T_float_t__ConstLines, + &_swigt__p_ofPixels_T_float_t__Line, + &_swigt__p_ofPixels_T_float_t__Lines, &_swigt__p_ofPixels_T_unsigned_char_t, + &_swigt__p_ofPixels_T_unsigned_char_t__ConstLine, + &_swigt__p_ofPixels_T_unsigned_char_t__ConstLines, + &_swigt__p_ofPixels_T_unsigned_char_t__Line, + &_swigt__p_ofPixels_T_unsigned_char_t__Lines, &_swigt__p_ofPixels_T_unsigned_short_t, + &_swigt__p_ofPixels_T_unsigned_short_t__ConstLine, + &_swigt__p_ofPixels_T_unsigned_short_t__ConstLines, + &_swigt__p_ofPixels_T_unsigned_short_t__Line, + &_swigt__p_ofPixels_T_unsigned_short_t__Lines, &_swigt__p_ofPlanePrimitive, &_swigt__p_ofPolyRenderMode, &_swigt__p_ofPolyline, &_swigt__p_ofPrimitiveMode, - &_swigt__p_ofPtrT_ofAppBaseWindow_t, - &_swigt__p_ofPtrT_ofBaseApp_t, - &_swigt__p_ofPtrT_ofBaseSoundPlayer_t, - &_swigt__p_ofPtrT_ofBaseSoundStream_t, - &_swigt__p_ofPtrT_ofBaseVideoGrabber_t, - &_swigt__p_ofPtrT_ofBaseVideoPlayer_t, &_swigt__p_ofQuaternion, &_swigt__p_ofRectangle, &_swigt__p_ofResizeEventArgs, &_swigt__p_ofSerial, &_swigt__p_ofSerialDeviceInfo, &_swigt__p_ofShader, + &_swigt__p_ofSoundDevice, &_swigt__p_ofSoundPlayer, &_swigt__p_ofSoundStream, &_swigt__p_ofSpherePrimitive, @@ -57037,10 +65808,10 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_ofTTFCharacter, &_swigt__p_ofTexture, &_swigt__p_ofTextureData, - &_swigt__p_ofThread, &_swigt__p_ofTouchEventArgs, &_swigt__p_ofTrueTypeFont, &_swigt__p_ofURLFileLoader, + &_swigt__p_ofUTF8Iterator, &_swigt__p_ofVbo, &_swigt__p_ofVboMesh, &_swigt__p_ofVec2f, @@ -57048,9 +65819,18 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_ofVec4f, &_swigt__p_ofVideoGrabber, &_swigt__p_ofVideoPlayer, + &_swigt__p_ofWindowSettings, &_swigt__p_ofXml, - &_swigt__p_ostream, &_swigt__p_p_PyObject, + &_swigt__p_shared_ptrT_ofAppBaseWindow_t, + &_swigt__p_shared_ptrT_ofAppGLFWWindow_t, + &_swigt__p_shared_ptrT_ofBaseApp_t, + &_swigt__p_shared_ptrT_ofBaseRenderer_t, + &_swigt__p_shared_ptrT_ofBaseSoundPlayer_t, + &_swigt__p_shared_ptrT_ofBaseSoundStream_t, + &_swigt__p_shared_ptrT_ofBaseVideoGrabber_t, + &_swigt__p_shared_ptrT_ofBaseVideoPlayer_t, + &_swigt__p_shared_ptrT_ofMainLoop_t, &_swigt__p_size_type, &_swigt__p_std__allocatorT_float_t, &_swigt__p_std__allocatorT_int_t, @@ -57058,70 +65838,79 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_std__invalid_argument, &_swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, &_swigt__p_std__string, - &_swigt__p_std__vectorT__Tp__Alloc_t, &_swigt__p_std__vectorT_float_std__allocatorT_float_t_t, &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, &_swigt__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, - &_swigt__p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t, &_swigt__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, &_swigt__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, &_swigt__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, &_swigt__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, + &_swigt__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, &_swigt__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, + &_swigt__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, &_swigt__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, &_swigt__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, + &_swigt__p_std__vectorT_size_t_std__allocatorT_size_t_t_t, &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, &_swigt__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, &_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, + &_swigt__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, &_swigt__p_swig__SwigPyIterator, &_swigt__p_uint64_t, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_short, + &_swigt__p_utf8__iteratorT_std__string__const_iterator_t, + &_swigt__p_utf8__iteratorT_std__string__const_reverse_iterator_t, &_swigt__p_value_type, }; static swig_cast_info _swigc__p_GLenum[] = { {&_swigt__p_GLenum, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_GLsizei[] = { {&_swigt__p_GLsizei, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_GLuint[] = { {&_swigt__p_GLuint, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Poco__File[] = { {&_swigt__p_Poco__File, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Poco__XML__Document[] = { {&_swigt__p_Poco__XML__Document, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Poco__XML__Element[] = { {&_swigt__p_Poco__XML__Element, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_filebuf[] = { {&_swigt__p_filebuf, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_fstream[] = { {&_swigt__p_fstream, 0, 0, 0}, {&_swigt__p_ofFile, _p_ofFileTo_p_fstream, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_istream[] = { {&_swigt__p_istream, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int64_t[] = { {&_swigt__p_int64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_listT_int_t[] = { {&_swigt__p_listT_int_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_listT_std__string_t[] = { {&_swigt__p_listT_std__string_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t[] = { {&_swigt__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_of3dGraphics[] = { {&_swigt__p_of3dGraphics, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_of3dPrimitive[] = { {&_swigt__p_of3dPrimitive, 0, 0, 0}, {&_swigt__p_ofPlanePrimitive, _p_ofPlanePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofSpherePrimitive, _p_ofSpherePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofIcoSpherePrimitive, _p_ofIcoSpherePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofCylinderPrimitive, _p_ofCylinderPrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofConePrimitive, _p_ofConePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofBoxPrimitive, _p_ofBoxPrimitiveTo_p_of3dPrimitive, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofAbstractParameter[] = { {&_swigt__p_ofAbstractParameter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofAppBaseWindow[] = { {&_swigt__p_ofAppBaseWindow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofArduino[] = { {&_swigt__p_ofArduino, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseApp[] = { {&_swigt__p_ofBaseApp, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofAbstractImage[] = {{&_swigt__p_ofAbstractImage, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofBaseDraws[] = { {&_swigt__p_ofAbstractImage, _p_ofAbstractImageTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofBaseDraws, 0, 0, 0}, {&_swigt__p_ofTexture, _p_ofTextureTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofFbo, _p_ofFboTo_p_ofBaseDraws, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseDraws[] = { {&_swigt__p_ofAbstractImage, _p_ofAbstractImageTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofBaseDraws, 0, 0, 0}, {&_swigt__p_ofTexture, _p_ofTextureTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofFbo, _p_ofFboTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseDraws, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseFileSerializer[] = { {&_swigt__p_ofXml, _p_ofXmlTo_p_ofBaseFileSerializer, 0, 0}, {&_swigt__p_ofBaseFileSerializer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseHasPixels[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseVideoGrabber, _p_ofBaseVideoGrabberTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseVideo, _p_ofBaseVideoTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseHasPixels, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseVideoPlayer, _p_ofBaseVideoPlayerTo_p_ofBaseHasPixels, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofBaseHasTexture[] = { {&_swigt__p_ofAbstractImage, _p_ofAbstractImageTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofBaseHasTexture, 0, 0, 0}, {&_swigt__p_ofFbo, _p_ofFboTo_p_ofBaseHasTexture, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseHasTexture[] = { {&_swigt__p_ofAbstractImage, _p_ofAbstractImageTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofBaseHasTexture, 0, 0, 0}, {&_swigt__p_ofFbo, _p_ofFboTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofBaseHasTexturePlanes, _p_ofBaseHasTexturePlanesTo_p_ofBaseHasTexture, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseHasTexturePlanes[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseHasTexturePlanes, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseHasTexturePlanes, 0, 0}, {&_swigt__p_ofBaseHasTexturePlanes, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseHasTexturePlanes, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseImage_T_float_t[] = { {&_swigt__p_ofBaseImage_T_float_t, 0, 0, 0}, {&_swigt__p_ofImage_T_float_t, _p_ofImage_T_float_tTo_p_ofBaseImage_T_float_t, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofBaseImage_T_unsigned_char_t[] = { {&_swigt__p_ofBaseImage_T_unsigned_char_t, 0, 0, 0}, {&_swigt__p_ofImage_T_unsigned_char_t, _p_ofImage_T_unsigned_char_tTo_p_ofBaseImage_T_unsigned_char_t, 0, 0}, {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseImage_T_unsigned_char_t, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseImage_T_unsigned_char_t, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseImage_T_unsigned_char_t, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseImage_T_unsigned_char_t[] = { {&_swigt__p_ofBaseImage_T_unsigned_char_t, 0, 0, 0}, {&_swigt__p_ofImage_T_unsigned_char_t, _p_ofImage_T_unsigned_char_tTo_p_ofBaseImage_T_unsigned_char_t, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseImage_T_unsigned_short_t[] = { {&_swigt__p_ofBaseImage_T_unsigned_short_t, 0, 0, 0}, {&_swigt__p_ofImage_T_unsigned_short_t, _p_ofImage_T_unsigned_short_tTo_p_ofBaseImage_T_unsigned_short_t, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofConsoleLoggerChannel[] = {{&_swigt__p_ofConsoleLoggerChannel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofFileLoggerChannel[] = {{&_swigt__p_ofFileLoggerChannel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseLoggerChannel[] = { {&_swigt__p_ofBaseLoggerChannel, 0, 0, 0}, {&_swigt__p_ofConsoleLoggerChannel, _p_ofConsoleLoggerChannelTo_p_ofBaseLoggerChannel, 0, 0}, {&_swigt__p_ofFileLoggerChannel, _p_ofFileLoggerChannelTo_p_ofBaseLoggerChannel, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseMaterial[] = { {&_swigt__p_ofBaseMaterial, 0, 0, 0}, {&_swigt__p_ofMaterial, _p_ofMaterialTo_p_ofBaseMaterial, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseGLRenderer[] = {{&_swigt__p_ofBaseGLRenderer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseRenderer[] = { {&_swigt__p_ofBaseRenderer, 0, 0, 0}, {&_swigt__p_ofBaseGLRenderer, _p_ofBaseGLRendererTo_p_ofBaseRenderer, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseSerializer[] = { {&_swigt__p_ofXml, _p_ofXmlTo_p_ofBaseSerializer, 0, 0}, {&_swigt__p_ofBaseSerializer, 0, 0, 0}, {&_swigt__p_ofBaseFileSerializer, _p_ofBaseFileSerializerTo_p_ofBaseSerializer, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseSoundInput[] = { {&_swigt__p_ofBaseSoundInput, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseSoundOutput[] = { {&_swigt__p_ofBaseSoundOutput, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseSoundPlayer[] = { {&_swigt__p_ofBaseSoundPlayer, 0, 0, 0}, {&_swigt__p_ofSoundPlayer, _p_ofSoundPlayerTo_p_ofBaseSoundPlayer, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseURLFileLoader[] = { {&_swigt__p_ofBaseURLFileLoader, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseUpdates[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseVideoGrabber, _p_ofBaseVideoGrabberTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseVideo, _p_ofBaseVideoTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseUpdates, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseVideoPlayer, _p_ofBaseVideoPlayerTo_p_ofBaseUpdates, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseVideo[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofBaseVideoGrabber, _p_ofBaseVideoGrabberTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofBaseVideo, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofBaseVideoPlayer, _p_ofBaseVideoPlayerTo_p_ofBaseVideo, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBaseVideoDraws[] = { {&_swigt__p_ofBaseVideoDraws, 0, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseVideoDraws, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseVideoDraws, 0, 0},{0, 0, 0, 0}}; @@ -57129,21 +65918,20 @@ static swig_cast_info _swigc__p_ofBaseVideoGrabber[] = { {&_swigt__p_ofBaseVide static swig_cast_info _swigc__p_ofBaseVideoPlayer[] = { {&_swigt__p_ofBaseVideoPlayer, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseVideoPlayer, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBoxPrimitive[] = { {&_swigt__p_ofBoxPrimitive, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofBuffer[] = { {&_swigt__p_ofBuffer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBufferObject[] = { {&_swigt__p_ofBufferObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofCamera[] = { {&_swigt__p_ofEasyCam, _p_ofEasyCamTo_p_ofCamera, 0, 0}, {&_swigt__p_ofCamera, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofColor_T_float_t[] = { {&_swigt__p_ofColor_T_float_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofColor_T_unsigned_char_t[] = { {&_swigt__p_ofColor_T_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofColor_T_unsigned_short_t[] = { {&_swigt__p_ofColor_T_unsigned_short_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofConePrimitive[] = { {&_swigt__p_ofConePrimitive, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofCoreEvents[] = { {&_swigt__p_ofCoreEvents, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofCylinderPrimitive[] = { {&_swigt__p_ofCylinderPrimitive, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofDirectory[] = { {&_swigt__p_ofDirectory, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofDragInfo[] = { {&_swigt__p_ofDragInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofEasyCam[] = { {&_swigt__p_ofEasyCam, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofEntryEventArgs[] = {{&_swigt__p_ofEntryEventArgs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofKeyEventArgs[] = {{&_swigt__p_ofKeyEventArgs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofMouseEventArgs[] = {{&_swigt__p_ofMouseEventArgs, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofAudioEventArgs[] = {{&_swigt__p_ofAudioEventArgs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofResizeEventArgs[] = {{&_swigt__p_ofResizeEventArgs, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofEventArgs[] = { {&_swigt__p_ofEventArgs, 0, 0, 0}, {&_swigt__p_ofEntryEventArgs, _p_ofEntryEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofKeyEventArgs, _p_ofKeyEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofMouseEventArgs, _p_ofMouseEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofTouchEventArgs, _p_ofTouchEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofAudioEventArgs, _p_ofAudioEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofResizeEventArgs, _p_ofResizeEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofMessage, _p_ofMessageTo_p_ofEventArgs, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofEventArgs[] = { {&_swigt__p_ofEventArgs, 0, 0, 0}, {&_swigt__p_ofKeyEventArgs, _p_ofKeyEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofMouseEventArgs, _p_ofMouseEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofTouchEventArgs, _p_ofTouchEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofResizeEventArgs, _p_ofResizeEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofMessage, _p_ofMessageTo_p_ofEventArgs, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofEventT_int_const_t[] = { {&_swigt__p_ofEventT_int_const_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofEventT_ofHttpResponse_t[] = { {&_swigt__p_ofEventT_ofHttpResponse_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofEventT_std__string_const_t[] = { {&_swigt__p_ofEventT_std__string_const_t, 0, 0, 0},{0, 0, 0, 0}}; @@ -57152,7 +65940,7 @@ static swig_cast_info _swigc__p_ofFbo[] = { {&_swigt__p_ofFbo, 0, 0, 0},{0, 0, static swig_cast_info _swigc__p_ofFbo__Settings[] = { {&_swigt__p_ofFbo__Settings, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofFile[] = { {&_swigt__p_ofFile, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofFileDialogResult[] = { {&_swigt__p_ofFileDialogResult, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofFilePath[] = { {&_swigt__p_ofFilePath, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofGLProgrammableRenderer[] = { {&_swigt__p_ofGLProgrammableRenderer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofHttpRequest[] = { {&_swigt__p_ofHttpRequest, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofHttpResponse[] = { {&_swigt__p_ofHttpResponse, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofIcoSpherePrimitive[] = { {&_swigt__p_ofIcoSpherePrimitive, 0, 0, 0},{0, 0, 0, 0}}; @@ -57167,6 +65955,7 @@ static swig_cast_info _swigc__p_ofLogVerbose[] = {{&_swigt__p_ofLogVerbose, 0, 0 static swig_cast_info _swigc__p_ofLogWarning[] = {{&_swigt__p_ofLogWarning, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofLog[] = { {&_swigt__p_ofLogError, _p_ofLogErrorTo_p_ofLog, 0, 0}, {&_swigt__p_ofLogNotice, _p_ofLogNoticeTo_p_ofLog, 0, 0}, {&_swigt__p_ofLogFatalError, _p_ofLogFatalErrorTo_p_ofLog, 0, 0}, {&_swigt__p_ofLogVerbose, _p_ofLogVerboseTo_p_ofLog, 0, 0}, {&_swigt__p_ofLog, 0, 0, 0}, {&_swigt__p_ofLogWarning, _p_ofLogWarningTo_p_ofLog, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofMaterial[] = { {&_swigt__p_ofMaterial, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMaterial__Data[] = { {&_swigt__p_ofMaterial__Data, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofMatrix3x3[] = { {&_swigt__p_ofMatrix3x3, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofMatrix4x4[] = { {&_swigt__p_ofMatrix4x4, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofMatrixStack[] = { {&_swigt__p_ofMatrixStack, 0, 0, 0},{0, 0, 0, 0}}; @@ -57174,26 +65963,33 @@ static swig_cast_info _swigc__p_ofMesh[] = { {&_swigt__p_ofMesh, 0, 0, 0}, {&_ static swig_cast_info _swigc__p_ofMeshFace[] = { {&_swigt__p_ofMeshFace, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofMessage[] = { {&_swigt__p_ofMessage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofNode[] = { {&_swigt__p_ofNode, 0, 0, 0}, {&_swigt__p_of3dPrimitive, _p_of3dPrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofPlanePrimitive, _p_ofPlanePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofSpherePrimitive, _p_ofSpherePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofIcoSpherePrimitive, _p_ofIcoSpherePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofCylinderPrimitive, _p_ofCylinderPrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofConePrimitive, _p_ofConePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofBoxPrimitive, _p_ofBoxPrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofEasyCam, _p_ofEasyCamTo_p_ofNode, 0, 0}, {&_swigt__p_ofLight, _p_ofLightTo_p_ofNode, 0, 0}, {&_swigt__p_ofCamera, _p_ofCameraTo_p_ofNode, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofParameterGroup[] = { {&_swigt__p_ofParameterGroup, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPath[] = { {&_swigt__p_ofPath, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofPixels_T_PixelType_t[] = { {&_swigt__p_ofPixels_T_PixelType_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPixels_T_float_t[] = { {&_swigt__p_ofPixels_T_float_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__ConstLine[] = { {&_swigt__p_ofPixels_T_float_t__ConstLine, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__ConstLines[] = { {&_swigt__p_ofPixels_T_float_t__ConstLines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__Line[] = { {&_swigt__p_ofPixels_T_float_t__Line, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__Lines[] = { {&_swigt__p_ofPixels_T_float_t__Lines, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t[] = { {&_swigt__p_ofPixels_T_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__ConstLine[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__ConstLine, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__ConstLines[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__ConstLines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__Line[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__Line, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__Lines[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__Lines, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t[] = { {&_swigt__p_ofPixels_T_unsigned_short_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__ConstLine[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__ConstLine, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__ConstLines[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__ConstLines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__Line[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__Line, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__Lines[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__Lines, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPlanePrimitive[] = { {&_swigt__p_ofPlanePrimitive, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPolyRenderMode[] = { {&_swigt__p_ofPolyRenderMode, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPolyline[] = { {&_swigt__p_ofPolyline, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofPrimitiveMode[] = { {&_swigt__p_ofPrimitiveMode, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofPtrT_ofAppBaseWindow_t[] = { {&_swigt__p_ofPtrT_ofAppBaseWindow_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofPtrT_ofBaseApp_t[] = { {&_swigt__p_ofPtrT_ofBaseApp_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofPtrT_ofBaseSoundPlayer_t[] = { {&_swigt__p_ofPtrT_ofBaseSoundPlayer_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofPtrT_ofBaseSoundStream_t[] = { {&_swigt__p_ofPtrT_ofBaseSoundStream_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofPtrT_ofBaseVideoGrabber_t[] = { {&_swigt__p_ofPtrT_ofBaseVideoGrabber_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofPtrT_ofBaseVideoPlayer_t[] = { {&_swigt__p_ofPtrT_ofBaseVideoPlayer_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofQuaternion[] = { {&_swigt__p_ofQuaternion, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofRectangle[] = { {&_swigt__p_ofRectangle, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofSerial[] = { {&_swigt__p_ofSerial, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofSerialDeviceInfo[] = { {&_swigt__p_ofSerialDeviceInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofShader[] = { {&_swigt__p_ofShader, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofSoundDevice[] = { {&_swigt__p_ofSoundDevice, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofSoundPlayer[] = { {&_swigt__p_ofSoundPlayer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofSoundStream[] = { {&_swigt__p_ofSoundStream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofSpherePrimitive[] = { {&_swigt__p_ofSpherePrimitive, 0, 0, 0},{0, 0, 0, 0}}; @@ -57201,10 +65997,10 @@ static swig_cast_info _swigc__p_ofStyle[] = { {&_swigt__p_ofStyle, 0, 0, 0},{0, static swig_cast_info _swigc__p_ofTTFCharacter[] = { {&_swigt__p_ofTTFCharacter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofTexture[] = { {&_swigt__p_ofTexture, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofTextureData[] = { {&_swigt__p_ofTextureData, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ofThread[] = { {&_swigt__p_ofThread, 0, 0, 0}, {&_swigt__p_ofURLFileLoader, _p_ofURLFileLoaderTo_p_ofThread, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofTouchEventArgs[] = { {&_swigt__p_ofTouchEventArgs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofTrueTypeFont[] = { {&_swigt__p_ofTrueTypeFont, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofURLFileLoader[] = { {&_swigt__p_ofURLFileLoader, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofUTF8Iterator[] = { {&_swigt__p_ofUTF8Iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofVbo[] = { {&_swigt__p_ofVbo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofVboMesh[] = { {&_swigt__p_ofVboMesh, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofVec2f[] = { {&_swigt__p_ofMouseEventArgs, _p_ofMouseEventArgsTo_p_ofVec2f, 0, 0}, {&_swigt__p_ofTouchEventArgs, _p_ofTouchEventArgsTo_p_ofVec2f, 0, 0}, {&_swigt__p_ofVec2f, 0, 0, 0},{0, 0, 0, 0}}; @@ -57212,9 +66008,18 @@ static swig_cast_info _swigc__p_ofVec3f[] = { {&_swigt__p_ofVec3f, 0, 0, 0},{0, static swig_cast_info _swigc__p_ofVec4f[] = { {&_swigt__p_ofVec4f, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofVideoGrabber[] = { {&_swigt__p_ofVideoGrabber, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofVideoPlayer[] = { {&_swigt__p_ofVideoPlayer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofWindowSettings[] = { {&_swigt__p_ofWindowSettings, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ofXml[] = { {&_swigt__p_ofXml, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ostream[] = { {&_swigt__p_ostream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofAppBaseWindow_t[] = { {&_swigt__p_shared_ptrT_ofAppBaseWindow_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofAppGLFWWindow_t[] = { {&_swigt__p_shared_ptrT_ofAppGLFWWindow_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseApp_t[] = { {&_swigt__p_shared_ptrT_ofBaseApp_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseRenderer_t[] = { {&_swigt__p_shared_ptrT_ofBaseRenderer_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseSoundPlayer_t[] = { {&_swigt__p_shared_ptrT_ofBaseSoundPlayer_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseSoundStream_t[] = { {&_swigt__p_shared_ptrT_ofBaseSoundStream_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseVideoGrabber_t[] = { {&_swigt__p_shared_ptrT_ofBaseVideoGrabber_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseVideoPlayer_t[] = { {&_swigt__p_shared_ptrT_ofBaseVideoPlayer_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofMainLoop_t[] = { {&_swigt__p_shared_ptrT_ofMainLoop_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_float_t[] = { {&_swigt__p_std__allocatorT_float_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_int_t[] = { {&_swigt__p_std__allocatorT_int_t, 0, 0, 0},{0, 0, 0, 0}}; @@ -57222,69 +66027,77 @@ static swig_cast_info _swigc__p_std__allocatorT_std__string_t[] = { {&_swigt__p static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t[] = { {&_swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT__Tp__Alloc_t[] = { {&_swigt__p_std__vectorT__Tp__Alloc_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_float_std__allocatorT_float_t_t[] = { {&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t[] = { {&_swigt__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t[] = { {&_swigt__p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t[] = { {&_swigt__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t[] = { {&_swigt__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t[] = { {&_swigt__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t[] = { {&_swigt__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t[] = { {&_swigt__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t[] = { {&_swigt__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t[] = { {&_swigt__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t[] = { {&_swigt__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t[] = { {&_swigt__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_size_t_std__allocatorT_size_t_t_t[] = { {&_swigt__p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t[] = { {&_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t[] = { {&_swigt__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t[] = { {&_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t[] = { {&_swigt__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint64_t[] = { {&_swigt__p_uint64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_utf8__iteratorT_std__string__const_iterator_t[] = { {&_swigt__p_utf8__iteratorT_std__string__const_iterator_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_utf8__iteratorT_std__string__const_reverse_iterator_t[] = { {&_swigt__p_utf8__iteratorT_std__string__const_reverse_iterator_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_GLenum, _swigc__p_GLsizei, _swigc__p_GLuint, - _swigc__p_Poco__File, _swigc__p_Poco__XML__Document, _swigc__p_Poco__XML__Element, _swigc__p_allocator_type, _swigc__p_char, _swigc__p_difference_type, _swigc__p_double, - _swigc__p_filebuf, _swigc__p_float, - _swigc__p_fstream, _swigc__p_int, - _swigc__p_istream, + _swigc__p_int64_t, _swigc__p_listT_int_t, _swigc__p_listT_std__string_t, _swigc__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t, + _swigc__p_of3dGraphics, _swigc__p_of3dPrimitive, _swigc__p_ofAbstractImage, _swigc__p_ofAbstractParameter, _swigc__p_ofAppBaseWindow, _swigc__p_ofArduino, - _swigc__p_ofAudioEventArgs, _swigc__p_ofBaseApp, _swigc__p_ofBaseDraws, _swigc__p_ofBaseFileSerializer, _swigc__p_ofBaseGLRenderer, _swigc__p_ofBaseHasPixels, _swigc__p_ofBaseHasTexture, + _swigc__p_ofBaseHasTexturePlanes, _swigc__p_ofBaseImage_T_float_t, _swigc__p_ofBaseImage_T_unsigned_char_t, _swigc__p_ofBaseImage_T_unsigned_short_t, _swigc__p_ofBaseLoggerChannel, + _swigc__p_ofBaseMaterial, _swigc__p_ofBaseRenderer, _swigc__p_ofBaseSerializer, _swigc__p_ofBaseSoundInput, _swigc__p_ofBaseSoundOutput, _swigc__p_ofBaseSoundPlayer, + _swigc__p_ofBaseURLFileLoader, _swigc__p_ofBaseUpdates, _swigc__p_ofBaseVideo, _swigc__p_ofBaseVideoDraws, @@ -57292,17 +66105,17 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_ofBaseVideoPlayer, _swigc__p_ofBoxPrimitive, _swigc__p_ofBuffer, + _swigc__p_ofBufferObject, _swigc__p_ofCamera, _swigc__p_ofColor_T_float_t, _swigc__p_ofColor_T_unsigned_char_t, _swigc__p_ofColor_T_unsigned_short_t, _swigc__p_ofConePrimitive, _swigc__p_ofConsoleLoggerChannel, + _swigc__p_ofCoreEvents, _swigc__p_ofCylinderPrimitive, - _swigc__p_ofDirectory, _swigc__p_ofDragInfo, _swigc__p_ofEasyCam, - _swigc__p_ofEntryEventArgs, _swigc__p_ofEventArgs, _swigc__p_ofEventT_int_const_t, _swigc__p_ofEventT_ofHttpResponse_t, @@ -57313,7 +66126,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_ofFile, _swigc__p_ofFileDialogResult, _swigc__p_ofFileLoggerChannel, - _swigc__p_ofFilePath, + _swigc__p_ofGLProgrammableRenderer, _swigc__p_ofHttpRequest, _swigc__p_ofHttpResponse, _swigc__p_ofIcoSpherePrimitive, @@ -57329,6 +66142,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_ofLogVerbose, _swigc__p_ofLogWarning, _swigc__p_ofMaterial, + _swigc__p_ofMaterial__Data, _swigc__p_ofMatrix3x3, _swigc__p_ofMatrix4x4, _swigc__p_ofMatrixStack, @@ -57337,27 +66151,34 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_ofMessage, _swigc__p_ofMouseEventArgs, _swigc__p_ofNode, + _swigc__p_ofParameterGroup, _swigc__p_ofPath, - _swigc__p_ofPixels_T_PixelType_t, _swigc__p_ofPixels_T_float_t, + _swigc__p_ofPixels_T_float_t__ConstLine, + _swigc__p_ofPixels_T_float_t__ConstLines, + _swigc__p_ofPixels_T_float_t__Line, + _swigc__p_ofPixels_T_float_t__Lines, _swigc__p_ofPixels_T_unsigned_char_t, + _swigc__p_ofPixels_T_unsigned_char_t__ConstLine, + _swigc__p_ofPixels_T_unsigned_char_t__ConstLines, + _swigc__p_ofPixels_T_unsigned_char_t__Line, + _swigc__p_ofPixels_T_unsigned_char_t__Lines, _swigc__p_ofPixels_T_unsigned_short_t, + _swigc__p_ofPixels_T_unsigned_short_t__ConstLine, + _swigc__p_ofPixels_T_unsigned_short_t__ConstLines, + _swigc__p_ofPixels_T_unsigned_short_t__Line, + _swigc__p_ofPixels_T_unsigned_short_t__Lines, _swigc__p_ofPlanePrimitive, _swigc__p_ofPolyRenderMode, _swigc__p_ofPolyline, _swigc__p_ofPrimitiveMode, - _swigc__p_ofPtrT_ofAppBaseWindow_t, - _swigc__p_ofPtrT_ofBaseApp_t, - _swigc__p_ofPtrT_ofBaseSoundPlayer_t, - _swigc__p_ofPtrT_ofBaseSoundStream_t, - _swigc__p_ofPtrT_ofBaseVideoGrabber_t, - _swigc__p_ofPtrT_ofBaseVideoPlayer_t, _swigc__p_ofQuaternion, _swigc__p_ofRectangle, _swigc__p_ofResizeEventArgs, _swigc__p_ofSerial, _swigc__p_ofSerialDeviceInfo, _swigc__p_ofShader, + _swigc__p_ofSoundDevice, _swigc__p_ofSoundPlayer, _swigc__p_ofSoundStream, _swigc__p_ofSpherePrimitive, @@ -57365,10 +66186,10 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_ofTTFCharacter, _swigc__p_ofTexture, _swigc__p_ofTextureData, - _swigc__p_ofThread, _swigc__p_ofTouchEventArgs, _swigc__p_ofTrueTypeFont, _swigc__p_ofURLFileLoader, + _swigc__p_ofUTF8Iterator, _swigc__p_ofVbo, _swigc__p_ofVboMesh, _swigc__p_ofVec2f, @@ -57376,9 +66197,18 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_ofVec4f, _swigc__p_ofVideoGrabber, _swigc__p_ofVideoPlayer, + _swigc__p_ofWindowSettings, _swigc__p_ofXml, - _swigc__p_ostream, _swigc__p_p_PyObject, + _swigc__p_shared_ptrT_ofAppBaseWindow_t, + _swigc__p_shared_ptrT_ofAppGLFWWindow_t, + _swigc__p_shared_ptrT_ofBaseApp_t, + _swigc__p_shared_ptrT_ofBaseRenderer_t, + _swigc__p_shared_ptrT_ofBaseSoundPlayer_t, + _swigc__p_shared_ptrT_ofBaseSoundStream_t, + _swigc__p_shared_ptrT_ofBaseVideoGrabber_t, + _swigc__p_shared_ptrT_ofBaseVideoPlayer_t, + _swigc__p_shared_ptrT_ofMainLoop_t, _swigc__p_size_type, _swigc__p_std__allocatorT_float_t, _swigc__p_std__allocatorT_int_t, @@ -57386,27 +66216,35 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_std__invalid_argument, _swigc__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, _swigc__p_std__string, - _swigc__p_std__vectorT__Tp__Alloc_t, _swigc__p_std__vectorT_float_std__allocatorT_float_t_t, _swigc__p_std__vectorT_int_std__allocatorT_int_t_t, _swigc__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, - _swigc__p_std__vectorT_ofFile_std__allocatorT_ofFile_t_t, _swigc__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, _swigc__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, _swigc__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, _swigc__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, + _swigc__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, _swigc__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, + _swigc__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, _swigc__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, _swigc__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, + _swigc__p_std__vectorT_size_t_std__allocatorT_size_t_t_t, _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, _swigc__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, + _swigc__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, _swigc__p_swig__SwigPyIterator, _swigc__p_uint64_t, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_short, + _swigc__p_utf8__iteratorT_std__string__const_iterator_t, + _swigc__p_utf8__iteratorT_std__string__const_reverse_iterator_t, _swigc__p_value_type, }; @@ -57421,18 +66259,18 @@ static swig_const_info swig_const_table[] = { #endif /* ----------------------------------------------------------------------------- * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * - * The generated swig_type_info structures are assigned staticly to an initial + * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the @@ -57442,17 +66280,17 @@ static swig_const_info swig_const_table[] = { * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it + * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * - * First off, we lookup the cast->type name to see if it is already loaded. + * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the + * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that @@ -57476,9 +66314,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; - - clientdata = clientdata; + int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { @@ -57497,27 +66333,23 @@ SWIG_InitializeModule(void *clientdata) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } - /* When multiple interpeters are used, a module could have already been initialized in + /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ @@ -57764,7 +66596,7 @@ extern "C" { var = var->next; } if (res == NULL && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } @@ -57781,7 +66613,7 @@ extern "C" { var = var->next; } if (res == 1 && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } @@ -57831,10 +66663,19 @@ extern "C" { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; varlink_type = tmp; @@ -57923,7 +66764,9 @@ extern "C" { size_t i; for (i = 0; methods[i].ml_name; ++i) { const char *c = methods[i].ml_doc; - if (c && (c = strstr(c, "swig_ptr: "))) { + if (!c) continue; + c = strstr(c, "swig_ptr: "); + if (c) { int j; swig_const_info *ci = 0; const char *name = c + 10; @@ -58025,6 +66868,7 @@ SWIG_init(void) { PyObject *public_interface, *public_symbol; PyObject *this_descr; PyObject *thisown_descr; + PyObject *self = 0; int i; (void)builtin_pytype; @@ -58032,6 +66876,7 @@ SWIG_init(void) { (void)builtin_basetype; (void)tuple; (void)static_getset; + (void)self; /* metatype is used to implement static member variables. */ metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); @@ -58051,7 +66896,9 @@ SWIG_init(void) { #else m = Py_InitModule((char *) SWIG_name, SwigMethods); #endif + md = d = PyModule_GetDict(m); + (void)md; SWIG_InitializeModule(0); @@ -58093,205 +66940,6 @@ SWIG_init(void) { SWIG_InstallConstants(d,swig_const_table); - SWIG_Python_SetConstant(d, "OF_VERSION_MAJOR",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "OF_VERSION_MINOR",SWIG_From_int(static_cast< int >(8))); - SWIG_Python_SetConstant(d, "OF_VERSION_PATCH",SWIG_From_int(static_cast< int >(4))); - SWIG_Python_SetConstant(d, "OF_LOOP_NONE",SWIG_From_int(static_cast< int >(OF_LOOP_NONE))); - SWIG_Python_SetConstant(d, "OF_LOOP_PALINDROME",SWIG_From_int(static_cast< int >(OF_LOOP_PALINDROME))); - SWIG_Python_SetConstant(d, "OF_LOOP_NORMAL",SWIG_From_int(static_cast< int >(OF_LOOP_NORMAL))); - SWIG_Python_SetConstant(d, "OF_TARGET_OSX",SWIG_From_int(static_cast< int >(OF_TARGET_OSX))); - SWIG_Python_SetConstant(d, "OF_TARGET_WINGCC",SWIG_From_int(static_cast< int >(OF_TARGET_WINGCC))); - SWIG_Python_SetConstant(d, "OF_TARGET_WINVS",SWIG_From_int(static_cast< int >(OF_TARGET_WINVS))); - SWIG_Python_SetConstant(d, "OF_TARGET_IOS",SWIG_From_int(static_cast< int >(OF_TARGET_IOS))); - SWIG_Python_SetConstant(d, "OF_TARGET_ANDROID",SWIG_From_int(static_cast< int >(OF_TARGET_ANDROID))); - SWIG_Python_SetConstant(d, "OF_TARGET_LINUX",SWIG_From_int(static_cast< int >(OF_TARGET_LINUX))); - SWIG_Python_SetConstant(d, "OF_TARGET_LINUX64",SWIG_From_int(static_cast< int >(OF_TARGET_LINUX64))); - SWIG_Python_SetConstant(d, "OF_TARGET_LINUXARMV6L",SWIG_From_int(static_cast< int >(OF_TARGET_LINUXARMV6L))); - SWIG_Python_SetConstant(d, "OF_TARGET_LINUXARMV7L",SWIG_From_int(static_cast< int >(OF_TARGET_LINUXARMV7L))); - SWIG_Python_SetConstant(d, "B14400",SWIG_From_int(static_cast< int >(14400))); - SWIG_Python_SetConstant(d, "B28800",SWIG_From_int(static_cast< int >(28800))); - SWIG_Python_SetConstant(d, "OF_SERIAL_NO_DATA",SWIG_From_int(static_cast< int >(-2))); - SWIG_Python_SetConstant(d, "OF_SERIAL_ERROR",SWIG_From_int(static_cast< int >(-1))); - SWIG_Python_SetConstant(d, "PI",SWIG_From_double(static_cast< double >(3.14159265358979323846))); - SWIG_Python_SetConstant(d, "TWO_PI",SWIG_From_double(static_cast< double >(6.28318530717958647693))); - SWIG_Python_SetConstant(d, "M_TWO_PI",SWIG_From_double(static_cast< double >(6.28318530717958647693))); - SWIG_Python_SetConstant(d, "FOUR_PI",SWIG_From_double(static_cast< double >(12.56637061435917295385))); - SWIG_Python_SetConstant(d, "HALF_PI",SWIG_From_double(static_cast< double >(1.57079632679489661923))); - SWIG_Python_SetConstant(d, "DEG_TO_RAD",SWIG_From_double(static_cast< double >((3.14159265358979323846/180.0)))); - SWIG_Python_SetConstant(d, "RAD_TO_DEG",SWIG_From_double(static_cast< double >((180.0/3.14159265358979323846)))); - SWIG_Python_SetConstant(d, "OF_OUTLINE",SWIG_From_int(static_cast< int >(OF_OUTLINE))); - SWIG_Python_SetConstant(d, "OF_FILLED",SWIG_From_int(static_cast< int >(OF_FILLED))); - SWIG_Python_SetConstant(d, "OF_WINDOW",SWIG_From_int(static_cast< int >(OF_WINDOW))); - SWIG_Python_SetConstant(d, "OF_FULLSCREEN",SWIG_From_int(static_cast< int >(OF_FULLSCREEN))); - SWIG_Python_SetConstant(d, "OF_GAME_MODE",SWIG_From_int(static_cast< int >(OF_GAME_MODE))); - SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_IGNORE",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_IGNORE))); - SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_KEEP",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_KEEP))); - SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_KEEP_BY_EXPANDING",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_KEEP_BY_EXPANDING))); - SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_IGNORE",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_IGNORE))); - SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_TOP",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_TOP))); - SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_BOTTOM",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_BOTTOM))); - SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_CENTER",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_CENTER))); - SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_IGNORE",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_IGNORE))); - SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_LEFT",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_LEFT))); - SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_RIGHT",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_RIGHT))); - SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_CENTER",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_CENTER))); - SWIG_Python_SetConstant(d, "OF_RECTMODE_CORNER",SWIG_From_int(static_cast< int >(OF_RECTMODE_CORNER))); - SWIG_Python_SetConstant(d, "OF_RECTMODE_CENTER",SWIG_From_int(static_cast< int >(OF_RECTMODE_CENTER))); - SWIG_Python_SetConstant(d, "OF_SCALEMODE_FIT",SWIG_From_int(static_cast< int >(OF_SCALEMODE_FIT))); - SWIG_Python_SetConstant(d, "OF_SCALEMODE_FILL",SWIG_From_int(static_cast< int >(OF_SCALEMODE_FILL))); - SWIG_Python_SetConstant(d, "OF_SCALEMODE_CENTER",SWIG_From_int(static_cast< int >(OF_SCALEMODE_CENTER))); - SWIG_Python_SetConstant(d, "OF_SCALEMODE_STRETCH_TO_FILL",SWIG_From_int(static_cast< int >(OF_SCALEMODE_STRETCH_TO_FILL))); - SWIG_Python_SetConstant(d, "OF_IMAGE_GRAYSCALE",SWIG_From_int(static_cast< int >(OF_IMAGE_GRAYSCALE))); - SWIG_Python_SetConstant(d, "OF_IMAGE_COLOR",SWIG_From_int(static_cast< int >(OF_IMAGE_COLOR))); - SWIG_Python_SetConstant(d, "OF_IMAGE_COLOR_ALPHA",SWIG_From_int(static_cast< int >(OF_IMAGE_COLOR_ALPHA))); - SWIG_Python_SetConstant(d, "OF_IMAGE_UNDEFINED",SWIG_From_int(static_cast< int >(OF_IMAGE_UNDEFINED))); - SWIG_Python_SetConstant(d, "OF_PIXELS_MONO",SWIG_From_int(static_cast< int >(OF_PIXELS_MONO))); - SWIG_Python_SetConstant(d, "OF_PIXELS_RGB",SWIG_From_int(static_cast< int >(OF_PIXELS_RGB))); - SWIG_Python_SetConstant(d, "OF_PIXELS_RGBA",SWIG_From_int(static_cast< int >(OF_PIXELS_RGBA))); - SWIG_Python_SetConstant(d, "OF_PIXELS_BGRA",SWIG_From_int(static_cast< int >(OF_PIXELS_BGRA))); - SWIG_Python_SetConstant(d, "OF_PIXELS_RGB565",SWIG_From_int(static_cast< int >(OF_PIXELS_RGB565))); - SWIG_Python_SetConstant(d, "OF_PIXELS_UNKNOWN",SWIG_From_int(static_cast< int >(OF_PIXELS_UNKNOWN))); - SWIG_Python_SetConstant(d, "OF_MAX_STYLE_HISTORY",SWIG_From_int(static_cast< int >(32))); - SWIG_Python_SetConstant(d, "OF_MAX_VIEWPORT_HISTORY",SWIG_From_int(static_cast< int >(32))); - SWIG_Python_SetConstant(d, "OF_MAX_CIRCLE_PTS",SWIG_From_int(static_cast< int >(1024))); - SWIG_Python_SetConstant(d, "OF_BLENDMODE_DISABLED",SWIG_From_int(static_cast< int >(OF_BLENDMODE_DISABLED))); - SWIG_Python_SetConstant(d, "OF_BLENDMODE_ALPHA",SWIG_From_int(static_cast< int >(OF_BLENDMODE_ALPHA))); - SWIG_Python_SetConstant(d, "OF_BLENDMODE_ADD",SWIG_From_int(static_cast< int >(OF_BLENDMODE_ADD))); - SWIG_Python_SetConstant(d, "OF_BLENDMODE_SUBTRACT",SWIG_From_int(static_cast< int >(OF_BLENDMODE_SUBTRACT))); - SWIG_Python_SetConstant(d, "OF_BLENDMODE_MULTIPLY",SWIG_From_int(static_cast< int >(OF_BLENDMODE_MULTIPLY))); - SWIG_Python_SetConstant(d, "OF_BLENDMODE_SCREEN",SWIG_From_int(static_cast< int >(OF_BLENDMODE_SCREEN))); - SWIG_Python_SetConstant(d, "OF_ORIENTATION_DEFAULT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_DEFAULT))); - SWIG_Python_SetConstant(d, "OF_ORIENTATION_180",SWIG_From_int(static_cast< int >(OF_ORIENTATION_180))); - SWIG_Python_SetConstant(d, "OF_ORIENTATION_90_LEFT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_90_LEFT))); - SWIG_Python_SetConstant(d, "OF_ORIENTATION_90_RIGHT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_90_RIGHT))); - SWIG_Python_SetConstant(d, "OF_ORIENTATION_UNKNOWN",SWIG_From_int(static_cast< int >(OF_ORIENTATION_UNKNOWN))); - SWIG_Python_SetConstant(d, "OF_GRADIENT_LINEAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_LINEAR))); - SWIG_Python_SetConstant(d, "OF_GRADIENT_CIRCULAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_CIRCULAR))); - SWIG_Python_SetConstant(d, "OF_GRADIENT_BAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_BAR))); - SWIG_Python_SetConstant(d, "OF_POLY_WINDING_ODD",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_ODD))); - SWIG_Python_SetConstant(d, "OF_POLY_WINDING_NONZERO",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_NONZERO))); - SWIG_Python_SetConstant(d, "OF_POLY_WINDING_POSITIVE",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_POSITIVE))); - SWIG_Python_SetConstant(d, "OF_POLY_WINDING_NEGATIVE",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_NEGATIVE))); - SWIG_Python_SetConstant(d, "OF_POLY_WINDING_ABS_GEQ_TWO",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_ABS_GEQ_TWO))); - SWIG_Python_SetConstant(d, "OF_CLOSE",SWIG_From_bool(static_cast< bool >((true)))); - SWIG_Python_SetConstant(d, "OF_LEFT_HANDED",SWIG_From_int(static_cast< int >(OF_LEFT_HANDED))); - SWIG_Python_SetConstant(d, "OF_RIGHT_HANDED",SWIG_From_int(static_cast< int >(OF_RIGHT_HANDED))); - SWIG_Python_SetConstant(d, "OF_MATRIX_MODELVIEW",SWIG_From_int(static_cast< int >(OF_MATRIX_MODELVIEW))); - SWIG_Python_SetConstant(d, "OF_MATRIX_PROJECTION",SWIG_From_int(static_cast< int >(OF_MATRIX_PROJECTION))); - SWIG_Python_SetConstant(d, "OF_MATRIX_TEXTURE",SWIG_From_int(static_cast< int >(OF_MATRIX_TEXTURE))); - SWIG_Python_SetConstant(d, "OF_KEY_MODIFIER",SWIG_From_int(static_cast< int >(0x0100))); - SWIG_Python_SetConstant(d, "OF_KEY_RETURN",SWIG_From_int(static_cast< int >(13))); - SWIG_Python_SetConstant(d, "OF_KEY_ESC",SWIG_From_int(static_cast< int >(27))); - SWIG_Python_SetConstant(d, "OF_KEY_TAB",SWIG_From_int(static_cast< int >(9))); - SWIG_Python_SetConstant(d, "OF_KEY_BACKSPACE",SWIG_From_int(static_cast< int >(8))); - SWIG_Python_SetConstant(d, "OF_KEY_DEL",SWIG_From_int(static_cast< int >(127))); - SWIG_Python_SetConstant(d, "OF_KEY_F1",SWIG_From_int(static_cast< int >((1|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F2",SWIG_From_int(static_cast< int >((2|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F3",SWIG_From_int(static_cast< int >((3|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F4",SWIG_From_int(static_cast< int >((4|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F5",SWIG_From_int(static_cast< int >((5|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F6",SWIG_From_int(static_cast< int >((6|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F7",SWIG_From_int(static_cast< int >((7|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F8",SWIG_From_int(static_cast< int >((8|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F9",SWIG_From_int(static_cast< int >((9|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F10",SWIG_From_int(static_cast< int >((10|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F11",SWIG_From_int(static_cast< int >((11|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_F12",SWIG_From_int(static_cast< int >((12|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_LEFT",SWIG_From_int(static_cast< int >((100|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_UP",SWIG_From_int(static_cast< int >((101|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_RIGHT",SWIG_From_int(static_cast< int >((102|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_DOWN",SWIG_From_int(static_cast< int >((103|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_PAGE_UP",SWIG_From_int(static_cast< int >((104|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_PAGE_DOWN",SWIG_From_int(static_cast< int >((105|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_HOME",SWIG_From_int(static_cast< int >((106|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_END",SWIG_From_int(static_cast< int >((107|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_INSERT",SWIG_From_int(static_cast< int >((108|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_CONTROL",SWIG_From_int(static_cast< int >((0x200|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_ALT",SWIG_From_int(static_cast< int >((0x400|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_SHIFT",SWIG_From_int(static_cast< int >((0x800|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_SUPER",SWIG_From_int(static_cast< int >((0x1000|0x0100)))); - SWIG_Python_SetConstant(d, "OF_KEY_LEFT_SHIFT",SWIG_From_int(static_cast< int >((0x1|(0x800|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_SHIFT",SWIG_From_int(static_cast< int >((0x2|(0x800|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_LEFT_CONTROL",SWIG_From_int(static_cast< int >((0x1|(0x200|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_CONTROL",SWIG_From_int(static_cast< int >((0x2|(0x200|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_LEFT_ALT",SWIG_From_int(static_cast< int >((0x1|(0x400|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_ALT",SWIG_From_int(static_cast< int >((0x2|(0x400|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_LEFT_SUPER",SWIG_From_int(static_cast< int >((0x1|(0x1000|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_SUPER",SWIG_From_int(static_cast< int >((0x2|(0x1000|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_LEFT_COMMAND",SWIG_From_int(static_cast< int >((0x1|(0x1000|0x0100))))); - SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_COMMAND",SWIG_From_int(static_cast< int >((0x2|(0x1000|0x0100))))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_1",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_2",SWIG_From_int(static_cast< int >(1))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_3",SWIG_From_int(static_cast< int >(2))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_4",SWIG_From_int(static_cast< int >(3))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_5",SWIG_From_int(static_cast< int >(4))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_6",SWIG_From_int(static_cast< int >(5))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_7",SWIG_From_int(static_cast< int >(6))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_8",SWIG_From_int(static_cast< int >(7))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_LAST",SWIG_From_int(static_cast< int >(7))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_LEFT",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_MIDDLE",SWIG_From_int(static_cast< int >(1))); - SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_RIGHT",SWIG_From_int(static_cast< int >(2))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_RESTORE",SWIG_From_int(static_cast< int >((0)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_BLACK",SWIG_From_int(static_cast< int >((30)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_RED",SWIG_From_int(static_cast< int >((31)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_GREEN",SWIG_From_int(static_cast< int >((32)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_YELLOW",SWIG_From_int(static_cast< int >((33)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_BLUE",SWIG_From_int(static_cast< int >((34)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_PURPLE",SWIG_From_int(static_cast< int >((35)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_CYAN",SWIG_From_int(static_cast< int >((36)))); - SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_WHITE",SWIG_From_int(static_cast< int >((37)))); - SWIG_Python_SetConstant(d, "OF_BITMAPMODE_SIMPLE",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_SIMPLE))); - SWIG_Python_SetConstant(d, "OF_BITMAPMODE_SCREEN",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_SCREEN))); - SWIG_Python_SetConstant(d, "OF_BITMAPMODE_VIEWPORT",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_VIEWPORT))); - SWIG_Python_SetConstant(d, "OF_BITMAPMODE_MODEL",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_MODEL))); - SWIG_Python_SetConstant(d, "OF_BITMAPMODE_MODEL_BILLBOARD",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_MODEL_BILLBOARD))); - SWIG_Python_SetConstant(d, "OF_ENCODING_UTF8",SWIG_From_int(static_cast< int >(OF_ENCODING_UTF8))); - SWIG_Python_SetConstant(d, "OF_ENCODING_ISO_8859_15",SWIG_From_int(static_cast< int >(OF_ENCODING_ISO_8859_15))); - SWIG_Python_SetConstant(d, "OF_COMPRESS_NONE",SWIG_From_int(static_cast< int >(OF_COMPRESS_NONE))); - SWIG_Python_SetConstant(d, "OF_COMPRESS_SRGB",SWIG_From_int(static_cast< int >(OF_COMPRESS_SRGB))); - SWIG_Python_SetConstant(d, "OF_COMPRESS_ARB",SWIG_From_int(static_cast< int >(OF_COMPRESS_ARB))); - SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_BEST",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_BEST))); - SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_HIGH",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_HIGH))); - SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_MEDIUM",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_MEDIUM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_LOW",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_LOW))); - SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_WORST",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_WORST))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_BMP",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_BMP))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_ICO",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_ICO))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JPEG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JPEG))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JNG))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_KOALA",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_KOALA))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_LBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_LBM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_IFF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_IFF))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_MNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_MNG))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PBM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PBMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PBMRAW))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PCD",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PCD))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PCX",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PCX))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PGM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PGM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PGMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PGMRAW))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PNG))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PPM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PPM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PPMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PPMRAW))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_RAS",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_RAS))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_TARGA",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_TARGA))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_TIFF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_TIFF))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_WBMP",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_WBMP))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PSD",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PSD))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_CUT",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_CUT))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_XBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_XBM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_XPM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_XPM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_DDS",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_DDS))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_GIF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_GIF))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_HDR",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_HDR))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_FAXG3",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_FAXG3))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_SGI",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_SGI))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_EXR",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_EXR))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_J2K",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_J2K))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JP2",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JP2))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PFM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PFM))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PICT",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PICT))); - SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_RAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_RAW))); PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_white",Swig_var_ofColor_white_get, Swig_var_ofColor_white_set); SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_gray",Swig_var_ofColor_gray_get, Swig_var_ofColor_gray_set); @@ -58737,17 +67385,6 @@ SWIG_init(void) { SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_wheat",Swig_var_ofShortColor_wheat_get, Swig_var_ofShortColor_wheat_set); SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_whiteSmoke",Swig_var_ofShortColor_whiteSmoke_get, Swig_var_ofShortColor_whiteSmoke_set); SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_yellowGreen",Swig_var_ofShortColor_yellowGreen_get, Swig_var_ofShortColor_yellowGreen_set); - SWIG_Python_SetConstant(d, "ofFile_Reference",SWIG_From_int(static_cast< int >(ofFile::Reference))); - SWIG_Python_SetConstant(d, "ofFile_ReadOnly",SWIG_From_int(static_cast< int >(ofFile::ReadOnly))); - SWIG_Python_SetConstant(d, "ofFile_WriteOnly",SWIG_From_int(static_cast< int >(ofFile::WriteOnly))); - SWIG_Python_SetConstant(d, "ofFile_ReadWrite",SWIG_From_int(static_cast< int >(ofFile::ReadWrite))); - SWIG_Python_SetConstant(d, "ofFile_Append",SWIG_From_int(static_cast< int >(ofFile::Append))); - SWIG_Python_SetConstant(d, "OF_LOG_VERBOSE",SWIG_From_int(static_cast< int >(OF_LOG_VERBOSE))); - SWIG_Python_SetConstant(d, "OF_LOG_NOTICE",SWIG_From_int(static_cast< int >(OF_LOG_NOTICE))); - SWIG_Python_SetConstant(d, "OF_LOG_WARNING",SWIG_From_int(static_cast< int >(OF_LOG_WARNING))); - SWIG_Python_SetConstant(d, "OF_LOG_ERROR",SWIG_From_int(static_cast< int >(OF_LOG_ERROR))); - SWIG_Python_SetConstant(d, "OF_LOG_FATAL_ERROR",SWIG_From_int(static_cast< int >(OF_LOG_FATAL_ERROR))); - SWIG_Python_SetConstant(d, "OF_LOG_SILENT",SWIG_From_int(static_cast< int >(OF_LOG_SILENT))); SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_FRONT",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_FRONT))); SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_RIGHT",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_RIGHT))); SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_LEFT",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_LEFT))); @@ -58755,75 +67392,13 @@ SWIG_init(void) { SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_TOP",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_TOP))); SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_BOTTOM",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_BOTTOM))); SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDES_TOTAL",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDES_TOTAL))); - SWIG_Python_SetConstant(d, "FIRMATA_MAJOR_VERSION",SWIG_From_int(static_cast< int >(2))); - SWIG_Python_SetConstant(d, "FIRMATA_MINOR_VERSION",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "FIRMATA_MAX_DATA_BYTES",SWIG_From_int(static_cast< int >(32))); - SWIG_Python_SetConstant(d, "FIRMATA_DIGITAL_MESSAGE",SWIG_From_int(static_cast< int >(0x90))); - SWIG_Python_SetConstant(d, "FIRMATA_ANALOG_MESSAGE",SWIG_From_int(static_cast< int >(0xE0))); - SWIG_Python_SetConstant(d, "FIRMATA_REPORT_ANALOG",SWIG_From_int(static_cast< int >(0xC0))); - SWIG_Python_SetConstant(d, "FIRMATA_REPORT_DIGITAL",SWIG_From_int(static_cast< int >(0xD0))); - SWIG_Python_SetConstant(d, "FIRMATA_SET_PIN_MODE",SWIG_From_int(static_cast< int >(0xF4))); - SWIG_Python_SetConstant(d, "FIRMATA_REPORT_VERSION",SWIG_From_int(static_cast< int >(0xF9))); - SWIG_Python_SetConstant(d, "FIRMATA_SYSTEM_RESET",SWIG_From_int(static_cast< int >(0xFF))); - SWIG_Python_SetConstant(d, "FIRMATA_START_SYSEX",SWIG_From_int(static_cast< int >(0xF0))); - SWIG_Python_SetConstant(d, "FIRMATA_END_SYSEX",SWIG_From_int(static_cast< int >(0xF7))); - SWIG_Python_SetConstant(d, "FIRMATA_INPUT",SWIG_From_int(static_cast< int >(0x00))); - SWIG_Python_SetConstant(d, "FIRMATA_OUTPUT",SWIG_From_int(static_cast< int >(0x01))); - SWIG_Python_SetConstant(d, "FIRMATA_ANALOG",SWIG_From_int(static_cast< int >(0x02))); - SWIG_Python_SetConstant(d, "FIRMATA_PWM",SWIG_From_int(static_cast< int >(0x03))); - SWIG_Python_SetConstant(d, "FIRMATA_SERVO",SWIG_From_int(static_cast< int >(0x04))); - SWIG_Python_SetConstant(d, "SHIFT",SWIG_From_int(static_cast< int >(0x05))); - SWIG_Python_SetConstant(d, "I2C",SWIG_From_int(static_cast< int >(0x06))); - SWIG_Python_SetConstant(d, "TOTAL_PIN_MODES",SWIG_From_int(static_cast< int >(7))); - SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_SERVO_CONFIG",SWIG_From_int(static_cast< int >(0x70))); - SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_FIRMATA_STRING",SWIG_From_int(static_cast< int >(0x71))); - SWIG_Python_SetConstant(d, "SHIFT_DATA",SWIG_From_int(static_cast< int >(0x75))); - SWIG_Python_SetConstant(d, "I2C_REQUEST",SWIG_From_int(static_cast< int >(0x76))); - SWIG_Python_SetConstant(d, "I2C_REPLY",SWIG_From_int(static_cast< int >(0x77))); - SWIG_Python_SetConstant(d, "I2C_CONFIG",SWIG_From_int(static_cast< int >(0x78))); - SWIG_Python_SetConstant(d, "EXTENDED_ANALOG",SWIG_From_int(static_cast< int >(0x6F))); - SWIG_Python_SetConstant(d, "PIN_STATE_QUERY",SWIG_From_int(static_cast< int >(0x6D))); - SWIG_Python_SetConstant(d, "PIN_STATE_RESPONSE",SWIG_From_int(static_cast< int >(0x6E))); - SWIG_Python_SetConstant(d, "CAPABILITY_QUERY",SWIG_From_int(static_cast< int >(0x6B))); - SWIG_Python_SetConstant(d, "CAPABILITY_RESPONSE",SWIG_From_int(static_cast< int >(0x6C))); - SWIG_Python_SetConstant(d, "ANALOG_MAPPING_QUERY",SWIG_From_int(static_cast< int >(0x69))); - SWIG_Python_SetConstant(d, "ANALOG_MAPPING_RESPONSE",SWIG_From_int(static_cast< int >(0x6A))); - SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_REPORT_FIRMWARE",SWIG_From_int(static_cast< int >(0x79))); - SWIG_Python_SetConstant(d, "SAMPLING_INTERVAL",SWIG_From_int(static_cast< int >(0x7A))); - SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_NON_REALTIME",SWIG_From_int(static_cast< int >(0x7E))); - SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_REALTIME",SWIG_From_int(static_cast< int >(0x7F))); - SWIG_Python_SetConstant(d, "ARD_TOTAL_DIGITAL_PINS",SWIG_From_int(static_cast< int >(22))); - SWIG_Python_SetConstant(d, "ARD_TOTAL_ANALOG_PINS",SWIG_From_int(static_cast< int >(6))); - SWIG_Python_SetConstant(d, "ARD_TOTAL_PORTS",SWIG_From_int(static_cast< int >(3))); - SWIG_Python_SetConstant(d, "ARD_INPUT",SWIG_From_int(static_cast< int >(0x00))); - SWIG_Python_SetConstant(d, "ARD_OUTPUT",SWIG_From_int(static_cast< int >(0x01))); - SWIG_Python_SetConstant(d, "ARD_ANALOG",SWIG_From_int(static_cast< int >(0x02))); - SWIG_Python_SetConstant(d, "ARD_PWM",SWIG_From_int(static_cast< int >(0x03))); - SWIG_Python_SetConstant(d, "ARD_SERVO",SWIG_From_int(static_cast< int >(0x04))); - SWIG_Python_SetConstant(d, "ARD_HIGH",SWIG_From_int(static_cast< int >(1))); - SWIG_Python_SetConstant(d, "ARD_LOW",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "ARD_ON",SWIG_From_int(static_cast< int >(1))); - SWIG_Python_SetConstant(d, "ARD_OFF",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "SYSEX_SERVO_ATTACH",SWIG_From_int(static_cast< int >(0x00))); - SWIG_Python_SetConstant(d, "SYSEX_SERVO_DETACH",SWIG_From_int(static_cast< int >(0x01))); - SWIG_Python_SetConstant(d, "SYSEX_SERVO_WRITE",SWIG_From_int(static_cast< int >(0x02))); - SWIG_Python_SetConstant(d, "OF_ARDUINO_DELAY_LENGTH",SWIG_From_double(static_cast< double >(4.0))); - SWIG_Python_SetConstant(d, "FIRMWARE2_2",SWIG_From_int(static_cast< int >(22))); - SWIG_Python_SetConstant(d, "FIRMWARE2_3",SWIG_From_int(static_cast< int >(23))); - SWIG_Python_SetConstant(d, "OF_MAX_LIGHTS",SWIG_From_int(static_cast< int >(8))); - SWIG_Python_SetConstant(d, "OF_LIGHT_POINT",SWIG_From_int(static_cast< int >(OF_LIGHT_POINT))); - SWIG_Python_SetConstant(d, "OF_LIGHT_SPOT",SWIG_From_int(static_cast< int >(OF_LIGHT_SPOT))); - SWIG_Python_SetConstant(d, "OF_LIGHT_DIRECTIONAL",SWIG_From_int(static_cast< int >(OF_LIGHT_DIRECTIONAL))); SWIG_Python_SetConstant(d, "ofShader_POSITION_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::POSITION_ATTRIBUTE))); SWIG_Python_SetConstant(d, "ofShader_COLOR_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::COLOR_ATTRIBUTE))); SWIG_Python_SetConstant(d, "ofShader_NORMAL_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::NORMAL_ATTRIBUTE))); SWIG_Python_SetConstant(d, "ofShader_TEXCOORD_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::TEXCOORD_ATTRIBUTE))); - SWIG_Python_SetConstant(d, "OF_INTERPOLATE_NEAREST_NEIGHBOR",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_NEAREST_NEIGHBOR))); - SWIG_Python_SetConstant(d, "OF_INTERPOLATE_BILINEAR",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_BILINEAR))); - SWIG_Python_SetConstant(d, "OF_INTERPOLATE_BICUBIC",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_BICUBIC))); + SWIG_Python_SetConstant(d, "ofShader_INDEX_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::INDEX_ATTRIBUTE))); SWIG_Python_SetConstant(d, "ofPath_COMMANDS",SWIG_From_int(static_cast< int >(ofPath::COMMANDS))); SWIG_Python_SetConstant(d, "ofPath_POLYLINES",SWIG_From_int(static_cast< int >(ofPath::POLYLINES))); - SWIG_Python_SetConstant(d, "CIRC_RESOLUTION",SWIG_From_int(static_cast< int >(22))); SWIG_Python_SetConstant(d, "ofVec2f_DIM",SWIG_From_int(static_cast< int >(ofVec2f::DIM))); SWIG_Python_SetConstant(d, "ofVec3f_DIM",SWIG_From_int(static_cast< int >(ofVec3f::DIM))); SWIG_Python_SetConstant(d, "ofVec4f_DIM",SWIG_From_int(static_cast< int >(ofVec4f::DIM))); diff --git a/src/bindings/linuxarm/openFrameworks_wrap.cpp b/src/bindings/linuxarm/openFrameworks_wrap.cpp new file mode 100644 index 0000000..364a3f5 --- /dev/null +++ b/src/bindings/linuxarm/openFrameworks_wrap.cpp @@ -0,0 +1,67196 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 3.0.8 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + + #if defined( __WIN32__ ) || defined( _WIN32 ) + #include + #endif + + + +#ifndef SWIGPYTHON +#define SWIGPYTHON +#endif + +#define SWIG_PYTHON_DIRECTOR_NO_VTABLE + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif + + +#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) +/* Use debug wrappers with the Python release dll */ +# undef _DEBUG +# include +# define _DEBUG +#else +# include +#endif + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return an integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast(r) (r) +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class" == "Class", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like ||... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (equiv != 0 && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = SWIG_TypeNameComp(nb, ne, tb, te); + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like ||... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; +} + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + size_t l = 0; + size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + char d = *(c++); + unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +/* Compatibility macros for Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + +#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) +#define PyInt_Check(x) PyLong_Check(x) +#define PyInt_AsLong(x) PyLong_AsLong(x) +#define PyInt_FromLong(x) PyLong_FromLong(x) +#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) +#define PyString_Check(name) PyBytes_Check(name) +#define PyString_FromString(x) PyUnicode_FromString(x) +#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) +#define PyString_AsString(str) PyBytes_AsString(str) +#define PyString_Size(str) PyBytes_Size(str) +#define PyString_InternFromString(key) PyUnicode_InternFromString(key) +#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE +#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) +#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) + +#endif + +#ifndef Py_TYPE +# define Py_TYPE(op) ((op)->ob_type) +#endif + +/* SWIG APIs for compatibility of both Python 2 & 3 */ + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_FromFormat PyUnicode_FromFormat +#else +# define SWIG_Python_str_FromFormat PyString_FromFormat +#endif + + +/* Warning: This function will allocate a new string in Python 3, + * so please call SWIG_Python_str_DelForPy3(x) to free the space. + */ +SWIGINTERN char* +SWIG_Python_str_AsChar(PyObject *str) +{ +#if PY_VERSION_HEX >= 0x03000000 + char *cstr; + char *newstr; + Py_ssize_t len; + str = PyUnicode_AsUTF8String(str); + PyBytes_AsStringAndSize(str, &cstr, &len); + newstr = (char *) malloc(len+1); + memcpy(newstr, cstr, len+1); + Py_XDECREF(str); + return newstr; +#else + return PyString_AsString(str); +#endif +} + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) +#else +# define SWIG_Python_str_DelForPy3(x) +#endif + + +SWIGINTERN PyObject* +SWIG_Python_str_FromChar(const char *c) +{ +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_FromString(c); +#else + return PyString_FromString(c); +#endif +} + +/* Add PyOS_snprintf for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) +# define PyOS_snprintf _snprintf +# else +# define PyOS_snprintf snprintf +# endif +#endif + +/* A crude PyString_FromFormat implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 + +#ifndef SWIG_PYBUFFER_SIZE +# define SWIG_PYBUFFER_SIZE 1024 +#endif + +static PyObject * +PyString_FromFormat(const char *fmt, ...) { + va_list ap; + char buf[SWIG_PYBUFFER_SIZE * 2]; + int res; + va_start(ap, fmt); + res = vsnprintf(buf, sizeof(buf), fmt, ap); + va_end(ap); + return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); +} +#endif + +/* Add PyObject_Del for old Pythons */ +#if PY_VERSION_HEX < 0x01060000 +# define PyObject_Del(op) PyMem_DEL((op)) +#endif +#ifndef PyObject_DEL +# define PyObject_DEL PyObject_Del +#endif + +/* A crude PyExc_StopIteration exception for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# ifndef PyExc_StopIteration +# define PyExc_StopIteration PyExc_RuntimeError +# endif +# ifndef PyObject_GenericGetAttr +# define PyObject_GenericGetAttr 0 +# endif +#endif + +/* Py_NotImplemented is defined in 2.1 and up. */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef Py_NotImplemented +# define Py_NotImplemented PyExc_RuntimeError +# endif +#endif + +/* A crude PyString_AsStringAndSize implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef PyString_AsStringAndSize +# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} +# endif +#endif + +/* PySequence_Size for old Pythons */ +#if PY_VERSION_HEX < 0x02000000 +# ifndef PySequence_Size +# define PySequence_Size PySequence_Length +# endif +#endif + +/* PyBool_FromLong for old Pythons */ +#if PY_VERSION_HEX < 0x02030000 +static +PyObject *PyBool_FromLong(long ok) +{ + PyObject *result = ok ? Py_True : Py_False; + Py_INCREF(result); + return result; +} +#endif + +/* Py_ssize_t for old Pythons */ +/* This code is as recommended by: */ +/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) +typedef int Py_ssize_t; +# define PY_SSIZE_T_MAX INT_MAX +# define PY_SSIZE_T_MIN INT_MIN +typedef inquiry lenfunc; +typedef intargfunc ssizeargfunc; +typedef intintargfunc ssizessizeargfunc; +typedef intobjargproc ssizeobjargproc; +typedef intintobjargproc ssizessizeobjargproc; +typedef getreadbufferproc readbufferproc; +typedef getwritebufferproc writebufferproc; +typedef getsegcountproc segcountproc; +typedef getcharbufferproc charbufferproc; +static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) +{ + long result = 0; + PyObject *i = PyNumber_Int(x); + if (i) { + result = PyInt_AsLong(i); + Py_DECREF(i); + } + return result; +} +#endif + +#if PY_VERSION_HEX < 0x02050000 +#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) +#endif + +#if PY_VERSION_HEX < 0x02040000 +#define Py_VISIT(op) \ + do { \ + if (op) { \ + int vret = visit((op), arg); \ + if (vret) \ + return vret; \ + } \ + } while (0) +#endif + +#if PY_VERSION_HEX < 0x02030000 +typedef struct { + PyTypeObject type; + PyNumberMethods as_number; + PyMappingMethods as_mapping; + PySequenceMethods as_sequence; + PyBufferProcs as_buffer; + PyObject *name, *slots; +} PyHeapTypeObject; +#endif + +#if PY_VERSION_HEX < 0x02030000 +typedef destructor freefunc; +#endif + +#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ + (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ + (PY_MAJOR_VERSION > 3)) +# define SWIGPY_USE_CAPSULE +# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) +#endif + +#if PY_VERSION_HEX < 0x03020000 +#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) +#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIME PyObject* +SWIG_Python_ErrorType(int code) { + PyObject* type = 0; + switch(code) { + case SWIG_MemoryError: + type = PyExc_MemoryError; + break; + case SWIG_IOError: + type = PyExc_IOError; + break; + case SWIG_RuntimeError: + type = PyExc_RuntimeError; + break; + case SWIG_IndexError: + type = PyExc_IndexError; + break; + case SWIG_TypeError: + type = PyExc_TypeError; + break; + case SWIG_DivisionByZero: + type = PyExc_ZeroDivisionError; + break; + case SWIG_OverflowError: + type = PyExc_OverflowError; + break; + case SWIG_SyntaxError: + type = PyExc_SyntaxError; + break; + case SWIG_ValueError: + type = PyExc_ValueError; + break; + case SWIG_SystemError: + type = PyExc_SystemError; + break; + case SWIG_AttributeError: + type = PyExc_AttributeError; + break; + default: + type = PyExc_RuntimeError; + } + return type; +} + + +SWIGRUNTIME void +SWIG_Python_AddErrorMsg(const char* mesg) +{ + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + + if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + PyErr_Clear(); + Py_XINCREF(type); + + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + Py_DECREF(value); + } else { + PyErr_SetString(PyExc_RuntimeError, mesg); + } +} + +#if defined(SWIG_PYTHON_NO_THREADS) +# if defined(SWIG_PYTHON_THREADS) +# undef SWIG_PYTHON_THREADS +# endif +#endif +#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ +# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) +# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ +# define SWIG_PYTHON_USE_GIL +# endif +# endif +# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ +# ifndef SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() +# endif +# ifdef __cplusplus /* C++ code */ + class SWIG_Python_Thread_Block { + bool status; + PyGILState_STATE state; + public: + void end() { if (status) { PyGILState_Release(state); status = false;} } + SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} + ~SWIG_Python_Thread_Block() { end(); } + }; + class SWIG_Python_Thread_Allow { + bool status; + PyThreadState *save; + public: + void end() { if (status) { PyEval_RestoreThread(save); status = false; }} + SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} + ~SWIG_Python_Thread_Allow() { end(); } + }; +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block +# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow +# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() +# else /* C code */ +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() +# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() +# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) +# endif +# else /* Old thread way, not implemented, user must provide it */ +# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) +# define SWIG_PYTHON_INITIALIZE_THREADS +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) +# define SWIG_PYTHON_THREAD_END_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# endif +# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) +# define SWIG_PYTHON_THREAD_END_ALLOW +# endif +# endif +#else /* No thread support */ +# define SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# define SWIG_PYTHON_THREAD_END_BLOCK +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# define SWIG_PYTHON_THREAD_END_ALLOW +#endif + +/* ----------------------------------------------------------------------------- + * Python API portion that goes into the runtime + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* ----------------------------------------------------------------------------- + * Constant declarations + * ----------------------------------------------------------------------------- */ + +/* Constant Types */ +#define SWIG_PY_POINTER 4 +#define SWIG_PY_BINARY 5 + +/* Constant information structure */ +typedef struct swig_const_info { + int type; + char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_const_info; + + +/* ----------------------------------------------------------------------------- + * Wrapper of PyInstanceMethod_New() used in Python 3 + * It is exported to the generated module, used for -fastproxy + * ----------------------------------------------------------------------------- */ +#if PY_VERSION_HEX >= 0x03000000 +SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) +{ + return PyInstanceMethod_New(func); +} +#else +SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) +{ + return NULL; +} +#endif + +#ifdef __cplusplus +} +#endif + + +/* ----------------------------------------------------------------------------- + * pyrun.swg + * + * This file contains the runtime support for Python modules + * and includes code for managing global variables and pointer + * type checking. + * + * ----------------------------------------------------------------------------- */ + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) +#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) +#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) + +#ifdef SWIGPYTHON_BUILTIN +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) +#else +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) +#endif + +#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) + +#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) +#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) +#define swig_owntype int + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) +#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) +#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) + +#define SWIG_SetErrorObj SWIG_Python_SetErrorObj +#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg +#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) +#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + + +/* Runtime API implementation */ + +/* Error manipulation */ + +SWIGINTERN void +SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetObject(errtype, obj); + Py_DECREF(obj); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +SWIGINTERN void +SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetString(errtype, msg); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) + +/* Set a constant value */ + +#if defined(SWIGPYTHON_BUILTIN) + +SWIGINTERN void +SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { + PyObject *s = PyString_InternFromString(key); + PyList_Append(seq, s); + Py_DECREF(s); +} + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { +#if PY_VERSION_HEX < 0x02030000 + PyDict_SetItemString(d, (char *)name, obj); +#else + PyDict_SetItemString(d, name, obj); +#endif + Py_DECREF(obj); + if (public_interface) + SwigPyBuiltin_AddPublicSymbol(public_interface, name); +} + +#else + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { +#if PY_VERSION_HEX < 0x02030000 + PyDict_SetItemString(d, (char *)name, obj); +#else + PyDict_SetItemString(d, name, obj); +#endif + Py_DECREF(obj); +} + +#endif + +/* Append a value to the result obj */ + +SWIGINTERN PyObject* +SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { +#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyList_Check(result)) { + PyObject *o2 = result; + result = PyList_New(1); + PyList_SetItem(result, 0, o2); + } + PyList_Append(result,obj); + Py_DECREF(obj); + } + return result; +#else + PyObject* o2; + PyObject* o3; + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyTuple_Check(result)) { + o2 = result; + result = PyTuple_New(1); + PyTuple_SET_ITEM(result, 0, o2); + } + o3 = PyTuple_New(1); + PyTuple_SET_ITEM(o3, 0, obj); + o2 = result; + result = PySequence_Concat(o2, o3); + Py_DECREF(o2); + Py_DECREF(o3); + } + return result; +#endif +} + +/* Unpack the argument tuple */ + +SWIGINTERN Py_ssize_t +SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) +{ + if (!args) { + if (!min && !max) { + return 1; + } else { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", + name, (min == max ? "" : "at least "), (int)min); + return 0; + } + } + if (!PyTuple_Check(args)) { + if (min <= 1 && max >= 1) { + Py_ssize_t i; + objs[0] = args; + for (i = 1; i < max; ++i) { + objs[i] = 0; + } + return 2; + } + PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); + return 0; + } else { + Py_ssize_t l = PyTuple_GET_SIZE(args); + if (l < min) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at least "), (int)min, (int)l); + return 0; + } else if (l > max) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at most "), (int)max, (int)l); + return 0; + } else { + Py_ssize_t i; + for (i = 0; i < l; ++i) { + objs[i] = PyTuple_GET_ITEM(args, i); + } + for (; l < max; ++l) { + objs[l] = 0; + } + return i + 1; + } + } +} + +/* A functor is a function object with one single object argument */ +#if PY_VERSION_HEX >= 0x02020000 +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); +#else +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); +#endif + +/* + Helper for static pointer initialization for both C and C++ code, for example + static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); +*/ +#ifdef __cplusplus +#define SWIG_STATIC_POINTER(var) var +#else +#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var +#endif + +/* ----------------------------------------------------------------------------- + * Pointer declarations + * ----------------------------------------------------------------------------- */ + +/* Flags for new pointer objects */ +#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) +#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) + +#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) + +#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) +#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) + +#ifdef __cplusplus +extern "C" { +#endif + +/* How to access Py_None */ +#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# ifndef SWIG_PYTHON_NO_BUILD_NONE +# ifndef SWIG_PYTHON_BUILD_NONE +# define SWIG_PYTHON_BUILD_NONE +# endif +# endif +#endif + +#ifdef SWIG_PYTHON_BUILD_NONE +# ifdef Py_None +# undef Py_None +# define Py_None SWIG_Py_None() +# endif +SWIGRUNTIMEINLINE PyObject * +_SWIG_Py_None(void) +{ + PyObject *none = Py_BuildValue((char*)""); + Py_DECREF(none); + return none; +} +SWIGRUNTIME PyObject * +SWIG_Py_None(void) +{ + static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); + return none; +} +#endif + +/* The python void return value */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Py_Void(void) +{ + PyObject *none = Py_None; + Py_INCREF(none); + return none; +} + +/* SwigPyClientData */ + +typedef struct { + PyObject *klass; + PyObject *newraw; + PyObject *newargs; + PyObject *destroy; + int delargs; + int implicitconv; + PyTypeObject *pytype; +} SwigPyClientData; + +SWIGRUNTIMEINLINE int +SWIG_Python_CheckImplicit(swig_type_info *ty) +{ + SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; + return data ? data->implicitconv : 0; +} + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_ExceptionType(swig_type_info *desc) { + SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; + PyObject *klass = data ? data->klass : 0; + return (klass ? klass : PyExc_RuntimeError); +} + + +SWIGRUNTIME SwigPyClientData * +SwigPyClientData_New(PyObject* obj) +{ + if (!obj) { + return 0; + } else { + SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); + /* the klass element */ + data->klass = obj; + Py_INCREF(data->klass); + /* the newraw method and newargs arguments used to create a new raw instance */ + if (PyClass_Check(obj)) { + data->newraw = 0; + data->newargs = obj; + Py_INCREF(obj); + } else { +#if (PY_VERSION_HEX < 0x02020000) + data->newraw = 0; +#else + data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); +#endif + if (data->newraw) { + Py_INCREF(data->newraw); + data->newargs = PyTuple_New(1); + PyTuple_SetItem(data->newargs, 0, obj); + } else { + data->newargs = obj; + } + Py_INCREF(data->newargs); + } + /* the destroy method, aka as the C++ delete method */ + data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); + if (PyErr_Occurred()) { + PyErr_Clear(); + data->destroy = 0; + } + if (data->destroy) { + int flags; + Py_INCREF(data->destroy); + flags = PyCFunction_GET_FLAGS(data->destroy); +#ifdef METH_O + data->delargs = !(flags & (METH_O)); +#else + data->delargs = 0; +#endif + } else { + data->delargs = 0; + } + data->implicitconv = 0; + data->pytype = 0; + return data; + } +} + +SWIGRUNTIME void +SwigPyClientData_Del(SwigPyClientData *data) { + Py_XDECREF(data->newraw); + Py_XDECREF(data->newargs); + Py_XDECREF(data->destroy); +} + +/* =============== SwigPyObject =====================*/ + +typedef struct { + PyObject_HEAD + void *ptr; + swig_type_info *ty; + int own; + PyObject *next; +#ifdef SWIGPYTHON_BUILTIN + PyObject *dict; +#endif +} SwigPyObject; + + +#ifdef SWIGPYTHON_BUILTIN + +SWIGRUNTIME PyObject * +SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) +{ + SwigPyObject *sobj = (SwigPyObject *)v; + + if (!sobj->dict) + sobj->dict = PyDict_New(); + + Py_INCREF(sobj->dict); + return sobj->dict; +} + +#endif + +SWIGRUNTIME PyObject * +SwigPyObject_long(SwigPyObject *v) +{ + return PyLong_FromVoidPtr(v->ptr); +} + +SWIGRUNTIME PyObject * +SwigPyObject_format(const char* fmt, SwigPyObject *v) +{ + PyObject *res = NULL; + PyObject *args = PyTuple_New(1); + if (args) { + if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { + PyObject *ofmt = SWIG_Python_str_FromChar(fmt); + if (ofmt) { +#if PY_VERSION_HEX >= 0x03000000 + res = PyUnicode_Format(ofmt,args); +#else + res = PyString_Format(ofmt,args); +#endif + Py_DECREF(ofmt); + } + Py_DECREF(args); + } + } + return res; +} + +SWIGRUNTIME PyObject * +SwigPyObject_oct(SwigPyObject *v) +{ + return SwigPyObject_format("%o",v); +} + +SWIGRUNTIME PyObject * +SwigPyObject_hex(SwigPyObject *v) +{ + return SwigPyObject_format("%x",v); +} + +SWIGRUNTIME PyObject * +#ifdef METH_NOARGS +SwigPyObject_repr(SwigPyObject *v) +#else +SwigPyObject_repr(SwigPyObject *v, PyObject *args) +#endif +{ + const char *name = SWIG_TypePrettyName(v->ty); + PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); + if (v->next) { +# ifdef METH_NOARGS + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); +# else + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); +# endif +# if PY_VERSION_HEX >= 0x03000000 + PyObject *joined = PyUnicode_Concat(repr, nrep); + Py_DecRef(repr); + Py_DecRef(nrep); + repr = joined; +# else + PyString_ConcatAndDel(&repr,nrep); +# endif + } + return repr; +} + +SWIGRUNTIME int +SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) +{ + void *i = v->ptr; + void *j = w->ptr; + return (i < j) ? -1 : ((i > j) ? 1 : 0); +} + +/* Added for Python 3.x, would it also be useful for Python 2.x? */ +SWIGRUNTIME PyObject* +SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) +{ + PyObject* res; + if( op != Py_EQ && op != Py_NE ) { + Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; + } + res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); + return res; +} + + +SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); + +#ifdef SWIGPYTHON_BUILTIN +static swig_type_info *SwigPyObject_stype = 0; +SWIGRUNTIME PyTypeObject* +SwigPyObject_type(void) { + SwigPyClientData *cd; + assert(SwigPyObject_stype); + cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; + assert(cd); + assert(cd->pytype); + return cd->pytype; +} +#else +SWIGRUNTIME PyTypeObject* +SwigPyObject_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); + return type; +} +#endif + +SWIGRUNTIMEINLINE int +SwigPyObject_Check(PyObject *op) { +#ifdef SWIGPYTHON_BUILTIN + PyTypeObject *target_tp = SwigPyObject_type(); + if (PyType_IsSubtype(op->ob_type, target_tp)) + return 1; + return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); +#else + return (Py_TYPE(op) == SwigPyObject_type()) + || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); +#endif +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own); + +SWIGRUNTIME void +SwigPyObject_dealloc(PyObject *v) +{ + SwigPyObject *sobj = (SwigPyObject *) v; + PyObject *next = sobj->next; + if (sobj->own == SWIG_POINTER_OWN) { + swig_type_info *ty = sobj->ty; + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + PyObject *destroy = data ? data->destroy : 0; + if (destroy) { + /* destroy is always a VARARGS method */ + PyObject *res; + + /* PyObject_CallFunction() has the potential to silently drop + the active active exception. In cases of unnamed temporary + variable or where we just finished iterating over a generator + StopIteration will be active right now, and this needs to + remain true upon return from SwigPyObject_dealloc. So save + and restore. */ + + PyObject *val = NULL, *type = NULL, *tb = NULL; + PyErr_Fetch(&val, &type, &tb); + + if (data->delargs) { + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); + } else { + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); + } + if (!res) + PyErr_WriteUnraisable(destroy); + + PyErr_Restore(val, type, tb); + + Py_XDECREF(res); + } +#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) + else { + const char *name = SWIG_TypePrettyName(ty); + printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); + } +#endif + } + Py_XDECREF(next); + PyObject_DEL(v); +} + +SWIGRUNTIME PyObject* +SwigPyObject_append(PyObject* v, PyObject* next) +{ + SwigPyObject *sobj = (SwigPyObject *) v; +#ifndef METH_O + PyObject *tmp = 0; + if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; + next = tmp; +#endif + if (!SwigPyObject_Check(next)) { + PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); + return NULL; + } + sobj->next = next; + Py_INCREF(next); + return SWIG_Py_Void(); +} + +SWIGRUNTIME PyObject* +#ifdef METH_NOARGS +SwigPyObject_next(PyObject* v) +#else +SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *) v; + if (sobj->next) { + Py_INCREF(sobj->next); + return sobj->next; + } else { + return SWIG_Py_Void(); + } +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_disown(PyObject *v) +#else +SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = 0; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_acquire(PyObject *v) +#else +SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = SWIG_POINTER_OWN; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +SwigPyObject_own(PyObject *v, PyObject *args) +{ + PyObject *val = 0; +#if (PY_VERSION_HEX < 0x02020000) + if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) +#elif (PY_VERSION_HEX < 0x02050000) + if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) +#else + if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) +#endif + { + return NULL; + } + else + { + SwigPyObject *sobj = (SwigPyObject *)v; + PyObject *obj = PyBool_FromLong(sobj->own); + if (val) { +#ifdef METH_NOARGS + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v); + } else { + SwigPyObject_disown(v); + } +#else + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v,args); + } else { + SwigPyObject_disown(v,args); + } +#endif + } + return obj; + } +} + +#ifdef METH_O +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#else +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#endif + +#if PY_VERSION_HEX < 0x02020000 +SWIGINTERN PyObject * +SwigPyObject_getattr(SwigPyObject *sobj,char *name) +{ + return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); +} +#endif + +SWIGRUNTIME PyTypeObject* +SwigPyObject_TypeOnce(void) { + static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; + + static PyNumberMethods SwigPyObject_as_number = { + (binaryfunc)0, /*nb_add*/ + (binaryfunc)0, /*nb_subtract*/ + (binaryfunc)0, /*nb_multiply*/ + /* nb_divide removed in Python 3 */ +#if PY_VERSION_HEX < 0x03000000 + (binaryfunc)0, /*nb_divide*/ +#endif + (binaryfunc)0, /*nb_remainder*/ + (binaryfunc)0, /*nb_divmod*/ + (ternaryfunc)0,/*nb_power*/ + (unaryfunc)0, /*nb_negative*/ + (unaryfunc)0, /*nb_positive*/ + (unaryfunc)0, /*nb_absolute*/ + (inquiry)0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ +#if PY_VERSION_HEX < 0x03000000 + 0, /*nb_coerce*/ +#endif + (unaryfunc)SwigPyObject_long, /*nb_int*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_long, /*nb_long*/ +#else + 0, /*nb_reserved*/ +#endif + (unaryfunc)0, /*nb_float*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_oct, /*nb_oct*/ + (unaryfunc)SwigPyObject_hex, /*nb_hex*/ +#endif +#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ +#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ +#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ +#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ +#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ + 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ +#endif + }; + + static PyTypeObject swigpyobject_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyObject", /* tp_name */ + sizeof(SwigPyObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyObject_dealloc, /* tp_dealloc */ + 0, /* tp_print */ +#if PY_VERSION_HEX < 0x02020000 + (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ +#else + (getattrfunc)0, /* tp_getattr */ +#endif + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX >= 0x03000000 + 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ +#else + (cmpfunc)SwigPyObject_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyObject_repr, /* tp_repr */ + &SwigPyObject_as_number, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + 0, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigobject_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + swigobject_methods, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif +#ifdef COUNT_ALLOCS + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ +#endif + }; + swigpyobject_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + swigpyobject_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&swigpyobject_type) < 0) + return NULL; +#endif + } + return &swigpyobject_type; +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own) +{ + SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); + if (sobj) { + sobj->ptr = ptr; + sobj->ty = ty; + sobj->own = own; + sobj->next = 0; + } + return (PyObject *)sobj; +} + +/* ----------------------------------------------------------------------------- + * Implements a simple Swig Packed type, and use it instead of string + * ----------------------------------------------------------------------------- */ + +typedef struct { + PyObject_HEAD + void *pack; + swig_type_info *ty; + size_t size; +} SwigPyPacked; + +SWIGRUNTIME int +SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ + char result[SWIG_BUFFER_SIZE]; + fputs("pack, v->size, 0, sizeof(result))) { + fputs("at ", fp); + fputs(result, fp); + } + fputs(v->ty->name,fp); + fputs(">", fp); + return 0; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_repr(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { + return SWIG_Python_str_FromFormat("", result, v->ty->name); + } else { + return SWIG_Python_str_FromFormat("", v->ty->name); + } +} + +SWIGRUNTIME PyObject * +SwigPyPacked_str(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ + return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); + } else { + return SWIG_Python_str_FromChar(v->ty->name); + } +} + +SWIGRUNTIME int +SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) +{ + size_t i = v->size; + size_t j = w->size; + int s = (i < j) ? -1 : ((i > j) ? 1 : 0); + return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); +} + +SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); + +SWIGRUNTIME PyTypeObject* +SwigPyPacked_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); + return type; +} + +SWIGRUNTIMEINLINE int +SwigPyPacked_Check(PyObject *op) { + return ((op)->ob_type == SwigPyPacked_TypeOnce()) + || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); +} + +SWIGRUNTIME void +SwigPyPacked_dealloc(PyObject *v) +{ + if (SwigPyPacked_Check(v)) { + SwigPyPacked *sobj = (SwigPyPacked *) v; + free(sobj->pack); + } + PyObject_DEL(v); +} + +SWIGRUNTIME PyTypeObject* +SwigPyPacked_TypeOnce(void) { + static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; + static PyTypeObject swigpypacked_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX>=0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyPacked", /* tp_name */ + sizeof(SwigPyPacked), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ + (printfunc)SwigPyPacked_print, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX>=0x03000000 + 0, /* tp_reserved in 3.0.1 */ +#else + (cmpfunc)SwigPyPacked_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyPacked_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)SwigPyPacked_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigpacked_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + 0, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif +#ifdef COUNT_ALLOCS + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ +#endif + }; + swigpypacked_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + swigpypacked_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&swigpypacked_type) < 0) + return NULL; +#endif + } + return &swigpypacked_type; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) +{ + SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); + if (sobj) { + void *pack = malloc(size); + if (pack) { + memcpy(pack, ptr, size); + sobj->pack = pack; + sobj->ty = ty; + sobj->size = size; + } else { + PyObject_DEL((PyObject *) sobj); + sobj = 0; + } + } + return (PyObject *) sobj; +} + +SWIGRUNTIME swig_type_info * +SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) +{ + if (SwigPyPacked_Check(obj)) { + SwigPyPacked *sobj = (SwigPyPacked *)obj; + if (sobj->size != size) return 0; + memcpy(ptr, sobj->pack, size); + return sobj->ty; + } else { + return 0; + } +} + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIMEINLINE PyObject * +_SWIG_This(void) +{ + return SWIG_Python_str_FromChar("this"); +} + +static PyObject *swig_this = NULL; + +SWIGRUNTIME PyObject * +SWIG_This(void) +{ + if (swig_this == NULL) + swig_this = _SWIG_This(); + return swig_this; +} + +/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ + +/* TODO: I don't know how to implement the fast getset in Python 3 right now */ +#if PY_VERSION_HEX>=0x03000000 +#define SWIG_PYTHON_SLOW_GETSET_THIS +#endif + +SWIGRUNTIME SwigPyObject * +SWIG_Python_GetSwigThis(PyObject *pyobj) +{ + PyObject *obj; + + if (SwigPyObject_Check(pyobj)) + return (SwigPyObject *) pyobj; + +#ifdef SWIGPYTHON_BUILTIN + (void)obj; +# ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + pyobj = PyWeakref_GET_OBJECT(pyobj); + if (pyobj && SwigPyObject_Check(pyobj)) + return (SwigPyObject*) pyobj; + } +# endif + return NULL; +#else + + obj = 0; + +#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) + if (PyInstance_Check(pyobj)) { + obj = _PyInstance_Lookup(pyobj, SWIG_This()); + } else { + PyObject **dictptr = _PyObject_GetDictPtr(pyobj); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; + } else { +#ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); + return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; + } +#endif + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } + } + } +#else + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } +#endif + if (obj && !SwigPyObject_Check(obj)) { + /* a PyObject is called 'this', try to get the 'real this' + SwigPyObject from it */ + return SWIG_Python_GetSwigThis(obj); + } + return (SwigPyObject *)obj; +#endif +} + +/* Acquire a pointer value */ + +SWIGRUNTIME int +SWIG_Python_AcquirePtr(PyObject *obj, int own) { + if (own == SWIG_POINTER_OWN) { + SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); + if (sobj) { + int oldown = sobj->own; + sobj->own = own; + return oldown; + } + } + return 0; +} + +/* Convert a pointer value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { + int res; + SwigPyObject *sobj; + int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; + + if (!obj) + return SWIG_ERROR; + if (obj == Py_None && !implicit_conv) { + if (ptr) + *ptr = 0; + return SWIG_OK; + } + + res = SWIG_ERROR; + + sobj = SWIG_Python_GetSwigThis(obj); + if (own) + *own = 0; + while (sobj) { + void *vptr = sobj->ptr; + if (ty) { + swig_type_info *to = sobj->ty; + if (to == ty) { + /* no type cast needed */ + if (ptr) *ptr = vptr; + break; + } else { + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) { + sobj = (SwigPyObject *)sobj->next; + } else { + if (ptr) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } + break; + } + } + } else { + if (ptr) *ptr = vptr; + break; + } + } + if (sobj) { + if (own) + *own = *own | sobj->own; + if (flags & SWIG_POINTER_DISOWN) { + sobj->own = 0; + } + res = SWIG_OK; + } else { + if (implicit_conv) { + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + if (data && !data->implicitconv) { + PyObject *klass = data->klass; + if (klass) { + PyObject *impconv; + data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ + impconv = SWIG_Python_CallFunctor(klass, obj); + data->implicitconv = 0; + if (PyErr_Occurred()) { + PyErr_Clear(); + impconv = 0; + } + if (impconv) { + SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); + if (iobj) { + void *vptr; + res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); + if (SWIG_IsOK(res)) { + if (ptr) { + *ptr = vptr; + /* transfer the ownership to 'ptr' */ + iobj->own = 0; + res = SWIG_AddCast(res); + res = SWIG_AddNewMask(res); + } else { + res = SWIG_AddCast(res); + } + } + } + Py_DECREF(impconv); + } + } + } + } + if (!SWIG_IsOK(res) && obj == Py_None) { + if (ptr) + *ptr = 0; + if (PyErr_Occurred()) + PyErr_Clear(); + res = SWIG_OK; + } + } + return res; +} + +/* Convert a function ptr value */ + +SWIGRUNTIME int +SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { + if (!PyCFunction_Check(obj)) { + return SWIG_ConvertPtr(obj, ptr, ty, 0); + } else { + void *vptr = 0; + + /* here we get the method pointer for callbacks */ + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; + if (desc) + desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; + if (!desc) + return SWIG_ERROR; + if (ty) { + swig_cast_info *tc = SWIG_TypeCheck(desc,ty); + if (tc) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } else { + return SWIG_ERROR; + } + } else { + *ptr = vptr; + } + return SWIG_OK; + } +} + +/* Convert a packed value value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { + swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); + if (!to) return SWIG_ERROR; + if (ty) { + if (to != ty) { + /* check type cast? */ + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) return SWIG_ERROR; + } + } + return SWIG_OK; +} + +/* ----------------------------------------------------------------------------- + * Create a new pointer object + * ----------------------------------------------------------------------------- */ + +/* + Create a new instance object, without calling __init__, and set the + 'this' attribute. +*/ + +SWIGRUNTIME PyObject* +SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) +{ +#if (PY_VERSION_HEX >= 0x02020000) + PyObject *inst = 0; + PyObject *newraw = data->newraw; + if (newraw) { + inst = PyObject_Call(newraw, data->newargs, NULL); + if (inst) { +#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + PyDict_SetItem(dict, SWIG_This(), swig_this); + } + } +#else + PyObject *key = SWIG_This(); + PyObject_SetAttr(inst, key, swig_this); +#endif + } + } else { +#if PY_VERSION_HEX >= 0x03000000 + inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + if (inst) { + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + } +#else + PyObject *dict = PyDict_New(); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } +#endif + } + return inst; +#else +#if (PY_VERSION_HEX >= 0x02010000) + PyObject *inst = 0; + PyObject *dict = PyDict_New(); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } + return (PyObject *) inst; +#else + PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); + if (inst == NULL) { + return NULL; + } + inst->in_class = (PyClassObject *)data->newargs; + Py_INCREF(inst->in_class); + inst->in_dict = PyDict_New(); + if (inst->in_dict == NULL) { + Py_DECREF(inst); + return NULL; + } +#ifdef Py_TPFLAGS_HAVE_WEAKREFS + inst->in_weakreflist = NULL; +#endif +#ifdef Py_TPFLAGS_GC + PyObject_GC_Init(inst); +#endif + PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); + return (PyObject *) inst; +#endif +#endif +} + +SWIGRUNTIME void +SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) +{ + PyObject *dict; +#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + } + PyDict_SetItem(dict, SWIG_This(), swig_this); + return; + } +#endif + dict = PyObject_GetAttrString(inst, (char*)"__dict__"); + PyDict_SetItem(dict, SWIG_This(), swig_this); + Py_DECREF(dict); +} + + +SWIGINTERN PyObject * +SWIG_Python_InitShadowInstance(PyObject *args) { + PyObject *obj[2]; + if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { + return NULL; + } else { + SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); + if (sthis) { + SwigPyObject_append((PyObject*) sthis, obj[1]); + } else { + SWIG_Python_SetSwigThis(obj[0], obj[1]); + } + return SWIG_Py_Void(); + } +} + +/* Create a new pointer object */ + +SWIGRUNTIME PyObject * +SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { + SwigPyClientData *clientdata; + PyObject * robj; + int own; + + if (!ptr) + return SWIG_Py_Void(); + + clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; + own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; + if (clientdata && clientdata->pytype) { + SwigPyObject *newobj; + if (flags & SWIG_BUILTIN_TP_INIT) { + newobj = (SwigPyObject*) self; + if (newobj->ptr) { + PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); + while (newobj->next) + newobj = (SwigPyObject *) newobj->next; + newobj->next = next_self; + newobj = (SwigPyObject *)next_self; +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif + } + } else { + newobj = PyObject_New(SwigPyObject, clientdata->pytype); +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif + } + if (newobj) { + newobj->ptr = ptr; + newobj->ty = type; + newobj->own = own; + newobj->next = 0; + return (PyObject*) newobj; + } + return SWIG_Py_Void(); + } + + assert(!(flags & SWIG_BUILTIN_TP_INIT)); + + robj = SwigPyObject_New(ptr, type, own); + if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); + Py_DECREF(robj); + robj = inst; + } + return robj; +} + +/* Create a new packed object */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { + return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); +} + +/* -----------------------------------------------------------------------------* + * Get type list + * -----------------------------------------------------------------------------*/ + +#ifdef SWIG_LINK_RUNTIME +void *SWIG_ReturnGlobalTypeList(void *); +#endif + +SWIGRUNTIME swig_module_info * +SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { + static void *type_pointer = (void *)0; + /* first check if module already created */ + if (!type_pointer) { +#ifdef SWIG_LINK_RUNTIME + type_pointer = SWIG_ReturnGlobalTypeList((void *)0); +#else +# ifdef SWIGPY_USE_CAPSULE + type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); +# else + type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); +# endif + if (PyErr_Occurred()) { + PyErr_Clear(); + type_pointer = (void *)0; + } +#endif + } + return (swig_module_info *) type_pointer; +} + +#if PY_MAJOR_VERSION < 2 +/* PyModule_AddObject function was introduced in Python 2.0. The following function + is copied out of Python/modsupport.c in python version 2.3.4 */ +SWIGINTERN int +PyModule_AddObject(PyObject *m, char *name, PyObject *o) +{ + PyObject *dict; + if (!PyModule_Check(m)) { + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); + return SWIG_ERROR; + } + if (!o) { + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); + return SWIG_ERROR; + } + + dict = PyModule_GetDict(m); + if (dict == NULL) { + /* Internal error -- modules must have a dict! */ + PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", + PyModule_GetName(m)); + return SWIG_ERROR; + } + if (PyDict_SetItemString(dict, name, o)) + return SWIG_ERROR; + Py_DECREF(o); + return SWIG_OK; +} +#endif + +SWIGRUNTIME void +#ifdef SWIGPY_USE_CAPSULE +SWIG_Python_DestroyModule(PyObject *obj) +#else +SWIG_Python_DestroyModule(void *vptr) +#endif +{ +#ifdef SWIGPY_USE_CAPSULE + swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); +#else + swig_module_info *swig_module = (swig_module_info *) vptr; +#endif + swig_type_info **types = swig_module->types; + size_t i; + for (i =0; i < swig_module->size; ++i) { + swig_type_info *ty = types[i]; + if (ty->owndata) { + SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; + if (data) SwigPyClientData_Del(data); + } + } + Py_DECREF(SWIG_This()); + swig_this = NULL; +} + +SWIGRUNTIME void +SWIG_Python_SetModule(swig_module_info *swig_module) { +#if PY_VERSION_HEX >= 0x03000000 + /* Add a dummy module object into sys.modules */ + PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); +#else + static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ + PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); +#endif +#ifdef SWIGPY_USE_CAPSULE + PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +#else + PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +#endif +} + +/* The python cached type query */ +SWIGRUNTIME PyObject * +SWIG_Python_TypeCache(void) { + static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); + return cache; +} + +SWIGRUNTIME swig_type_info * +SWIG_Python_TypeQuery(const char *type) +{ + PyObject *cache = SWIG_Python_TypeCache(); + PyObject *key = SWIG_Python_str_FromChar(type); + PyObject *obj = PyDict_GetItem(cache, key); + swig_type_info *descriptor; + if (obj) { +#ifdef SWIGPY_USE_CAPSULE + descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); +#else + descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); +#endif + } else { + swig_module_info *swig_module = SWIG_GetModule(0); + descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); + if (descriptor) { +#ifdef SWIGPY_USE_CAPSULE + obj = PyCapsule_New((void*) descriptor, NULL, NULL); +#else + obj = PyCObject_FromVoidPtr(descriptor, NULL); +#endif + PyDict_SetItem(cache, key, obj); + Py_DECREF(obj); + } + } + Py_DECREF(key); + return descriptor; +} + +/* + For backward compatibility only +*/ +#define SWIG_POINTER_EXCEPTION 0 +#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) +#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) + +SWIGRUNTIME int +SWIG_Python_AddErrMesg(const char* mesg, int infront) +{ + if (PyErr_Occurred()) { + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + Py_XINCREF(type); + PyErr_Clear(); + if (infront) { + PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); + } else { + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + } + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + } + return 1; + } else { + return 0; + } +} + +SWIGRUNTIME int +SWIG_Python_ArgFail(int argnum) +{ + if (PyErr_Occurred()) { + /* add information about failing argument */ + char mesg[256]; + PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); + return SWIG_Python_AddErrMesg(mesg, 1); + } else { + return 0; + } +} + +SWIGRUNTIMEINLINE const char * +SwigPyObject_GetDesc(PyObject *self) +{ + SwigPyObject *v = (SwigPyObject *)self; + swig_type_info *ty = v ? v->ty : 0; + return ty ? ty->str : ""; +} + +SWIGRUNTIME void +SWIG_Python_TypeError(const char *type, PyObject *obj) +{ + if (type) { +#if defined(SWIG_COBJECT_TYPES) + if (obj && SwigPyObject_Check(obj)) { + const char *otype = (const char *) SwigPyObject_GetDesc(obj); + if (otype) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", + type, otype); + return; + } + } else +#endif + { + const char *otype = (obj ? obj->ob_type->tp_name : 0); + if (otype) { + PyObject *str = PyObject_Str(obj); + const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; + if (cstr) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", + type, otype, cstr); + SWIG_Python_str_DelForPy3(cstr); + } else { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", + type, otype); + } + Py_XDECREF(str); + return; + } + } + PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); + } else { + PyErr_Format(PyExc_TypeError, "unexpected type is received"); + } +} + + +/* Convert a pointer value, signal an exception on a type mismatch */ +SWIGRUNTIME void * +SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { + void *result; + if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { + PyErr_Clear(); +#if SWIG_POINTER_EXCEPTION + if (flags) { + SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); + SWIG_Python_ArgFail(argnum); + } +#endif + } + return result; +} + +#ifdef SWIGPYTHON_BUILTIN +SWIGRUNTIME int +SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { + PyTypeObject *tp = obj->ob_type; + PyObject *descr; + PyObject *encoded_name; + descrsetfunc f; + int res = -1; + +# ifdef Py_USING_UNICODE + if (PyString_Check(name)) { + name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); + if (!name) + return -1; + } else if (!PyUnicode_Check(name)) +# else + if (!PyString_Check(name)) +# endif + { + PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); + return -1; + } else { + Py_INCREF(name); + } + + if (!tp->tp_dict) { + if (PyType_Ready(tp) < 0) + goto done; + } + + descr = _PyType_Lookup(tp, name); + f = NULL; + if (descr != NULL) + f = descr->ob_type->tp_descr_set; + if (!f) { + if (PyString_Check(name)) { + encoded_name = name; + Py_INCREF(name); + } else { + encoded_name = PyUnicode_AsUTF8String(name); + } + PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); + Py_DECREF(encoded_name); + } else { + res = f(descr, obj, value); + } + + done: + Py_DECREF(name); + return res; +} +#endif + + +#ifdef __cplusplus +} +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + + #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_GLenum swig_types[0] +#define SWIGTYPE_p_GLsizei swig_types[1] +#define SWIGTYPE_p_GLuint swig_types[2] +#define SWIGTYPE_p_Poco__XML__Document swig_types[3] +#define SWIGTYPE_p_Poco__XML__Element swig_types[4] +#define SWIGTYPE_p_allocator_type swig_types[5] +#define SWIGTYPE_p_char swig_types[6] +#define SWIGTYPE_p_difference_type swig_types[7] +#define SWIGTYPE_p_double swig_types[8] +#define SWIGTYPE_p_float swig_types[9] +#define SWIGTYPE_p_int swig_types[10] +#define SWIGTYPE_p_int64_t swig_types[11] +#define SWIGTYPE_p_listT_int_t swig_types[12] +#define SWIGTYPE_p_listT_std__string_t swig_types[13] +#define SWIGTYPE_p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t swig_types[14] +#define SWIGTYPE_p_of3dGraphics swig_types[15] +#define SWIGTYPE_p_of3dPrimitive swig_types[16] +#define SWIGTYPE_p_ofAbstractImage swig_types[17] +#define SWIGTYPE_p_ofAbstractParameter swig_types[18] +#define SWIGTYPE_p_ofAppBaseWindow swig_types[19] +#define SWIGTYPE_p_ofArduino swig_types[20] +#define SWIGTYPE_p_ofBaseApp swig_types[21] +#define SWIGTYPE_p_ofBaseDraws swig_types[22] +#define SWIGTYPE_p_ofBaseFileSerializer swig_types[23] +#define SWIGTYPE_p_ofBaseGLRenderer swig_types[24] +#define SWIGTYPE_p_ofBaseHasPixels swig_types[25] +#define SWIGTYPE_p_ofBaseHasTexture swig_types[26] +#define SWIGTYPE_p_ofBaseHasTexturePlanes swig_types[27] +#define SWIGTYPE_p_ofBaseImage_T_float_t swig_types[28] +#define SWIGTYPE_p_ofBaseImage_T_unsigned_char_t swig_types[29] +#define SWIGTYPE_p_ofBaseImage_T_unsigned_short_t swig_types[30] +#define SWIGTYPE_p_ofBaseLoggerChannel swig_types[31] +#define SWIGTYPE_p_ofBaseMaterial swig_types[32] +#define SWIGTYPE_p_ofBaseRenderer swig_types[33] +#define SWIGTYPE_p_ofBaseSerializer swig_types[34] +#define SWIGTYPE_p_ofBaseSoundInput swig_types[35] +#define SWIGTYPE_p_ofBaseSoundOutput swig_types[36] +#define SWIGTYPE_p_ofBaseSoundPlayer swig_types[37] +#define SWIGTYPE_p_ofBaseURLFileLoader swig_types[38] +#define SWIGTYPE_p_ofBaseUpdates swig_types[39] +#define SWIGTYPE_p_ofBaseVideo swig_types[40] +#define SWIGTYPE_p_ofBaseVideoDraws swig_types[41] +#define SWIGTYPE_p_ofBaseVideoGrabber swig_types[42] +#define SWIGTYPE_p_ofBaseVideoPlayer swig_types[43] +#define SWIGTYPE_p_ofBoxPrimitive swig_types[44] +#define SWIGTYPE_p_ofBuffer swig_types[45] +#define SWIGTYPE_p_ofBufferObject swig_types[46] +#define SWIGTYPE_p_ofCamera swig_types[47] +#define SWIGTYPE_p_ofColor_T_float_t swig_types[48] +#define SWIGTYPE_p_ofColor_T_unsigned_char_t swig_types[49] +#define SWIGTYPE_p_ofColor_T_unsigned_short_t swig_types[50] +#define SWIGTYPE_p_ofConePrimitive swig_types[51] +#define SWIGTYPE_p_ofConsoleLoggerChannel swig_types[52] +#define SWIGTYPE_p_ofCoreEvents swig_types[53] +#define SWIGTYPE_p_ofCylinderPrimitive swig_types[54] +#define SWIGTYPE_p_ofDragInfo swig_types[55] +#define SWIGTYPE_p_ofEasyCam swig_types[56] +#define SWIGTYPE_p_ofEventArgs swig_types[57] +#define SWIGTYPE_p_ofEventT_int_const_t swig_types[58] +#define SWIGTYPE_p_ofEventT_ofHttpResponse_t swig_types[59] +#define SWIGTYPE_p_ofEventT_std__string_const_t swig_types[60] +#define SWIGTYPE_p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t swig_types[61] +#define SWIGTYPE_p_ofFbo swig_types[62] +#define SWIGTYPE_p_ofFbo__Settings swig_types[63] +#define SWIGTYPE_p_ofFile swig_types[64] +#define SWIGTYPE_p_ofFileDialogResult swig_types[65] +#define SWIGTYPE_p_ofFileLoggerChannel swig_types[66] +#define SWIGTYPE_p_ofGLProgrammableRenderer swig_types[67] +#define SWIGTYPE_p_ofHttpRequest swig_types[68] +#define SWIGTYPE_p_ofHttpResponse swig_types[69] +#define SWIGTYPE_p_ofIcoSpherePrimitive swig_types[70] +#define SWIGTYPE_p_ofImage_T_float_t swig_types[71] +#define SWIGTYPE_p_ofImage_T_unsigned_char_t swig_types[72] +#define SWIGTYPE_p_ofImage_T_unsigned_short_t swig_types[73] +#define SWIGTYPE_p_ofKeyEventArgs swig_types[74] +#define SWIGTYPE_p_ofLight swig_types[75] +#define SWIGTYPE_p_ofLog swig_types[76] +#define SWIGTYPE_p_ofLogError swig_types[77] +#define SWIGTYPE_p_ofLogFatalError swig_types[78] +#define SWIGTYPE_p_ofLogNotice swig_types[79] +#define SWIGTYPE_p_ofLogVerbose swig_types[80] +#define SWIGTYPE_p_ofLogWarning swig_types[81] +#define SWIGTYPE_p_ofMaterial swig_types[82] +#define SWIGTYPE_p_ofMaterial__Data swig_types[83] +#define SWIGTYPE_p_ofMatrix3x3 swig_types[84] +#define SWIGTYPE_p_ofMatrix4x4 swig_types[85] +#define SWIGTYPE_p_ofMatrixStack swig_types[86] +#define SWIGTYPE_p_ofMesh swig_types[87] +#define SWIGTYPE_p_ofMeshFace swig_types[88] +#define SWIGTYPE_p_ofMessage swig_types[89] +#define SWIGTYPE_p_ofMouseEventArgs swig_types[90] +#define SWIGTYPE_p_ofNode swig_types[91] +#define SWIGTYPE_p_ofParameterGroup swig_types[92] +#define SWIGTYPE_p_ofPath swig_types[93] +#define SWIGTYPE_p_ofPixels_T_float_t swig_types[94] +#define SWIGTYPE_p_ofPixels_T_float_t__ConstLine swig_types[95] +#define SWIGTYPE_p_ofPixels_T_float_t__ConstLines swig_types[96] +#define SWIGTYPE_p_ofPixels_T_float_t__Line swig_types[97] +#define SWIGTYPE_p_ofPixels_T_float_t__Lines swig_types[98] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t swig_types[99] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLine swig_types[100] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLines swig_types[101] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__Line swig_types[102] +#define SWIGTYPE_p_ofPixels_T_unsigned_char_t__Lines swig_types[103] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t swig_types[104] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLine swig_types[105] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLines swig_types[106] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__Line swig_types[107] +#define SWIGTYPE_p_ofPixels_T_unsigned_short_t__Lines swig_types[108] +#define SWIGTYPE_p_ofPlanePrimitive swig_types[109] +#define SWIGTYPE_p_ofPolyRenderMode swig_types[110] +#define SWIGTYPE_p_ofPolyline swig_types[111] +#define SWIGTYPE_p_ofPrimitiveMode swig_types[112] +#define SWIGTYPE_p_ofQuaternion swig_types[113] +#define SWIGTYPE_p_ofRectangle swig_types[114] +#define SWIGTYPE_p_ofResizeEventArgs swig_types[115] +#define SWIGTYPE_p_ofSerial swig_types[116] +#define SWIGTYPE_p_ofSerialDeviceInfo swig_types[117] +#define SWIGTYPE_p_ofShader swig_types[118] +#define SWIGTYPE_p_ofSoundDevice swig_types[119] +#define SWIGTYPE_p_ofSoundPlayer swig_types[120] +#define SWIGTYPE_p_ofSoundStream swig_types[121] +#define SWIGTYPE_p_ofSpherePrimitive swig_types[122] +#define SWIGTYPE_p_ofStyle swig_types[123] +#define SWIGTYPE_p_ofTTFCharacter swig_types[124] +#define SWIGTYPE_p_ofTexture swig_types[125] +#define SWIGTYPE_p_ofTextureData swig_types[126] +#define SWIGTYPE_p_ofTouchEventArgs swig_types[127] +#define SWIGTYPE_p_ofTrueTypeFont swig_types[128] +#define SWIGTYPE_p_ofURLFileLoader swig_types[129] +#define SWIGTYPE_p_ofUTF8Iterator swig_types[130] +#define SWIGTYPE_p_ofVbo swig_types[131] +#define SWIGTYPE_p_ofVboMesh swig_types[132] +#define SWIGTYPE_p_ofVec2f swig_types[133] +#define SWIGTYPE_p_ofVec3f swig_types[134] +#define SWIGTYPE_p_ofVec4f swig_types[135] +#define SWIGTYPE_p_ofVideoGrabber swig_types[136] +#define SWIGTYPE_p_ofVideoPlayer swig_types[137] +#define SWIGTYPE_p_ofWindowSettings swig_types[138] +#define SWIGTYPE_p_ofXml swig_types[139] +#define SWIGTYPE_p_p_PyObject swig_types[140] +#define SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t swig_types[141] +#define SWIGTYPE_p_shared_ptrT_ofAppGLFWWindow_t swig_types[142] +#define SWIGTYPE_p_shared_ptrT_ofBaseApp_t swig_types[143] +#define SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t swig_types[144] +#define SWIGTYPE_p_shared_ptrT_ofBaseSoundPlayer_t swig_types[145] +#define SWIGTYPE_p_shared_ptrT_ofBaseSoundStream_t swig_types[146] +#define SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t swig_types[147] +#define SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t swig_types[148] +#define SWIGTYPE_p_shared_ptrT_ofMainLoop_t swig_types[149] +#define SWIGTYPE_p_size_type swig_types[150] +#define SWIGTYPE_p_std__allocatorT_float_t swig_types[151] +#define SWIGTYPE_p_std__allocatorT_int_t swig_types[152] +#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[153] +#define SWIGTYPE_p_std__invalid_argument swig_types[154] +#define SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t swig_types[155] +#define SWIGTYPE_p_std__string swig_types[156] +#define SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t swig_types[157] +#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[158] +#define SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t swig_types[159] +#define SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t swig_types[160] +#define SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t swig_types[161] +#define SWIGTYPE_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t swig_types[162] +#define SWIGTYPE_p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t swig_types[163] +#define SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t swig_types[164] +#define SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t swig_types[165] +#define SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t swig_types[166] +#define SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t swig_types[167] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t swig_types[168] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator swig_types[169] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator swig_types[170] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator swig_types[171] +#define SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator swig_types[172] +#define SWIGTYPE_p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t swig_types[173] +#define SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t swig_types[174] +#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[175] +#define SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t swig_types[176] +#define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[177] +#define SWIGTYPE_p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t swig_types[178] +#define SWIGTYPE_p_swig__SwigPyIterator swig_types[179] +#define SWIGTYPE_p_uint64_t swig_types[180] +#define SWIGTYPE_p_unsigned_char swig_types[181] +#define SWIGTYPE_p_unsigned_int swig_types[182] +#define SWIGTYPE_p_unsigned_short swig_types[183] +#define SWIGTYPE_p_utf8__iteratorT_std__string__const_iterator_t swig_types[184] +#define SWIGTYPE_p_utf8__iteratorT_std__string__const_reverse_iterator_t swig_types[185] +#define SWIGTYPE_p_value_type swig_types[186] +static swig_type_info *swig_types[188]; +static swig_module_info swig_module = {swig_types, 187, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#if (PY_VERSION_HEX <= 0x02000000) +# if !defined(SWIG_PYTHON_CLASSIC) +# error "This python version requires swig to be run with the '-classic' option" +# endif +#endif + +/*----------------------------------------------- + @(target):= _openframeworks.so + ------------------------------------------------*/ +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_init PyInit__openframeworks + +#else +# define SWIG_init init_openframeworks + +#endif +#define SWIG_name "_openframeworks" + +#define SWIGVERSION 0x030008 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include + + +namespace swig { + class SwigPtr_PyObject { + protected: + PyObject *_obj; + + public: + SwigPtr_PyObject() :_obj(0) + { + } + + SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) + { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + Py_XINCREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; + } + + SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) + { + if (initial_ref) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + Py_XINCREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; + } + } + + SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) + { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + Py_XINCREF(item._obj); + Py_XDECREF(_obj); + _obj = item._obj; + SWIG_PYTHON_THREAD_END_BLOCK; + return *this; + } + + ~SwigPtr_PyObject() + { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + Py_XDECREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; + } + + operator PyObject *() const + { + return _obj; + } + + PyObject *operator->() const + { + return _obj; + } + }; +} + + +namespace swig { + struct SwigVar_PyObject : SwigPtr_PyObject { + SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } + + SwigVar_PyObject & operator = (PyObject* obj) + { + Py_XDECREF(_obj); + _obj = obj; + return *this; + } + }; +} + + + #include "ofMain.h" + #undef check + + +#include + + +#if defined(__GNUC__) +# if __GNUC__ == 2 && __GNUC_MINOR <= 96 +# define SWIG_STD_NOMODERN_STL +# endif +#endif + + +#include + + +#include + + +#include + +#if PY_VERSION_HEX >= 0x03020000 +# define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj)) +#else +# define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) +#endif + + +namespace swig { + struct stop_iteration { + }; + + struct SwigPyIterator { + private: + SwigPtr_PyObject _seq; + + protected: + SwigPyIterator(PyObject *seq) : _seq(seq) + { + } + + public: + virtual ~SwigPyIterator() {} + + // Access iterator method, required by Python + virtual PyObject *value() const = 0; + + // Forward iterator method, required by Python + virtual SwigPyIterator *incr(size_t n = 1) = 0; + + // Backward iterator method, very common in C++, but not required in Python + virtual SwigPyIterator *decr(size_t /*n*/ = 1) + { + throw stop_iteration(); + } + + // Random access iterator methods, but not required in Python + virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const + { + throw std::invalid_argument("operation not supported"); + } + + virtual bool equal (const SwigPyIterator &/*x*/) const + { + throw std::invalid_argument("operation not supported"); + } + + // C++ common/needed methods + virtual SwigPyIterator *copy() const = 0; + + PyObject *next() + { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads + PyObject *obj = value(); + incr(); + SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads + return obj; + } + + /* Make an alias for Python 3.x */ + PyObject *__next__() + { + return next(); + } + + PyObject *previous() + { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads + decr(); + PyObject *obj = value(); + SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads + return obj; + } + + SwigPyIterator *advance(ptrdiff_t n) + { + return (n > 0) ? incr(n) : decr(-n); + } + + bool operator == (const SwigPyIterator& x) const + { + return equal(x); + } + + bool operator != (const SwigPyIterator& x) const + { + return ! operator==(x); + } + + SwigPyIterator& operator += (ptrdiff_t n) + { + return *advance(n); + } + + SwigPyIterator& operator -= (ptrdiff_t n) + { + return *advance(-n); + } + + SwigPyIterator* operator + (ptrdiff_t n) const + { + return copy()->advance(n); + } + + SwigPyIterator* operator - (ptrdiff_t n) const + { + return copy()->advance(-n); + } + + ptrdiff_t operator - (const SwigPyIterator& x) const + { + return x.distance(*this); + } + + static swig_type_info* descriptor() { + static int init = 0; + static swig_type_info* desc = 0; + if (!init) { + desc = SWIG_TypeQuery("swig::SwigPyIterator *"); + init = 1; + } + return desc; + } + }; + +#if defined(SWIGPYTHON_BUILTIN) + inline PyObject* make_output_iterator_builtin (PyObject *pyself) + { + Py_INCREF(pyself); + return pyself; + } +#endif +} + + +SWIGINTERN int +SWIG_AsVal_double (PyObject *obj, double *val) +{ + int res = SWIG_TypeError; + if (PyFloat_Check(obj)) { + if (val) *val = PyFloat_AsDouble(obj); + return SWIG_OK; +#if PY_VERSION_HEX < 0x03000000 + } else if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; +#endif + } else if (PyLong_Check(obj)) { + double v = PyLong_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + double d = PyFloat_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = d; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); + } else { + PyErr_Clear(); + } + } + } +#endif + return res; +} + + +#include + + +#include + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) +{ +#if PY_VERSION_HEX < 0x03000000 + if (PyInt_Check(obj)) { + long v = PyInt_AsLong(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else +#endif + if (PyLong_Check(obj)) { + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + return SWIG_OverflowError; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERNINLINE int +SWIG_AsVal_size_t (PyObject * obj, size_t *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); + if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); + return res; +} + + + #define SWIG_From_long PyLong_FromLong + + +SWIGINTERNINLINE PyObject * +SWIG_From_ptrdiff_t (ptrdiff_t value) +{ + return SWIG_From_long (static_cast< long >(value)); +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_bool (bool value) +{ + return PyBool_FromLong(value ? 1 : 0); +} + + +SWIGINTERN int +SWIG_AsVal_long (PyObject *obj, long* val) +{ +#if PY_VERSION_HEX < 0x03000000 + if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else +#endif + if (PyLong_Check(obj)) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + return SWIG_OverflowError; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + long v = PyInt_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { + if (val) *val = (long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERNINLINE int +SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) +{ + long v; + int res = SWIG_AsVal_long (obj, val ? &v : 0); + if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v); + return res; +} + + +#include + + +#include + + +#include + + +#include + + +#include + + +namespace swig { + template + struct noconst_traits { + typedef Type noconst_type; + }; + + template + struct noconst_traits { + typedef Type noconst_type; + }; + + /* + type categories + */ + struct pointer_category { }; + struct value_category { }; + + /* + General traits that provides type_name and type_info + */ + template struct traits { }; + + template + inline const char* type_name() { + return traits::noconst_type >::type_name(); + } + + template + struct traits_info { + static swig_type_info *type_query(std::string name) { + name += " *"; + return SWIG_TypeQuery(name.c_str()); + } + static swig_type_info *type_info() { + static swig_type_info *info = type_query(type_name()); + return info; + } + }; + + template + inline swig_type_info *type_info() { + return traits_info::type_info(); + } + + /* + Partial specialization for pointers + */ + template struct traits { + typedef pointer_category category; + static std::string make_ptr_name(const char* name) { + std::string ptrname = name; + ptrname += " *"; + return ptrname; + } + static const char* type_name() { + static std::string name = make_ptr_name(swig::type_name()); + return name.c_str(); + } + }; + + template + struct traits_as { }; + + template + struct traits_check { }; + +} + + +namespace swig { + /* + Traits that provides the from method + */ + template struct traits_from_ptr { + static PyObject *from(Type *val, int owner = 0) { + return SWIG_InternalNewPointerObj(val, type_info(), owner); + } + }; + + template struct traits_from { + static PyObject *from(const Type& val) { + return traits_from_ptr::from(new Type(val), 1); + } + }; + + template struct traits_from { + static PyObject *from(Type* val) { + return traits_from_ptr::from(val, 0); + } + }; + + template struct traits_from { + static PyObject *from(const Type* val) { + return traits_from_ptr::from(const_cast(val), 0); + } + }; + + + template + inline PyObject *from(const Type& val) { + return traits_from::from(val); + } + + template + inline PyObject *from_ptr(Type* val, int owner) { + return traits_from_ptr::from(val, owner); + } + + /* + Traits that provides the asval/as/check method + */ + template + struct traits_asptr { + static int asptr(PyObject *obj, Type **val) { + Type *p; + int res = SWIG_ConvertPtr(obj, (void**)&p, type_info(), 0); + if (SWIG_IsOK(res)) { + if (val) *val = p; + } + return res; + } + }; + + template + inline int asptr(PyObject *obj, Type **vptr) { + return traits_asptr::asptr(obj, vptr); + } + + template + struct traits_asval { + static int asval(PyObject *obj, Type *val) { + if (val) { + Type *p = 0; + int res = traits_asptr::asptr(obj, &p); + if (!SWIG_IsOK(res)) return res; + if (p) { + typedef typename noconst_traits::noconst_type noconst_type; + *(const_cast(val)) = *p; + if (SWIG_IsNewObj(res)){ + delete p; + res = SWIG_DelNewMask(res); + } + return res; + } else { + return SWIG_ERROR; + } + } else { + return traits_asptr::asptr(obj, (Type **)(0)); + } + } + }; + + template struct traits_asval { + static int asval(PyObject *obj, Type **val) { + if (val) { + typedef typename noconst_traits::noconst_type noconst_type; + noconst_type *p = 0; + int res = traits_asptr::asptr(obj, &p); + if (SWIG_IsOK(res)) { + *(const_cast(val)) = p; + } + return res; + } else { + return traits_asptr::asptr(obj, (Type **)(0)); + } + } + }; + + template + inline int asval(PyObject *obj, Type *val) { + return traits_asval::asval(obj, val); + } + + template + struct traits_as { + static Type as(PyObject *obj, bool throw_error) { + Type v; + int res = asval(obj, &v); + if (!obj || !SWIG_IsOK(res)) { + if (!PyErr_Occurred()) { + ::SWIG_Error(SWIG_TypeError, swig::type_name()); + } + if (throw_error) throw std::invalid_argument("bad type"); + } + return v; + } + }; + + template + struct traits_as { + static Type as(PyObject *obj, bool throw_error) { + Type *v = 0; + int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); + if (SWIG_IsOK(res) && v) { + if (SWIG_IsNewObj(res)) { + Type r(*v); + delete v; + return r; + } else { + return *v; + } + } else { + // Uninitialized return value, no Type() constructor required. + static Type *v_def = (Type*) malloc(sizeof(Type)); + if (!PyErr_Occurred()) { + SWIG_Error(SWIG_TypeError, swig::type_name()); + } + if (throw_error) throw std::invalid_argument("bad type"); + memset(v_def,0,sizeof(Type)); + return *v_def; + } + } + }; + + template + struct traits_as { + static Type* as(PyObject *obj, bool throw_error) { + Type *v = 0; + int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); + if (SWIG_IsOK(res)) { + return v; + } else { + if (!PyErr_Occurred()) { + SWIG_Error(SWIG_TypeError, swig::type_name()); + } + if (throw_error) throw std::invalid_argument("bad type"); + return 0; + } + } + }; + + template + inline Type as(PyObject *obj, bool te = false) { + return traits_as::category>::as(obj, te); + } + + template + struct traits_check { + static bool check(PyObject *obj) { + int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR; + return SWIG_IsOK(res) ? true : false; + } + }; + + template + struct traits_check { + static bool check(PyObject *obj) { + int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR; + return SWIG_IsOK(res) ? true : false; + } + }; + + template + inline bool check(PyObject *obj) { + return traits_check::category>::check(obj); + } +} + + +#include + +namespace std { + template <> + struct less : public binary_function + { + bool + operator()(PyObject * v, PyObject *w) const + { + bool res; + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false; + /* This may fall into a case of inconsistent + eg. ObjA > ObjX > ObjB + but ObjA < ObjB + */ + if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) ) + { + /* Objects can't be compared, this mostly occurred in Python 3.0 */ + /* Compare their ptr directly for a workaround */ + res = (v < w); + PyErr_Clear(); + } + SWIG_PYTHON_THREAD_END_BLOCK; + return res; + } + }; + + template <> + struct less : public binary_function + { + bool + operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const + { + return std::less()(v, w); + } + }; + + template <> + struct less : public binary_function + { + bool + operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const + { + return std::less()(v, w); + } + }; + +} + +namespace swig { + template <> struct traits { + typedef value_category category; + static const char* type_name() { return "PyObject *"; } + }; + + template <> struct traits_asval { + typedef PyObject * value_type; + static int asval(PyObject *obj, value_type *val) { + if (val) *val = obj; + return SWIG_OK; + } + }; + + template <> + struct traits_check { + static bool check(PyObject *) { + return true; + } + }; + + template <> struct traits_from { + typedef PyObject * value_type; + static PyObject *from(const value_type& val) { + Py_XINCREF(val); + return val; + } + }; + +} + +namespace swig { + template + inline size_t + check_index(Difference i, size_t size, bool insert = false) { + if ( i < 0 ) { + if ((size_t) (-i) <= size) + return (size_t) (i + size); + } else if ( (size_t) i < size ) { + return (size_t) i; + } else if (insert && ((size_t) i == size)) { + return size; + } + throw std::out_of_range("index out of range"); + } + + template + void + slice_adjust(Difference i, Difference j, Py_ssize_t step, size_t size, Difference &ii, Difference &jj, bool insert = false) { + if (step == 0) { + throw std::invalid_argument("slice step cannot be zero"); + } else if (step > 0) { + // Required range: 0 <= i < size, 0 <= j < size + if (i < 0) { + ii = 0; + } else if (i < (Difference)size) { + ii = i; + } else if (insert && (i >= (Difference)size)) { + ii = (Difference)size; + } + if ( j < 0 ) { + jj = 0; + } else { + jj = (j < (Difference)size) ? j : (Difference)size; + } + } else { + // Required range: -1 <= i < size-1, -1 <= j < size-1 + if (i < -1) { + ii = -1; + } else if (i < (Difference) size) { + ii = i; + } else if (i >= (Difference)(size-1)) { + ii = (Difference)(size-1); + } + if (j < -1) { + jj = -1; + } else { + jj = (j < (Difference)size ) ? j : (Difference)(size-1); + } + } + } + + template + inline typename Sequence::iterator + getpos(Sequence* self, Difference i) { + typename Sequence::iterator pos = self->begin(); + std::advance(pos, check_index(i,self->size())); + return pos; + } + + template + inline typename Sequence::const_iterator + cgetpos(const Sequence* self, Difference i) { + typename Sequence::const_iterator pos = self->begin(); + std::advance(pos, check_index(i,self->size())); + return pos; + } + + template + inline void + erase(Sequence* seq, const typename Sequence::iterator& position) { + seq->erase(position); + } + + template + inline Sequence* + getslice(const Sequence* self, Difference i, Difference j, Py_ssize_t step) { + typename Sequence::size_type size = self->size(); + Difference ii = 0; + Difference jj = 0; + swig::slice_adjust(i, j, step, size, ii, jj); + + if (step > 0) { + typename Sequence::const_iterator sb = self->begin(); + typename Sequence::const_iterator se = self->begin(); + std::advance(sb,ii); + std::advance(se,jj); + if (step == 1) { + return new Sequence(sb, se); + } else { + Sequence *sequence = new Sequence(); + typename Sequence::const_iterator it = sb; + while (it!=se) { + sequence->push_back(*it); + for (Py_ssize_t c=0; c jj) { + typename Sequence::const_reverse_iterator sb = self->rbegin(); + typename Sequence::const_reverse_iterator se = self->rbegin(); + std::advance(sb,size-ii-1); + std::advance(se,size-jj-1); + typename Sequence::const_reverse_iterator it = sb; + while (it!=se) { + sequence->push_back(*it); + for (Py_ssize_t c=0; c<-step && it!=se; ++c) + it++; + } + } + return sequence; + } + } + + template + inline void + setslice(Sequence* self, Difference i, Difference j, Py_ssize_t step, const InputSeq& is = InputSeq()) { + typename Sequence::size_type size = self->size(); + Difference ii = 0; + Difference jj = 0; + swig::slice_adjust(i, j, step, size, ii, jj, true); + if (step > 0) { + if (jj < ii) + jj = ii; + if (step == 1) { + size_t ssize = jj - ii; + if (ssize <= is.size()) { + // expanding/staying the same size + typename Sequence::iterator sb = self->begin(); + typename InputSeq::const_iterator isit = is.begin(); + std::advance(sb,ii); + std::advance(isit, jj - ii); + self->insert(std::copy(is.begin(), isit, sb), isit, is.end()); + } else { + // shrinking + typename Sequence::iterator sb = self->begin(); + typename Sequence::iterator se = self->begin(); + std::advance(sb,ii); + std::advance(se,jj); + self->erase(sb,se); + sb = self->begin(); + std::advance(sb,ii); + self->insert(sb, is.begin(), is.end()); + } + } else { + size_t replacecount = (jj - ii + step - 1) / step; + if (is.size() != replacecount) { + char msg[1024]; + sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); + throw std::invalid_argument(msg); + } + typename Sequence::const_iterator isit = is.begin(); + typename Sequence::iterator it = self->begin(); + std::advance(it,ii); + for (size_t rc=0; rcend(); ++c) + it++; + } + } + } else { + if (jj > ii) + jj = ii; + size_t replacecount = (ii - jj - step - 1) / -step; + if (is.size() != replacecount) { + char msg[1024]; + sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); + throw std::invalid_argument(msg); + } + typename Sequence::const_iterator isit = is.begin(); + typename Sequence::reverse_iterator it = self->rbegin(); + std::advance(it,size-ii-1); + for (size_t rc=0; rcrend(); ++c) + it++; + } + } + } + + template + inline void + delslice(Sequence* self, Difference i, Difference j, Py_ssize_t step) { + typename Sequence::size_type size = self->size(); + Difference ii = 0; + Difference jj = 0; + swig::slice_adjust(i, j, step, size, ii, jj, true); + if (step > 0) { + if (jj > ii) { + typename Sequence::iterator sb = self->begin(); + std::advance(sb,ii); + if (step == 1) { + typename Sequence::iterator se = self->begin(); + std::advance(se,jj); + self->erase(sb,se); + } else { + typename Sequence::iterator it = sb; + size_t delcount = (jj - ii + step - 1) / step; + while (delcount) { + it = self->erase(it); + for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c) + it++; + delcount--; + } + } + } + } else { + if (ii > jj) { + typename Sequence::reverse_iterator sb = self->rbegin(); + std::advance(sb,size-ii-1); + typename Sequence::reverse_iterator it = sb; + size_t delcount = (ii - jj - step - 1) / -step; + while (delcount) { + it = typename Sequence::reverse_iterator(self->erase((++it).base())); + for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c) + it++; + delcount--; + } + } + } + } +} + + +#if defined(__SUNPRO_CC) && defined(_RWSTD_VER) +# if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL) +# define SWIG_STD_NOITERATOR_TRAITS_STL +# endif +#endif + +#if !defined(SWIG_STD_NOITERATOR_TRAITS_STL) +#include +#else +namespace std { + template + struct iterator_traits { + typedef ptrdiff_t difference_type; + typedef typename Iterator::value_type value_type; + }; + + template + struct iterator_traits<__reverse_bi_iterator > { + typedef Distance difference_type; + typedef T value_type; + }; + + template + struct iterator_traits { + typedef T value_type; + typedef ptrdiff_t difference_type; + }; + + template + inline typename iterator_traits<_InputIterator>::difference_type + distance(_InputIterator __first, _InputIterator __last) + { + typename iterator_traits<_InputIterator>::difference_type __n = 0; + while (__first != __last) { + ++__first; ++__n; + } + return __n; + } +} +#endif + + +namespace swig { + template + class SwigPyIterator_T : public SwigPyIterator + { + public: + typedef OutIterator out_iterator; + typedef typename std::iterator_traits::value_type value_type; + typedef SwigPyIterator_T self_type; + + SwigPyIterator_T(out_iterator curr, PyObject *seq) + : SwigPyIterator(seq), current(curr) + { + } + + const out_iterator& get_current() const + { + return current; + } + + + bool equal (const SwigPyIterator &iter) const + { + const self_type *iters = dynamic_cast(&iter); + if (iters) { + return (current == iters->get_current()); + } else { + throw std::invalid_argument("bad iterator type"); + } + } + + ptrdiff_t distance(const SwigPyIterator &iter) const + { + const self_type *iters = dynamic_cast(&iter); + if (iters) { + return std::distance(current, iters->get_current()); + } else { + throw std::invalid_argument("bad iterator type"); + } + } + + protected: + out_iterator current; + }; + + template + struct from_oper + { + typedef const ValueType& argument_type; + typedef PyObject *result_type; + result_type operator()(argument_type v) const + { + return swig::from(v); + } + }; + + template::value_type, + typename FromOper = from_oper > + class SwigPyIteratorOpen_T : public SwigPyIterator_T + { + public: + FromOper from; + typedef OutIterator out_iterator; + typedef ValueType value_type; + typedef SwigPyIterator_T base; + typedef SwigPyIteratorOpen_T self_type; + + SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq) + : SwigPyIterator_T(curr, seq) + { + } + + PyObject *value() const { + return from(static_cast(*(base::current))); + } + + SwigPyIterator *copy() const + { + return new self_type(*this); + } + + SwigPyIterator *incr(size_t n = 1) + { + while (n--) { + ++base::current; + } + return this; + } + + SwigPyIterator *decr(size_t n = 1) + { + while (n--) { + --base::current; + } + return this; + } + }; + + template::value_type, + typename FromOper = from_oper > + class SwigPyIteratorClosed_T : public SwigPyIterator_T + { + public: + FromOper from; + typedef OutIterator out_iterator; + typedef ValueType value_type; + typedef SwigPyIterator_T base; + typedef SwigPyIteratorClosed_T self_type; + + SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq) + : SwigPyIterator_T(curr, seq), begin(first), end(last) + { + } + + PyObject *value() const { + if (base::current == end) { + throw stop_iteration(); + } else { + return from(static_cast(*(base::current))); + } + } + + SwigPyIterator *copy() const + { + return new self_type(*this); + } + + SwigPyIterator *incr(size_t n = 1) + { + while (n--) { + if (base::current == end) { + throw stop_iteration(); + } else { + ++base::current; + } + } + return this; + } + + SwigPyIterator *decr(size_t n = 1) + { + while (n--) { + if (base::current == begin) { + throw stop_iteration(); + } else { + --base::current; + } + } + return this; + } + + private: + out_iterator begin; + out_iterator end; + }; + + template + inline SwigPyIterator* + make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0) + { + return new SwigPyIteratorClosed_T(current, begin, end, seq); + } + + template + inline SwigPyIterator* + make_output_iterator(const OutIter& current, PyObject *seq = 0) + { + return new SwigPyIteratorOpen_T(current, seq); + } + +} + + +namespace swig +{ + template + struct SwigPySequence_Ref + { + SwigPySequence_Ref(PyObject* seq, Py_ssize_t index) + : _seq(seq), _index(index) + { + } + + operator T () const + { + swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index); + try { + return swig::as(item, true); + } catch (std::exception& e) { + char msg[1024]; + sprintf(msg, "in sequence element %d ", (int)_index); + if (!PyErr_Occurred()) { + ::SWIG_Error(SWIG_TypeError, swig::type_name()); + } + SWIG_Python_AddErrorMsg(msg); + SWIG_Python_AddErrorMsg(e.what()); + throw; + } + } + + SwigPySequence_Ref& operator=(const T& v) + { + PySequence_SetItem(_seq, _index, swig::from(v)); + return *this; + } + + private: + PyObject* _seq; + Py_ssize_t _index; + }; + + template + struct SwigPySequence_ArrowProxy + { + SwigPySequence_ArrowProxy(const T& x): m_value(x) {} + const T* operator->() const { return &m_value; } + operator const T*() const { return &m_value; } + T m_value; + }; + + template + struct SwigPySequence_InputIterator + { + typedef SwigPySequence_InputIterator self; + + typedef std::random_access_iterator_tag iterator_category; + typedef Reference reference; + typedef T value_type; + typedef T* pointer; + typedef Py_ssize_t difference_type; + + SwigPySequence_InputIterator() + { + } + + SwigPySequence_InputIterator(PyObject* seq, Py_ssize_t index) + : _seq(seq), _index(index) + { + } + + reference operator*() const + { + return reference(_seq, _index); + } + + SwigPySequence_ArrowProxy + operator->() const { + return SwigPySequence_ArrowProxy(operator*()); + } + + bool operator==(const self& ri) const + { + return (_index == ri._index) && (_seq == ri._seq); + } + + bool operator!=(const self& ri) const + { + return !(operator==(ri)); + } + + self& operator ++ () + { + ++_index; + return *this; + } + + self& operator -- () + { + --_index; + return *this; + } + + self& operator += (difference_type n) + { + _index += n; + return *this; + } + + self operator +(difference_type n) const + { + return self(_seq, _index + n); + } + + self& operator -= (difference_type n) + { + _index -= n; + return *this; + } + + self operator -(difference_type n) const + { + return self(_seq, _index - n); + } + + difference_type operator - (const self& ri) const + { + return _index - ri._index; + } + + bool operator < (const self& ri) const + { + return _index < ri._index; + } + + reference + operator[](difference_type n) const + { + return reference(_seq, _index + n); + } + + private: + PyObject* _seq; + difference_type _index; + }; + + // STL container wrapper around a Python sequence + template + struct SwigPySequence_Cont + { + typedef SwigPySequence_Ref reference; + typedef const SwigPySequence_Ref const_reference; + typedef T value_type; + typedef T* pointer; + typedef Py_ssize_t difference_type; + typedef size_t size_type; + typedef const pointer const_pointer; + typedef SwigPySequence_InputIterator iterator; + typedef SwigPySequence_InputIterator const_iterator; + + SwigPySequence_Cont(PyObject* seq) : _seq(0) + { + if (!PySequence_Check(seq)) { + throw std::invalid_argument("a sequence is expected"); + } + _seq = seq; + Py_INCREF(_seq); + } + + ~SwigPySequence_Cont() + { + Py_XDECREF(_seq); + } + + size_type size() const + { + return static_cast(PySequence_Size(_seq)); + } + + bool empty() const + { + return size() == 0; + } + + iterator begin() + { + return iterator(_seq, 0); + } + + const_iterator begin() const + { + return const_iterator(_seq, 0); + } + + iterator end() + { + return iterator(_seq, size()); + } + + const_iterator end() const + { + return const_iterator(_seq, size()); + } + + reference operator[](difference_type n) + { + return reference(_seq, n); + } + + const_reference operator[](difference_type n) const + { + return const_reference(_seq, n); + } + + bool check(bool set_err = true) const + { + Py_ssize_t s = size(); + for (Py_ssize_t i = 0; i < s; ++i) { + swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i); + if (!swig::check(item)) { + if (set_err) { + char msg[1024]; + sprintf(msg, "in sequence element %d", (int)i); + SWIG_Error(SWIG_RuntimeError, msg); + } + return false; + } + } + return true; + } + + private: + PyObject* _seq; + }; + +} + + +#include +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_int (PyObject * obj, int *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < INT_MIN || v > INT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_int (int value) +{ + return PyInt_FromLong((long) value); +} + + +namespace swig { + template <> struct traits< int > { + typedef value_category category; + static const char* type_name() { return"int"; } + }; + template <> struct traits_asval< int > { + typedef int value_type; + static int asval(PyObject *obj, value_type *val) { + return SWIG_AsVal_int (obj, val); + } + }; + template <> struct traits_from< int > { + typedef int value_type; + static PyObject *from(const value_type& val) { + return SWIG_From_int (val); + } + }; +} + + +namespace swig { + template + inline void + assign(const SwigPySeq& swigpyseq, Seq* seq) { + // seq->assign(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented + typedef typename SwigPySeq::value_type value_type; + typename SwigPySeq::const_iterator it = swigpyseq.begin(); + for (;it != swigpyseq.end(); ++it) { + seq->insert(seq->end(),(value_type)(*it)); + } + } + + template + struct traits_asptr_stdseq { + typedef Seq sequence; + typedef T value_type; + + static int asptr(PyObject *obj, sequence **seq) { + if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) { + sequence *p; + if (::SWIG_ConvertPtr(obj,(void**)&p, + swig::type_info(),0) == SWIG_OK) { + if (seq) *seq = p; + return SWIG_OLDOBJ; + } + } else if (PySequence_Check(obj)) { + try { + SwigPySequence_Cont swigpyseq(obj); + if (seq) { + sequence *pseq = new sequence(); + assign(swigpyseq, pseq); + *seq = pseq; + return SWIG_NEWOBJ; + } else { + return swigpyseq.check() ? SWIG_OK : SWIG_ERROR; + } + } catch (std::exception& e) { + if (seq) { + if (!PyErr_Occurred()) { + PyErr_SetString(PyExc_TypeError, e.what()); + } + } + return SWIG_ERROR; + } + } + return SWIG_ERROR; + } + }; + + template + struct traits_from_stdseq { + typedef Seq sequence; + typedef T value_type; + typedef typename Seq::size_type size_type; + typedef typename sequence::const_iterator const_iterator; + + static PyObject *from(const sequence& seq) { +#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS + swig_type_info *desc = swig::type_info(); + if (desc && desc->clientdata) { + return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN); + } +#endif + size_type size = seq.size(); + if (size <= (size_type)INT_MAX) { + PyObject *obj = PyTuple_New((Py_ssize_t)size); + Py_ssize_t i = 0; + for (const_iterator it = seq.begin(); it != seq.end(); ++it, ++i) { + PyTuple_SetItem(obj,i,swig::from(*it)); + } + return obj; + } else { + PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python"); + return NULL; + } + } + }; +} + + + namespace swig { + template + struct traits_asptr > { + static int asptr(PyObject *obj, std::vector **vec) { + return traits_asptr_stdseq >::asptr(obj, vec); + } + }; + + template + struct traits_from > { + static PyObject *from(const std::vector& vec) { + return traits_from_stdseq >::from(vec); + } + }; + } + + + namespace swig { + template <> struct traits > > { + typedef pointer_category category; + static const char* type_name() { + return "std::vector<" "int" "," "std::allocator< int >" " >"; + } + }; + } + +SWIGINTERN swig::SwigPyIterator *std_vector_Sl_int_Sg__iterator(std::vector< int > *self,PyObject **PYTHON_SELF){ + return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); + } +SWIGINTERN bool std_vector_Sl_int_Sg____nonzero__(std::vector< int > const *self){ + return !(self->empty()); + } +SWIGINTERN bool std_vector_Sl_int_Sg____bool__(std::vector< int > const *self){ + return !(self->empty()); + } +SWIGINTERN std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){ + return self->size(); + } + +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long (unsigned long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLong(value) : PyLong_FromLong(static_cast< long >(value)); +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_size_t (size_t value) +{ + return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); +} + +SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ + return swig::getslice(self, i, j, 1); + } +SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ + swig::setslice(self, i, j, 1, std::vector< int,std::allocator< int > >()); + } +SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_1(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){ + swig::setslice(self, i, j, 1, v); + } +SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ + swig::delslice(self, i, j, 1); + } +SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i){ + swig::erase(self, swig::getpos(self, i)); + } +SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getitem____SWIG_0(std::vector< int > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return NULL; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; + return swig::getslice(self, id, jd, step); + } +SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_0(std::vector< int > *self,PySliceObject *slice,std::vector< int,std::allocator< int > > const &v){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; + swig::setslice(self, id, jd, step, v); + } +SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; + swig::delslice(self, id, jd, step); + } +SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< int,std::allocator< int > >::difference_type id = i; + std::vector< int,std::allocator< int > >::difference_type jd = j; + swig::delslice(self, id, jd, step); + } +SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem____SWIG_1(std::vector< int > const *self,std::vector< int >::difference_type i){ + return *(swig::cgetpos(self, i)); + } +SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_2(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){ + *(swig::getpos(self,i)) = x; + } +SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){ + if (self->size() == 0) + throw std::out_of_range("pop from empty container"); + std::vector< int,std::allocator< int > >::value_type x = self->back(); + self->pop_back(); + return x; + } +SWIGINTERN void std_vector_Sl_int_Sg__append(std::vector< int > *self,std::vector< int >::value_type const &x){ + self->push_back(x); + } +SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos){ return self->erase(pos); } +SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_1(std::vector< int > *self,std::vector< int >::iterator first,std::vector< int >::iterator last){ return self->erase(first, last); } +SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__insert__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::value_type const &x){ return self->insert(pos, x); } +SWIGINTERN void std_vector_Sl_int_Sg__insert__SWIG_1(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::size_type n,std::vector< int >::value_type const &x){ self->insert(pos, n, x); } + +/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ +#ifndef SWIG_isfinite +# if defined(isfinite) +# define SWIG_isfinite(X) (isfinite(X)) +# elif defined(_MSC_VER) +# define SWIG_isfinite(X) (_finite(X)) +# elif defined(__sun) && defined(__SVR4) +# include +# define SWIG_isfinite(X) (finite(X)) +# endif +#endif + + +/* Accept infinite as a valid float value unless we are unable to check if a value is finite */ +#ifdef SWIG_isfinite +# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) +#else +# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) +#endif + + +SWIGINTERN int +SWIG_AsVal_float (PyObject * obj, float *val) +{ + double v; + int res = SWIG_AsVal_double (obj, &v); + if (SWIG_IsOK(res)) { + if (SWIG_Float_Overflow_Check(v)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< float >(v); + } + } + return res; +} + + + #define SWIG_From_double PyFloat_FromDouble + + +SWIGINTERNINLINE PyObject * +SWIG_From_float (float value) +{ + return SWIG_From_double (value); +} + + +namespace swig { + template <> struct traits< float > { + typedef value_category category; + static const char* type_name() { return"float"; } + }; + template <> struct traits_asval< float > { + typedef float value_type; + static int asval(PyObject *obj, value_type *val) { + return SWIG_AsVal_float (obj, val); + } + }; + template <> struct traits_from< float > { + typedef float value_type; + static PyObject *from(const value_type& val) { + return SWIG_From_float (val); + } + }; +} + + + namespace swig { + template <> struct traits > > { + typedef pointer_category category; + static const char* type_name() { + return "std::vector<" "float" "," "std::allocator< float >" " >"; + } + }; + } + +SWIGINTERN swig::SwigPyIterator *std_vector_Sl_float_Sg__iterator(std::vector< float > *self,PyObject **PYTHON_SELF){ + return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); + } +SWIGINTERN bool std_vector_Sl_float_Sg____nonzero__(std::vector< float > const *self){ + return !(self->empty()); + } +SWIGINTERN bool std_vector_Sl_float_Sg____bool__(std::vector< float > const *self){ + return !(self->empty()); + } +SWIGINTERN std::vector< float >::size_type std_vector_Sl_float_Sg____len__(std::vector< float > const *self){ + return self->size(); + } +SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ + return swig::getslice(self, i, j, 1); + } +SWIGINTERN void std_vector_Sl_float_Sg____setslice____SWIG_0(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ + swig::setslice(self, i, j, 1, std::vector< float,std::allocator< float > >()); + } +SWIGINTERN void std_vector_Sl_float_Sg____setslice____SWIG_1(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j,std::vector< float,std::allocator< float > > const &v){ + swig::setslice(self, i, j, 1, v); + } +SWIGINTERN void std_vector_Sl_float_Sg____delslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ + swig::delslice(self, i, j, 1); + } +SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_0(std::vector< float > *self,std::vector< float >::difference_type i){ + swig::erase(self, swig::getpos(self, i)); + } +SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getitem____SWIG_0(std::vector< float > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return NULL; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; + return swig::getslice(self, id, jd, step); + } +SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_0(std::vector< float > *self,PySliceObject *slice,std::vector< float,std::allocator< float > > const &v){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; + swig::setslice(self, id, jd, step, v); + } +SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_1(std::vector< float > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; + swig::delslice(self, id, jd, step); + } +SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_1(std::vector< float > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< float,std::allocator< float > >::difference_type id = i; + std::vector< float,std::allocator< float > >::difference_type jd = j; + swig::delslice(self, id, jd, step); + } +SWIGINTERN std::vector< float >::value_type const &std_vector_Sl_float_Sg____getitem____SWIG_1(std::vector< float > const *self,std::vector< float >::difference_type i){ + return *(swig::cgetpos(self, i)); + } +SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_2(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::value_type const &x){ + *(swig::getpos(self,i)) = x; + } +SWIGINTERN std::vector< float >::value_type std_vector_Sl_float_Sg__pop(std::vector< float > *self){ + if (self->size() == 0) + throw std::out_of_range("pop from empty container"); + std::vector< float,std::allocator< float > >::value_type x = self->back(); + self->pop_back(); + return x; + } +SWIGINTERN void std_vector_Sl_float_Sg__append(std::vector< float > *self,std::vector< float >::value_type const &x){ + self->push_back(x); + } +SWIGINTERN std::vector< float >::iterator std_vector_Sl_float_Sg__erase__SWIG_0(std::vector< float > *self,std::vector< float >::iterator pos){ return self->erase(pos); } +SWIGINTERN std::vector< float >::iterator std_vector_Sl_float_Sg__erase__SWIG_1(std::vector< float > *self,std::vector< float >::iterator first,std::vector< float >::iterator last){ return self->erase(first, last); } +SWIGINTERN std::vector< float >::iterator std_vector_Sl_float_Sg__insert__SWIG_0(std::vector< float > *self,std::vector< float >::iterator pos,std::vector< float >::value_type const &x){ return self->insert(pos, x); } +SWIGINTERN void std_vector_Sl_float_Sg__insert__SWIG_1(std::vector< float > *self,std::vector< float >::iterator pos,std::vector< float >::size_type n,std::vector< float >::value_type const &x){ self->insert(pos, n, x); } + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +{ +#if PY_VERSION_HEX>=0x03000000 + if (PyUnicode_Check(obj)) +#else + if (PyString_Check(obj)) +#endif + { + char *cstr; Py_ssize_t len; +#if PY_VERSION_HEX>=0x03000000 + if (!alloc && cptr) { + /* We can't allow converting without allocation, since the internal + representation of string in Python 3 is UCS-2/UCS-4 but we require + a UTF-8 representation. + TODO(bhy) More detailed explanation */ + return SWIG_RuntimeError; + } + obj = PyUnicode_AsUTF8String(obj); + PyBytes_AsStringAndSize(obj, &cstr, &len); + if(alloc) *alloc = SWIG_NEWOBJ; +#else + PyString_AsStringAndSize(obj, &cstr, &len); +#endif + if (cptr) { + if (alloc) { + /* + In python the user should not be able to modify the inner + string representation. To warranty that, if you define + SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string + buffer is always returned. + + The default behavior is just to return the pointer value, + so, be careful. + */ +#if defined(SWIG_PYTHON_SAFE_CSTRINGS) + if (*alloc != SWIG_OLDOBJ) +#else + if (*alloc == SWIG_NEWOBJ) +#endif + { + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + *alloc = SWIG_NEWOBJ; + } else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } else { + #if PY_VERSION_HEX>=0x03000000 + assert(0); /* Should never reach here in Python 3 */ + #endif + *cptr = SWIG_Python_str_AsChar(obj); + } + } + if (psize) *psize = len + 1; +#if PY_VERSION_HEX>=0x03000000 + Py_XDECREF(obj); +#endif + return SWIG_OK; + } else { +#if defined(SWIG_PYTHON_2_UNICODE) +#if PY_VERSION_HEX<0x03000000 + if (PyUnicode_Check(obj)) { + char *cstr; Py_ssize_t len; + if (!alloc && cptr) { + return SWIG_RuntimeError; + } + obj = PyUnicode_AsUTF8String(obj); + if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) { + if (cptr) { + if (alloc) *alloc = SWIG_NEWOBJ; + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + } + if (psize) *psize = len + 1; + + Py_XDECREF(obj); + return SWIG_OK; + } else { + Py_XDECREF(obj); + } + } +#endif +#endif + + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *) vptr; + if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsPtr_std_string (PyObject * obj, std::string **val) +{ + char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; + if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { + if (buf) { + if (val) *val = new std::string(buf, size - 1); + if (alloc == SWIG_NEWOBJ) delete[] buf; + return SWIG_NEWOBJ; + } else { + if (val) *val = 0; + return SWIG_OLDOBJ; + } + } else { + static int init = 0; + static swig_type_info* descriptor = 0; + if (!init) { + descriptor = SWIG_TypeQuery("std::string" " *"); + init = 1; + } + if (descriptor) { + std::string *vptr; + int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); + if (SWIG_IsOK(res) && val) *val = vptr; + return res; + } + } + return SWIG_ERROR; +} + + +SWIGINTERN int +SWIG_AsVal_std_string (PyObject * obj, std::string *val) +{ + std::string* v = (std::string *) 0; + int res = SWIG_AsPtr_std_string (obj, &v); + if (!SWIG_IsOK(res)) return res; + if (v) { + if (val) *val = *v; + if (SWIG_IsNewObj(res)) { + delete v; + res = SWIG_DelNewMask(res); + } + return res; + } + return SWIG_ERROR; +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > INT_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); + } else { +#if PY_VERSION_HEX >= 0x03000000 +#if PY_VERSION_HEX >= 0x03010000 + return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape"); +#else + return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); +#endif +#else + return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); +#endif + } + } else { + return SWIG_Py_Void(); + } +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_std_string (const std::string& s) +{ + return SWIG_FromCharPtrAndSize(s.data(), s.size()); +} + + +namespace swig { + template <> struct traits< std::string > { + typedef value_category category; + static const char* type_name() { return"std::string"; } + }; + template <> struct traits_asval< std::string > { + typedef std::string value_type; + static int asval(PyObject *obj, value_type *val) { + return SWIG_AsVal_std_string (obj, val); + } + }; + template <> struct traits_from< std::string > { + typedef std::string value_type; + static PyObject *from(const value_type& val) { + return SWIG_From_std_string (val); + } + }; +} + + + namespace swig { + template <> struct traits > > { + typedef pointer_category category; + static const char* type_name() { + return "std::vector<" "std::string" "," "std::allocator< std::string >" " >"; + } + }; + } + +SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_string_Sg__iterator(std::vector< std::string > *self,PyObject **PYTHON_SELF){ + return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); + } +SWIGINTERN bool std_vector_Sl_std_string_Sg____nonzero__(std::vector< std::string > const *self){ + return !(self->empty()); + } +SWIGINTERN bool std_vector_Sl_std_string_Sg____bool__(std::vector< std::string > const *self){ + return !(self->empty()); + } +SWIGINTERN std::vector< std::string >::size_type std_vector_Sl_std_string_Sg____len__(std::vector< std::string > const *self){ + return self->size(); + } +SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ + return swig::getslice(self, i, j, 1); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ + swig::setslice(self, i, j, 1, std::vector< std::string,std::allocator< std::string > >()); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_1(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j,std::vector< std::string,std::allocator< std::string > > const &v){ + swig::setslice(self, i, j, 1, v); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____delslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ + swig::delslice(self, i, j, 1); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i){ + swig::erase(self, swig::getpos(self, i)); + } +SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return NULL; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; + return swig::getslice(self, id, jd, step); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice,std::vector< std::string,std::allocator< std::string > > const &v){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; + swig::setslice(self, id, jd, step, v); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; + swig::delslice(self, id, jd, step); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){ + Py_ssize_t i, j, step; + if( !PySlice_Check(slice) ) { + SWIG_Error(SWIG_TypeError, "Slice object expected."); + return; + } + PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); + std::vector< std::string,std::allocator< std::string > >::difference_type id = i; + std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; + swig::delslice(self, id, jd, step); + } +SWIGINTERN std::vector< std::string >::value_type const &std_vector_Sl_std_string_Sg____getitem____SWIG_1(std::vector< std::string > const *self,std::vector< std::string >::difference_type i){ + return *(swig::cgetpos(self, i)); + } +SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_2(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::value_type const &x){ + *(swig::getpos(self,i)) = x; + } +SWIGINTERN std::vector< std::string >::value_type std_vector_Sl_std_string_Sg__pop(std::vector< std::string > *self){ + if (self->size() == 0) + throw std::out_of_range("pop from empty container"); + std::vector< std::string,std::allocator< std::string > >::value_type x = self->back(); + self->pop_back(); + return x; + } +SWIGINTERN void std_vector_Sl_std_string_Sg__append(std::vector< std::string > *self,std::vector< std::string >::value_type const &x){ + self->push_back(x); + } +SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos){ return self->erase(pos); } +SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator first,std::vector< std::string >::iterator last){ return self->erase(first, last); } +SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__insert__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::value_type const &x){ return self->insert(pos, x); } +SWIGINTERN void std_vector_Sl_std_string_Sg__insert__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::size_type n,std::vector< std::string >::value_type const &x){ self->insert(pos, n, x); } + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +SWIGINTERN int +SWIG_AsVal_bool (PyObject *obj, bool *val) +{ + int r; + if (!PyBool_Check(obj)) + return SWIG_ERROR; + r = PyObject_IsTrue(obj); + if (r == -1) + return SWIG_ERROR; + if (val) *val = r ? true : false; + return SWIG_OK; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_unsigned_SS_int (unsigned int value) +{ + return PyInt_FromSize_t((size_t) value); +} + + +SWIGINTERNINLINE PyObject* +SWIG_From_long_SS_long (long long value) +{ + return ((value < LONG_MIN) || (value > LONG_MAX)) ? + PyLong_FromLongLong(value) : PyLong_FromLong(static_cast< long >(value)); +} + + +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLongLong(value) : PyLong_FromLong(static_cast< long >(value)); +} + + +#define ofColor__Sl_unsigned_SS_char_Sg__r_get(self_) self_->r +#define ofColor__Sl_unsigned_SS_char_Sg__r_set(self_, val_) self_->r = val_ + + +#define ofColor__Sl_unsigned_SS_char_Sg__g_get(self_) self_->g +#define ofColor__Sl_unsigned_SS_char_Sg__g_set(self_, val_) self_->g = val_ + + +#define ofColor__Sl_unsigned_SS_char_Sg__b_get(self_) self_->b +#define ofColor__Sl_unsigned_SS_char_Sg__b_set(self_, val_) self_->b = val_ + + +#define ofColor__Sl_unsigned_SS_char_Sg__a_get(self_) self_->a +#define ofColor__Sl_unsigned_SS_char_Sg__a_set(self_, val_) self_->a = val_ + + +#define ofColor__Sl_float_Sg__r_get(self_) self_->r +#define ofColor__Sl_float_Sg__r_set(self_, val_) self_->r = val_ + + +#define ofColor__Sl_float_Sg__g_get(self_) self_->g +#define ofColor__Sl_float_Sg__g_set(self_, val_) self_->g = val_ + + +#define ofColor__Sl_float_Sg__b_get(self_) self_->b +#define ofColor__Sl_float_Sg__b_set(self_, val_) self_->b = val_ + + +#define ofColor__Sl_float_Sg__a_get(self_) self_->a +#define ofColor__Sl_float_Sg__a_set(self_, val_) self_->a = val_ + + +#define ofColor__Sl_unsigned_SS_short_Sg__r_get(self_) self_->r +#define ofColor__Sl_unsigned_SS_short_Sg__r_set(self_, val_) self_->r = val_ + + +#define ofColor__Sl_unsigned_SS_short_Sg__g_get(self_) self_->g +#define ofColor__Sl_unsigned_SS_short_Sg__g_set(self_, val_) self_->g = val_ + + +#define ofColor__Sl_unsigned_SS_short_Sg__b_get(self_) self_->b +#define ofColor__Sl_unsigned_SS_short_Sg__b_set(self_, val_) self_->b = val_ + + +#define ofColor__Sl_unsigned_SS_short_Sg__a_get(self_) self_->a +#define ofColor__Sl_unsigned_SS_short_Sg__a_set(self_, val_) self_->a = val_ + + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_char (unsigned char value) +{ + return SWIG_From_unsigned_SS_long (value); +} + +SWIGINTERN unsigned char ofColor__Sl_unsigned_SS_char_Sg__getR(ofColor_< unsigned char > *self){return self->r;} +SWIGINTERN unsigned char ofColor__Sl_unsigned_SS_char_Sg__getG(ofColor_< unsigned char > *self){return self->g;} +SWIGINTERN unsigned char ofColor__Sl_unsigned_SS_char_Sg__getB(ofColor_< unsigned char > *self){return self->b;} +SWIGINTERN unsigned char ofColor__Sl_unsigned_SS_char_Sg__getA(ofColor_< unsigned char > *self){return self->a;} + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UCHAR_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned char >(v); + } + } + return res; +} + +SWIGINTERN void ofColor__Sl_unsigned_SS_char_Sg__setR(ofColor_< unsigned char > *self,unsigned char r){self->r = r;} +SWIGINTERN void ofColor__Sl_unsigned_SS_char_Sg__setG(ofColor_< unsigned char > *self,unsigned char g){self->g = g;} +SWIGINTERN void ofColor__Sl_unsigned_SS_char_Sg__setB(ofColor_< unsigned char > *self,unsigned char b){self->b = b;} +SWIGINTERN void ofColor__Sl_unsigned_SS_char_Sg__setA(ofColor_< unsigned char > *self,unsigned char a){self->a = a;} +SWIGINTERN char const *ofColor__Sl_unsigned_SS_char_Sg____str__(ofColor_< unsigned char > *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } +SWIGINTERN float ofColor__Sl_float_Sg__getR(ofColor_< float > *self){return self->r;} +SWIGINTERN float ofColor__Sl_float_Sg__getG(ofColor_< float > *self){return self->g;} +SWIGINTERN float ofColor__Sl_float_Sg__getB(ofColor_< float > *self){return self->b;} +SWIGINTERN float ofColor__Sl_float_Sg__getA(ofColor_< float > *self){return self->a;} +SWIGINTERN void ofColor__Sl_float_Sg__setR(ofColor_< float > *self,float r){self->r = r;} +SWIGINTERN void ofColor__Sl_float_Sg__setG(ofColor_< float > *self,float g){self->g = g;} +SWIGINTERN void ofColor__Sl_float_Sg__setB(ofColor_< float > *self,float b){self->b = b;} +SWIGINTERN void ofColor__Sl_float_Sg__setA(ofColor_< float > *self,float a){self->a = a;} +SWIGINTERN char const *ofColor__Sl_float_Sg____str__(ofColor_< float > *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_short (unsigned short value) +{ + return SWIG_From_unsigned_SS_long (value); +} + +SWIGINTERN unsigned short ofColor__Sl_unsigned_SS_short_Sg__getR(ofColor_< unsigned short > *self){return self->r;} +SWIGINTERN unsigned short ofColor__Sl_unsigned_SS_short_Sg__getG(ofColor_< unsigned short > *self){return self->g;} +SWIGINTERN unsigned short ofColor__Sl_unsigned_SS_short_Sg__getB(ofColor_< unsigned short > *self){return self->b;} +SWIGINTERN unsigned short ofColor__Sl_unsigned_SS_short_Sg__getA(ofColor_< unsigned short > *self){return self->a;} + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > USHRT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned short >(v); + } + } + return res; +} + +SWIGINTERN void ofColor__Sl_unsigned_SS_short_Sg__setR(ofColor_< unsigned short > *self,unsigned short r){self->r = r;} +SWIGINTERN void ofColor__Sl_unsigned_SS_short_Sg__setG(ofColor_< unsigned short > *self,unsigned short g){self->g = g;} +SWIGINTERN void ofColor__Sl_unsigned_SS_short_Sg__setB(ofColor_< unsigned short > *self,unsigned short b){self->b = b;} +SWIGINTERN void ofColor__Sl_unsigned_SS_short_Sg__setA(ofColor_< unsigned short > *self,unsigned short a){self->a = a;} +SWIGINTERN char const *ofColor__Sl_unsigned_SS_short_Sg____str__(ofColor_< unsigned short > *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } + + + + +SWIGINTERNINLINE PyObject * +SWIG_From_char (char c) +{ + return SWIG_FromCharPtrAndSize(&c,1); +} + + + void log(ofLogLevel level, const string & message) { + ofLog(level, message); + } + +SWIGINTERN char const *ofRectangle___str__(ofRectangle *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } + +#define ofRectangle_x_get(self_) self_->getX() +#define ofRectangle_x_set(self_, val_) self_->setX(val_) + + +#define ofRectangle_y_get(self_) self_->getY() +#define ofRectangle_y_set(self_, val_) self_->setY(val_) + + +SWIGINTERN int +SWIG_AsCharArray(PyObject * obj, char *val, size_t size) +{ + char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; + int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); + if (SWIG_IsOK(res)) { + /* special case of single char conversion when we don't need space for NUL */ + if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize; + if (csize <= size) { + if (val) { + if (csize) memcpy(val, cptr, csize*sizeof(char)); + if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); + } + if (alloc == SWIG_NEWOBJ) { + delete[] cptr; + res = SWIG_DelNewMask(res); + } + return res; + } + if (alloc == SWIG_NEWOBJ) delete[] cptr; + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_char (PyObject * obj, char *val) +{ + int res = SWIG_AsCharArray(obj, val, 1); + if (!SWIG_IsOK(res)) { + long v; + res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); + if (SWIG_IsOK(res)) { + if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { + if (val) *val = static_cast< char >(v); + } else { + res = SWIG_OverflowError; + } + } + } + return res; +} + + +#define ofTrueTypeFont_lineHeight_get(self_) self_->getLineHeight() +#define ofTrueTypeFont_lineHeight_set(self_, val_) self_->setLineHeight(val_) + + +#define ofTrueTypeFont_letterSpacing_get(self_) self_->getLetterSpacing() +#define ofTrueTypeFont_letterSpacing_set(self_, val_) self_->setLetterSpacing(val_) + + +#define ofTrueTypeFont_spaceSize_get(self_) self_->getSpaceSize() +#define ofTrueTypeFont_spaceSize_set(self_, val_) self_->setSpaceSize(val_) + +SWIGINTERN char const *ofMatrix3x3___str__(ofMatrix3x3 *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } +SWIGINTERN char const *ofMatrix4x4___str__(ofMatrix4x4 *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } +SWIGINTERN char const *ofQuaternion___str__(ofQuaternion *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } +SWIGINTERN char const *ofVec2f___str__(ofVec2f *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } +SWIGINTERN char const *ofVec3f___str__(ofVec3f *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } +SWIGINTERN char const *ofVec4f___str__(ofVec4f *self){ + stringstream str; + str << (*self); + return str.str().c_str(); + } +#ifdef __cplusplus +extern "C" { +#endif +SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { + result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();} catch(swig::stop_iteration &_e) { { (void)_e; + SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = result; return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); try { result = (swig::SwigPyIterator *)(arg1)->incr(arg2);} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (swig::SwigPyIterator *)(arg1)->incr();} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_SwigPyIterator_incr__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_SwigPyIterator_incr__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" + " Possible C/C++ prototypes are:\n" " swig::SwigPyIterator::incr(size_t)\n" " swig::SwigPyIterator::incr()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); try { result = (swig::SwigPyIterator *)(arg1)->decr(arg2);} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (swig::SwigPyIterator *)(arg1)->decr();} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_SwigPyIterator_decr__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_SwigPyIterator_decr__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" + " Possible C/C++ prototypes are:\n" " swig::SwigPyIterator::decr(size_t)\n" " swig::SwigPyIterator::decr()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ptrdiff_t result; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); try { + result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);} + catch(std::invalid_argument &_e) { + SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; } + resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); try { + result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);} + catch(std::invalid_argument &_e) { + SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; } + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); + result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (PyObject *)(arg1)->next();} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = result; return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (PyObject *)(arg1)->__next__();} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = result; return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (PyObject *)(arg1)->previous();} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = result; return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'"); } + arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *)(arg1)->advance(arg2);} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); + result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); + result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'"); } + arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'"); } + arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);} + catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'"); } + arg2 = static_cast< ptrdiff_t >(val2); try { + result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);} catch(swig::stop_iteration &_e) { + { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'"); } + arg2 = static_cast< ptrdiff_t >(val2); try { + result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);} catch(swig::stop_iteration &_e) { + { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ptrdiff_t result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } + arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } + arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); + result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); + resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_SwigPyIterator___sub____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_SwigPyIterator___sub____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_IntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector_iterator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_iterator" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + result = (swig::SwigPyIterator *)std_vector_Sl_int_Sg__iterator(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector___nonzero__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___nonzero__" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + result = (bool)std_vector_Sl_int_Sg____nonzero__((std::vector< int > const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector___bool__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___bool__" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + result = (bool)std_vector_Sl_int_Sg____bool__((std::vector< int > const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector___len__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___len__" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + result = std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + std::vector< int,std::allocator< int > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___getslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); } + arg3 = static_cast< std::vector< int >::difference_type >(val3); try { + result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getslice__(arg1,arg2,arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); } + arg3 = static_cast< std::vector< int >::difference_type >(val3); try { + std_vector_Sl_int_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + std::vector< int >::difference_type arg3 ; std::vector< int,std::allocator< int > > *arg4 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:IntVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); } + arg3 = static_cast< std::vector< int >::difference_type >(val3); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } + arg4 = ptr; } try { + std_vector_Sl_int_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; + return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_IntVector___setslice____SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[3], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_IntVector___setslice____SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___setslice__'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type)\n" + " std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type,std::vector< int,std::allocator< int > > const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_IntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___delslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); } + arg3 = static_cast< std::vector< int >::difference_type >(val3); try { std_vector_Sl_int_Sg____delslice__(arg1,arg2,arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___delitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); try { std_vector_Sl_int_Sg____delitem____SWIG_0(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< int,std::allocator< int > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { + result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getitem____SWIG_0(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + std::vector< int,std::allocator< int > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); } + arg3 = ptr; } try { + std_vector_Sl_int_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< int,std::allocator< int > > const &)*arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; + return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___setitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_int_Sg____setitem____SWIG_1(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___delitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_int_Sg____delitem____SWIG_1(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_IntVector___delitem____SWIG_1(self, args);} } } + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_IntVector___delitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___delitem__'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< int >::__delitem__(std::vector< int >::difference_type)\n" + " std::vector< int >::__delitem__(PySliceObject *)\n"); return 0; } +SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< int >::value_type *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); try { + result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg____getitem____SWIG_1((std::vector< int > const *)arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } + resultobj = SWIG_From_int(static_cast< int >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_IntVector___getitem____SWIG_0(self, args);} } } + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_IntVector___getitem____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< int >::__getitem__(PySliceObject *)\n" + " std::vector< int >::__getitem__(std::vector< int >::difference_type) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ; + std::vector< int >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + std::vector< int >::value_type temp3 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); } + arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); } + temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; try { + std_vector_Sl_int_Sg____setitem____SWIG_2(arg1,arg2,(int const &)*arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_IntVector___setitem____SWIG_1(self, args);} } } + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { + int res = swig::asptr(argv[2], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_IntVector___setitem____SWIG_0(self, args);} } } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_IntVector___setitem____SWIG_2(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___setitem__'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< int >::__setitem__(PySliceObject *,std::vector< int,std::allocator< int > > const &)\n" + " std::vector< int >::__setitem__(PySliceObject *)\n" + " std::vector< int >::__setitem__(std::vector< int >::difference_type,std::vector< int >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_IntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); try { + result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::value_type *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; std::vector< int >::value_type temp2 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_append",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_append" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_append" "', argument " "2"" of type '" "std::vector< int >::value_type""'"); } + temp2 = static_cast< std::vector< int >::value_type >(val2); arg2 = &temp2; + std_vector_Sl_int_Sg__append(arg1,(int const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_IntVector")) SWIG_fail; + result = (std::vector< int > *)new std::vector< int >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< int > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail; { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'"); } + arg1 = ptr; } result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector_empty",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_empty" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = (bool)((std::vector< int > const *)arg1)->empty(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = ((std::vector< int > const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_swap" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'"); } + arg2 = reinterpret_cast< std::vector< int > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_begin" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_end" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = (arg1)->end(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rbegin" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = (arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::reverse_iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rend" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = (arg1)->rend(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::reverse_iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::allocator< int > > result; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector_get_allocator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = ((std::vector< int > const *)arg1)->get_allocator(); + resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_int_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< int > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'"); } + arg1 = static_cast< std::vector< int >::size_type >(val1); result = (std::vector< int > *)new std::vector< int >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop_back",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop_back" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_resize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); } + arg2 = static_cast< std::vector< int >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; + swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< int >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_erase",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + } result = std_vector_Sl_int_Sg__erase__SWIG_0(arg1,arg2); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::iterator arg2 ; std::vector< int >::iterator arg3 ; + void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< int >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_erase",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res3) || !iter3) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); + if (iter_t) { arg3 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'"); } + } result = std_vector_Sl_int_Sg__erase__SWIG_1(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { return _wrap_IntVector_erase__SWIG_0(self, args);} } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { return _wrap_IntVector_erase__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector_erase'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< int >::erase(std::vector< int >::iterator)\n" + " std::vector< int >::erase(std::vector< int >::iterator,std::vector< int >::iterator)\n"); return 0; } +SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int >::size_type arg1 ; std::vector< int >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; + std::vector< int >::value_type temp2 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< int > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_IntVector",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'"); } + arg1 = static_cast< std::vector< int >::size_type >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IntVector" "', argument " "2"" of type '" "std::vector< int >::value_type""'"); } + temp2 = static_cast< std::vector< int >::value_type >(val2); arg2 = &temp2; + result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_IntVector__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_IntVector__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_IntVector__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_IntVector__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IntVector'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< int >::vector()\n" + " std::vector< int >::vector(std::vector< int > const &)\n" + " std::vector< int >::vector(std::vector< int >::size_type)\n" + " std::vector< int >::vector(std::vector< int >::size_type,std::vector< int >::value_type const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_IntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::value_type *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; std::vector< int >::value_type temp2 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_push_back",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_push_back" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_push_back" "', argument " "2"" of type '" "std::vector< int >::value_type""'"); } + temp2 = static_cast< std::vector< int >::value_type >(val2); arg2 = &temp2; + (arg1)->push_back((std::vector< int >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_front",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_front" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->front(); + resultobj = SWIG_From_int(static_cast< int >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_back",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_back" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->back(); + resultobj = SWIG_From_int(static_cast< int >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::size_type arg2 ; + std::vector< int >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + std::vector< int >::value_type temp3 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_assign",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_assign" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_assign" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); } + arg2 = static_cast< std::vector< int >::size_type >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_assign" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); } + temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; + (arg1)->assign(arg2,(std::vector< int >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::size_type arg2 ; + std::vector< int >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + std::vector< int >::value_type temp3 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); } + arg2 = static_cast< std::vector< int >::size_type >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_resize" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); } + temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; + (arg1)->resize(arg2,(std::vector< int >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_IntVector_resize__SWIG_0(self, args);} } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_IntVector_resize__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector_resize'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< int >::resize(std::vector< int >::size_type)\n" + " std::vector< int >::resize(std::vector< int >::size_type,std::vector< int >::value_type const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::iterator arg2 ; + std::vector< int >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; + std::vector< int >::value_type temp3 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; std::vector< int >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_insert",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); } + temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; + result = std_vector_Sl_int_Sg__insert__SWIG_0(arg1,arg2,(int const &)*arg3); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::iterator arg2 ; std::vector< int >::size_type arg3 ; + std::vector< int >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; + size_t val3 ; int ecode3 = 0 ; std::vector< int >::value_type temp4 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:IntVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); } + } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::size_type""'"); } + arg3 = static_cast< std::vector< int >::size_type >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IntVector_insert" "', argument " "4"" of type '" "std::vector< int >::value_type""'"); } + temp4 = static_cast< std::vector< int >::value_type >(val4); arg4 = &temp4; + std_vector_Sl_int_Sg__insert__SWIG_1(arg1,arg2,arg3,(int const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_IntVector_insert__SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_IntVector_insert__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector_insert'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< int >::insert(std::vector< int >::iterator,std::vector< int >::value_type const &)\n" + " std::vector< int >::insert(std::vector< int >::iterator,std::vector< int >::size_type,std::vector< int >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_IntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_reserve",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_reserve" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_reserve" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); } + arg2 = static_cast< std::vector< int >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_IntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< int >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:IntVector_capacity",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_capacity" "', argument " "1"" of type '" "std::vector< int > const *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = ((std::vector< int > const *)arg1)->capacity(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_IntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_IntVector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVector" "', argument " "1"" of type '" "std::vector< int > *""'"); } + arg1 = reinterpret_cast< std::vector< int > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *IntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_FloatVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_iterator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_iterator" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + result = (swig::SwigPyIterator *)std_vector_Sl_float_Sg__iterator(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector___nonzero__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___nonzero__" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + result = (bool)std_vector_Sl_float_Sg____nonzero__((std::vector< float > const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector___bool__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___bool__" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + result = (bool)std_vector_Sl_float_Sg____bool__((std::vector< float > const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector___len__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___len__" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + result = std_vector_Sl_float_Sg____len__((std::vector< float > const *)arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::difference_type arg2 ; + std::vector< float >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + std::vector< float,std::allocator< float > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___getslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___getslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___getslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); } + arg3 = static_cast< std::vector< float >::difference_type >(val3); try { + result = (std::vector< float,std::allocator< float > > *)std_vector_Sl_float_Sg____getslice__(arg1,arg2,arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; + std::vector< float >::difference_type arg2 ; std::vector< float >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; + ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___setslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); } + arg3 = static_cast< std::vector< float >::difference_type >(val3); try { + std_vector_Sl_float_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; + std::vector< float >::difference_type arg2 ; std::vector< float >::difference_type arg3 ; + std::vector< float,std::allocator< float > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:FloatVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___setslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); } + arg3 = static_cast< std::vector< float >::difference_type >(val3); { + std::vector< float,std::allocator< float > > *ptr = (std::vector< float,std::allocator< float > > *)0; + res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FloatVector___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'"); } + arg4 = ptr; } try { + std_vector_Sl_float_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< float,std::allocator< float > > const &)*arg4);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; + return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_FloatVector___setslice____SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[3], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_FloatVector___setslice____SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector___setslice__'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< float >::__setslice__(std::vector< float >::difference_type,std::vector< float >::difference_type)\n" + " std::vector< float >::__setslice__(std::vector< float >::difference_type,std::vector< float >::difference_type,std::vector< float,std::allocator< float > > const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_FloatVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::difference_type arg2 ; + std::vector< float >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___delslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___delslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___delslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); } + arg3 = static_cast< std::vector< float >::difference_type >(val3); try { + std_vector_Sl_float_Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; + std::vector< float >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___delitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___delitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___delitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); try { + std_vector_Sl_float_Sg____delitem____SWIG_0(arg1,arg2);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< float,std::allocator< float > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___getitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { + result = (std::vector< float,std::allocator< float > > *)std_vector_Sl_float_Sg____getitem____SWIG_0(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + std::vector< float,std::allocator< float > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } { + std::vector< float,std::allocator< float > > *ptr = (std::vector< float,std::allocator< float > > *)0; + res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FloatVector___setitem__" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector___setitem__" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > > const &""'"); } + arg3 = ptr; } try { + std_vector_Sl_float_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< float,std::allocator< float > > const &)*arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; + return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___setitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_float_Sg____setitem____SWIG_1(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___delitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___delitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_float_Sg____delitem____SWIG_1(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_FloatVector___delitem____SWIG_1(self, args);} } } + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_FloatVector___delitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector___delitem__'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< float >::__delitem__(std::vector< float >::difference_type)\n" + " std::vector< float >::__delitem__(PySliceObject *)\n"); return 0; } +SWIGINTERN PyObject *_wrap_FloatVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; + std::vector< float >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< float >::value_type *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___getitem__" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___getitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); try { + result = (std::vector< float >::value_type *) &std_vector_Sl_float_Sg____getitem____SWIG_1((std::vector< float > const *)arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } + resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_FloatVector___getitem____SWIG_0(self, args);} } } + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_FloatVector___getitem____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< float >::__getitem__(PySliceObject *)\n" + " std::vector< float >::__getitem__(std::vector< float >::difference_type) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_FloatVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< float > *arg1 = (std::vector< float > *) 0 ; + std::vector< float >::difference_type arg2 ; std::vector< float >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + ptrdiff_t val2 ; int ecode2 = 0 ; std::vector< float >::value_type temp3 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___setitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); } + arg2 = static_cast< std::vector< float >::difference_type >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setitem__" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); } + temp3 = static_cast< std::vector< float >::value_type >(val3); arg3 = &temp3; try { + std_vector_Sl_float_Sg____setitem____SWIG_2(arg1,arg2,(float const &)*arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_FloatVector___setitem____SWIG_1(self, args);} } } + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { + int res = swig::asptr(argv[2], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_FloatVector___setitem____SWIG_0(self, args);} } } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_FloatVector___setitem____SWIG_2(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector___setitem__'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< float >::__setitem__(PySliceObject *,std::vector< float,std::allocator< float > > const &)\n" + " std::vector< float >::__setitem__(PySliceObject *)\n" + " std::vector< float >::__setitem__(std::vector< float >::difference_type,std::vector< float >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_FloatVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_pop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_pop" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); try { + result = (std::vector< float >::value_type)std_vector_Sl_float_Sg__pop(arg1);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_float(static_cast< float >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::value_type *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; std::vector< float >::value_type temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_append",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_append" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_append" "', argument " "2"" of type '" "std::vector< float >::value_type""'"); } + temp2 = static_cast< std::vector< float >::value_type >(val2); arg2 = &temp2; + std_vector_Sl_float_Sg__append(arg1,(float const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_FloatVector")) SWIG_fail; + result = (std::vector< float > *)new std::vector< float >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_FloatVector",&obj0)) SWIG_fail; { + std::vector< float,std::allocator< float > > *ptr = (std::vector< float,std::allocator< float > > *)0; + res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float > const &""'"); } + arg1 = ptr; } result = (std::vector< float > *)new std::vector< float >((std::vector< float > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_empty",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_empty" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = (bool)((std::vector< float > const *)arg1)->empty(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_size" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = ((std::vector< float > const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_swap" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'"); } + arg2 = reinterpret_cast< std::vector< float > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_begin" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_end" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = (arg1)->end(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_rbegin" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = (arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::reverse_iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_rend" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = (arg1)->rend(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::reverse_iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_clear" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::allocator< float > > result; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_get_allocator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_get_allocator" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = ((std::vector< float > const *)arg1)->get_allocator(); + resultobj = SWIG_NewPointerObj((new std::vector< float >::allocator_type(static_cast< const std::vector< float >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_FloatVector",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float >::size_type""'"); } + arg1 = static_cast< std::vector< float >::size_type >(val1); + result = (std::vector< float > *)new std::vector< float >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_pop_back",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_pop_back" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::size_type arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_resize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_resize" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_resize" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); } + arg2 = static_cast< std::vector< float >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::iterator arg2 ; void *argp1 = 0 ; + int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< float >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_erase",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_erase" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + } result = std_vector_Sl_float_Sg__erase__SWIG_0(arg1,arg2); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::iterator arg2 ; + std::vector< float >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; + swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + std::vector< float >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_erase",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_erase" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res3) || !iter3) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "3"" of type '" "std::vector< float >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); + if (iter_t) { arg3 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "3"" of type '" "std::vector< float >::iterator""'"); } + } result = std_vector_Sl_float_Sg__erase__SWIG_1(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { return _wrap_FloatVector_erase__SWIG_0(self, args);} } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { return _wrap_FloatVector_erase__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector_erase'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< float >::erase(std::vector< float >::iterator)\n" + " std::vector< float >::erase(std::vector< float >::iterator,std::vector< float >::iterator)\n"); return 0; } +SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float >::size_type arg1 ; std::vector< float >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; + std::vector< float >::value_type temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_FloatVector",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float >::size_type""'"); } + arg1 = static_cast< std::vector< float >::size_type >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FloatVector" "', argument " "2"" of type '" "std::vector< float >::value_type""'"); } + temp2 = static_cast< std::vector< float >::value_type >(val2); arg2 = &temp2; + result = (std::vector< float > *)new std::vector< float >(arg1,(std::vector< float >::value_type const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_FloatVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_FloatVector__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FloatVector__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_FloatVector__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_FloatVector__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FloatVector'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< float >::vector()\n" + " std::vector< float >::vector(std::vector< float > const &)\n" + " std::vector< float >::vector(std::vector< float >::size_type)\n" + " std::vector< float >::vector(std::vector< float >::size_type,std::vector< float >::value_type const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_FloatVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::value_type *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; std::vector< float >::value_type temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_push_back",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_push_back" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_push_back" "', argument " "2"" of type '" "std::vector< float >::value_type""'"); } + temp2 = static_cast< std::vector< float >::value_type >(val2); arg2 = &temp2; + (arg1)->push_back((std::vector< float >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_front",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_front" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + result = (std::vector< float >::value_type *) &((std::vector< float > const *)arg1)->front(); + resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_back",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_back" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + result = (std::vector< float >::value_type *) &((std::vector< float > const *)arg1)->back(); + resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::size_type arg2 ; + std::vector< float >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + std::vector< float >::value_type temp3 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_assign",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_assign" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_assign" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); } + arg2 = static_cast< std::vector< float >::size_type >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_assign" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); } + temp3 = static_cast< std::vector< float >::value_type >(val3); arg3 = &temp3; + (arg1)->assign(arg2,(std::vector< float >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::size_type arg2 ; + std::vector< float >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + std::vector< float >::value_type temp3 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_resize" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_resize" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); } + arg2 = static_cast< std::vector< float >::size_type >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_resize" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); } + temp3 = static_cast< std::vector< float >::value_type >(val3); arg3 = &temp3; + (arg1)->resize(arg2,(std::vector< float >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_FloatVector_resize__SWIG_0(self, args);} } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_FloatVector_resize__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector_resize'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< float >::resize(std::vector< float >::size_type)\n" + " std::vector< float >::resize(std::vector< float >::size_type,std::vector< float >::value_type const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_FloatVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::iterator arg2 ; + std::vector< float >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; + std::vector< float >::value_type temp3 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; std::vector< float >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_insert",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_insert" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_insert" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); } + temp3 = static_cast< std::vector< float >::value_type >(val3); arg3 = &temp3; + result = std_vector_Sl_float_Sg__insert__SWIG_0(arg1,arg2,(float const &)*arg3); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::iterator arg2 ; + std::vector< float >::size_type arg3 ; std::vector< float >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; std::vector< float >::value_type temp4 ; + float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:FloatVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_insert" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); } + } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_insert" "', argument " "3"" of type '" "std::vector< float >::size_type""'"); } + arg3 = static_cast< std::vector< float >::size_type >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FloatVector_insert" "', argument " "4"" of type '" "std::vector< float >::value_type""'"); } + temp4 = static_cast< std::vector< float >::value_type >(val4); arg4 = &temp4; + std_vector_Sl_float_Sg__insert__SWIG_1(arg1,arg2,arg3,(float const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_FloatVector_insert__SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< float,std::allocator< float > >**)(0)); _v = SWIG_CheckState(res); if (_v) { + swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_FloatVector_insert__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FloatVector_insert'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< float >::insert(std::vector< float >::iterator,std::vector< float >::value_type const &)\n" + " std::vector< float >::insert(std::vector< float >::iterator,std::vector< float >::size_type,std::vector< float >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_FloatVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; std::vector< float >::size_type arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_reserve",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_reserve" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_reserve" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); } + arg2 = static_cast< std::vector< float >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_FloatVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< float >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_capacity",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_capacity" "', argument " "1"" of type '" "std::vector< float > const *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); result = ((std::vector< float > const *)arg1)->capacity(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_FloatVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< float > *arg1 = (std::vector< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_FloatVector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatVector" "', argument " "1"" of type '" "std::vector< float > *""'"); } + arg1 = reinterpret_cast< std::vector< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *FloatVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_StringVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_iterator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_iterator" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = (swig::SwigPyIterator *)std_vector_Sl_std_string_Sg__iterator(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector___nonzero__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = (bool)std_vector_Sl_std_string_Sg____nonzero__((std::vector< std::string > const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector___bool__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___bool__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = (bool)std_vector_Sl_std_string_Sg____bool__((std::vector< std::string > const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector___len__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___len__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = std_vector_Sl_std_string_Sg____len__((std::vector< std::string > const *)arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; + std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___getslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___getslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___getslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } + arg3 = static_cast< std::vector< std::string >::difference_type >(val3); try { + result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getslice__(arg1,arg2,arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; + int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } + arg3 = static_cast< std::vector< std::string >::difference_type >(val3); try { + std_vector_Sl_std_string_Sg____setslice____SWIG_0(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; + std::vector< std::string,std::allocator< std::string > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; + int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:StringVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } + arg3 = static_cast< std::vector< std::string >::difference_type >(val3); { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StringVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } + arg4 = ptr; } try { + std_vector_Sl_std_string_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::string,std::allocator< std::string > > const &)*arg4);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; + return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_StringVector___setslice____SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector___setslice____SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector___setslice__'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type)\n" + " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type,std::vector< std::string,std::allocator< std::string > > const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_StringVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; + std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___delslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___delslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___delslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } + arg3 = static_cast< std::vector< std::string >::difference_type >(val3); try { + std_vector_Sl_std_string_Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector___delitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___delitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); try { + std_vector_Sl_std_string_Sg____delitem____SWIG_0(arg1,arg2);} catch(std::out_of_range &_e) { + SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___getitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { + result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getitem____SWIG_0(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< std::string,std::allocator< std::string > > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } + arg3 = ptr; } try { + std_vector_Sl_std_string_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::string,std::allocator< std::string > > const &)*arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; + return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector___setitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_std_string_Sg____setitem____SWIG_1(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector___delitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } + arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_std_string_Sg____delitem____SWIG_1(arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { + SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_StringVector___delitem____SWIG_1(self, args);} } } + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_StringVector___delitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector___delitem__'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< std::string >::__delitem__(std::vector< std::string >::difference_type)\n" + " std::vector< std::string >::__delitem__(PySliceObject *)\n"); return 0; } +SWIGINTERN PyObject *_wrap_StringVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string >::value_type *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___getitem__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___getitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); try { + result = (std::vector< std::string >::value_type *) &std_vector_Sl_std_string_Sg____getitem____SWIG_1((std::vector< std::string > const *)arg1,arg2);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_StringVector___getitem____SWIG_0(self, args);} } } + if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_StringVector___getitem____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< std::string >::__getitem__(PySliceObject *)\n" + " std::vector< std::string >::__getitem__(std::vector< std::string >::difference_type) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } + arg2 = static_cast< std::vector< std::string >::difference_type >(val2); { std::string *ptr = (std::string *)0; + res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg3 = ptr; } try { std_vector_Sl_std_string_Sg____setitem____SWIG_2(arg1,arg2,(std::string const &)*arg3);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_StringVector___setitem____SWIG_1(self, args);} } } + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { + int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { return _wrap_StringVector___setitem____SWIG_0(self, args);} } } } + if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_StringVector___setitem____SWIG_2(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector___setitem__'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< std::string >::__setitem__(PySliceObject *,std::vector< std::string,std::allocator< std::string > > const &)\n" + " std::vector< std::string >::__setitem__(PySliceObject *)\n" + " std::vector< std::string >::__setitem__(std::vector< std::string >::difference_type,std::vector< std::string >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_StringVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_pop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_pop" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); try { result = std_vector_Sl_std_string_Sg__pop(arg1);} + catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::value_type *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector_append",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_append" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringVector_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg2 = ptr; } std_vector_Sl_std_string_Sg__append(arg1,(std::string const &)*arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_StringVector")) SWIG_fail; + result = (std::vector< std::string > *)new std::vector< std::string >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< std::string > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_StringVector",&obj0)) SWIG_fail; { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); } + arg1 = ptr; } + result = (std::vector< std::string > *)new std::vector< std::string >((std::vector< std::string > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_empty",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_empty" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = (bool)((std::vector< std::string > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_size" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = ((std::vector< std::string > const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_swap" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringVector_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'"); } + arg2 = reinterpret_cast< std::vector< std::string > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_begin" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_end" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = (arg1)->end(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_rbegin" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = (arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_rend" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = (arg1)->rend(); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_clear" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::allocator< std::string > > result; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_get_allocator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = ((std::vector< std::string > const *)arg1)->get_allocator(); + resultobj = SWIG_NewPointerObj((new std::vector< std::string >::allocator_type(static_cast< const std::vector< std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__string_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_StringVector",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'"); } + arg1 = static_cast< std::vector< std::string >::size_type >(val1); + result = (std::vector< std::string > *)new std::vector< std::string >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_pop_back",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_pop_back" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector_resize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } + arg2 = static_cast< std::vector< std::string >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::iterator arg2 ; + void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + std::vector< std::string >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector_erase",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + } result = std_vector_Sl_std_string_Sg__erase__SWIG_0(arg1,arg2); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::iterator arg2 ; + std::vector< std::string >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; + swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + std::vector< std::string >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector_erase",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res3) || !iter3) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); + if (iter_t) { arg3 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'"); } + } result = std_vector_Sl_std_string_Sg__erase__SWIG_1(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { return _wrap_StringVector_erase__SWIG_0(self, args);} } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { return _wrap_StringVector_erase__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector_erase'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< std::string >::erase(std::vector< std::string >::iterator)\n" + " std::vector< std::string >::erase(std::vector< std::string >::iterator,std::vector< std::string >::iterator)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string >::size_type arg1 ; std::vector< std::string >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_StringVector",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'"); } + arg1 = static_cast< std::vector< std::string >::size_type >(val1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringVector" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringVector" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg2 = ptr; } + result = (std::vector< std::string > *)new std::vector< std::string >(arg1,(std::vector< std::string >::value_type const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_new_StringVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_StringVector__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_StringVector__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_new_StringVector__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_StringVector__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_StringVector'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< std::string >::vector()\n" + " std::vector< std::string >::vector(std::vector< std::string > const &)\n" + " std::vector< std::string >::vector(std::vector< std::string >::size_type)\n" + " std::vector< std::string >::vector(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_StringVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::value_type *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector_push_back",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_push_back" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringVector_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg2 = ptr; } (arg1)->push_back((std::vector< std::string >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::value_type *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_front",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_front" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->front(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::value_type *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:StringVector_back",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_back" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->back(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::size_type arg2 ; + std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector_assign",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_assign" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_assign" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } + arg2 = static_cast< std::vector< std::string >::size_type >(val2); { std::string *ptr = (std::string *)0; + res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg3 = ptr; } (arg1)->assign(arg2,(std::vector< std::string >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::size_type arg2 ; std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } + arg2 = static_cast< std::vector< std::string >::size_type >(val2); { std::string *ptr = (std::string *)0; + res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg3 = ptr; } (arg1)->resize(arg2,(std::vector< std::string >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_StringVector_resize__SWIG_0(self, args);} } } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_StringVector_resize__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector_resize'.\n" + " Possible C/C++ prototypes are:\n" " std::vector< std::string >::resize(std::vector< std::string >::size_type)\n" + " std::vector< std::string >::resize(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_StringVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::iterator arg2 ; std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::string >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"OOO:StringVector_insert",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg3 = ptr; } result = std_vector_Sl_std_string_Sg__insert__SWIG_0(arg1,arg2,(std::string const &)*arg3); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), + swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; + std::vector< std::string >::iterator arg2 ; std::vector< std::string >::size_type arg3 ; + std::vector< std::string >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; + int res2 ; size_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:StringVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); + if (!SWIG_IsOK(res2) || !iter2) { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + else { + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + if (iter_t) { arg2 = iter_t->get_current(); } else { + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } + } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::size_type""'"); } + arg3 = static_cast< std::vector< std::string >::size_type >(val3); { std::string *ptr = (std::string *)0; + res4 = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StringVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); } + arg4 = ptr; } std_vector_Sl_std_string_Sg__insert__SWIG_1(arg1,arg2,arg3,(std::string const &)*arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: + if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_StringVector_insert__SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { swig::SwigPyIterator *iter = 0; + int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); + _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_StringVector_insert__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StringVector_insert'.\n" + " Possible C/C++ prototypes are:\n" + " std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::value_type const &)\n" + " std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_StringVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::size_type arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:StringVector_reserve",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_reserve" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_reserve" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } + arg2 = static_cast< std::vector< std::string >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_StringVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:StringVector_capacity",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_capacity" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); + result = ((std::vector< std::string > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_StringVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_StringVector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StringVector" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } + arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *StringVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *OF_VERSION_MAJOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_MAJOR",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_VERSION_MINOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_MINOR",SWIG_From_int(static_cast< int >(9))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_VERSION_PATCH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_PATCH",SWIG_From_int(static_cast< int >(8))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_VERSION_PRE_RELEASE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_VERSION_PRE_RELEASE",SWIG_FromCharPtr("stable")); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOOP_NONE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOOP_NONE",SWIG_From_int(static_cast< int >(OF_LOOP_NONE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOOP_PALINDROME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOOP_PALINDROME",SWIG_From_int(static_cast< int >(OF_LOOP_PALINDROME))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOOP_NORMAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOOP_NORMAL",SWIG_From_int(static_cast< int >(OF_LOOP_NORMAL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_OSX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_OSX",SWIG_From_int(static_cast< int >(OF_TARGET_OSX))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_MINGW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_MINGW",SWIG_From_int(static_cast< int >(OF_TARGET_MINGW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_WINVS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_WINVS",SWIG_From_int(static_cast< int >(OF_TARGET_WINVS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_IOS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_IOS",SWIG_From_int(static_cast< int >(OF_TARGET_IOS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_ANDROID_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_ANDROID",SWIG_From_int(static_cast< int >(OF_TARGET_ANDROID))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUX",SWIG_From_int(static_cast< int >(OF_TARGET_LINUX))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUX64_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUX64",SWIG_From_int(static_cast< int >(OF_TARGET_LINUX64))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUXARMV6L_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUXARMV6L",SWIG_From_int(static_cast< int >(OF_TARGET_LINUXARMV6L))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_LINUXARMV7L_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_LINUXARMV7L",SWIG_From_int(static_cast< int >(OF_TARGET_LINUXARMV7L))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_TARGET_EMSCRIPTEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_TARGET_EMSCRIPTEN",SWIG_From_int(static_cast< int >(OF_TARGET_EMSCRIPTEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *B14400_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "B14400",SWIG_From_int(static_cast< int >(14400))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *B28800_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "B28800",SWIG_From_int(static_cast< int >(28800))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *HAS_TLS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "HAS_TLS",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SERIAL_NO_DATA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SERIAL_NO_DATA",SWIG_From_int(static_cast< int >(-2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SERIAL_ERROR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SERIAL_ERROR",SWIG_From_int(static_cast< int >(-1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "PI",SWIG_From_double(static_cast< double >(3.14159265358979323846))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *TWO_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "TWO_PI",SWIG_From_double(static_cast< double >(6.28318530717958647693))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *M_TWO_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "M_TWO_PI",SWIG_From_double(static_cast< double >(6.28318530717958647693))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FOUR_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FOUR_PI",SWIG_From_double(static_cast< double >(12.56637061435917295385))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *HALF_PI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "HALF_PI",SWIG_From_double(static_cast< double >(1.57079632679489661923))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *DEG_TO_RAD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "DEG_TO_RAD",SWIG_From_double(static_cast< double >((3.14159265358979323846/180.0)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *RAD_TO_DEG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "RAD_TO_DEG",SWIG_From_double(static_cast< double >((180.0/3.14159265358979323846)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_OUTLINE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_OUTLINE",SWIG_From_int(static_cast< int >(OF_OUTLINE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_FILLED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_FILLED",SWIG_From_int(static_cast< int >(OF_FILLED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_WINDOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_WINDOW",SWIG_From_int(static_cast< int >(OF_WINDOW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_FULLSCREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_FULLSCREEN",SWIG_From_int(static_cast< int >(OF_FULLSCREEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GAME_MODE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GAME_MODE",SWIG_From_int(static_cast< int >(OF_GAME_MODE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ASPECT_RATIO_IGNORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_IGNORE",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_IGNORE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ASPECT_RATIO_KEEP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_KEEP",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_KEEP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ASPECT_RATIO_KEEP_BY_EXPANDING",SWIG_From_int(static_cast< int >(OF_ASPECT_RATIO_KEEP_BY_EXPANDING))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_IGNORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_IGNORE",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_IGNORE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_TOP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_TOP",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_TOP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_BOTTOM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_BOTTOM",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_BOTTOM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_VERT_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_VERT_CENTER",SWIG_From_int(static_cast< int >(OF_ALIGN_VERT_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_IGNORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_IGNORE",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_IGNORE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_LEFT",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_LEFT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_RIGHT",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_RIGHT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ALIGN_HORZ_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ALIGN_HORZ_CENTER",SWIG_From_int(static_cast< int >(OF_ALIGN_HORZ_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_RECTMODE_CORNER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_RECTMODE_CORNER",SWIG_From_int(static_cast< int >(OF_RECTMODE_CORNER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_RECTMODE_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_RECTMODE_CENTER",SWIG_From_int(static_cast< int >(OF_RECTMODE_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_FIT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_FIT",SWIG_From_int(static_cast< int >(OF_SCALEMODE_FIT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_FILL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_FILL",SWIG_From_int(static_cast< int >(OF_SCALEMODE_FILL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_CENTER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_CENTER",SWIG_From_int(static_cast< int >(OF_SCALEMODE_CENTER))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_SCALEMODE_STRETCH_TO_FILL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_SCALEMODE_STRETCH_TO_FILL",SWIG_From_int(static_cast< int >(OF_SCALEMODE_STRETCH_TO_FILL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_GRAYSCALE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_GRAYSCALE",SWIG_From_int(static_cast< int >(OF_IMAGE_GRAYSCALE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_COLOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_COLOR",SWIG_From_int(static_cast< int >(OF_IMAGE_COLOR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_COLOR_ALPHA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_COLOR_ALPHA",SWIG_From_int(static_cast< int >(OF_IMAGE_COLOR_ALPHA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_UNDEFINED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_UNDEFINED",SWIG_From_int(static_cast< int >(OF_IMAGE_UNDEFINED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MAX_STYLE_HISTORY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MAX_STYLE_HISTORY",SWIG_From_int(static_cast< int >(32))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MAX_VIEWPORT_HISTORY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MAX_VIEWPORT_HISTORY",SWIG_From_int(static_cast< int >(32))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MAX_CIRCLE_PTS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MAX_CIRCLE_PTS",SWIG_From_int(static_cast< int >(1024))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_DISABLED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_DISABLED",SWIG_From_int(static_cast< int >(OF_BLENDMODE_DISABLED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_ALPHA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_ALPHA",SWIG_From_int(static_cast< int >(OF_BLENDMODE_ALPHA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_ADD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_ADD",SWIG_From_int(static_cast< int >(OF_BLENDMODE_ADD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_SUBTRACT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_SUBTRACT",SWIG_From_int(static_cast< int >(OF_BLENDMODE_SUBTRACT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_MULTIPLY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_MULTIPLY",SWIG_From_int(static_cast< int >(OF_BLENDMODE_MULTIPLY))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BLENDMODE_SCREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BLENDMODE_SCREEN",SWIG_From_int(static_cast< int >(OF_BLENDMODE_SCREEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_DEFAULT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_DEFAULT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_DEFAULT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_180_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_180",SWIG_From_int(static_cast< int >(OF_ORIENTATION_180))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_90_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_90_LEFT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_90_LEFT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_90_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_90_RIGHT",SWIG_From_int(static_cast< int >(OF_ORIENTATION_90_RIGHT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ORIENTATION_UNKNOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ORIENTATION_UNKNOWN",SWIG_From_int(static_cast< int >(OF_ORIENTATION_UNKNOWN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GRADIENT_LINEAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GRADIENT_LINEAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_LINEAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GRADIENT_CIRCULAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GRADIENT_CIRCULAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_CIRCULAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_GRADIENT_BAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_GRADIENT_BAR",SWIG_From_int(static_cast< int >(OF_GRADIENT_BAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_ODD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_ODD",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_ODD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_NONZERO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_NONZERO",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_NONZERO))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_POSITIVE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_POSITIVE",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_POSITIVE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_NEGATIVE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_NEGATIVE",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_NEGATIVE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_POLY_WINDING_ABS_GEQ_TWO",SWIG_From_int(static_cast< int >(OF_POLY_WINDING_ABS_GEQ_TWO))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CLOSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CLOSE",SWIG_From_bool(static_cast< bool >((true)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LEFT_HANDED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LEFT_HANDED",SWIG_From_int(static_cast< int >(OF_LEFT_HANDED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_RIGHT_HANDED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_RIGHT_HANDED",SWIG_From_int(static_cast< int >(OF_RIGHT_HANDED))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MATRIX_MODELVIEW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MATRIX_MODELVIEW",SWIG_From_int(static_cast< int >(OF_MATRIX_MODELVIEW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MATRIX_PROJECTION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MATRIX_PROJECTION",SWIG_From_int(static_cast< int >(OF_MATRIX_PROJECTION))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MATRIX_TEXTURE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MATRIX_TEXTURE",SWIG_From_int(static_cast< int >(OF_MATRIX_TEXTURE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_MODIFIER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_MODIFIER",SWIG_From_int(static_cast< int >(0x0100))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RETURN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RETURN",SWIG_From_int(static_cast< int >(13))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_ESC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_ESC",SWIG_From_int(static_cast< int >(27))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_TAB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_TAB",SWIG_From_int(static_cast< int >(9))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_BACKSPACE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_BACKSPACE",SWIG_From_int(static_cast< int >(127))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_DEL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_DEL",SWIG_From_int(static_cast< int >(8))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F1",SWIG_From_int(static_cast< int >((1|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F2",SWIG_From_int(static_cast< int >((2|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F3",SWIG_From_int(static_cast< int >((3|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F4_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F4",SWIG_From_int(static_cast< int >((4|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F5_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F5",SWIG_From_int(static_cast< int >((5|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F6_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F6",SWIG_From_int(static_cast< int >((6|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F7_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F7",SWIG_From_int(static_cast< int >((7|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F8_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F8",SWIG_From_int(static_cast< int >((8|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F9_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F9",SWIG_From_int(static_cast< int >((9|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F10_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F10",SWIG_From_int(static_cast< int >((10|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F11_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F11",SWIG_From_int(static_cast< int >((11|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_F12_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_F12",SWIG_From_int(static_cast< int >((12|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT",SWIG_From_int(static_cast< int >((100|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_UP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_UP",SWIG_From_int(static_cast< int >((101|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT",SWIG_From_int(static_cast< int >((102|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_DOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_DOWN",SWIG_From_int(static_cast< int >((103|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_PAGE_UP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_PAGE_UP",SWIG_From_int(static_cast< int >((104|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_PAGE_DOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_PAGE_DOWN",SWIG_From_int(static_cast< int >((105|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_HOME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_HOME",SWIG_From_int(static_cast< int >((106|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_END_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_END",SWIG_From_int(static_cast< int >((107|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_INSERT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_INSERT",SWIG_From_int(static_cast< int >((108|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_CONTROL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_CONTROL",SWIG_From_int(static_cast< int >((0x200|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_ALT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_ALT",SWIG_From_int(static_cast< int >((0x400|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_SHIFT",SWIG_From_int(static_cast< int >((0x800|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_SUPER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_SUPER",SWIG_From_int(static_cast< int >((0x1000|0x0100)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_SHIFT",SWIG_From_int(static_cast< int >((0x1|(0x800|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_SHIFT",SWIG_From_int(static_cast< int >((0x2|(0x800|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_CONTROL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_CONTROL",SWIG_From_int(static_cast< int >((0x1|(0x200|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_CONTROL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_CONTROL",SWIG_From_int(static_cast< int >((0x2|(0x200|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_ALT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_ALT",SWIG_From_int(static_cast< int >((0x1|(0x400|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_ALT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_ALT",SWIG_From_int(static_cast< int >((0x2|(0x400|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_SUPER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_SUPER",SWIG_From_int(static_cast< int >((0x1|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_SUPER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_SUPER",SWIG_From_int(static_cast< int >((0x2|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_LEFT_COMMAND_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_LEFT_COMMAND",SWIG_From_int(static_cast< int >((0x1|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_KEY_RIGHT_COMMAND_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_KEY_RIGHT_COMMAND",SWIG_From_int(static_cast< int >((0x2|(0x1000|0x0100))))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_1",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_2",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_3",SWIG_From_int(static_cast< int >(2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_4_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_4",SWIG_From_int(static_cast< int >(3))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_5_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_5",SWIG_From_int(static_cast< int >(4))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_6_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_6",SWIG_From_int(static_cast< int >(5))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_7_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_7",SWIG_From_int(static_cast< int >(6))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_8_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_8",SWIG_From_int(static_cast< int >(7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_LAST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_LAST",SWIG_From_int(static_cast< int >(7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_LEFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_LEFT",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_MIDDLE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_MIDDLE",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_MOUSE_BUTTON_RIGHT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_MOUSE_BUTTON_RIGHT",SWIG_From_int(static_cast< int >(2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_RESTORE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_RESTORE",SWIG_From_int(static_cast< int >((0)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_BLACK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_BLACK",SWIG_From_int(static_cast< int >((30)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_RED_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_RED",SWIG_From_int(static_cast< int >((31)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_GREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_GREEN",SWIG_From_int(static_cast< int >((32)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_YELLOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_YELLOW",SWIG_From_int(static_cast< int >((33)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_BLUE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_BLUE",SWIG_From_int(static_cast< int >((34)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_PURPLE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_PURPLE",SWIG_From_int(static_cast< int >((35)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_CYAN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_CYAN",SWIG_From_int(static_cast< int >((36)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_CONSOLE_COLOR_WHITE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_CONSOLE_COLOR_WHITE",SWIG_From_int(static_cast< int >((37)))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_GRAY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_GRAY",SWIG_From_int(static_cast< int >(OF_PIXELS_GRAY))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_GRAY_ALPHA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_GRAY_ALPHA",SWIG_From_int(static_cast< int >(OF_PIXELS_GRAY_ALPHA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_RGB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_RGB",SWIG_From_int(static_cast< int >(OF_PIXELS_RGB))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_BGR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_BGR",SWIG_From_int(static_cast< int >(OF_PIXELS_BGR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_RGBA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_RGBA",SWIG_From_int(static_cast< int >(OF_PIXELS_RGBA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_BGRA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_BGRA",SWIG_From_int(static_cast< int >(OF_PIXELS_BGRA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_RGB565_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_RGB565",SWIG_From_int(static_cast< int >(OF_PIXELS_RGB565))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NV12_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NV12",SWIG_From_int(static_cast< int >(OF_PIXELS_NV12))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NV21_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NV21",SWIG_From_int(static_cast< int >(OF_PIXELS_NV21))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_YV12_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_YV12",SWIG_From_int(static_cast< int >(OF_PIXELS_YV12))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_I420_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_I420",SWIG_From_int(static_cast< int >(OF_PIXELS_I420))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_YUY2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_YUY2",SWIG_From_int(static_cast< int >(OF_PIXELS_YUY2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_UYVY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_UYVY",SWIG_From_int(static_cast< int >(OF_PIXELS_UYVY))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_Y_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_Y",SWIG_From_int(static_cast< int >(OF_PIXELS_Y))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_U_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_U",SWIG_From_int(static_cast< int >(OF_PIXELS_U))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_V_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_V",SWIG_From_int(static_cast< int >(OF_PIXELS_V))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_UV_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_UV",SWIG_From_int(static_cast< int >(OF_PIXELS_UV))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_VU_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_VU",SWIG_From_int(static_cast< int >(OF_PIXELS_VU))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NUM_FORMATS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NUM_FORMATS",SWIG_From_int(static_cast< int >(OF_PIXELS_NUM_FORMATS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_UNKNOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_UNKNOWN",SWIG_From_int(static_cast< int >(OF_PIXELS_UNKNOWN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_PIXELS_NATIVE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_PIXELS_NATIVE",SWIG_From_int(static_cast< int >(OF_PIXELS_NATIVE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_SIMPLE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_SIMPLE",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_SIMPLE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_SCREEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_SCREEN",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_SCREEN))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_VIEWPORT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_VIEWPORT",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_VIEWPORT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_MODEL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_MODEL",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_MODEL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_BITMAPMODE_MODEL_BILLBOARD",SWIG_From_int(static_cast< int >(OF_BITMAPMODE_MODEL_BILLBOARD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ENCODING_UTF8_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ENCODING_UTF8",SWIG_From_int(static_cast< int >(OF_ENCODING_UTF8))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ENCODING_ISO_8859_15_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ENCODING_ISO_8859_15",SWIG_From_int(static_cast< int >(OF_ENCODING_ISO_8859_15))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFbo")) SWIG_fail; result = (ofFbo *)new ofFbo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFbo, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo const &""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofFbo *)new ofFbo((ofFbo const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFbo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFbo, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFbo" "', argument " "1"" of type '" "ofFbo &&""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofFbo *)new ofFbo((ofFbo &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFbo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFbo__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFbo__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFbo__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFbo'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::ofFbo()\n" " ofFbo::ofFbo(ofFbo const &)\n" + " ofFbo::ofFbo(ofFbo &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofFbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFbo" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFbo_allocate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFbo_allocate" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->allocate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->allocate(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofFbo::Settings arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFbo__Settings, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "ofFbo::Settings""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_allocate" "', argument " "2"" of type '" "ofFbo::Settings""'"); } + else { ofFbo::Settings * temp = reinterpret_cast< ofFbo::Settings * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->allocate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_allocate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_allocate" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->allocate(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_allocate__SWIG_4(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFbo__Settings, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_allocate__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_allocate__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_allocate__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_allocate__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::allocate(int,int,int,int)\n" " ofFbo::allocate(int,int,int)\n" + " ofFbo::allocate(int,int)\n" " ofFbo::allocate(ofFbo::Settings)\n" " ofFbo::allocate()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_isAllocated" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)((ofFbo const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_destroy",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_destroy" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->destroy(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_clear" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofFbo const *)arg1)->draw((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofFbo const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofFbo const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofFbo const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFbo_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_draw" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFbo_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFbo_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofFbo const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_draw__SWIG_0_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_draw__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofFbo::draw(float,float) const\n" + " ofFbo::draw(float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setAnchorPercent" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setAnchorPoint" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_resetAnchor" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setDefaultTextureIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setDefaultTextureIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setDefaultTextureIndex" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setDefaultTextureIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setDefaultTextureIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDefaultTextureIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDefaultTextureIndex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDefaultTextureIndex" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (int)((ofFbo const *)arg1)->getDefaultTextureIndex(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTextureReference",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTextureReference" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &(arg1)->getTextureReference(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTexture" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &(arg1)->getTexture(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &(arg1)->getDepthTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &((ofFbo const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTextureReference",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTextureReference" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTextureReference" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &((ofFbo const *)arg1)->getTextureReference(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTextureReference__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::getTextureReference()\n" " ofFbo::getTextureReference(int)\n" + " ofFbo::getTextureReference() const\n" " ofFbo::getTextureReference(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &((ofFbo const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_getTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_getTexture" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofTexture *) &((ofFbo const *)arg1)->getTexture(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getTexture__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTexture__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_getTexture__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::getTexture()\n" " ofFbo::getTexture(int)\n" + " ofFbo::getTexture() const\n" " ofFbo::getTexture(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (ofTexture *) &((ofFbo const *)arg1)->getDepthTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getDepthTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_getDepthTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_getDepthTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::getDepthTexture()\n" " ofFbo::getDepthTexture() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setUseTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_isUsingTexture" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)((ofFbo const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_begin",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_begin" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_begin" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ((ofFbo const *)arg1)->begin(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_begin" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_begin__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_begin__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::begin(bool) const\n" " ofFbo::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_end" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofFbo const *)arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ((ofFbo const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofShortPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofFbo const *)arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ((ofFbo const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofFloatPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_readToPixels",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_readToPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofFbo const *)arg1)->readToPixels(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_readToPixels" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ((ofFbo const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_readToPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFbo_readToPixels__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFbo_readToPixels__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFbo_readToPixels__SWIG_5(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_readToPixels__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_readToPixels__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFbo_readToPixels__SWIG_2(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_readToPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::readToPixels(ofPixels &,int) const\n" + " ofFbo::readToPixels(ofPixels &) const\n" " ofFbo::readToPixels(ofShortPixels &,int) const\n" + " ofFbo::readToPixels(ofShortPixels &) const\n" " ofFbo::readToPixels(ofFloatPixels &,int) const\n" + " ofFbo::readToPixels(ofFloatPixels &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getWidth" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (float)((ofFbo const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getHeight" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (float)((ofFbo const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_bind" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_unbind" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_flagDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_flagDirty",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_flagDirty" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ((ofFbo const *)arg1)->flagDirty(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_updateTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_updateTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_updateTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_updateTexture" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->updateTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_checkStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_checkStatus",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_checkStatus" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (bool)((ofFbo const *)arg1)->checkStatus(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_createAndAttachTexture",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachTexture" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachTexture" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_createAndAttachTexture" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachTexture" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + (arg1)->createAndAttachTexture(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_attachTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; ofTexture *arg2 = 0 ; GLenum arg3 ; GLenum arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_attachTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_attachTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_attachTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + arg2 = reinterpret_cast< ofTexture * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_attachTexture" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { + res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_attachTexture" "', argument " "4"" of type '" "GLenum""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_attachTexture" "', argument " "4"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + (arg1)->attachTexture(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachRenderbuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + GLuint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFbo_createAndAttachRenderbuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachRenderbuffer" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + result = (arg1)->createAndAttachRenderbuffer(arg2,arg3); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLint arg3 ; GLenum arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFbo_createAndAttachDepthStencilTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + (arg1)->createAndAttachDepthStencilTexture(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; GLenum arg2 ; GLint arg3 ; GLenum arg4 ; GLenum arg5 ; GLenum arg6 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; + void *argp5 ; int res5 = 0 ; void *argp6 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFbo_createAndAttachDepthStencilTexture",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "4"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } { + res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "5"" of type '" "GLenum""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "5"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "6"" of type '" "GLenum""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_createAndAttachDepthStencilTexture" "', argument " "6"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp6); arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->createAndAttachDepthStencilTexture(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_createAndAttachDepthStencilTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFbo_createAndAttachDepthStencilTexture__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFbo_createAndAttachDepthStencilTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofFbo::createAndAttachDepthStencilTexture(GLenum,GLint,GLenum)\n" + " ofFbo::createAndAttachDepthStencilTexture(GLenum,GLint,GLenum,GLenum,GLenum)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFbo_getNumTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getNumTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getNumTextures" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = (int)((ofFbo const *)arg1)->getNumTextures(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setActiveDrawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setActiveDrawBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setActiveDrawBuffer" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFbo_setActiveDrawBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setActiveDrawBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_setActiveDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; std::vector< int > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFbo_setActiveDrawBuffers",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "2"" of type '" "std::vector< int > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFbo_setActiveDrawBuffers" "', argument " "2"" of type '" "std::vector< int > const &""'"); } + arg2 = ptr; } (arg1)->setActiveDrawBuffers((std::vector< int > const &)*arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_activateAllDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_activateAllDrawBuffers",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_activateAllDrawBuffers" "', argument " "1"" of type '" "ofFbo *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); (arg1)->activateAllDrawBuffers(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getFbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getFbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getFbo" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getFbo(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getId" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getIdDrawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getIdDrawBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getIdDrawBuffer" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getIdDrawBuffer(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_checkGLSupport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_checkGLSupport")) SWIG_fail; result = (bool)ofFbo::checkGLSupport(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_maxColorAttachments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxColorAttachments")) SWIG_fail; + result = (int)ofFbo::maxColorAttachments(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_maxDrawBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxDrawBuffers")) SWIG_fail; result = (int)ofFbo::maxDrawBuffers(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_maxSamples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofFbo_maxSamples")) SWIG_fail; result = (int)ofFbo::maxSamples(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getDepthBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getDepthBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getDepthBuffer" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getDepthBuffer(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFbo_getStencilBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFbo *arg1 = (ofFbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFbo_getStencilBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFbo_getStencilBuffer" "', argument " "1"" of type '" "ofFbo const *""'"); } + arg1 = reinterpret_cast< ofFbo * >(argp1); result = ((ofFbo const *)arg1)->getStencilBuffer(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofFbo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofFbo, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofGetUsingArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetUsingArbTex")) SWIG_fail; result = (bool)ofGetUsingArbTex(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableArbTex")) SWIG_fail; ofEnableArbTex(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableArbTex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableArbTex")) SWIG_fail; ofDisableArbTex(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetUsingNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetUsingNormalizedTexCoords")) SWIG_fail; + result = (bool)ofGetUsingNormalizedTexCoords(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofEnableNormalizedTexCoords")) SWIG_fail; + ofEnableNormalizedTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableNormalizedTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofDisableNormalizedTexCoords")) SWIG_fail; + ofDisableNormalizedTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *OF_COMPRESS_NONE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_COMPRESS_NONE",SWIG_From_int(static_cast< int >(OF_COMPRESS_NONE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_COMPRESS_SRGB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_COMPRESS_SRGB",SWIG_From_int(static_cast< int >(OF_COMPRESS_SRGB))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_COMPRESS_ARB_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_COMPRESS_ARB",SWIG_From_int(static_cast< int >(OF_COMPRESS_ARB))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofTextureData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTextureData")) SWIG_fail; + result = (ofTextureData *)new ofTextureData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_textureID_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureID_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_textureID_set" "', argument " "2"" of type '" "unsigned int""'"); } + arg2 = static_cast< unsigned int >(val2); if (arg1) (arg1)->textureID = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_textureID_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureID_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (unsigned int) ((arg1)->textureID); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureTarget_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_textureTarget_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureTarget_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_textureTarget_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->textureTarget = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_textureTarget_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_textureTarget_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_textureTarget_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (int) ((arg1)->textureTarget); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_glInternalFormat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_glInternalFormat_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_glInternalFormat_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_glInternalFormat_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->glInternalFormat = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_glInternalFormat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_glInternalFormat_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_glInternalFormat_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (int) ((arg1)->glInternalFormat); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_t_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_t_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_t_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_t = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_t_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_t_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_t_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_t); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_u_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_u_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_u_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_u_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_u = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_u_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_u_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_u_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_u); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_w_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_w_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_w_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_w_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_w = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_w_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_w_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_w_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_w); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_tex_h_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_h_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_tex_h_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->tex_h = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_tex_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_tex_h_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_tex_h_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->tex_h); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_width_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_width_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_width_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_width_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_width_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->width); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_height_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_height_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_height_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_height_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_height_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (float) ((arg1)->height); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bFlipTexture_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bFlipTexture_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bFlipTexture_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bFlipTexture_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bFlipTexture = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bFlipTexture_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bFlipTexture_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bFlipTexture_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->bFlipTexture); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_compressionType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_compressionType_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_compressionType_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_compressionType_set" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); if (arg1) (arg1)->compressionType = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_compressionType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexCompression result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_compressionType_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_compressionType_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (ofTexCompression) ((arg1)->compressionType); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bAllocated_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bAllocated_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bAllocated_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bAllocated_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bAllocated = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bAllocated_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bAllocated_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bAllocated_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (bool) ((arg1)->bAllocated); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_minFilter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_minFilter_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_minFilter_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_minFilter_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->minFilter = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_minFilter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_minFilter_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_minFilter_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->minFilter); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_magFilter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_magFilter_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_magFilter_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_magFilter_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->magFilter = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_magFilter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_magFilter_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_magFilter_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->magFilter); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeHorizontal_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_wrapModeHorizontal_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeHorizontal_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_wrapModeHorizontal_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->wrapModeHorizontal = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeHorizontal_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_wrapModeHorizontal_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeHorizontal_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->wrapModeHorizontal); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeVertical_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; GLint arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_wrapModeVertical_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeVertical_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_wrapModeVertical_set" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); if (arg1) (arg1)->wrapModeVertical = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_wrapModeVertical_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + GLint result; if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_wrapModeVertical_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_wrapModeVertical_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (GLint) ((arg1)->wrapModeVertical); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bufferId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTextureData_bufferId_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bufferId_set" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTextureData_bufferId_set" "', argument " "2"" of type '" "unsigned int""'"); } + arg2 = static_cast< unsigned int >(val2); if (arg1) (arg1)->bufferId = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTextureData_bufferId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTextureData_bufferId_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTextureData_bufferId_get" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); result = (unsigned int) ((arg1)->bufferId); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofTextureData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTextureData *arg1 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTextureData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTextureData, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTextureData" "', argument " "1"" of type '" "ofTextureData *""'"); } + arg1 = reinterpret_cast< ofTextureData * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofTextureData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofTextureData, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofEnableTextureEdgeHack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableTextureEdgeHack")) SWIG_fail; ofEnableTextureEdgeHack(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableTextureEdgeHack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableTextureEdgeHack")) SWIG_fail; ofDisableTextureEdgeHack(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofIsTextureEdgeHackEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofIsTextureEdgeHackEnabled")) SWIG_fail; + result = (bool)ofIsTextureEdgeHackEnabled(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTexture")) SWIG_fail; + result = (ofTexture *)new ofTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofTexture, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture const &""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTexture *)new ofTexture((ofTexture const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofTexture, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofTexture" "', argument " "1"" of type '" "ofTexture &&""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTexture *)new ofTexture((ofTexture &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofTexture__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofTexture__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofTexture__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::ofTexture()\n" " ofTexture::ofTexture(ofTexture const &)\n" + " ofTexture::ofTexture(ofTexture &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTextureData, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + arg2 = reinterpret_cast< ofTextureData * >(argp2); (arg1)->allocate((ofTextureData const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTextureData, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofTextureData const &""'"); } + arg2 = reinterpret_cast< ofTextureData * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->allocate((ofTextureData const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_allocate" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->allocate(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); (arg1)->allocate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; + int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTexture_allocate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_allocate" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_allocate" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_allocate" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_allocate" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->allocate(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->allocate((ofPixels const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->allocate((ofPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->allocate((ofShortPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->allocate((ofShortPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->allocate((ofFloatPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_allocate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_allocate" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_allocate" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_allocate" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->allocate((ofFloatPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofTextureData, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_6(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_8(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_allocate__SWIG_10(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_9(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_7(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_11(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofTextureData, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_4(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_allocate__SWIG_5(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::allocate(ofTextureData const &)\n" + " ofTexture::allocate(ofTextureData const &,int,int)\n" " ofTexture::allocate(int,int,int)\n" + " ofTexture::allocate(int,int,int,int,int)\n" " ofTexture::allocate(int,int,int,bool)\n" + " ofTexture::allocate(int,int,int,bool,int,int)\n" " ofTexture::allocate(ofPixels const &)\n" + " ofTexture::allocate(ofPixels const &,bool)\n" " ofTexture::allocate(ofShortPixels const &)\n" + " ofTexture::allocate(ofShortPixels const &,bool)\n" " ofTexture::allocate(ofFloatPixels const &)\n" + " ofTexture::allocate(ofFloatPixels const &,bool)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_isAllocated" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bAllocated" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTexture" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_clear" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setUseExternalTextureID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; GLuint arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setUseExternalTextureID",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setUseExternalTextureID" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLuint, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setUseExternalTextureID" "', argument " "2"" of type '" "GLuint""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setUseExternalTextureID" "', argument " "2"" of type '" "GLuint""'"); } + else { GLuint * temp = reinterpret_cast< GLuint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setUseExternalTextureID(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; unsigned char *arg2 = (unsigned char *) (unsigned char *)0 ; int arg3 ; int arg4 ; + int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "unsigned char const *const""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadData((unsigned char const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadData((unsigned short const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); (arg1)->loadData((ofPixels const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); (arg1)->loadData((ofShortPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_loadData",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); (arg1)->loadData((ofFloatPixels const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofPixels const &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->loadData((ofPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofShortPixels const &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->loadData((ofShortPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_loadData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_loadData" "', argument " "2"" of type '" "ofFloatPixels const &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->loadData((ofFloatPixels const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_loadData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_loadData__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_loadData__SWIG_4(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_loadData__SWIG_5(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_6(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_7(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_8(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_0(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_loadData__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_loadData'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::loadData(unsigned char const *const,int,int,int)\n" + " ofTexture::loadData(unsigned short const *,int,int,int)\n" " ofTexture::loadData(float const *,int,int,int)\n" + " ofTexture::loadData(ofPixels const &)\n" " ofTexture::loadData(ofShortPixels const &)\n" + " ofTexture::loadData(ofFloatPixels const &)\n" " ofTexture::loadData(ofPixels const &,int)\n" + " ofTexture::loadData(ofShortPixels const &,int)\n" " ofTexture::loadData(ofFloatPixels const &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_loadScreenData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_loadScreenData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_loadScreenData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_loadScreenData" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_loadScreenData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_loadScreenData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_loadScreenData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->loadScreenData(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofTexture const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofTexture const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofTexture const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofTexture const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofTexture const *)arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofTexture const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofTexture const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; ofPoint *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_draw" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTexture_draw" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofTexture_draw" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofTexture_draw" "', argument " "5"" of type '" "ofPoint const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_draw" "', argument " "5"" of type '" "ofPoint const &""'"); } + arg5 = reinterpret_cast< ofPoint * >(argp5); + ((ofTexture const *)arg1)->draw((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,(ofPoint const &)*arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_draw__SWIG_5(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofTexture::draw(float,float) const\n" + " ofTexture::draw(float,float,float) const\n" " ofTexture::draw(float,float,float,float) const\n" + " ofTexture::draw(float,float,float,float,float) const\n" + " ofTexture::draw(ofPoint const &,ofPoint const &,ofPoint const &,ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofTexture_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_drawSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofTexture_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofTexture const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_2(self, args);} } } } } } } } } } if (argc == 10) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::drawSubsection(float,float,float,float,float,float) const\n" + " ofTexture::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofTexture::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofTexture::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_getQuad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; ofPoint *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTexture_getQuad",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getQuad" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_getQuad" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTexture_getQuad" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofTexture_getQuad" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofTexture_getQuad" "', argument " "5"" of type '" "ofPoint const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_getQuad" "', argument " "5"" of type '" "ofPoint const &""'"); } + arg5 = reinterpret_cast< ofPoint * >(argp5); + result = ((ofTexture const *)arg1)->getQuad((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,(ofPoint const &)*arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getMeshForSubsection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; float arg10 ; bool arg11 ; ofRectMode arg12 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + float val10 ; int ecode10 = 0 ; bool val11 ; int ecode11 = 0 ; int val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; + PyObject * obj11 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofTexture_getMeshForSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getMeshForSubsection" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getMeshForSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getMeshForSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTexture_getMeshForSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTexture_getMeshForSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTexture_getMeshForSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTexture_getMeshForSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTexture_getMeshForSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTexture_getMeshForSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofTexture_getMeshForSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_bool(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofTexture_getMeshForSubsection" "', argument " "11"" of type '" "bool""'"); } + arg11 = static_cast< bool >(val11); ecode12 = SWIG_AsVal_int(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofTexture_getMeshForSubsection" "', argument " "12"" of type '" "ofRectMode""'"); } + arg12 = static_cast< ofRectMode >(val12); + result = ((ofTexture const *)arg1)->getMeshForSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofTexture const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_bind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ((ofTexture const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::bind(int) const\n" " ofTexture::bind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_unbind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofTexture const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_unbind" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ((ofTexture const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTexture_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::unbind(int) const\n" " ofTexture::unbind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_getAlphaMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getAlphaMask",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getAlphaMask" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTexture *)((ofTexture const *)arg1)->getAlphaMask(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getHeight" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (float)((ofTexture const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getWidth" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (float)((ofTexture const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAnchorPercent" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAnchorPoint" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_resetAnchor" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getCoordFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_getCoordFromPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getCoordFromPoint" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getCoordFromPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getCoordFromPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofTexture const *)arg1)->getCoordFromPoint(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getCoordFromPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_getCoordFromPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getCoordFromPercent" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_getCoordFromPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_getCoordFromPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofTexture const *)arg1)->getCoordFromPercent(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setAlphaMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTexture *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setAlphaMask",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setAlphaMask" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setAlphaMask" "', argument " "2"" of type '" "ofTexture &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setAlphaMask" "', argument " "2"" of type '" "ofTexture &""'"); } + arg2 = reinterpret_cast< ofTexture * >(argp2); (arg1)->setAlphaMask(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_disableAlphaMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_disableAlphaMask",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_disableAlphaMask" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->disableAlphaMask(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setTextureWrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; GLint arg2 ; GLint arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setTextureWrap",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureWrap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setTextureWrap" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setTextureWrap" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); (arg1)->setTextureWrap(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setTextureMinMagFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; GLint arg2 ; GLint arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setTextureMinMagFilter",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTexture_setTextureMinMagFilter" "', argument " "3"" of type '" "GLint""'"); } + arg3 = static_cast< GLint >(val3); (arg1)->setTextureMinMagFilter(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setTextureMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setTextureMatrix" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setTextureMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setTextureMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->setTextureMatrix((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureMatrix" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofMatrix4x4 *) &((ofTexture const *)arg1)->getTextureMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_isUsingTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_isUsingTextureMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_isUsingTextureMatrix" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->isUsingTextureMatrix(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_disableTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_disableTextureMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_disableTextureMatrix" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->disableTextureMatrix(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setCompression" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setRGToRGBASwizzles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_setRGToRGBASwizzles",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setRGToRGBASwizzles" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTexture_setRGToRGBASwizzles" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setRGToRGBASwizzles(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_setSwizzle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; GLenum arg2 ; GLenum arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTexture_setSwizzle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_setSwizzle" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_setSwizzle" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setSwizzle" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLenum, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTexture_setSwizzle" "', argument " "3"" of type '" "GLenum""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_setSwizzle" "', argument " "3"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + (arg1)->setSwizzle(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofPixels &""'"); } + arg2 = reinterpret_cast< ofPixels * >(argp2); ((ofTexture const *)arg1)->readToPixels(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofShortPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofShortPixels &""'"); } + arg2 = reinterpret_cast< ofShortPixels * >(argp2); ((ofTexture const *)arg1)->readToPixels(*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; ofFloatPixels *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_readToPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_readToPixels" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTexture_readToPixels" "', argument " "2"" of type '" "ofFloatPixels &""'"); } + arg2 = reinterpret_cast< ofFloatPixels * >(argp2); ((ofTexture const *)arg1)->readToPixels(*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_readToPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_1(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofTexture_readToPixels__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_readToPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::readToPixels(ofPixels &) const\n" + " ofTexture::readToPixels(ofShortPixels &) const\n" " ofTexture::readToPixels(ofFloatPixels &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureData" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *) &(arg1)->getTextureData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTextureData *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_getTextureData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_getTextureData" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *) &((ofTexture const *)arg1)->getTextureData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_getTextureData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_getTextureData__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTexture_getTextureData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTexture_getTextureData'.\n" + " Possible C/C++ prototypes are:\n" " ofTexture::getTextureData()\n" " ofTexture::getTextureData() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofTexture_enableMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_enableMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_enableMipmap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->enableMipmap(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_disableMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_disableMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_disableMipmap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->disableMipmap(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_generateMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_generateMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_generateMipmap" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); (arg1)->generateMipmap(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_hasMipmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_hasMipmap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_hasMipmap" "', argument " "1"" of type '" "ofTexture const *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (bool)((ofTexture const *)arg1)->hasMipmap(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_texData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; ofTextureData *arg2 = (ofTextureData *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTexture_texData_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_texData_set" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofTextureData, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTexture_texData_set" "', argument " "2"" of type '" "ofTextureData *""'"); } + arg2 = reinterpret_cast< ofTextureData * >(argp2); if (arg1) (arg1)->texData = *arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTexture_texData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTexture *arg1 = (ofTexture *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofTextureData *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTexture_texData_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTexture, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTexture_texData_get" "', argument " "1"" of type '" "ofTexture *""'"); } + arg1 = reinterpret_cast< ofTexture * >(argp1); result = (ofTextureData *)& ((arg1)->texData); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTextureData, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofTexture_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofTexture, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_BEST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_BEST",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_BEST))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_HIGH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_HIGH",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_HIGH))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_MEDIUM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_MEDIUM",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_MEDIUM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_LOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_LOW",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_LOW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_QUALITY_WORST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_QUALITY_WORST",SWIG_From_int(static_cast< int >(OF_IMAGE_QUALITY_WORST))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_BMP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_BMP",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_BMP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_ICO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_ICO",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_ICO))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_JPEG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JPEG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JPEG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_JNG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JNG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_KOALA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_KOALA",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_KOALA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_LBM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_LBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_LBM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_IFF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_IFF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_IFF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_MNG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_MNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_MNG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PBM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PBM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PBMRAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PBMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PBMRAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PCD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PCD",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PCD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PCX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PCX",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PCX))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PGM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PGM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PGM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PGMRAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PGMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PGMRAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PNG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PNG",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PNG))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PPM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PPM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PPM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PPMRAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PPMRAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PPMRAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_RAS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_RAS",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_RAS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_TARGA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_TARGA",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_TARGA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_TIFF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_TIFF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_TIFF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_WBMP_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_WBMP",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_WBMP))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PSD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PSD",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PSD))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_CUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_CUT",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_CUT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_XBM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_XBM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_XBM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_XPM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_XPM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_XPM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_DDS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_DDS",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_DDS))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_GIF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_GIF",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_GIF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_HDR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_HDR",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_HDR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_FAXG3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_FAXG3",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_FAXG3))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_SGI_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_SGI",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_SGI))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_EXR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_EXR",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_EXR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_J2K_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_J2K",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_J2K))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_JP2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_JP2",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_JP2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PFM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PFM",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PFM))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_PICT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_PICT",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_PICT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_IMAGE_FORMAT_RAW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_IMAGE_FORMAT_RAW",SWIG_From_int(static_cast< int >(OF_IMAGE_FORMAT_RAW))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofImage")) SWIG_fail; + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofPixels_< unsigned char > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofFile const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofFile const &""'"); } + arg1 = reinterpret_cast< ofFile * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofFile const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > const &""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofImage_< unsigned char > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > &&""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofImage_< unsigned char > *)new ofImage_< unsigned char >((ofImage_< unsigned char > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofImage__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_1(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_4(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_5(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofImage__SWIG_3(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::ofImage_()\n" + " ofImage_< unsigned char >::ofImage_(ofPixels_< unsigned char > const &)\n" + " ofImage_< unsigned char >::ofImage_(ofFile const &)\n" " ofImage_< unsigned char >::ofImage_(std::string const &)\n" + " ofImage_< unsigned char >::ofImage_(ofImage_< unsigned char > const &)\n" + " ofImage_< unsigned char >::ofImage_(ofImage_< unsigned char > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_allocate" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_isAllocated" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (bool)((ofImage_< unsigned char > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bAllocated" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (bool)(arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_clear" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_load" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->load((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_load" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->load((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_load" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->load((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_load__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_load__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_load__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_load'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::load(std::string const &)\n" + " ofImage_< unsigned char >::load(ofBuffer const &)\n" " ofImage_< unsigned char >::load(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_loadImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_loadImage__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_loadImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::loadImage(std::string)\n" + " ofImage_< unsigned char >::loadImage(ofBuffer const &)\n" " ofImage_< unsigned char >::loadImage(ofFile const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofImage_< unsigned char > const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofImage_< unsigned char > const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned char > const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofImage_< unsigned char > const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofImage_< unsigned char >::draw(float,float) const\n" + " ofImage_< unsigned char >::draw(float,float,float) const\n" + " ofImage_< unsigned char >::draw(float,float,float,float) const\n" + " ofImage_< unsigned char >::draw(float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); + ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); + ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofImage_< unsigned char > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } if (argc == 10) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float) const\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned char >::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_update" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (bool)((ofImage_< unsigned char > const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned char > const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getTexture()\n" + " ofImage_< unsigned char >::getTexture() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned char > const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getTextureReference()\n" + " ofImage_< unsigned char >::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned char > const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ((ofImage_< unsigned char > const *)arg1)->bind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::bind(int) const\n" + " ofImage_< unsigned char >::bind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned char > const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ((ofImage_< unsigned char > const *)arg1)->unbind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::unbind(int) const\n" + " ofImage_< unsigned char >::unbind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setCompression" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); result = (ofPixels_< unsigned char > *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *) &((ofImage_< unsigned char > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getPixels()\n" + " ofImage_< unsigned char >::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *) &((ofImage_< unsigned char > const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getPixelsRef()\n" + " ofImage_< unsigned char >::getPixelsRef() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_getColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ((ofImage_< unsigned char > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofImage_< unsigned char > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::getColor(int,int) const\n" + " ofImage_< unsigned char >::getColor(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getHeight" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (float)((ofImage_< unsigned char > const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getWidth" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (float)((ofImage_< unsigned char > const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; + ofColor_< unsigned char > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } + arg4 = reinterpret_cast< ofColor_< unsigned char > * >(argp4); + (arg1)->setColor(arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; ofColor_< unsigned char > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } + arg3 = reinterpret_cast< ofColor_< unsigned char > * >(argp3); + (arg1)->setColor(arg2,(ofColor_< unsigned char > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->setColor((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::setColor(int,int,ofColor_< unsigned char > const &)\n" + " ofImage_< unsigned char >::setColor(int,ofColor_< unsigned char > const &)\n" + " ofImage_< unsigned char >::setColor(ofColor_< unsigned char > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; + ofPixels_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setFromPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); + (arg1)->setFromPixels((ofPixels_< unsigned char > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned char >::setFromPixels(unsigned char const *,int,int,ofImageType,bool)\n" + " ofImage_< unsigned char >::setFromPixels(unsigned char const *,int,int,ofImageType)\n" + " ofImage_< unsigned char >::setFromPixels(ofPixels_< unsigned char > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_grabScreen" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_grabScreen" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_grabScreen" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_grabScreen" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_grabScreen" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setImageType" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofImage_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_getImageType" "', argument " "1"" of type '" "ofImage_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + result = (ofImageType)((ofImage_< unsigned char > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_resize" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_resize" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_resize" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_crop" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_crop" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_crop" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_crop" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_crop" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofImage_< unsigned char > *arg2 = 0 ; int arg3 ; + int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_cropFrom" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofImage_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_cropFrom" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofImage_cropFrom" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofImage_cropFrom" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofImage_cropFrom" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_rotate90" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_mirror" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofImage_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->save(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->save(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_save" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->save((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_save__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_save__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_save__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_save__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_save'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::save(std::string,ofImageQualityType)\n" + " ofImage_< unsigned char >::save(std::string)\n" " ofImage_< unsigned char >::save(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned char >::save(ofBuffer &)\n" " ofImage_< unsigned char >::save(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned char >::save(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned char > *arg1 = (ofImage_< unsigned char > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofImage_saveImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofImage_saveImage__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofImage_saveImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned char >::saveImage(std::string,ofImageQualityType)\n" + " ofImage_< unsigned char >::saveImage(std::string)\n" + " ofImage_< unsigned char >::saveImage(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned char >::saveImage(ofBuffer &)\n" + " ofImage_< unsigned char >::saveImage(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned char >::saveImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *ofImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_unsigned_char_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFloatImage")) SWIG_fail; + result = (ofImage_< float > *)new ofImage_< float >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofImage_< float > *)new ofImage_< float >((ofPixels_< float > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofFile const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofFile const &""'"); } + arg1 = reinterpret_cast< ofFile * >(argp1); result = (ofImage_< float > *)new ofImage_< float >((ofFile const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofImage_< float > *)new ofImage_< float >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > const &""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofImage_< float > *)new ofImage_< float >((ofImage_< float > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_float_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > &&""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofImage_< float > *)new ofImage_< float >((ofImage_< float > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFloatImage__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_1(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_4(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_5(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatImage__SWIG_3(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::ofImage_()\n" + " ofImage_< float >::ofImage_(ofPixels_< float > const &)\n" " ofImage_< float >::ofImage_(ofFile const &)\n" + " ofImage_< float >::ofImage_(std::string const &)\n" " ofImage_< float >::ofImage_(ofImage_< float > const &)\n" + " ofImage_< float >::ofImage_(ofImage_< float > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_allocate" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_isAllocated" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)((ofImage_< float > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bAllocated" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)(arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_clear" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_load" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->load((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_load" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->load((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_load" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->load((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_load__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_load__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_load__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_load'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::load(std::string const &)\n" + " ofImage_< float >::load(ofBuffer const &)\n" " ofImage_< float >::load(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_loadImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_loadImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_loadImage__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_loadImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::loadImage(std::string)\n" + " ofImage_< float >::loadImage(ofBuffer const &)\n" " ofImage_< float >::loadImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofFloatImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFloatImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFloatImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofImage_< float > const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofImage_< float > const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< float > const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofImage_< float > const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< float > const *)arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofImage_< float > const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_draw" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofImage_< float > const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofImage_< float >::draw(float,float) const\n" + " ofImage_< float >::draw(float,float,float) const\n" " ofImage_< float >::draw(float,float,float,float) const\n" + " ofImage_< float >::draw(float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofFloatImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); + ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofFloatImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofFloatImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofFloatImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofFloatImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofFloatImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofImage_< float > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } + if (argc == 10) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::drawSubsection(float,float,float,float,float,float) const\n" + " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofImage_< float >::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_update" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (bool)((ofImage_< float > const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTexture" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTexture" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofTexture *) &((ofImage_< float > const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getTexture()\n" " ofImage_< float >::getTexture() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofTexture *) &((ofImage_< float > const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getTextureReference()\n" + " ofImage_< float >::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< float > const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_bind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ((ofImage_< float > const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::bind(int) const\n" " ofImage_< float >::bind() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_unbind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< float > const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_unbind" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ((ofImage_< float > const *)arg1)->unbind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::unbind(int) const\n" " ofImage_< float >::unbind() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofTexCompression arg2 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setCompression" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofPixels_< float > *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixels" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofPixels_< float > *) &((ofImage_< float > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getPixels()\n" " ofImage_< float >::getPixels() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (ofPixels_< float > *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofPixels_< float > *) &((ofImage_< float > const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getPixelsRef()\n" + " ofImage_< float >::getPixelsRef() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getColor" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_getColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ((ofImage_< float > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getColor" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofImage_< float > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::getColor(int,int) const\n" + " ofImage_< float >::getColor(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getHeight" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (float)((ofImage_< float > const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getWidth" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); result = (float)((ofImage_< float > const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; + ofColor_< float > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatImage_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } + arg4 = reinterpret_cast< ofColor_< float > * >(argp4); (arg1)->setColor(arg2,arg3,(ofColor_< float > const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; ofColor_< float > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } + arg3 = reinterpret_cast< ofColor_< float > * >(argp3); (arg1)->setColor(arg2,(ofColor_< float > const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setColor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->setColor((ofColor_< float > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::setColor(int,int,ofColor_< float > const &)\n" + " ofImage_< float >::setColor(int,ofColor_< float > const &)\n" + " ofImage_< float >::setColor(ofColor_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; + ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; + ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setFromPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< float > const &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); (arg1)->setFromPixels((ofPixels_< float > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::setFromPixels(float const *,int,int,ofImageType,bool)\n" + " ofImage_< float >::setFromPixels(float const *,int,int,ofImageType)\n" + " ofImage_< float >::setFromPixels(ofPixels_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_grabScreen" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_grabScreen" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_grabScreen" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_grabScreen" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_grabScreen" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setImageType" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImageType result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_getImageType" "', argument " "1"" of type '" "ofImage_< float > const *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + result = (ofImageType)((ofImage_< float > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_resize" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_resize" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_resize" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_crop" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_crop" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_crop" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_crop" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_crop" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofImage_< float > *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_cropFrom" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_cropFrom" "', argument " "2"" of type '" "ofImage_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_cropFrom" "', argument " "2"" of type '" "ofImage_< float > &""'"); } + arg2 = reinterpret_cast< ofImage_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_cropFrom" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatImage_cropFrom" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatImage_cropFrom" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatImage_cropFrom" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_rotate90" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_mirror" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatImage_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->save(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->save(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_save" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->save((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_save__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_save__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_save__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_save__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_save'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::save(std::string,ofImageQualityType)\n" + " ofImage_< float >::save(std::string)\n" " ofImage_< float >::save(ofBuffer &,ofImageQualityType)\n" + " ofImage_< float >::save(ofBuffer &)\n" " ofImage_< float >::save(ofFile const &,ofImageQualityType)\n" + " ofImage_< float >::save(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; std::string arg2 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< float > *arg1 = (ofImage_< float > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatImage_saveImage" "', argument " "1"" of type '" "ofImage_< float > *""'"); } + arg1 = reinterpret_cast< ofImage_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatImage_saveImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatImage_saveImage__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatImage_saveImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< float >::saveImage(std::string,ofImageQualityType)\n" + " ofImage_< float >::saveImage(std::string)\n" " ofImage_< float >::saveImage(ofBuffer &,ofImageQualityType)\n" + " ofImage_< float >::saveImage(ofBuffer &)\n" " ofImage_< float >::saveImage(ofFile const &,ofImageQualityType)\n" + " ofImage_< float >::saveImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *ofFloatImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_float_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortImage")) SWIG_fail; + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofPixels_< unsigned short > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFile *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofImage_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofFile const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofFile const &""'"); } + arg1 = reinterpret_cast< ofFile * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofFile const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofImage_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofImage_< unsigned short > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImage_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > &&""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofImage_< unsigned short > *)new ofImage_< unsigned short >((ofImage_< unsigned short > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofShortImage__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_1(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_4(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_5(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortImage__SWIG_3(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::ofImage_()\n" + " ofImage_< unsigned short >::ofImage_(ofPixels_< unsigned short > const &)\n" + " ofImage_< unsigned short >::ofImage_(ofFile const &)\n" " ofImage_< unsigned short >::ofImage_(std::string const &)\n" + " ofImage_< unsigned short >::ofImage_(ofImage_< unsigned short > const &)\n" + " ofImage_< unsigned short >::ofImage_(ofImage_< unsigned short > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; ofImageType arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_allocate" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_allocate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_allocate" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_isAllocated" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (bool)((ofImage_< unsigned short > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_bAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_bAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bAllocated" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (bool)(arg1)->bAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_clear" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_load" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->load((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_load" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->load((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_load" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_load" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->load((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_load__SWIG_1(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_load__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_load__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_load'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::load(std::string const &)\n" + " ofImage_< unsigned short >::load(ofBuffer const &)\n" " ofImage_< unsigned short >::load(ofFile const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadImage(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); result = (bool)(arg1)->loadImage((ofBuffer const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_loadImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_loadImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_loadImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); result = (bool)(arg1)->loadImage((ofFile const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_loadImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_loadImage__SWIG_1(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_loadImage__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_loadImage__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_loadImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::loadImage(std::string)\n" + " ofImage_< unsigned short >::loadImage(ofBuffer const &)\n" + " ofImage_< unsigned short >::loadImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofShortImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortImage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofPoint *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofImage_< unsigned short > const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofRectangle *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); + ((ofImage_< unsigned short > const *)arg1)->draw((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofPoint *arg2 = 0 ; + float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned short > const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_draw" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_draw" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofImage_< unsigned short > const *)arg1)->draw(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_draw__SWIG_0_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_draw__SWIG_0_1(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_0_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_draw__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n" " ofImage_< unsigned short >::draw(float,float) const\n" + " ofImage_< unsigned short >::draw(float,float,float) const\n" + " ofImage_< unsigned short >::draw(float,float,float,float) const\n" + " ofImage_< unsigned short >::draw(float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofShortImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; + float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofShortImage_drawSubsection",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_drawSubsection" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_drawSubsection" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_drawSubsection" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_drawSubsection" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_drawSubsection" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_drawSubsection" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofShortImage_drawSubsection" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofShortImage_drawSubsection" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofShortImage_drawSubsection" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofShortImage_drawSubsection" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); + ((ofImage_< unsigned short > const *)arg1)->drawSubsection(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_drawSubsection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_0(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_2(self, args);} } } } } } } } } } + if (argc == 10) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_drawSubsection__SWIG_3(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_drawSubsection'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float) const\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float,float) const\n" + " ofImage_< unsigned short >::drawSubsection(float,float,float,float,float,float,float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_update" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setUseTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_isUsingTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (bool)((ofImage_< unsigned short > const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTexture" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned short > const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getTexture()\n" + " ofImage_< unsigned short >::getTexture() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofTexture *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getTextureReference" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofTexture *) &((ofImage_< unsigned short > const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTextureReference__SWIG_0(self, args);} } + if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getTextureReference()\n" + " ofImage_< unsigned short >::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_bind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_bind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_bind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned short > const *)arg1)->bind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_bind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_bind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ((ofImage_< unsigned short > const *)arg1)->bind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_bind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_bind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_bind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_bind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::bind(int) const\n" + " ofImage_< unsigned short >::bind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_unbind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_unbind",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_unbind" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ((ofImage_< unsigned short > const *)arg1)->unbind(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_unbind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_unbind" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ((ofImage_< unsigned short > const *)arg1)->unbind(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_unbind(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_unbind__SWIG_1(self, args);} } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_unbind__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_unbind'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::unbind(int) const\n" + " ofImage_< unsigned short >::unbind() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_setCompression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofTexCompression arg2 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setCompression",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setCompression" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setCompression" "', argument " "2"" of type '" "ofTexCompression""'"); } + arg2 = static_cast< ofTexCompression >(val2); (arg1)->setCompression(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &((ofImage_< unsigned short > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getPixels()\n" + " ofImage_< unsigned short >::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getPixelsRef" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *) &((ofImage_< unsigned short > const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getPixelsRef()\n" + " ofImage_< unsigned short >::getPixelsRef() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_getColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ((ofImage_< unsigned short > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getColor" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_getColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofImage_< unsigned short > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::getColor(int,int) const\n" + " ofImage_< unsigned short >::getColor(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getHeight" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (float)((ofImage_< unsigned short > const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getWidth" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (float)((ofImage_< unsigned short > const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; + ofColor_< unsigned short > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortImage_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShortImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + arg4 = reinterpret_cast< ofColor_< unsigned short > * >(argp4); + (arg1)->setColor(arg2,arg3,(ofColor_< unsigned short > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; + ofColor_< unsigned short > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + arg3 = reinterpret_cast< ofColor_< unsigned short > * >(argp3); + (arg1)->setColor(arg2,(ofColor_< unsigned short > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setColor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->setColor((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_setColor__SWIG_2(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::setColor(int,int,ofColor_< unsigned short > const &)\n" + " ofImage_< unsigned short >::setColor(int,ofColor_< unsigned short > const &)\n" + " ofImage_< unsigned short >::setColor(ofColor_< unsigned short > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; bool arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_setFromPixels" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; int arg3 ; int arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setFromPixels" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_setFromPixels" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; + ofPixels_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setFromPixels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setFromPixels" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_setFromPixels" "', argument " "2"" of type '" "ofPixels_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); + (arg1)->setFromPixels((ofPixels_< unsigned short > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_setFromPixels__SWIG_2(self, args);} } } if (argc == 5) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_setFromPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofImage_< unsigned short >::setFromPixels(unsigned short const *,int,int,ofImageType,bool)\n" + " ofImage_< unsigned short >::setFromPixels(unsigned short const *,int,int,ofImageType)\n" + " ofImage_< unsigned short >::setFromPixels(ofPixels_< unsigned short > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_grabScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_grabScreen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_grabScreen" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_grabScreen" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_grabScreen" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_grabScreen" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_grabScreen" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->grabScreen(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setImageType" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_getImageType" "', argument " "1"" of type '" "ofImage_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + result = (ofImageType)((ofImage_< unsigned short > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_resize" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_resize" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_resize" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortImage_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_crop" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_crop" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_crop" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_crop" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_crop" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_cropFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofImage_< unsigned short > *arg2 = 0 ; int arg3 ; + int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortImage_cropFrom",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_cropFrom" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_cropFrom" "', argument " "2"" of type '" "ofImage_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofImage_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_cropFrom" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortImage_cropFrom" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortImage_cropFrom" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortImage_cropFrom" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->cropFrom(*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_rotate90" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_mirror" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setAnchorPercent" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_setAnchorPoint" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortImage_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortImage_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_resetAnchor" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->save(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->save(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; ofImageQualityType arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_save" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->save((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_save" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_save" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->save((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_save__SWIG_3(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_save__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_save__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_save__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_save'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::save(std::string,ofImageQualityType)\n" + " ofImage_< unsigned short >::save(std::string)\n" " ofImage_< unsigned short >::save(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned short >::save(ofBuffer &)\n" + " ofImage_< unsigned short >::save(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned short >::save(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; + ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; std::string arg2 ; + void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->saveImage(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; + ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofBuffer *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofBuffer &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); (arg1)->saveImage(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; + ofImageQualityType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortImage_saveImage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortImage_saveImage" "', argument " "3"" of type '" "ofImageQualityType""'"); } + arg3 = static_cast< ofImageQualityType >(val3); (arg1)->saveImage((ofFile const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofImage_< unsigned short > *arg1 = (ofImage_< unsigned short > *) 0 ; ofFile *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortImage_saveImage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofImage_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortImage_saveImage" "', argument " "1"" of type '" "ofImage_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofImage_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFile, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortImage_saveImage" "', argument " "2"" of type '" "ofFile const &""'"); } + arg2 = reinterpret_cast< ofFile * >(argp2); (arg1)->saveImage((ofFile const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortImage_saveImage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortImage_saveImage__SWIG_3(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortImage_saveImage__SWIG_5(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFile, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofImage_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortImage_saveImage__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortImage_saveImage'.\n" + " Possible C/C++ prototypes are:\n" " ofImage_< unsigned short >::saveImage(std::string,ofImageQualityType)\n" + " ofImage_< unsigned short >::saveImage(std::string)\n" + " ofImage_< unsigned short >::saveImage(ofBuffer &,ofImageQualityType)\n" + " ofImage_< unsigned short >::saveImage(ofBuffer &)\n" + " ofImage_< unsigned short >::saveImage(ofFile const &,ofImageQualityType)\n" + " ofImage_< unsigned short >::saveImage(ofFile const &)\n"); return 0; } +SWIGINTERN PyObject *ofShortImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofImage_T_unsigned_short_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; ofBaseApp *arg3 = (ofBaseApp *) 0 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundStreamSetup",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ofBaseApp, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "ofBaseApp *""'"); } + arg3 = reinterpret_cast< ofBaseApp * >(argp3); ofSoundStreamSetup(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStreamSetup",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSoundStreamSetup(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofSoundStreamSetup",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStreamSetup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStreamSetup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ofSoundStreamSetup(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; ofBaseApp *arg3 = (ofBaseApp *) 0 ; int arg4 ; int arg5 ; int arg6 ; int val1 ; int ecode1 = 0 ; + int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofSoundStreamSetup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSoundStreamSetup" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStreamSetup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ofBaseApp, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofSoundStreamSetup" "', argument " "3"" of type '" "ofBaseApp *""'"); } + arg3 = reinterpret_cast< ofBaseApp * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStreamSetup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStreamSetup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStreamSetup" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ofSoundStreamSetup(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamSetup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_0(self, args);} } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStreamSetup__SWIG_3(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStreamSetup'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStreamSetup(int,int,ofBaseApp *)\n" " ofSoundStreamSetup(int,int)\n" + " ofSoundStreamSetup(int,int,int,int,int)\n" " ofSoundStreamSetup(int,int,ofBaseApp *,int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStreamStop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamStop")) SWIG_fail; ofSoundStreamStop(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamStart")) SWIG_fail; ofSoundStreamStart(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamClose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamClose")) SWIG_fail; ofSoundStreamClose(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStreamListDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)":ofSoundStreamListDevices")) SWIG_fail; result = ofSoundStreamListDevices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofSoundStream")) SWIG_fail; + result = (ofSoundStream *)new ofSoundStream(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSoundStream, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; shared_ptr< ofBaseSoundStream > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setSoundStream",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseSoundStream_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setSoundStream" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundStream >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setSoundStream" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundStream >""'"); } + else { shared_ptr< ofBaseSoundStream > * temp = reinterpret_cast< shared_ptr< ofBaseSoundStream > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setSoundStream(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + shared_ptr< ofBaseSoundStream > result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getSoundStream",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (arg1)->getSoundStream(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseSoundStream >(static_cast< const shared_ptr< ofBaseSoundStream >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseSoundStream_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_printDeviceList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_printDeviceList",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_printDeviceList" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); ((ofSoundStream const *)arg1)->printDeviceList(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getDeviceList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getDeviceList",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getDeviceList" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = ((ofSoundStream const *)arg1)->getDeviceList(); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; + unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; + unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSoundStream_getMatchingDevices",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "3"" of type '" "unsigned int""'"); } + arg3 = static_cast< unsigned int >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "4"" of type '" "unsigned int""'"); } + arg4 = static_cast< unsigned int >(val4); + result = ((ofSoundStream const *)arg1)->getMatchingDevices((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundStream_getMatchingDevices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "3"" of type '" "unsigned int""'"); } + arg3 = static_cast< unsigned int >(val3); + result = ((ofSoundStream const *)arg1)->getMatchingDevices((std::string const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_getMatchingDevices",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_getMatchingDevices" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofSoundStream const *)arg1)->getMatchingDevices((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getMatchingDevices(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStream_getMatchingDevices__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_getMatchingDevices__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_getMatchingDevices__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_getMatchingDevices'.\n" + " Possible C/C++ prototypes are:\n" + " ofSoundStream::getMatchingDevices(std::string const &,unsigned int,unsigned int) const\n" + " ofSoundStream::getMatchingDevices(std::string const &,unsigned int) const\n" + " ofSoundStream::getMatchingDevices(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setDeviceID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setDeviceID",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setDeviceID" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStream_setDeviceID" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setDeviceID(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofSoundDevice *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setDevice",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setDevice" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofSoundDevice, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setDevice" "', argument " "2"" of type '" "ofSoundDevice const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setDevice" "', argument " "2"" of type '" "ofSoundDevice const &""'"); } + arg2 = reinterpret_cast< ofSoundDevice * >(argp2); (arg1)->setDevice((ofSoundDevice const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseApp *arg2 = (ofBaseApp *) 0 ; int arg3 ; int arg4 ; + int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofSoundStream_setup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setup" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseApp, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setup" "', argument " "2"" of type '" "ofBaseApp *""'"); } + arg2 = reinterpret_cast< ofBaseApp * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_setup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStream_setup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStream_setup" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofSoundStream_setup" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); result = (bool)(arg1)->setup(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofSoundStream_setup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setup" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundStream_setup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundStream_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSoundStream_setup" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSoundStream_setup" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofSoundStream_setup" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); result = (bool)(arg1)->setup(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_setup__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseApp, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundStream_setup__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_setup'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStream::setup(ofBaseApp *,int,int,int,int,int)\n" + " ofSoundStream::setup(int,int,int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setInput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundInput *arg2 = (ofBaseSoundInput *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setInput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setInput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseSoundInput, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setInput" "', argument " "2"" of type '" "ofBaseSoundInput *""'"); } + arg2 = reinterpret_cast< ofBaseSoundInput * >(argp2); (arg1)->setInput(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundInput *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setInput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setInput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBaseSoundInput, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setInput" "', argument " "2"" of type '" "ofBaseSoundInput &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setInput" "', argument " "2"" of type '" "ofBaseSoundInput &""'"); } + arg2 = reinterpret_cast< ofBaseSoundInput * >(argp2); (arg1)->setInput(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setInput(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundInput, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofSoundStream_setInput__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundInput, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStream_setInput__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_setInput'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStream::setInput(ofBaseSoundInput *)\n" + " ofSoundStream::setInput(ofBaseSoundInput &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setOutput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundOutput *arg2 = (ofBaseSoundOutput *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setOutput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setOutput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseSoundOutput, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setOutput" "', argument " "2"" of type '" "ofBaseSoundOutput *""'"); } + arg2 = reinterpret_cast< ofBaseSoundOutput * >(argp2); (arg1)->setOutput(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setOutput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; ofBaseSoundOutput *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundStream_setOutput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_setOutput" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBaseSoundOutput, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundStream_setOutput" "', argument " "2"" of type '" "ofBaseSoundOutput &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundStream_setOutput" "', argument " "2"" of type '" "ofBaseSoundOutput &""'"); } + arg2 = reinterpret_cast< ofBaseSoundOutput * >(argp2); (arg1)->setOutput(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_setOutput(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundOutput, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofSoundStream_setOutput__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundStream, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseSoundOutput, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundStream_setOutput__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundStream_setOutput'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundStream::setOutput(ofBaseSoundOutput *)\n" + " ofSoundStream::setOutput(ofBaseSoundOutput &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundStream_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_start" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->start(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_stop" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_close" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getTickCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long long result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getTickCount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getTickCount" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); + result = (unsigned long long)((ofSoundStream const *)arg1)->getTickCount(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getNumInputChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getNumInputChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getNumInputChannels" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getNumInputChannels(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getNumOutputChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getNumOutputChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getNumOutputChannels" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getNumOutputChannels(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getSampleRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getSampleRate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getSampleRate" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getSampleRate(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_getBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_getBufferSize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_getBufferSize" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = (int)((ofSoundStream const *)arg1)->getBufferSize(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundStream_listDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundStream_listDevices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundStream_listDevices" "', argument " "1"" of type '" "ofSoundStream const *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); result = ((ofSoundStream const *)arg1)->listDevices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >(static_cast< const std::vector< ofSoundDevice,std::allocator< ofSoundDevice > >& >(result))), SWIGTYPE_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofSoundStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundStream *arg1 = (ofSoundStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSoundStream",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundStream, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSoundStream" "', argument " "1"" of type '" "ofSoundStream *""'"); } + arg1 = reinterpret_cast< ofSoundStream * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofSoundStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofSoundStream, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofSoundPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofSoundPlayer")) SWIG_fail; + result = (ofSoundPlayer *)new ofSoundPlayer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSoundPlayer, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; SwigValueWrapper< shared_ptr< ofBaseSoundPlayer > > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPlayer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseSoundPlayer_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSoundPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundPlayer >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSoundPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseSoundPlayer >""'"); } + else { shared_ptr< ofBaseSoundPlayer > * temp = reinterpret_cast< shared_ptr< ofBaseSoundPlayer > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setPlayer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseSoundPlayer > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (arg1)->getPlayer(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseSoundPlayer >(static_cast< const shared_ptr< ofBaseSoundPlayer >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseSoundPlayer_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundPlayer_load",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_load" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundPlayer_load" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); result = (bool)(arg1)->load(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_load" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundPlayer_load__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundPlayer_load__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundPlayer_load'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundPlayer::load(std::string,bool)\n" " ofSoundPlayer::load(std::string)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSoundPlayer_loadSound",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_loadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_loadSound" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSoundPlayer_loadSound" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); result = (bool)(arg1)->loadSound(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_loadSound",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_loadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSoundPlayer_loadSound" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadSound(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_loadSound(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSoundPlayer_loadSound__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSoundPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSoundPlayer_loadSound__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSoundPlayer_loadSound'.\n" + " Possible C/C++ prototypes are:\n" " ofSoundPlayer::loadSound(std::string,bool)\n" + " ofSoundPlayer::loadSound(std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_unload",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_unload" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->unload(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_unloadSound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_unloadSound",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_unloadSound" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->unloadSound(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_play(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_play",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_play" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->play(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_stop" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setVolume",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setVolume" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setVolume" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setVolume(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPan",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPan" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPan" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setPan(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setSpeed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setSpeed" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setSpeed" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSpeed(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPaused",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPaused" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPaused" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setPaused(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setLoop",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setLoop" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setLoop" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setLoop(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setMultiPlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setMultiPlay",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setMultiPlay" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setMultiPlay" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setMultiPlay(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPosition",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPosition" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPosition" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setPosition(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_setPositionMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSoundPlayer_setPositionMS",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_setPositionMS" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSoundPlayer_setPositionMS" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setPositionMS(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPositionMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPositionMS",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPositionMS" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (int)((ofSoundPlayer const *)arg1)->getPositionMS(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPosition",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPosition" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getPosition(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_isPlaying(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_isPlaying",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_isPlaying" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)((ofSoundPlayer const *)arg1)->isPlaying(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getIsPlaying(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getIsPlaying",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getIsPlaying" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)((ofSoundPlayer const *)arg1)->getIsPlaying(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getSpeed",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getSpeed" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getSpeed(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getPan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getPan",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getPan" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getPan(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_getVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_getVolume",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_getVolume" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (float)((ofSoundPlayer const *)arg1)->getVolume(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSoundPlayer_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSoundPlayer_isLoaded",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSoundPlayer_isLoaded" "', argument " "1"" of type '" "ofSoundPlayer const *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); result = (bool)((ofSoundPlayer const *)arg1)->isLoaded(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofSoundPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSoundPlayer *arg1 = (ofSoundPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSoundPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSoundPlayer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSoundPlayer" "', argument " "1"" of type '" "ofSoundPlayer *""'"); } + arg1 = reinterpret_cast< ofSoundPlayer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofSoundPlayer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofSoundPlayer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofColor")) SWIG_fail; + result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofColor" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofColor",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > const &""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); + result = (ofColor_< unsigned char > *)new ofColor_< unsigned char >((ofColor_< unsigned char > const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofColor__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofColor__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofColor__SWIG_5(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofColor__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofColor__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofColor'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::ofColor_()\n" + " ofColor_< unsigned char >::ofColor_(float,float,float,float)\n" + " ofColor_< unsigned char >::ofColor_(float,float,float)\n" " ofColor_< unsigned char >::ofColor_(float,float)\n" + " ofColor_< unsigned char >::ofColor_(float)\n" + " ofColor_< unsigned char >::ofColor_(ofColor_< unsigned char > const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_fromHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_fromHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_fromHsb__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_fromHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::fromHsb(float,float,float,float)\n" + " ofColor_< unsigned char >::fromHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_fromHex",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_fromHex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_fromHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofColor_fromHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_fromHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::fromHex(int,float)\n" + " ofColor_< unsigned char >::fromHex(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofColor_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofColor_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_set" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_set" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->set((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor_set__SWIG_4(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_set'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::set(float,float,float,float)\n" + " ofColor_< unsigned char >::set(float,float,float)\n" " ofColor_< unsigned char >::set(float,float)\n" + " ofColor_< unsigned char >::set(float)\n" " ofColor_< unsigned char >::set(ofColor_< unsigned char > const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofColor_setHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_setHex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setHex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHex__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHex__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_setHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::setHex(int,float)\n" + " ofColor_< unsigned char >::setHex(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHue" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHue" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setHueAngle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setSaturation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setSaturation" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setSaturation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setBrightness",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setBrightness" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setBrightness" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofColor_setHsb" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor_setHsb__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor_setHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::setHsb(float,float,float,float)\n" + " ofColor_< unsigned char >::setHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_clamp",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_clamp" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->clamp(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_invert",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_invert" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->invert(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_normalize" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); result = (ofColor_< unsigned char > *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_lerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_lerp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_lerp" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_lerp" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = (ofColor_< unsigned char > *) &(arg1)->lerp((ofColor_< unsigned char > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getClamped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getClamped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getClamped" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = ((ofColor_< unsigned char > const *)arg1)->getClamped(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getInverted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getInverted",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getInverted" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = ((ofColor_< unsigned char > const *)arg1)->getInverted(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned char > result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getNormalized" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = ((ofColor_< unsigned char > const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getLerped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofColor_getLerped",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getLerped" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofColor_getLerped" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = ((ofColor_< unsigned char > const *)arg1)->getLerped((ofColor_< unsigned char > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHex" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (int)((ofColor_< unsigned char > const *)arg1)->getHex(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHue" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getHue(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getHueAngle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getHueAngle(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getSaturation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getSaturation" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getSaturation(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getBrightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getBrightness" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getBrightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getLightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getLightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getLightness" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (float)((ofColor_< unsigned char > const *)arg1)->getLightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getHsb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofColor_getHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getHsb" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< unsigned char > const *)arg1)->getHsb(*arg2,*arg3,*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofColor_limit")) SWIG_fail; + result = (float)ofColor_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR limit(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___eq__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (bool)((ofColor_< unsigned char > const *)arg1)->operator ==((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___ne__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (bool)((ofColor_< unsigned char > const *)arg1)->operator !=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator +((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___add__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator +((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator +=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___iadd__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator +=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator +=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator +=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator -((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___sub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator -((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator -=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___isub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator -=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___isub____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator -=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator -=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator *((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___mul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator *((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator *=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___imul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator *=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator *=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator *=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = ((ofColor_< unsigned char > const *)arg1)->operator /((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___div__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned char > const *)arg1)->operator /((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofColor___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); + result = (ofColor_< unsigned char > *) &(arg1)->operator /=((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___idiv__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned char > *) &(arg1)->operator /=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofColor___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator /=(ofColor_< unsigned char > const &)\n" + " ofColor_< unsigned char >::operator /=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); + result = (unsigned char *) &((ofColor_< unsigned char > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (unsigned char *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofColor___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofColor___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned char >::operator [](std::size_t) const\n" + " ofColor_< unsigned char >::operator [](std::size_t)\n"); return 0; } +SWIGINTERN int Swig_var_ofColor_white_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_white is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_white_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::white), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_gray_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_gray is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_gray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_black_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_black is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_black_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::black), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_red_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_red is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_red_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::red), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_green_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_green is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_green_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::green), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_blue_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_blue is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_cyan_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_cyan is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_magenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_magenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_magenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::magenta), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_yellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_yellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_yellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::yellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_aliceBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_aliceBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_aliceBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aliceBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_antiqueWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_antiqueWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_antiqueWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::antiqueWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_aqua_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_aqua is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_aqua_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aqua), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_aquamarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_aquamarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_aquamarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::aquamarine), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_azure_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_azure is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_azure_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::azure), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_beige_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_beige is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_beige_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::beige), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_bisque_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_bisque is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_bisque_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::bisque), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_blanchedAlmond_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_blanchedAlmond is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blanchedAlmond), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_blueViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_blueViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blueViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blueViolet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_brown_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_brown is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_brown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::brown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_burlyWood_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_burlyWood is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_burlyWood_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::burlyWood), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_cadetBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_cadetBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cadetBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cadetBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_chartreuse_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_chartreuse is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_chartreuse_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::chartreuse), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_chocolate_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_chocolate is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_chocolate_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::chocolate), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_coral_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_coral is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_coral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::coral), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_cornflowerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_cornflowerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cornflowerBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_cornsilk_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_cornsilk is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_cornsilk_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::cornsilk), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_crimson_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_crimson is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_crimson_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::crimson), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkCyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkKhaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkKhaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkKhaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkKhaki), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkMagenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkMagenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkMagenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkMagenta), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkOliveGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkOliveGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkOliveGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkorange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkorange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkorange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkorange), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkOrchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSalmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_darkViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_darkViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_darkViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::darkViolet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_deepPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_deepPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_deepPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::deepPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_deepSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_deepSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::deepSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_dimGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_dimGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_dimGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dimGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_dimGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_dimGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_dimGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dimGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_dodgerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_dodgerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_dodgerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::dodgerBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_fireBrick_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_fireBrick is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_fireBrick_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::fireBrick), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_floralWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_floralWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_floralWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::floralWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_forestGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_forestGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_forestGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::forestGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_fuchsia_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_fuchsia is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_fuchsia_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::fuchsia), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_gainsboro_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_gainsboro is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_gainsboro_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gainsboro), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_ghostWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_ghostWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_ghostWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::ghostWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_gold_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_gold is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_gold_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::gold), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_goldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_goldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_goldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::goldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_grey_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_grey is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_grey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::grey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_greenYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_greenYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_greenYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::greenYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_honeyDew_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_honeyDew is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_honeyDew_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::honeyDew), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_hotPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_hotPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_hotPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::hotPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_indianRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_indianRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_indianRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::indianRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_indigo_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_indigo is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_indigo_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::indigo), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_ivory_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_ivory is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_ivory_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::ivory), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_khaki_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_khaki is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_khaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::khaki), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lavender_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lavender is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lavender_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lavender), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lavenderBlush_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lavenderBlush is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lavenderBlush_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lavenderBlush), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lawnGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lawnGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lawnGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lawnGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lemonChiffon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lemonChiffon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lemonChiffon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lemonChiffon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightCoral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightCoral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightCoral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightCoral), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightCyan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGoldenRodYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGoldenRodYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightPink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSalmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSlateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightSteelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightSteelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightSteelBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lightYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_lightYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lightYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lightYellow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_lime_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_lime is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_lime_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::lime), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_limeGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_limeGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_limeGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::limeGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_linen_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_linen is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_linen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::linen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_maroon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_maroon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_maroon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::maroon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumAquaMarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumAquaMarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumOrchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumPurple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumPurple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumPurple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumPurple), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumSpringGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumSpringGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mediumVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mediumVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mediumVioletRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_midnightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_midnightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_midnightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::midnightBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mintCream_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mintCream is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mintCream_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mintCream), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_mistyRose_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_mistyRose is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_mistyRose_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::mistyRose), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_moccasin_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_moccasin is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_moccasin_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::moccasin), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_navajoWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_navajoWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_navajoWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::navajoWhite), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_navy_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_navy is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_navy_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::navy), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_oldLace_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_oldLace is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_oldLace_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::oldLace), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_olive_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_olive is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_olive_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::olive), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_oliveDrab_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_oliveDrab is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_oliveDrab_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::oliveDrab), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_orange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_orange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_orange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orange), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_orangeRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_orangeRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_orangeRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orangeRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_orchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_orchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_orchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::orchid), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_paleGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_paleGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_paleTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleTurquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_paleVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_paleVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_paleVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::paleVioletRed), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_papayaWhip_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_papayaWhip is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_papayaWhip_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::papayaWhip), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_peachPuff_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_peachPuff is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_peachPuff_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::peachPuff), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_peru_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_peru is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_peru_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::peru), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_pink_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_pink is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_pink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::pink), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_plum_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_plum is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_plum_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::plum), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_powderBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_powderBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_powderBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::powderBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_purple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_purple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_purple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::purple), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_rosyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_rosyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_rosyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::rosyBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_royalBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_royalBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_royalBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::royalBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_saddleBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_saddleBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_saddleBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::saddleBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_salmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_salmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_salmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::salmon), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_sandyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_sandyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_sandyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::sandyBrown), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_seaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_seaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_seaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::seaGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_seaShell_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_seaShell is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_seaShell_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::seaShell), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_sienna_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_sienna is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_sienna_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::sienna), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_silver_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_silver is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_silver_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::silver), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_skyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_skyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_skyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::skyBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_slateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_slateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_slateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_slateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateGray), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_slateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_slateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_slateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::slateGrey), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_snow_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_snow is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_snow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::snow), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_springGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_springGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_springGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::springGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_steelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_steelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_steelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::steelBlue), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_blueSteel_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_blueSteel is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_blueSteel_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::blueSteel), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_tan_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_tan is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_tan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::tan), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_teal_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_teal is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_teal_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::teal), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_thistle_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_thistle is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_thistle_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::thistle), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_tomato_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_tomato is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_tomato_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::tomato), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_turquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_turquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_turquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::turquoise), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_violet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_violet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_violet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::violet), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_wheat_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable ofColor_wheat is read-only."); + return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_wheat_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::wheat), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_whiteSmoke_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_whiteSmoke is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_whiteSmoke_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::whiteSmoke), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofColor_yellowGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofColor_yellowGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofColor_yellowGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned char >::yellowGreen), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 ); + return pyobj; } +SWIGINTERN PyObject *_wrap_ofColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getR",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getR" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getR(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getG",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getG" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getG(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getB",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getB" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getB(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_getA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_getA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_getA" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__getA(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setR",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setR" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setR" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setR(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setG",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setG" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setG" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setG(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setB",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setB" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setB" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setB(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_setA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_setA",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_setA" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_setA" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__setA(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofColor___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor___str__" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (char *)ofColor__Sl_unsigned_SS_char_Sg____str__(arg1); resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_r_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_r_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_r_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__r_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_r_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_r_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__r_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_g_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_g_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_g_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__g_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_g_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_g_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__g_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_b_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_b_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__b_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_b_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__b_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofColor_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_a_set" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofColor_a_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ofColor__Sl_unsigned_SS_char_Sg__a_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofColor_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:ofColor_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofColor_a_get" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); + result = (unsigned char)ofColor__Sl_unsigned_SS_char_Sg__a_get(arg1); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned char > *arg1 = (ofColor_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofColor" "', argument " "1"" of type '" "ofColor_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned char > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *ofColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFloatColor")) SWIG_fail; + result = (ofColor_< float > *)new ofColor_< float >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofFloatColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofFloatColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofFloatColor" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofFloatColor",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofFloatColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofFloatColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< float > *)new ofColor_< float >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofColor_< float > *)new ofColor_< float >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofFloatColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > const &""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofFloatColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< float > *)new ofColor_< float >((ofColor_< float > const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFloatColor__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofFloatColor__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_5(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofFloatColor__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatColor'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::ofColor_()\n" + " ofColor_< float >::ofColor_(float,float,float,float)\n" " ofColor_< float >::ofColor_(float,float,float)\n" + " ofColor_< float >::ofColor_(float,float)\n" " ofColor_< float >::ofColor_(float)\n" + " ofColor_< float >::ofColor_(ofColor_< float > const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_fromHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHsb__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_fromHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::fromHsb(float,float,float,float)\n" + " ofColor_< float >::fromHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_fromHex",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_fromHex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_fromHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_fromHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_fromHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::fromHex(int,float)\n" " ofColor_< float >::fromHex(int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatColor_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatColor_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_set" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->set((ofColor_< float > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor_set__SWIG_4(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_set'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::set(float,float,float,float)\n" + " ofColor_< float >::set(float,float,float)\n" " ofColor_< float >::set(float,float)\n" + " ofColor_< float >::set(float)\n" " ofColor_< float >::set(ofColor_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_setHex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHex" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setHex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHex" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHex__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHex__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_setHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::setHex(int,float)\n" " ofColor_< float >::setHex(int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHue" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHue" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setHueAngle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setSaturation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setSaturation" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setSaturation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setBrightness",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setBrightness" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setBrightness" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHsb" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatColor_setHsb" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setHsb" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor_setHsb__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor_setHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::setHsb(float,float,float,float)\n" + " ofColor_< float >::setHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_clamp",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_clamp" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->clamp(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_invert",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_invert" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->invert(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_normalize" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (ofColor_< float > *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_lerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_lerp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_lerp" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_lerp" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_lerp" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_lerp" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< float > *) &(arg1)->lerp((ofColor_< float > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getClamped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getClamped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getClamped" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getClamped(); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getInverted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getInverted",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getInverted" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getInverted(); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getNormalized" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = ((ofColor_< float > const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getLerped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatColor_getLerped",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getLerped" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_getLerped" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getLerped" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatColor_getLerped" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = ((ofColor_< float > const *)arg1)->getLerped((ofColor_< float > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHex" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (int)((ofColor_< float > const *)arg1)->getHex(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHue" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getHue(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getHueAngle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHueAngle" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getHueAngle(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getSaturation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getSaturation" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getSaturation(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getBrightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getBrightness" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getBrightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getLightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getLightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getLightness" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)((ofColor_< float > const *)arg1)->getLightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getHsb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatColor_getHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getHsb" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< float > const *)arg1)->getHsb(*arg2,*arg3,*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofFloatColor_limit")) SWIG_fail; + result = (float)ofColor_< float >::SWIGTEMPLATEDISAMBIGUATOR limit(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___eq__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___eq__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___eq__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (bool)((ofColor_< float > const *)arg1)->operator ==((ofColor_< float > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___ne__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___ne__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___ne__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (bool)((ofColor_< float > const *)arg1)->operator !=((ofColor_< float > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___add__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator +((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___add__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___add__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator +((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___iadd__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator +=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___iadd__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___iadd__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator +=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator +=(ofColor_< float > const &)\n" + " ofColor_< float >::operator +=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___sub__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator -((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___sub__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___sub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator -((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___isub__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator -=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___isub__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___isub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator -=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___isub____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator -=(ofColor_< float > const &)\n" + " ofColor_< float >::operator -=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___mul__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator *((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___mul__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___mul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator *((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___imul__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator *=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___imul__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___imul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator *=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator *=(ofColor_< float > const &)\n" + " ofColor_< float >::operator *=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___div__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = ((ofColor_< float > const *)arg1)->operator /((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___div__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___div__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< float > const *)arg1)->operator /((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofFloatColor___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___idiv__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); + result = (ofColor_< float > *) &(arg1)->operator /=((ofColor_< float > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___idiv__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___idiv__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< float > *) &(arg1)->operator /=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatColor___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator /=(ofColor_< float > const &)\n" + " ofColor_< float >::operator /=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___getitem__" "', argument " "1"" of type '" "ofColor_< float > const *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (float *) &((ofColor_< float > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___getitem__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatColor___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatColor___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< float >::operator [](std::size_t) const\n" + " ofColor_< float >::operator [](std::size_t)\n"); return 0; } +SWIGINTERN int Swig_var_ofFloatColor_white_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_white is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_white_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::white), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_gray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_gray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_black_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_black is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_black_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::black), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_red_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_red is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_red_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::red), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_green_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_green is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_green_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::green), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_blue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_cyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_magenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_magenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_magenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::magenta), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_yellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_yellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_yellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::yellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_aliceBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aliceBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_aliceBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aliceBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_antiqueWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_antiqueWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_antiqueWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::antiqueWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_aqua_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aqua is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_aqua_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aqua), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_aquamarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_aquamarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_aquamarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::aquamarine), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_azure_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_azure is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_azure_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::azure), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_beige_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_beige is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_beige_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::beige), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_bisque_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_bisque is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_bisque_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::bisque), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_blanchedAlmond_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blanchedAlmond is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blanchedAlmond), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_blueViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blueViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blueViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blueViolet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_brown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_brown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_brown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::brown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_burlyWood_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_burlyWood is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_burlyWood_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::burlyWood), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_cadetBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cadetBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cadetBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cadetBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_chartreuse_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_chartreuse is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_chartreuse_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::chartreuse), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_chocolate_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_chocolate is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_chocolate_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::chocolate), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_coral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_coral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_coral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::coral), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_cornflowerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cornflowerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cornflowerBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_cornsilk_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_cornsilk is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_cornsilk_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::cornsilk), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_crimson_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_crimson is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_crimson_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::crimson), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkCyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGoldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkKhaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkKhaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkKhaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkKhaki), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkMagenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkMagenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkMagenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkMagenta), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkOliveGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkOliveGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkOliveGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkorange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkorange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkorange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkorange), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkOrchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSalmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkSlateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_darkViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_darkViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_darkViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::darkViolet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_deepPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_deepPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_deepPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::deepPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_deepSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_deepSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::deepSkyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_dimGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dimGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_dimGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dimGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_dimGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dimGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_dimGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dimGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_dodgerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_dodgerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_dodgerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::dodgerBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_fireBrick_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_fireBrick is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_fireBrick_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::fireBrick), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_floralWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_floralWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_floralWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::floralWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_forestGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_forestGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_forestGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::forestGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_fuchsia_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_fuchsia is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_fuchsia_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::fuchsia), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_gainsboro_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gainsboro is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_gainsboro_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gainsboro), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_ghostWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_ghostWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_ghostWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::ghostWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_gold_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_gold is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_gold_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::gold), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_goldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_goldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_goldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::goldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_grey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_grey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_grey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::grey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_greenYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_greenYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_greenYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::greenYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_honeyDew_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_honeyDew is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_honeyDew_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::honeyDew), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_hotPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_hotPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_hotPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::hotPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_indianRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_indianRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_indianRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::indianRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_indigo_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_indigo is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_indigo_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::indigo), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_ivory_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_ivory is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_ivory_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::ivory), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_khaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_khaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_khaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::khaki), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lavender_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lavender is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lavender_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lavender), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lavenderBlush_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lavenderBlush is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lavenderBlush_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lavenderBlush), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lawnGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lawnGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lawnGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lawnGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lemonChiffon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lemonChiffon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lemonChiffon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lemonChiffon), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightCoral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightCoral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightCoral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightCoral), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightCyan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightGoldenRodYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGoldenRodYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightPink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSalmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSkyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSlateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSlateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightSteelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightSteelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightSteelBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lightYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lightYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lightYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lightYellow), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_lime_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_lime is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_lime_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::lime), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_limeGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_limeGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_limeGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::limeGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_linen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_linen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_linen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::linen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_maroon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_maroon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_maroon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::maroon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumAquaMarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumAquaMarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumOrchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumPurple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumPurple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumPurple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumPurple), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumSpringGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumSpringGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mediumVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mediumVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mediumVioletRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_midnightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_midnightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_midnightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::midnightBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mintCream_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mintCream is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mintCream_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mintCream), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_mistyRose_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_mistyRose is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_mistyRose_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::mistyRose), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_moccasin_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_moccasin is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_moccasin_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::moccasin), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_navajoWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_navajoWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_navajoWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::navajoWhite), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_navy_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_navy is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_navy_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::navy), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_oldLace_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_oldLace is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_oldLace_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::oldLace), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_olive_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_olive is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_olive_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::olive), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_oliveDrab_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_oliveDrab is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_oliveDrab_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::oliveDrab), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_orange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_orange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orange), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_orangeRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orangeRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_orangeRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orangeRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_orchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_orchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_orchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::orchid), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_paleGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleGoldenRod), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_paleGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_paleTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleTurquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_paleVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_paleVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_paleVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::paleVioletRed), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_papayaWhip_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_papayaWhip is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_papayaWhip_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::papayaWhip), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_peachPuff_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_peachPuff is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_peachPuff_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::peachPuff), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_peru_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_peru is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_peru_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::peru), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_pink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_pink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_pink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::pink), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_plum_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_plum is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_plum_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::plum), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_powderBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_powderBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_powderBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::powderBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_purple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_purple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_purple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::purple), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_rosyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_rosyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_rosyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::rosyBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_royalBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_royalBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_royalBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::royalBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_saddleBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_saddleBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_saddleBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::saddleBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_salmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_salmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_salmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::salmon), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_sandyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_sandyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_sandyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::sandyBrown), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_seaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_seaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_seaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::seaGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_seaShell_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_seaShell is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_seaShell_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::seaShell), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_sienna_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_sienna is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_sienna_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::sienna), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_silver_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_silver is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_silver_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::silver), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_skyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_skyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_skyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::skyBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_slateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_slateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_slateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_slateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateGray), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_slateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_slateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_slateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::slateGrey), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_snow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_snow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_snow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::snow), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_springGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_springGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_springGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::springGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_steelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_steelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_steelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::steelBlue), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_blueSteel_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_blueSteel is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_blueSteel_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::blueSteel), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_tan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_tan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_tan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::tan), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_teal_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_teal is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_teal_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::teal), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_thistle_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_thistle is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_thistle_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::thistle), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_tomato_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_tomato is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_tomato_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::tomato), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_turquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_turquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_turquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::turquoise), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_violet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_violet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_violet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::violet), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_wheat_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_wheat is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_wheat_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::wheat), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_whiteSmoke_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_whiteSmoke is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_whiteSmoke_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::whiteSmoke), SWIGTYPE_p_ofColor_T_float_t, 0 ); return pyobj; } +SWIGINTERN int Swig_var_ofFloatColor_yellowGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofFloatColor_yellowGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofFloatColor_yellowGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< float >::yellowGreen), SWIGTYPE_p_ofColor_T_float_t, 0 ); + return pyobj; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getR",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getR" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getR(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getG",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getG" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getG(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getB",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getB" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getB(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_getA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_getA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_getA" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__getA(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setR",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setR" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setR" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setR(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setG",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setG" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setG" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setG(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setB",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setB" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setB" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setB(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_setA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_setA",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_setA" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_setA" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__setA(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor___str__" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (char *)ofColor__Sl_float_Sg____str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_r_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_r_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_r_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__r_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_r_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_r_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__r_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_g_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_g_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_g_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__g_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_g_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_g_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__g_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_b_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_b_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__b_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_b_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__b_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatColor_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_a_set" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatColor_a_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofColor__Sl_float_Sg__a_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatColor_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatColor_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatColor_a_get" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); result = (float)ofColor__Sl_float_Sg__a_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofFloatColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< float > *arg1 = (ofColor_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFloatColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFloatColor" "', argument " "1"" of type '" "ofColor_< float > *""'"); } + arg1 = reinterpret_cast< ofColor_< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofFloatColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofColor_T_float_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortColor")) SWIG_fail; + result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofShortColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofShortColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofShortColor" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofShortColor",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofShortColor" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofShortColor",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofShortColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofShortColor" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); + result = (ofColor_< unsigned short > *)new ofColor_< unsigned short >((ofColor_< unsigned short > const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofShortColor__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofShortColor__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_5(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofShortColor__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortColor'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::ofColor_()\n" + " ofColor_< unsigned short >::ofColor_(float,float,float,float)\n" + " ofColor_< unsigned short >::ofColor_(float,float,float)\n" " ofColor_< unsigned short >::ofColor_(float,float)\n" + " ofColor_< unsigned short >::ofColor_(float)\n" + " ofColor_< unsigned short >::ofColor_(ofColor_< unsigned short > const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_fromHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_fromHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); + result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortColor_fromHsb",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHsb" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_fromHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHsb(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHsb__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHsb__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_fromHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::fromHsb(float,float,float,float)\n" + " ofColor_< unsigned short >::fromHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; float arg2 ; int val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_fromHex",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_fromHex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_fromHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortColor_fromHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR fromHex(arg1); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_fromHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_fromHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_fromHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::fromHex(int,float)\n" + " ofColor_< unsigned short >::fromHex(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortColor_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortColor_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortColor_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor_set" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_set" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->set((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor_set__SWIG_4(self, args);} } } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_set__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_set'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::set(float,float,float,float)\n" + " ofColor_< unsigned short >::set(float,float,float)\n" " ofColor_< unsigned short >::set(float,float)\n" + " ofColor_< unsigned short >::set(float)\n" " ofColor_< unsigned short >::set(ofColor_< unsigned short > const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; int arg2 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortColor_setHex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_setHex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setHex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setHex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHex" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setHex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_setHex__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_setHex__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_setHex'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::setHex(int,float)\n" + " ofColor_< unsigned short >::setHex(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setHue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHue" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHue" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setHueAngle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHueAngle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHueAngle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setSaturation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setSaturation" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setSaturation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSaturation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setBrightness",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setBrightness" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setBrightness" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setBrightness(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHsb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortColor_setHsb",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortColor_setHsb" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setHsb(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHsb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float arg2 ; float arg3 ; + float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_setHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setHsb" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setHsb" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_setHsb" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortColor_setHsb" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setHsb(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setHsb(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_setHsb__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor_setHsb__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor_setHsb'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::setHsb(float,float,float,float)\n" + " ofColor_< unsigned short >::setHsb(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor_clamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_clamp",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_clamp" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); result = (ofColor_< unsigned short > *) &(arg1)->clamp(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_invert",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_invert" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); result = (ofColor_< unsigned short > *) &(arg1)->invert(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_normalize" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); result = (ofColor_< unsigned short > *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_lerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; ofColor_< unsigned short > *arg2 = 0 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortColor_lerp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_lerp" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_lerp" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_lerp" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = (ofColor_< unsigned short > *) &(arg1)->lerp((ofColor_< unsigned short > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getClamped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getClamped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getClamped" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = ((ofColor_< unsigned short > const *)arg1)->getClamped(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getInverted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getInverted",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getInverted" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = ((ofColor_< unsigned short > const *)arg1)->getInverted(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getNormalized" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = ((ofColor_< unsigned short > const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getLerped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; ofColor_< unsigned short > *arg2 = 0 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortColor_getLerped",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getLerped" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_getLerped" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortColor_getLerped" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); + result = ((ofColor_< unsigned short > const *)arg1)->getLerped((ofColor_< unsigned short > const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getHex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getHex" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (int)((ofColor_< unsigned short > const *)arg1)->getHex(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getHue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getHue" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (float)((ofColor_< unsigned short > const *)arg1)->getHue(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getHueAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getHueAngle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getHueAngle" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (float)((ofColor_< unsigned short > const *)arg1)->getHueAngle(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getSaturation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getSaturation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getSaturation" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (float)((ofColor_< unsigned short > const *)arg1)->getSaturation(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getBrightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getBrightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getBrightness" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (float)((ofColor_< unsigned short > const *)arg1)->getBrightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getLightness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getLightness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getLightness" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (float)((ofColor_< unsigned short > const *)arg1)->getLightness(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getHsb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortColor_getHsb",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getHsb" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_getHsb" "', argument " "2"" of type '" "float &""'"); } + arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_getHsb" "', argument " "3"" of type '" "float &""'"); } + arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShortColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor_getHsb" "', argument " "4"" of type '" "float &""'"); } + arg4 = reinterpret_cast< float * >(argp4); ((ofColor_< unsigned short > const *)arg1)->getHsb(*arg2,*arg3,*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofShortColor_limit")) SWIG_fail; + result = (float)ofColor_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR limit(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___eq__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___eq__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = (bool)((ofColor_< unsigned short > const *)arg1)->operator ==((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___ne__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___ne__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = (bool)((ofColor_< unsigned short > const *)arg1)->operator !=((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___add__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = ((ofColor_< unsigned short > const *)arg1)->operator +((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___add__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___add__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned short > const *)arg1)->operator +((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___add____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofShortColor___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___iadd__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = (ofColor_< unsigned short > *) &(arg1)->operator +=((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___iadd__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___iadd__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned short > *) &(arg1)->operator +=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___iadd____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator +=(ofColor_< unsigned short > const &)\n" + " ofColor_< unsigned short >::operator +=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___sub__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = ((ofColor_< unsigned short > const *)arg1)->operator -((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___sub__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___sub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned short > const *)arg1)->operator -((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___sub____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofShortColor___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___isub__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = (ofColor_< unsigned short > *) &(arg1)->operator -=((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___isub__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___isub__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned short > *) &(arg1)->operator -=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___isub____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___isub____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator -=(ofColor_< unsigned short > const &)\n" + " ofColor_< unsigned short >::operator -=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___mul__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = ((ofColor_< unsigned short > const *)arg1)->operator *((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___mul__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___mul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned short > const *)arg1)->operator *((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___mul____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofShortColor___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___imul__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = (ofColor_< unsigned short > *) &(arg1)->operator *=((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___imul__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___imul__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned short > *) &(arg1)->operator *=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___imul____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator *=(ofColor_< unsigned short > const &)\n" + " ofColor_< unsigned short >::operator *=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___div__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = ((ofColor_< unsigned short > const *)arg1)->operator /((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___div__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___div__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = ((ofColor_< unsigned short > const *)arg1)->operator /((float const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___div____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofShortColor___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortColor___idiv__" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); + result = (ofColor_< unsigned short > *) &(arg1)->operator /=((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; float *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___idiv__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___idiv__" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; + result = (ofColor_< unsigned short > *) &(arg1)->operator /=((float const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortColor___idiv____SWIG_0(self, args);} } } if (argc == 2) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator /=(ofColor_< unsigned short > const &)\n" + " ofColor_< unsigned short >::operator /=(float const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortColor___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); + result = (unsigned short *) &((ofColor_< unsigned short > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; std::size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___getitem__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor___getitem__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = (unsigned short *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortColor___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortColor___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofColor_< unsigned short >::operator [](std::size_t) const\n" + " ofColor_< unsigned short >::operator [](std::size_t)\n"); return 0; } +SWIGINTERN int Swig_var_ofShortColor_white_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_white is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_white_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::white), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_gray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_gray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_black_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_black is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_black_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::black), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_red_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_red is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_red_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::red), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_green_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_green is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_green_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::green), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_magenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_magenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_magenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::magenta), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_yellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_yellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_yellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::yellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_aliceBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aliceBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_aliceBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aliceBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_antiqueWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_antiqueWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_antiqueWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::antiqueWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_aqua_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aqua is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_aqua_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aqua), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_aquamarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_aquamarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_aquamarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::aquamarine), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_azure_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_azure is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_azure_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::azure), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_beige_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_beige is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_beige_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::beige), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_bisque_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_bisque is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_bisque_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::bisque), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blanchedAlmond_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blanchedAlmond is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blanchedAlmond_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blanchedAlmond), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blueViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blueViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blueViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blueViolet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_brown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_brown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_brown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::brown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_burlyWood_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_burlyWood is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_burlyWood_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::burlyWood), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cadetBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cadetBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cadetBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cadetBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_chartreuse_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_chartreuse is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_chartreuse_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::chartreuse), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_chocolate_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_chocolate is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_chocolate_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::chocolate), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_coral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_coral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_coral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::coral), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cornflowerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cornflowerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cornflowerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cornflowerBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_cornsilk_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_cornsilk is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_cornsilk_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::cornsilk), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_crimson_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_crimson is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_crimson_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::crimson), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkCyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkKhaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkKhaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkKhaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkKhaki), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkMagenta_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkMagenta is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkMagenta_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkMagenta), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkOliveGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkOliveGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkOliveGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkOliveGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkorange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkorange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkorange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkorange), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkOrchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSalmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_darkViolet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_darkViolet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_darkViolet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::darkViolet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_deepPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_deepPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_deepPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::deepPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_deepSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_deepSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_deepSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::deepSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_dimGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dimGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_dimGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dimGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_dimGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dimGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_dimGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dimGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_dodgerBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_dodgerBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_dodgerBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::dodgerBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_fireBrick_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_fireBrick is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_fireBrick_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::fireBrick), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_floralWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_floralWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_floralWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::floralWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_forestGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_forestGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_forestGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::forestGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_fuchsia_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_fuchsia is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_fuchsia_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::fuchsia), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_gainsboro_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gainsboro is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_gainsboro_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gainsboro), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_ghostWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_ghostWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_ghostWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::ghostWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_gold_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_gold is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_gold_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::gold), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_goldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_goldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_goldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::goldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_grey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_grey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_grey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::grey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_greenYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_greenYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_greenYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::greenYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_honeyDew_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_honeyDew is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_honeyDew_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::honeyDew), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_hotPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_hotPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_hotPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::hotPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_indianRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_indianRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_indianRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::indianRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_indigo_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_indigo is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_indigo_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::indigo), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_ivory_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_ivory is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_ivory_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::ivory), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_khaki_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_khaki is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_khaki_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::khaki), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lavender_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lavender is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lavender_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lavender), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lavenderBlush_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lavenderBlush is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lavenderBlush_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lavenderBlush), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lawnGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lawnGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lawnGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lawnGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lemonChiffon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lemonChiffon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lemonChiffon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lemonChiffon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightCoral_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightCoral is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightCoral_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightCoral), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightCyan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightCyan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightCyan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightCyan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGoldenRodYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGoldenRodYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGoldenRodYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGoldenRodYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightPink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightPink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightPink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightPink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSalmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSalmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSalmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSalmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSkyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSkyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSkyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSkyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSlateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSlateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSlateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSlateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSlateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSlateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSlateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSlateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightSteelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightSteelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightSteelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightSteelBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lightYellow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lightYellow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lightYellow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lightYellow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_lime_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_lime is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_lime_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::lime), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_limeGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_limeGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_limeGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::limeGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_linen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_linen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_linen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::linen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_maroon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_maroon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_maroon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::maroon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumAquaMarine_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumAquaMarine is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumAquaMarine_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumAquaMarine), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumOrchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumOrchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumOrchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumOrchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumPurple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumPurple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumPurple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumPurple), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumSeaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSeaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSeaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSeaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumSlateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSlateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSlateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSlateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumSpringGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumSpringGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumSpringGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumSpringGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mediumVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mediumVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mediumVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mediumVioletRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_midnightBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_midnightBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_midnightBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::midnightBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mintCream_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mintCream is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mintCream_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mintCream), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_mistyRose_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_mistyRose is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_mistyRose_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::mistyRose), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_moccasin_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_moccasin is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_moccasin_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::moccasin), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_navajoWhite_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_navajoWhite is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_navajoWhite_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::navajoWhite), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_navy_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_navy is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_navy_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::navy), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_oldLace_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_oldLace is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_oldLace_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::oldLace), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_olive_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_olive is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_olive_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::olive), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_oliveDrab_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_oliveDrab is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_oliveDrab_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::oliveDrab), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_orange_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orange is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_orange_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orange), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_orangeRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orangeRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_orangeRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orangeRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_orchid_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_orchid is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_orchid_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::orchid), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleGoldenRod_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleGoldenRod is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleGoldenRod_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleGoldenRod), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleTurquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleTurquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleTurquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleTurquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_paleVioletRed_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_paleVioletRed is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_paleVioletRed_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::paleVioletRed), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_papayaWhip_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_papayaWhip is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_papayaWhip_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::papayaWhip), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_peachPuff_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_peachPuff is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_peachPuff_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::peachPuff), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_peru_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_peru is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_peru_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::peru), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_pink_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_pink is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_pink_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::pink), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_plum_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_plum is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_plum_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::plum), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_powderBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_powderBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_powderBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::powderBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_purple_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_purple is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_purple_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::purple), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_rosyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_rosyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_rosyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::rosyBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_royalBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_royalBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_royalBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::royalBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_saddleBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_saddleBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_saddleBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::saddleBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_salmon_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_salmon is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_salmon_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::salmon), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_sandyBrown_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_sandyBrown is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_sandyBrown_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::sandyBrown), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_seaGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_seaGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_seaGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::seaGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_seaShell_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_seaShell is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_seaShell_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::seaShell), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_sienna_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_sienna is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_sienna_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::sienna), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_silver_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_silver is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_silver_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::silver), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_skyBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_skyBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_skyBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::skyBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_slateBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_slateBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_slateGray_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateGray is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_slateGray_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateGray), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_slateGrey_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_slateGrey is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_slateGrey_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::slateGrey), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_snow_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_snow is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_snow_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::snow), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_springGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_springGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_springGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::springGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_steelBlue_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_steelBlue is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_steelBlue_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::steelBlue), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_blueSteel_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_blueSteel is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_blueSteel_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::blueSteel), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_tan_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_tan is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_tan_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::tan), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_teal_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_teal is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_teal_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::teal), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_thistle_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_thistle is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_thistle_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::thistle), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_tomato_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_tomato is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_tomato_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::tomato), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_turquoise_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_turquoise is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_turquoise_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::turquoise), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_violet_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_violet is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_violet_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::violet), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_wheat_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_wheat is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_wheat_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::wheat), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_whiteSmoke_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_whiteSmoke is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_whiteSmoke_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::whiteSmoke), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN int Swig_var_ofShortColor_yellowGreen_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ofShortColor_yellowGreen is read-only."); return 1; } +SWIGINTERN PyObject *Swig_var_ofShortColor_yellowGreen_get(void) { PyObject *pyobj = 0; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&ofColor_< unsigned short >::yellowGreen), SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 ); + return pyobj; } +SWIGINTERN PyObject *_wrap_ofShortColor_getR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getR",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getR" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__getR(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getG",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getG" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__getG(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getB",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getB" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__getB(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_getA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_getA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_getA" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__getA(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setR",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setR" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setR" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__setR(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setG",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setG" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setG" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__setG(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setB",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setB" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setB" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__setB(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_setA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_setA",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_setA" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_setA" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__setA(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor___str__" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (char *)ofColor__Sl_unsigned_SS_short_Sg____str__(arg1); resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_r_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_r_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_r_set" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__r_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_r_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_r_get" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__r_get(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_g_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_g_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_g_set" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__g_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_g_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_g_get" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__g_get(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_b_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_b_set" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__b_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_b_get" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__b_get(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortColor_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_a_set" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortColor_a_set" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); ofColor__Sl_unsigned_SS_short_Sg__a_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortColor_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortColor_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortColor_a_get" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); + result = (unsigned short)ofColor__Sl_unsigned_SS_short_Sg__a_get(arg1); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofShortColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor_< unsigned short > *arg1 = (ofColor_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortColor" "', argument " "1"" of type '" "ofColor_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofColor_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *ofShortColor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofIsVFlipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; + if (!PyArg_ParseTuple(args,(char *)":ofIsVFlipped")) SWIG_fail; result = (bool)ofIsVFlipped(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofBaseHasTexturePlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseHasTexturePlanes *arg1 = (ofBaseHasTexturePlanes *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBaseHasTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseHasTexturePlanes, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBaseHasTexturePlanes" "', argument " "1"" of type '" "ofBaseHasTexturePlanes *""'"); } + arg1 = reinterpret_cast< ofBaseHasTexturePlanes * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseHasTexturePlanes *arg1 = (ofBaseHasTexturePlanes *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseHasTexturePlanes_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseHasTexturePlanes, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseHasTexturePlanes_getTexturePlanes" "', argument " "1"" of type '" "ofBaseHasTexturePlanes *""'"); } + arg1 = reinterpret_cast< ofBaseHasTexturePlanes * >(argp1); + result = (std::vector< ofTexture > *) &(arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseHasTexturePlanes *arg1 = (ofBaseHasTexturePlanes *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseHasTexturePlanes_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseHasTexturePlanes, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseHasTexturePlanes_getTexturePlanes" "', argument " "1"" of type '" "ofBaseHasTexturePlanes const *""'"); } + arg1 = reinterpret_cast< ofBaseHasTexturePlanes * >(argp1); + result = (std::vector< ofTexture > *) &((ofBaseHasTexturePlanes const *)arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseHasTexturePlanes_getTexturePlanes(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseHasTexturePlanes, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseHasTexturePlanes, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofBaseHasTexturePlanes_getTexturePlanes__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBaseHasTexturePlanes_getTexturePlanes'.\n" + " Possible C/C++ prototypes are:\n" " ofBaseHasTexturePlanes::getTexturePlanes()\n" + " ofBaseHasTexturePlanes::getTexturePlanes() const\n"); return 0; } +SWIGINTERN PyObject *ofBaseHasTexturePlanes_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofBaseHasTexturePlanes, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ofBaseURLFileLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBaseURLFileLoader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBaseURLFileLoader" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_get",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_get" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (arg1)->get((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_getAsync__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; + std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseURLFileLoader_getAsync",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_getAsync__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_getAsync",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_getAsync(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseURLFileLoader, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBaseURLFileLoader_getAsync__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBaseURLFileLoader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBaseURLFileLoader_getAsync__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBaseURLFileLoader_getAsync'.\n" + " Possible C/C++ prototypes are:\n" " ofBaseURLFileLoader::getAsync(std::string const &,std::string const &)\n" + " ofBaseURLFileLoader::getAsync(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_saveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseURLFileLoader_saveTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (arg1)->saveTo((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_saveAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; std::string *arg2 = 0 ; + std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseURLFileLoader_saveAsync",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->saveAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_remove",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_remove" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBaseURLFileLoader_remove" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->remove(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseURLFileLoader_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_clear" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseURLFileLoader_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_stop" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseURLFileLoader_handleRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseURLFileLoader *arg1 = (ofBaseURLFileLoader *) 0 ; ofHttpRequest arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBaseURLFileLoader_handleRequest",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseURLFileLoader_handleRequest" "', argument " "1"" of type '" "ofBaseURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofBaseURLFileLoader * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest""'"); } + else { ofHttpRequest * temp = reinterpret_cast< ofHttpRequest * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } result = (arg1)->handleRequest(arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofBaseURLFileLoader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofBaseURLFileLoader, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ofBaseMaterial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBaseMaterial",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBaseMaterial" "', argument " "1"" of type '" "ofBaseMaterial *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getDiffuseColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getDiffuseColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getDiffuseColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getDiffuseColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getAmbientColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getAmbientColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getAmbientColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getSpecularColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getSpecularColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getSpecularColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getSpecularColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getEmissiveColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getEmissiveColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getEmissiveColor" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = ((ofBaseMaterial const *)arg1)->getEmissiveColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getShininess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_getShininess",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getShininess" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); result = (float)((ofBaseMaterial const *)arg1)->getShininess(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_begin" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); ((ofBaseMaterial const *)arg1)->begin(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBaseMaterial_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_end" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); ((ofBaseMaterial const *)arg1)->end(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_getShader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; int arg2 ; ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofShader *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_getShader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_getShader" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBaseMaterial_getShader" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_getShader" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_getShader" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + result = (ofShader *) &((ofBaseMaterial const *)arg1)->getShader(arg2,*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofShader, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_uploadMatrices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; ofShader *arg2 = 0 ; + ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_uploadMatrices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_uploadMatrices" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + ((ofBaseMaterial const *)arg1)->uploadMatrices((ofShader const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_updateMaterial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; ofShader *arg2 = 0 ; + ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_updateMaterial",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_updateMaterial" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseMaterial_updateMaterial" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateMaterial" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_updateMaterial" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateMaterial" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + ((ofBaseMaterial const *)arg1)->updateMaterial((ofShader const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBaseMaterial_updateLights(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBaseMaterial *arg1 = (ofBaseMaterial *) 0 ; ofShader *arg2 = 0 ; + ofGLProgrammableRenderer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBaseMaterial_updateLights",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBaseMaterial_updateLights" "', argument " "1"" of type '" "ofBaseMaterial const *""'"); } + arg1 = reinterpret_cast< ofBaseMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBaseMaterial_updateLights" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateLights" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofGLProgrammableRenderer, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBaseMaterial_updateLights" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBaseMaterial_updateLights" "', argument " "3"" of type '" "ofGLProgrammableRenderer &""'"); } + arg3 = reinterpret_cast< ofGLProgrammableRenderer * >(argp3); + ((ofBaseMaterial const *)arg1)->updateLights((ofShader const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *ofBaseMaterial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofBaseMaterial, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofSerialDeviceInfo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; std::string arg2 ; int arg3 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofSerialDeviceInfo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofSerialDeviceInfo",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofSerialDeviceInfo" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_ofSerialDeviceInfo" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofSerialDeviceInfo" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (ofSerialDeviceInfo *)new ofSerialDeviceInfo(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSerialDeviceInfo, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofSerialDeviceInfo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSerialDeviceInfo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":new_ofSerialDeviceInfo")) SWIG_fail; + result = (ofSerialDeviceInfo *)new ofSerialDeviceInfo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSerialDeviceInfo, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofSerialDeviceInfo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofSerialDeviceInfo__SWIG_1(self, args);} if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofSerialDeviceInfo__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofSerialDeviceInfo'.\n" + " Possible C/C++ prototypes are:\n" " ofSerialDeviceInfo::ofSerialDeviceInfo(std::string,std::string,int)\n" + " ofSerialDeviceInfo::ofSerialDeviceInfo()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSerialDeviceInfo_getDevicePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSerialDeviceInfo *arg1 = (ofSerialDeviceInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerialDeviceInfo_getDevicePath",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerialDeviceInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerialDeviceInfo_getDevicePath" "', argument " "1"" of type '" "ofSerialDeviceInfo *""'"); } + arg1 = reinterpret_cast< ofSerialDeviceInfo * >(argp1); result = (arg1)->getDevicePath(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerialDeviceInfo_getDeviceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSerialDeviceInfo *arg1 = (ofSerialDeviceInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerialDeviceInfo_getDeviceName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerialDeviceInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerialDeviceInfo_getDeviceName" "', argument " "1"" of type '" "ofSerialDeviceInfo *""'"); } + arg1 = reinterpret_cast< ofSerialDeviceInfo * >(argp1); result = (arg1)->getDeviceName(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerialDeviceInfo_getDeviceID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSerialDeviceInfo *arg1 = (ofSerialDeviceInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSerialDeviceInfo_getDeviceID",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerialDeviceInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerialDeviceInfo_getDeviceID" "', argument " "1"" of type '" "ofSerialDeviceInfo *""'"); } + arg1 = reinterpret_cast< ofSerialDeviceInfo * >(argp1); result = (int)(arg1)->getDeviceID(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofSerialDeviceInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerialDeviceInfo *arg1 = (ofSerialDeviceInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSerialDeviceInfo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerialDeviceInfo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSerialDeviceInfo" "', argument " "1"" of type '" "ofSerialDeviceInfo *""'"); } + arg1 = reinterpret_cast< ofSerialDeviceInfo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofSerialDeviceInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofSerialDeviceInfo, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofStyle")) SWIG_fail; result = (ofStyle *)new ofStyle(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofStyle, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofStyle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofStyle" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; ofColor *arg2 = (ofColor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_color_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_color_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofStyle_color_set" "', argument " "2"" of type '" "ofColor *""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); if (arg1) (arg1)->color = *arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_color_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_color_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (ofColor *)& ((arg1)->color); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_bgColor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; ofColor *arg2 = (ofColor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_bgColor_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_bgColor_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofStyle_bgColor_set" "', argument " "2"" of type '" "ofColor *""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); if (arg1) (arg1)->bgColor = *arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_bgColor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_bgColor_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_bgColor_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (ofColor *)& ((arg1)->bgColor); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_polyMode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; ofPolyWindingMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_polyMode_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_polyMode_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_polyMode_set" "', argument " "2"" of type '" "ofPolyWindingMode""'"); } + arg2 = static_cast< ofPolyWindingMode >(val2); if (arg1) (arg1)->polyMode = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_polyMode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyWindingMode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_polyMode_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_polyMode_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (ofPolyWindingMode) ((arg1)->polyMode); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_rectMode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; ofRectMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_rectMode_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_rectMode_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_rectMode_set" "', argument " "2"" of type '" "ofRectMode""'"); } + arg2 = static_cast< ofRectMode >(val2); if (arg1) (arg1)->rectMode = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_rectMode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofRectMode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_rectMode_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_rectMode_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (ofRectMode) ((arg1)->rectMode); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_bFill_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_bFill_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_bFill_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_bFill_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bFill = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_bFill_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_bFill_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_bFill_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (bool) ((arg1)->bFill); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_drawBitmapMode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; ofDrawBitmapMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_drawBitmapMode_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_drawBitmapMode_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_drawBitmapMode_set" "', argument " "2"" of type '" "ofDrawBitmapMode""'"); } + arg2 = static_cast< ofDrawBitmapMode >(val2); if (arg1) (arg1)->drawBitmapMode = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_drawBitmapMode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofDrawBitmapMode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_drawBitmapMode_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_drawBitmapMode_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (ofDrawBitmapMode) ((arg1)->drawBitmapMode); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_blendingMode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; ofBlendMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_blendingMode_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_blendingMode_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_blendingMode_set" "', argument " "2"" of type '" "ofBlendMode""'"); } + arg2 = static_cast< ofBlendMode >(val2); if (arg1) (arg1)->blendingMode = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_blendingMode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofBlendMode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_blendingMode_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_blendingMode_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (ofBlendMode) ((arg1)->blendingMode); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_smoothing_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_smoothing_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_smoothing_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_smoothing_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->smoothing = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_smoothing_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_smoothing_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_smoothing_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (bool) ((arg1)->smoothing); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_circleResolution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofStyle *arg1 = (ofStyle *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_circleResolution_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_circleResolution_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_circleResolution_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->circleResolution = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_circleResolution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_circleResolution_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_circleResolution_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (int) ((arg1)->circleResolution); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_sphereResolution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofStyle *arg1 = (ofStyle *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_sphereResolution_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_sphereResolution_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_sphereResolution_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->sphereResolution = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_sphereResolution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_sphereResolution_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_sphereResolution_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (int) ((arg1)->sphereResolution); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_curveResolution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofStyle *arg1 = (ofStyle *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_curveResolution_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_curveResolution_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_curveResolution_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->curveResolution = arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_curveResolution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_curveResolution_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_curveResolution_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (int) ((arg1)->curveResolution); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_lineWidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStyle_lineWidth_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_lineWidth_set" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofStyle_lineWidth_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->lineWidth = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofStyle_lineWidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofStyle *arg1 = (ofStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofStyle_lineWidth_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStyle_lineWidth_get" "', argument " "1"" of type '" "ofStyle *""'"); } + arg1 = reinterpret_cast< ofStyle * >(argp1); result = (float) ((arg1)->lineWidth); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofStyle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofStyle, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofResetElapsedTimeCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofResetElapsedTimeCounter")) SWIG_fail; ofResetElapsedTimeCounter(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetElapsedTimef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimef")) SWIG_fail; result = (float)ofGetElapsedTimef(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetElapsedTimeMillis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimeMillis")) SWIG_fail; result = ofGetElapsedTimeMillis(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetElapsedTimeMicros(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetElapsedTimeMicros")) SWIG_fail; result = ofGetElapsedTimeMicros(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetFrameNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetFrameNum")) SWIG_fail; result = ofGetFrameNum(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetSeconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetSeconds")) SWIG_fail; result = (int)ofGetSeconds(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetMinutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetMinutes")) SWIG_fail; result = (int)ofGetMinutes(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetHours")) SWIG_fail; result = (int)ofGetHours(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetUnixTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetUnixTime")) SWIG_fail; result = (unsigned int)ofGetUnixTime(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetSystemTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetSystemTime")) SWIG_fail; result = ofGetSystemTime(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetSystemTimeMicros(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + uint64_t result; if (!PyArg_ParseTuple(args,(char *)":ofGetSystemTimeMicros")) SWIG_fail; result = ofGetSystemTimeMicros(); + resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSleepMillis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; + int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSleepMillis",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSleepMillis" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSleepMillis(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetTimestampString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string result; if (!PyArg_ParseTuple(args,(char *)":ofGetTimestampString")) SWIG_fail; + result = ofGetTimestampString(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofGetTimestampString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetTimestampString",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofGetTimestampString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofGetTimestampString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofGetTimestampString((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofGetTimestampString(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofGetTimestampString__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofGetTimestampString__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofGetTimestampString'.\n" + " Possible C/C++ prototypes are:\n" " ofGetTimestampString()\n" " ofGetTimestampString(std::string const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofGetYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetYear")) SWIG_fail; result = (int)ofGetYear(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetMonth")) SWIG_fail; result = (int)ofGetMonth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetDay")) SWIG_fail; result = (int)ofGetDay(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWeekday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetWeekday")) SWIG_fail; result = (int)ofGetWeekday(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableDataPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableDataPath")) SWIG_fail; ofEnableDataPath(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableDataPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableDataPath")) SWIG_fail; ofDisableDataPath(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofToDataPath__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofToDataPath",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToDataPath" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToDataPath" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofToDataPath" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); result = ofToDataPath((std::string const &)*arg1,arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToDataPath__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToDataPath",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToDataPath" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToDataPath" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofToDataPath((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToDataPath(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofToDataPath__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofToDataPath__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofToDataPath'.\n" + " Possible C/C++ prototypes are:\n" " ofToDataPath(std::string const &,bool)\n" + " ofToDataPath(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRestoreWorkingDirectoryToDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":ofRestoreWorkingDirectoryToDefault")) SWIG_fail; + result = (bool)ofRestoreWorkingDirectoryToDefault(); resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetDataPathRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetDataPathRoot",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetDataPathRoot" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetDataPathRoot" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofSetDataPathRoot((std::string const &)*arg1); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; bool arg3 ; bool arg4 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; + bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; std::vector< std::string,std::allocator< std::string > > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSplitString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSplitString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSplitString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSplitString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSplitString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSplitString" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSplitString" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = ofSplitString((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + std::vector< std::string,std::allocator< std::string > > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSplitString",&obj0,&obj1,&obj2)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSplitString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSplitString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSplitString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSplitString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSplitString" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); result = ofSplitString((std::string const &)*arg1,(std::string const &)*arg2,arg3); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSplitString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSplitString",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSplitString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSplitString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSplitString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSplitString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofSplitString((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSplitString(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSplitString__SWIG_2(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSplitString__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSplitString__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSplitString'.\n" + " Possible C/C++ prototypes are:\n" " ofSplitString(std::string const &,std::string const &,bool,bool)\n" + " ofSplitString(std::string const &,std::string const &,bool)\n" + " ofSplitString(std::string const &,std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofJoinString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofJoinString",&obj0,&obj1)) SWIG_fail; { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofJoinString" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofJoinString" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofJoinString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofJoinString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } + result = ofJoinString((std::vector< std::string,std::allocator< std::string > > const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofStringReplace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofStringReplace",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__string, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStringReplace" "', argument " "1"" of type '" "std::string &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofStringReplace" "', argument " "1"" of type '" "std::string &""'"); } + arg1 = reinterpret_cast< std::string * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofStringReplace" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofStringReplace" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofStringReplace" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofStringReplace" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } ofStringReplace(*arg1,(std::string const &)*arg2,(std::string const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofIsStringInString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofIsStringInString",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIsStringInString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofIsStringInString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofIsStringInString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofIsStringInString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)ofIsStringInString((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofStringTimesInString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofStringTimesInString",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofStringTimesInString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofStringTimesInString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofStringTimesInString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofStringTimesInString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofStringTimesInString((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofToLower__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofToLower",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofToLower" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToLower" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofToLower((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofToLower__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToLower",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToLower" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofToLower((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToLower(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofToLower__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofToLower__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofToLower'.\n" + " Possible C/C++ prototypes are:\n" " ofToLower(std::string const &,std::string const &)\n" + " ofToLower(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofToUpper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofToUpper",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofToUpper" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToUpper" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofToUpper((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofToUpper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToUpper",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToUpper" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofToUpper((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToUpper(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofToUpper__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofToUpper__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofToUpper'.\n" + " Possible C/C++ prototypes are:\n" " ofToUpper(std::string const &,std::string const &)\n" + " ofToUpper(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrimFront__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrimFront",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrimFront" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimFront" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofTrimFront((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimFront__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrimFront",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimFront" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofTrimFront((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimFront(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrimFront__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrimFront__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrimFront'.\n" + " Possible C/C++ prototypes are:\n" " ofTrimFront(std::string const &,std::string const &)\n" + " ofTrimFront(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrimBack__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrimBack",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrimBack" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimBack" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofTrimBack((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimBack__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrimBack",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrimBack" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofTrimBack((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrimBack(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrimBack__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrimBack__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrimBack'.\n" + " Possible C/C++ prototypes are:\n" " ofTrimBack(std::string const &,std::string const &)\n" + " ofTrimBack(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrim__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofTrim",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrim" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrim" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofTrim((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrim__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrim",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrim" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofTrim((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrim(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrim__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrim__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrim'.\n" + " Possible C/C++ prototypes are:\n" " ofTrim(std::string const &,std::string const &)\n" + " ofTrim(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofAppendUTF8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofAppendUTF8",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__string, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofAppendUTF8" "', argument " "1"" of type '" "std::string &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofAppendUTF8" "', argument " "1"" of type '" "std::string &""'"); } + arg1 = reinterpret_cast< std::string * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofAppendUTF8" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofAppendUTF8(*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToInt" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToInt" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofToInt((std::string const &)*arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int64_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToInt64",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToInt64" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToInt64" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofToInt64((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj((new int64_t(static_cast< const int64_t& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (float)ofToFloat((std::string const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; double result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToDouble",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToDouble" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToDouble" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (double)ofToDouble((std::string const &)*arg1); + resultobj = SWIG_From_double(static_cast< double >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToBool",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToBool" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToBool" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (bool)ofToBool((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToHex",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToHex" "', argument " "1"" of type '" "char const *""'"); } + arg1 = reinterpret_cast< char * >(buf1); result = ofToHex((char const *)arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToInt" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToInt" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofHexToInt((std::string const &)*arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToChar" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToChar" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (char)ofHexToChar((std::string const &)*arg1); + resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (float)ofHexToFloat((std::string const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofHexToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHexToString",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHexToString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHexToString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofHexToString((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToChar" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofToChar" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (char)ofToChar((std::string const &)*arg1); + resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofToBinary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofToBinary",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofToBinary" "', argument " "1"" of type '" "char const *""'"); } + arg1 = reinterpret_cast< char * >(buf1); result = ofToBinary((char const *)arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToInt",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToInt" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToInt" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofBinaryToInt((std::string const &)*arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; char result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToChar",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToChar" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToChar" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (char)ofBinaryToChar((std::string const &)*arg1); + resultobj = SWIG_From_char(static_cast< char >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToFloat",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToFloat" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (float)ofBinaryToFloat((std::string const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofBinaryToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBinaryToString",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBinaryToString" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBinaryToString" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofBinaryToString((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionInfo")) SWIG_fail; result = ofGetVersionInfo(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionMajor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionMajor")) SWIG_fail; + result = (unsigned int)ofGetVersionMajor(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionMinor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionMinor")) SWIG_fail; + result = (unsigned int)ofGetVersionMinor(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionPatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + unsigned int result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionPatch")) SWIG_fail; + result = (unsigned int)ofGetVersionPatch(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetVersionPreRelease(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string result; if (!PyArg_ParseTuple(args,(char *)":ofGetVersionPreRelease")) SWIG_fail; + result = ofGetVersionPreRelease(); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSaveScreen",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveScreen" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveScreen" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofSaveScreen((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSaveFrame",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSaveFrame" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSaveFrame(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSaveFrame")) SWIG_fail; ofSaveFrame(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveFrame(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSaveFrame__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSaveFrame__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSaveFrame'.\n" + " Possible C/C++ prototypes are:\n" " ofSaveFrame(bool)\n" " ofSaveFrame()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSaveViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSaveViewport",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveViewport" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveViewport" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofSaveViewport((std::string const &)*arg1); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLaunchBrowser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofLaunchBrowser",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLaunchBrowser" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofLaunchBrowser((std::string const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLaunchBrowser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLaunchBrowser",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLaunchBrowser" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofLaunchBrowser((std::string const &)*arg1); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLaunchBrowser(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLaunchBrowser__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLaunchBrowser__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLaunchBrowser'.\n" + " Possible C/C++ prototypes are:\n" " ofLaunchBrowser(std::string const &,bool)\n" + " ofLaunchBrowser(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSystem",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSystem" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSystem" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofSystem((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofGetTargetPlatform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTargetPlatform result; if (!PyArg_ParseTuple(args,(char *)":ofGetTargetPlatform")) SWIG_fail; + result = (ofTargetPlatform)ofGetTargetPlatform(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetEnv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetEnv",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofGetEnv" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofGetEnv" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofGetEnv((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; + fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofUTF8Iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofUTF8Iterator *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofUTF8Iterator",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofUTF8Iterator" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofUTF8Iterator" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofUTF8Iterator *)new ofUTF8Iterator((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofUTF8Iterator, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_begin" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_iterator >(static_cast< const utf8::iterator< std::string::const_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_end" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->end(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_iterator >(static_cast< const utf8::iterator< std::string::const_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_rbegin" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_reverse_iterator >(static_cast< const utf8::iterator< std::string::const_reverse_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_reverse_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofUTF8Iterator_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + utf8::iterator< std::string::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofUTF8Iterator_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofUTF8Iterator_rend" "', argument " "1"" of type '" "ofUTF8Iterator const *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); result = ((ofUTF8Iterator const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj((new utf8::iterator< std::string::const_reverse_iterator >(static_cast< const utf8::iterator< std::string::const_reverse_iterator >& >(result))), SWIGTYPE_p_utf8__iteratorT_std__string__const_reverse_iterator_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofUTF8Iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofUTF8Iterator *arg1 = (ofUTF8Iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofUTF8Iterator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofUTF8Iterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofUTF8Iterator" "', argument " "1"" of type '" "ofUTF8Iterator *""'"); } + arg1 = reinterpret_cast< ofUTF8Iterator * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofUTF8Iterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofUTF8Iterator, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_setWorkingDirectoryToDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":setWorkingDirectoryToDefault")) SWIG_fail; + of::priv::setWorkingDirectoryToDefault(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_initutils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":initutils")) SWIG_fail; of::priv::initutils(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_endutils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":endutils")) SWIG_fail; of::priv::endutils(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofLogLevel arg1 ; + std::string *arg2 = 0 ; int val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:log",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "log" "', argument " "1"" of type '" "ofLogLevel""'"); } + arg1 = static_cast< ofLogLevel >(val1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "log" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } log(arg1,(std::string const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *OF_LOG_VERBOSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_VERBOSE",SWIG_From_int(static_cast< int >(OF_LOG_VERBOSE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_NOTICE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_NOTICE",SWIG_From_int(static_cast< int >(OF_LOG_NOTICE))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_WARNING_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_WARNING",SWIG_From_int(static_cast< int >(OF_LOG_WARNING))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_ERROR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_ERROR",SWIG_From_int(static_cast< int >(OF_LOG_ERROR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_FATAL_ERROR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_FATAL_ERROR",SWIG_From_int(static_cast< int >(OF_LOG_FATAL_ERROR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LOG_SILENT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LOG_SILENT",SWIG_From_int(static_cast< int >(OF_LOG_SILENT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_ofSetLogLevel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLogLevel arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetLogLevel",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetLogLevel" "', argument " "1"" of type '" "ofLogLevel""'"); } + arg1 = static_cast< ofLogLevel >(val1); ofSetLogLevel(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetLogLevel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; ofLogLevel arg2 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetLogLevel",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSetLogLevel" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetLogLevel" "', argument " "2"" of type '" "ofLogLevel""'"); } + arg2 = static_cast< ofLogLevel >(val2); ofSetLogLevel(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetLogLevel(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetLogLevel__SWIG_0(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetLogLevel__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetLogLevel'.\n" + " Possible C/C++ prototypes are:\n" " ofSetLogLevel(ofLogLevel)\n" " ofSetLogLevel(std::string,ofLogLevel)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofGetLogLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLogLevel result; if (!PyArg_ParseTuple(args,(char *)":ofGetLogLevel")) SWIG_fail; result = (ofLogLevel)ofGetLogLevel(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetLogLevelName__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLogLevel arg1 ; bool arg2 ; int val1 ; int ecode1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:ofGetLogLevelName",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetLogLevelName" "', argument " "1"" of type '" "ofLogLevel""'"); } + arg1 = static_cast< ofLogLevel >(val1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofGetLogLevelName" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); result = ofGetLogLevelName(arg1,arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetLogLevelName__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLogLevel arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetLogLevelName",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetLogLevelName" "', argument " "1"" of type '" "ofLogLevel""'"); } + arg1 = static_cast< ofLogLevel >(val1); result = ofGetLogLevelName(arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetLogLevelName(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofGetLogLevelName__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofGetLogLevelName__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofGetLogLevelName'.\n" + " Possible C/C++ prototypes are:\n" " ofGetLogLevelName(ofLogLevel,bool)\n" " ofGetLogLevelName(ofLogLevel)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofLogToFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofLogToFile",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLogToFile" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLogToFile" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLogToFile" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofLogToFile((std::string const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLogToFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLogToFile",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLogToFile" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLogToFile" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } ofLogToFile((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLogToFile(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLogToFile__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLogToFile__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLogToFile'.\n" + " Possible C/C++ prototypes are:\n" " ofLogToFile(std::string const &,bool)\n" " ofLogToFile(std::string const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofLogToConsole(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofLogToConsole")) SWIG_fail; ofLogToConsole(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFileDialogResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFileDialogResult *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFileDialogResult")) SWIG_fail; + result = (ofFileDialogResult *)new ofFileDialogResult(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_getName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofFileDialogResult_getName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_getName" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); result = (arg1)->getName(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_getPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ofFileDialogResult_getPath",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_getPath" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); result = (arg1)->getPath(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_filePath_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFileDialogResult_filePath_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_filePath_set" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFileDialogResult_filePath_set" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFileDialogResult_filePath_set" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } if (arg1) (arg1)->filePath = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_filePath_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::string *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFileDialogResult_filePath_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_filePath_get" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); result = (std::string *) & ((arg1)->filePath); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_fileName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFileDialogResult_fileName_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_fileName_set" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFileDialogResult_fileName_set" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFileDialogResult_fileName_set" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } if (arg1) (arg1)->fileName = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_fileName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; std::string *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFileDialogResult_fileName_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_fileName_get" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); result = (std::string *) & ((arg1)->fileName); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_bSuccess_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFileDialogResult_bSuccess_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_bSuccess_set" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFileDialogResult_bSuccess_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->bSuccess = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFileDialogResult_bSuccess_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofFileDialogResult_bSuccess_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFileDialogResult_bSuccess_get" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); result = (bool) ((arg1)->bSuccess); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofFileDialogResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFileDialogResult *arg1 = (ofFileDialogResult *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFileDialogResult",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFileDialogResult" "', argument " "1"" of type '" "ofFileDialogResult *""'"); } + arg1 = reinterpret_cast< ofFileDialogResult * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofFileDialogResult_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofFileDialogResult, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofSystemAlertDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSystemAlertDialog",&obj0)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemAlertDialog" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofSystemAlertDialog(arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemLoadDialog__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; bool arg2 ; std::string arg3 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofFileDialogResult result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSystemLoadDialog",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemLoadDialog" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSystemLoadDialog" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemLoadDialog" "', argument " "3"" of type '" "std::string""'"); } + arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofSystemLoadDialog(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofFileDialogResult(static_cast< const ofFileDialogResult& >(result))), SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemLoadDialog__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofFileDialogResult result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSystemLoadDialog",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemLoadDialog" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSystemLoadDialog" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); result = ofSystemLoadDialog(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofFileDialogResult(static_cast< const ofFileDialogResult& >(result))), SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemLoadDialog__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; PyObject * obj0 = 0 ; ofFileDialogResult result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSystemLoadDialog",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemLoadDialog" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofSystemLoadDialog(arg1); + resultobj = SWIG_NewPointerObj((new ofFileDialogResult(static_cast< const ofFileDialogResult& >(result))), SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemLoadDialog__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFileDialogResult result; if (!PyArg_ParseTuple(args,(char *)":ofSystemLoadDialog")) SWIG_fail; + result = ofSystemLoadDialog(); + resultobj = SWIG_NewPointerObj((new ofFileDialogResult(static_cast< const ofFileDialogResult& >(result))), SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemLoadDialog(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSystemLoadDialog__SWIG_3(self, args);} if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSystemLoadDialog__SWIG_2(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSystemLoadDialog__SWIG_1(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSystemLoadDialog__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSystemLoadDialog'.\n" + " Possible C/C++ prototypes are:\n" " ofSystemLoadDialog(std::string,bool,std::string)\n" + " ofSystemLoadDialog(std::string,bool)\n" " ofSystemLoadDialog(std::string)\n" " ofSystemLoadDialog()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSystemSaveDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofFileDialogResult result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSystemSaveDialog",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemSaveDialog" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemSaveDialog" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofSystemSaveDialog(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofFileDialogResult(static_cast< const ofFileDialogResult& >(result))), SWIGTYPE_p_ofFileDialogResult, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemTextBoxDialog__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; std::string arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSystemTextBoxDialog",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemTextBoxDialog" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemTextBoxDialog" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofSystemTextBoxDialog(arg1,arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemTextBoxDialog__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSystemTextBoxDialog",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSystemTextBoxDialog" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = ofSystemTextBoxDialog(arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSystemTextBoxDialog(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSystemTextBoxDialog__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSystemTextBoxDialog__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSystemTextBoxDialog'.\n" + " Possible C/C++ prototypes are:\n" " ofSystemTextBoxDialog(std::string,std::string)\n" + " ofSystemTextBoxDialog(std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_new_ofHttpRequest__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofHttpRequest")) SWIG_fail; + result = (ofHttpRequest *)new ofHttpRequest(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpRequest__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofHttpRequest *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofHttpRequest",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofHttpRequest" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); + result = (ofHttpRequest *)new ofHttpRequest((std::string const &)*arg1,(std::string const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpRequest__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofHttpRequest *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofHttpRequest",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpRequest" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (ofHttpRequest *)new ofHttpRequest((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpRequest(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofHttpRequest__SWIG_0(self, args);} if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofHttpRequest__SWIG_2(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofHttpRequest__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofHttpRequest'.\n" + " Possible C/C++ prototypes are:\n" " ofHttpRequest::ofHttpRequest()\n" + " ofHttpRequest::ofHttpRequest(std::string const &,std::string const &,bool)\n" + " ofHttpRequest::ofHttpRequest(std::string const &,std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_url_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpRequest_url_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_url_set" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpRequest_url_set" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHttpRequest_url_set" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } if (arg1) (arg1)->url = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_url_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_url_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_url_get" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (std::string *) & ((arg1)->url); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpRequest_name_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_name_set" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpRequest_name_set" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHttpRequest_name_set" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } if (arg1) (arg1)->name = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_name_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_name_get" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (std::string *) & ((arg1)->name); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_saveTo_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpRequest_saveTo_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_saveTo_set" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofHttpRequest_saveTo_set" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); if (arg1) (arg1)->saveTo = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_saveTo_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_saveTo_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_saveTo_get" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (bool) ((arg1)->saveTo); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_headers_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; + std::map< std::string,std::string > *arg2 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpRequest_headers_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_headers_set" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpRequest_headers_set" "', argument " "2"" of type '" "std::map< std::string,std::string > *""'"); } + arg2 = reinterpret_cast< std::map< std::string,std::string > * >(argp2); if (arg1) (arg1)->headers = *arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_headers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::map< std::string,std::string > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_headers_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_headers_get" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (std::map< std::string,std::string > *)& ((arg1)->headers); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_getId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_getId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_getId" "', argument " "1"" of type '" "ofHttpRequest const *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (int)((ofHttpRequest const *)arg1)->getId(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpRequest_getID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpRequest_getID",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpRequest_getID" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); result = (int)(arg1)->getID(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofHttpRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofHttpRequest",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpRequest, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofHttpRequest" "', argument " "1"" of type '" "ofHttpRequest *""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofHttpRequest_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofHttpRequest, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofHttpResponse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofHttpResponse")) SWIG_fail; + result = (ofHttpResponse *)new ofHttpResponse(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpResponse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = 0 ; ofBuffer *arg2 = 0 ; int arg3 ; std::string *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofHttpResponse *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofHttpResponse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofHttpResponse" "', argument " "2"" of type '" "ofBuffer const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "2"" of type '" "ofBuffer const &""'"); } + arg2 = reinterpret_cast< ofBuffer * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofHttpResponse" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); { std::string *ptr = (std::string *)0; res4 = SWIG_AsPtr_std_string(obj3, &ptr); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ofHttpResponse" "', argument " "4"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "4"" of type '" "std::string const &""'"); } + arg4 = ptr; } + result = (ofHttpResponse *)new ofHttpResponse((ofHttpRequest const &)*arg1,(ofBuffer const &)*arg2,arg3,(std::string const &)*arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpResponse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpRequest *arg1 = 0 ; int arg2 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofHttpResponse *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofHttpResponse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofHttpRequest, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "1"" of type '" "ofHttpRequest const &""'"); } + arg1 = reinterpret_cast< ofHttpRequest * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofHttpResponse" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ofHttpResponse" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofHttpResponse" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (ofHttpResponse *)new ofHttpResponse((ofHttpRequest const &)*arg1,arg2,(std::string const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofHttpResponse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofHttpResponse__SWIG_0(self, args);} if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofHttpRequest, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofHttpResponse__SWIG_2(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofHttpRequest, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofHttpResponse__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofHttpResponse'.\n" + " Possible C/C++ prototypes are:\n" " ofHttpResponse::ofHttpResponse()\n" + " ofHttpResponse::ofHttpResponse(ofHttpRequest const &,ofBuffer const &,int,std::string const &)\n" + " ofHttpResponse::ofHttpResponse(ofHttpRequest const &,int,std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_request_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; ofHttpRequest *arg2 = (ofHttpRequest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpResponse_request_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_request_set" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofHttpRequest, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpResponse_request_set" "', argument " "2"" of type '" "ofHttpRequest *""'"); } + arg2 = reinterpret_cast< ofHttpRequest * >(argp2); if (arg1) (arg1)->request = *arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_request_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofHttpRequest *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofHttpResponse_request_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_request_get" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); result = (ofHttpRequest *)& ((arg1)->request); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofHttpRequest, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; ofBuffer arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpResponse_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_data_set" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBuffer, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpResponse_data_set" "', argument " "2"" of type '" "ofBuffer""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHttpResponse_data_set" "', argument " "2"" of type '" "ofBuffer""'"); } + else { ofBuffer * temp = reinterpret_cast< ofBuffer * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + if (arg1) (arg1)->data = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofBuffer result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpResponse_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_data_get" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); result = ((arg1)->data); + resultobj = SWIG_NewPointerObj((new ofBuffer(static_cast< const ofBuffer& >(result))), SWIGTYPE_p_ofBuffer, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpResponse_status_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_status_set" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofHttpResponse_status_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->status = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpResponse_status_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_status_get" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); result = (int) ((arg1)->status); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofHttpResponse_error_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_error_set" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofHttpResponse_error_set" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofHttpResponse_error_set" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } if (arg1) (arg1)->error = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofHttpResponse_error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofHttpResponse_error_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofHttpResponse_error_get" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); result = (std::string *) & ((arg1)->error); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofHttpResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHttpResponse *arg1 = (ofHttpResponse *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofHttpResponse",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofHttpResponse" "', argument " "1"" of type '" "ofHttpResponse *""'"); } + arg1 = reinterpret_cast< ofHttpResponse * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofHttpResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofHttpResponse, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofLoadURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadURL",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadURL" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURL" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = ofLoadURL((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadURLAsync__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofLoadURLAsync",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLoadURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)ofLoadURLAsync((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadURLAsync__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadURLAsync",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (int)ofLoadURLAsync((std::string const &)*arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadURLAsync(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLoadURLAsync__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLoadURLAsync__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLoadURLAsync'.\n" + " Possible C/C++ prototypes are:\n" " ofLoadURLAsync(std::string const &,std::string const &)\n" + " ofLoadURLAsync(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSaveURLTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofHttpResponse result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSaveURLTo",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveURLTo" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLTo" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSaveURLTo" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLTo" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofSaveURLTo((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofSaveURLAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSaveURLAsync",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSaveURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLAsync" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSaveURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSaveURLAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)ofSaveURLAsync((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofRemoveURLRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRemoveURLRequest",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRemoveURLRequest" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofRemoveURLRequest(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRemoveAllURLRequests(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofRemoveAllURLRequests")) SWIG_fail; ofRemoveAllURLRequests(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofStopURLLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofStopURLLoader")) SWIG_fail; ofStopURLLoader(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofURLResponseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEvent< ofHttpResponse > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofURLResponseEvent")) SWIG_fail; + result = (ofEvent< ofHttpResponse > *) &ofURLResponseEvent(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofEventT_ofHttpResponse_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofURLFileLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofURLFileLoader")) SWIG_fail; + result = (ofURLFileLoader *)new ofURLFileLoader(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofURLFileLoader, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofURLFileLoader_get",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_get" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_get" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (arg1)->get((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofURLFileLoader_getAsync",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_getAsync" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_getAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofURLFileLoader_getAsync",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_getAsync" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_getAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)(arg1)->getAsync((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_getAsync(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofURLFileLoader, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofURLFileLoader_getAsync__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofURLFileLoader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofURLFileLoader_getAsync__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofURLFileLoader_getAsync'.\n" + " Possible C/C++ prototypes are:\n" " ofURLFileLoader::getAsync(std::string const &,std::string const &)\n" + " ofURLFileLoader::getAsync(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_saveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofURLFileLoader_saveTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_saveTo" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveTo" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveTo" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (arg1)->saveTo((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_saveAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofURLFileLoader_saveAsync",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_saveAsync" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveAsync" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_saveAsync" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (int)(arg1)->saveAsync((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofURLFileLoader_remove",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_remove" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofURLFileLoader_remove" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->remove(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofURLFileLoader_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_clear" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofURLFileLoader_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_stop" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofURLFileLoader_handleRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; ofHttpRequest *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofHttpResponse result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofURLFileLoader_handleRequest",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofURLFileLoader_handleRequest" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofHttpRequest, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofURLFileLoader_handleRequest" "', argument " "2"" of type '" "ofHttpRequest &""'"); } + arg2 = reinterpret_cast< ofHttpRequest * >(argp2); result = (arg1)->handleRequest(*arg2); + resultobj = SWIG_NewPointerObj((new ofHttpResponse(static_cast< const ofHttpResponse& >(result))), SWIGTYPE_p_ofHttpResponse, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofURLFileLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofURLFileLoader *arg1 = (ofURLFileLoader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofURLFileLoader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofURLFileLoader, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofURLFileLoader" "', argument " "1"" of type '" "ofURLFileLoader *""'"); } + arg1 = reinterpret_cast< ofURLFileLoader * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofURLFileLoader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofURLFileLoader, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofRectangle")) SWIG_fail; + result = (ofRectangle *)new ofRectangle(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofRectangle *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofRectangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofRectangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofRectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofRectangle *)new ofRectangle(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofRectangle *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofRectangle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofRectangle *)new ofRectangle((ofPoint const &)*arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofRectangle *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofRectangle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (ofRectangle *)new ofRectangle((ofRectangle const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofRectangle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofRectangle *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofRectangle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofRectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofRectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); + result = (ofRectangle *)new ofRectangle((ofPoint const &)*arg1,(ofPoint const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofRectangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofRectangle__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofRectangle__SWIG_3(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofRectangle__SWIG_4(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofRectangle__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofRectangle__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofRectangle'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::ofRectangle()\n" + " ofRectangle::ofRectangle(float,float,float,float)\n" " ofRectangle::ofRectangle(ofPoint const &,float,float)\n" + " ofRectangle::ofRectangle(ofRectangle const &)\n" " ofRectangle::ofRectangle(ofPoint const &,ofPoint const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofRectangle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofRectangle" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectangle_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectangle_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectangle_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_set" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_set" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_set" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_set" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->set((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_set" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_set" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofRectangle_set" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_set" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); (arg1)->set((ofPoint const &)*arg2,(ofPoint const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_set__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_set__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_set__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_set'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::set(float,float,float,float)\n" + " ofRectangle::set(ofPoint const &,float,float)\n" " ofRectangle::set(ofRectangle const &)\n" + " ofRectangle::set(ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_setX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_setX",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setX" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setX" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setX(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_setY",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setY" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setY" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setY(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_setWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setWidth" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setWidth" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_setHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setHeight" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setHeight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_setPosition",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setPosition" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setPosition" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_setPosition" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setPosition(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_setPosition",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setPosition" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_setPosition" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_setPosition" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->setPosition((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setPosition(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_setPosition__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_setPosition__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_setPosition'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::setPosition(float,float)\n" + " ofRectangle::setPosition(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_setSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_setSize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setSize" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setSize" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_setSize" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setSize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setFromCenter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectangle_setFromCenter",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setFromCenter" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_setFromCenter" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_setFromCenter" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_setFromCenter" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectangle_setFromCenter" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setFromCenter(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setFromCenter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectangle_setFromCenter",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_setFromCenter" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_setFromCenter" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_setFromCenter" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_setFromCenter" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_setFromCenter" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setFromCenter((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_setFromCenter(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_setFromCenter__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_setFromCenter__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_setFromCenter'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::setFromCenter(float,float,float,float)\n" + " ofRectangle::setFromCenter(ofPoint const &,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_translate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_translate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_translate" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_translate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_translate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->translate(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_translate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_translate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_translate" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->translate((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_translate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_translate__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_translate__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_translate'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::translate(float,float)\n" + " ofRectangle::translate(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_translateX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_translateX",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_translateX" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_translateX" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->translateX(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_translateY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_translateY",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_translateY" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_translateY" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->translateY(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_scale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scale" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->scale(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_scale",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scale" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_scale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->scale(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scale__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_scale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scale" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scale" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scale" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->scale((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_scale__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_scale__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_scale__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_scale'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::scale(float)\n" " ofRectangle::scale(float,float)\n" + " ofRectangle::scale(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_scaleWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleWidth" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_scaleWidth" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->scaleWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_scaleHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleHeight" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_scaleHeight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->scaleHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleFromCenter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_scaleFromCenter",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleFromCenter" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_scaleFromCenter" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->scaleFromCenter(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleFromCenter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_scaleFromCenter",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleFromCenter" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_scaleFromCenter" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_scaleFromCenter" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->scaleFromCenter(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleFromCenter__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_scaleFromCenter",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleFromCenter" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scaleFromCenter" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleFromCenter" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->scaleFromCenter((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleFromCenter(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_scaleFromCenter__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_scaleFromCenter__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_scaleFromCenter__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_scaleFromCenter'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::scaleFromCenter(float)\n" + " ofRectangle::scaleFromCenter(float,float)\n" " ofRectangle::scaleFromCenter(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleToScaleMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofScaleMode arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_scaleToScaleMode",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleToScaleMode" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scaleToScaleMode" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleToScaleMode" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_scaleToScaleMode" "', argument " "3"" of type '" "ofScaleMode""'"); } + arg3 = static_cast< ofScaleMode >(val3); (arg1)->scaleTo((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_scaleTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->scaleTo((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAspectRatioMode arg3 ; + ofAlignHorz arg4 ; ofAlignVert arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectangle_scaleTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_scaleTo" "', argument " "3"" of type '" "ofAspectRatioMode""'"); } + arg3 = static_cast< ofAspectRatioMode >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_scaleTo" "', argument " "4"" of type '" "ofAlignHorz""'"); } + arg4 = static_cast< ofAlignHorz >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectangle_scaleTo" "', argument " "5"" of type '" "ofAlignVert""'"); } + arg5 = static_cast< ofAlignVert >(val5); (arg1)->scaleTo((ofRectangle const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAspectRatioMode arg3 ; + ofAlignHorz arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectangle_scaleTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_scaleTo" "', argument " "3"" of type '" "ofAspectRatioMode""'"); } + arg3 = static_cast< ofAspectRatioMode >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_scaleTo" "', argument " "4"" of type '" "ofAlignHorz""'"); } + arg4 = static_cast< ofAlignHorz >(val4); (arg1)->scaleTo((ofRectangle const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleToAspectRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAspectRatioMode arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_scaleToAspectRatio",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleToAspectRatio" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scaleToAspectRatio" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleToAspectRatio" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_scaleToAspectRatio" "', argument " "3"" of type '" "ofAspectRatioMode""'"); } + arg3 = static_cast< ofAspectRatioMode >(val3); (arg1)->scaleTo((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAspectRatioMode arg3 ; + ofAlignHorz arg4 ; ofAlignVert arg5 ; ofAlignHorz arg6 ; ofAlignVert arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; + int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofRectangle_scaleTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_scaleTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_scaleTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_scaleTo" "', argument " "3"" of type '" "ofAspectRatioMode""'"); } + arg3 = static_cast< ofAspectRatioMode >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_scaleTo" "', argument " "4"" of type '" "ofAlignHorz""'"); } + arg4 = static_cast< ofAlignHorz >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectangle_scaleTo" "', argument " "5"" of type '" "ofAlignVert""'"); } + arg5 = static_cast< ofAlignVert >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectangle_scaleTo" "', argument " "6"" of type '" "ofAlignHorz""'"); } + arg6 = static_cast< ofAlignHorz >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectangle_scaleTo" "', argument " "7"" of type '" "ofAlignVert""'"); } + arg7 = static_cast< ofAlignVert >(val7); (arg1)->scaleTo((ofRectangle const &)*arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_scaleTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_scaleTo__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_scaleTo__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_scaleTo__SWIG_1(self, args);} } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_scaleTo__SWIG_3(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_scaleTo'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::scaleTo(ofRectangle const &)\n" + " ofRectangle::scaleTo(ofRectangle const &,ofAspectRatioMode,ofAlignHorz,ofAlignVert)\n" + " ofRectangle::scaleTo(ofRectangle const &,ofAspectRatioMode,ofAlignHorz)\n" + " ofRectangle::scaleTo(ofRectangle const &,ofAspectRatioMode,ofAlignHorz,ofAlignVert,ofAlignHorz,ofAlignVert)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float *arg2 = 0 ; ofAlignHorz arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_alignToHorz",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToHorz" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignToHorz" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); (arg1)->alignToHorz((float const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_alignToHorz",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToHorz" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; (arg1)->alignToHorz((float const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAlignHorz arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_alignToHorz",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToHorz" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignToHorz" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); (arg1)->alignToHorz((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_alignToHorz",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToHorz" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->alignToHorz((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAlignHorz arg3 ; ofAlignHorz arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectangle_alignToHorz",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToHorz" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignToHorz" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignToHorz" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_alignToHorz" "', argument " "4"" of type '" "ofAlignHorz""'"); } + arg4 = static_cast< ofAlignHorz >(val4); (arg1)->alignToHorz((ofRectangle const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToHorz(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_alignToHorz__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToHorz__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToHorz__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToHorz__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToHorz__SWIG_4(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_alignToHorz'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::alignToHorz(float const &,ofAlignHorz)\n" + " ofRectangle::alignToHorz(float const &)\n" " ofRectangle::alignToHorz(ofRectangle const &,ofAlignHorz)\n" + " ofRectangle::alignToHorz(ofRectangle const &)\n" + " ofRectangle::alignToHorz(ofRectangle const &,ofAlignHorz,ofAlignHorz)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float *arg2 = 0 ; ofAlignVert arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float temp2 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_alignToVert",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToVert" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignToVert" "', argument " "3"" of type '" "ofAlignVert""'"); } + arg3 = static_cast< ofAlignVert >(val3); (arg1)->alignToVert((float const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float temp2 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_alignToVert",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToVert" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "float""'"); } + temp2 = static_cast< float >(val2); arg2 = &temp2; (arg1)->alignToVert((float const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAlignVert arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_alignToVert",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToVert" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignToVert" "', argument " "3"" of type '" "ofAlignVert""'"); } + arg3 = static_cast< ofAlignVert >(val3); (arg1)->alignToVert((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_alignToVert",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToVert" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->alignToVert((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAlignVert arg3 ; ofAlignVert arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectangle_alignToVert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignToVert" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignToVert" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignToVert" "', argument " "3"" of type '" "ofAlignVert""'"); } + arg3 = static_cast< ofAlignVert >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_alignToVert" "', argument " "4"" of type '" "ofAlignVert""'"); } + arg4 = static_cast< ofAlignVert >(val4); (arg1)->alignToVert((ofRectangle const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignToVert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_alignToVert__SWIG_3(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToVert__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToVert__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToVert__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignToVert__SWIG_4(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_alignToVert'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::alignToVert(float const &,ofAlignVert)\n" + " ofRectangle::alignToVert(float const &)\n" " ofRectangle::alignToVert(ofRectangle const &,ofAlignVert)\n" + " ofRectangle::alignToVert(ofRectangle const &)\n" + " ofRectangle::alignToVert(ofRectangle const &,ofAlignVert,ofAlignVert)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; ofAlignHorz arg3 ; ofAlignVert arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectangle_alignTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignTo" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_alignTo" "', argument " "4"" of type '" "ofAlignVert""'"); } + arg4 = static_cast< ofAlignVert >(val4); (arg1)->alignTo((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; ofAlignHorz arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_alignTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignTo" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); (arg1)->alignTo((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_alignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->alignTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAlignHorz arg3 ; ofAlignVert arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectangle_alignTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignTo" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_alignTo" "', argument " "4"" of type '" "ofAlignVert""'"); } + arg4 = static_cast< ofAlignVert >(val4); (arg1)->alignTo((ofRectangle const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAlignHorz arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_alignTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignTo" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); (arg1)->alignTo((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_alignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->alignTo((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; ofAlignHorz arg3 ; ofAlignVert arg4 ; + ofAlignHorz arg5 ; ofAlignVert arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofRectangle_alignTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_alignTo" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_alignTo" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_alignTo" "', argument " "3"" of type '" "ofAlignHorz""'"); } + arg3 = static_cast< ofAlignHorz >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectangle_alignTo" "', argument " "4"" of type '" "ofAlignVert""'"); } + arg4 = static_cast< ofAlignVert >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectangle_alignTo" "', argument " "5"" of type '" "ofAlignHorz""'"); } + arg5 = static_cast< ofAlignHorz >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectangle_alignTo" "', argument " "6"" of type '" "ofAlignVert""'"); } + arg6 = static_cast< ofAlignVert >(val6); (arg1)->alignTo((ofRectangle const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_alignTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_alignTo__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_alignTo__SWIG_5(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignTo__SWIG_4(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignTo__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignTo__SWIG_3(self, args);} } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_alignTo__SWIG_6(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_alignTo'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::alignTo(ofPoint const &,ofAlignHorz,ofAlignVert)\n" + " ofRectangle::alignTo(ofPoint const &,ofAlignHorz)\n" " ofRectangle::alignTo(ofPoint const &)\n" + " ofRectangle::alignTo(ofRectangle const &,ofAlignHorz,ofAlignVert)\n" + " ofRectangle::alignTo(ofRectangle const &,ofAlignHorz)\n" " ofRectangle::alignTo(ofRectangle const &)\n" + " ofRectangle::alignTo(ofRectangle const &,ofAlignHorz,ofAlignVert,ofAlignHorz,ofAlignVert)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_inside__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_inside",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_inside" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_inside" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_inside" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofRectangle const *)arg1)->inside(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_inside__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_inside",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_inside" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = (bool)((ofRectangle const *)arg1)->inside((ofPoint const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_inside__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_inside",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_inside" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_inside" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_inside" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); + result = (bool)((ofRectangle const *)arg1)->inside((ofRectangle const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_inside__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_inside",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_inside" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofRectangle_inside" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_inside" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); + result = (bool)((ofRectangle const *)arg1)->inside((ofPoint const &)*arg2,(ofPoint const &)*arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_inside(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_inside__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_inside__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_inside__SWIG_3(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_inside__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_inside'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::inside(float,float) const\n" + " ofRectangle::inside(ofPoint const &) const\n" " ofRectangle::inside(ofRectangle const &) const\n" + " ofRectangle::inside(ofPoint const &,ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_intersects__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_intersects",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_intersects" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_intersects" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_intersects" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); + result = (bool)((ofRectangle const *)arg1)->intersects((ofRectangle const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_intersects__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_intersects",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_intersects" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_intersects" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_intersects" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofRectangle_intersects" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_intersects" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); + result = (bool)((ofRectangle const *)arg1)->intersects((ofPoint const &)*arg2,(ofPoint const &)*arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_intersects(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_intersects__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_intersects__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_intersects'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::intersects(ofRectangle const &) const\n" + " ofRectangle::intersects(ofPoint const &,ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_growToInclude",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_growToInclude" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_growToInclude" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectangle_growToInclude" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->growToInclude(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_growToInclude",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_growToInclude" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_growToInclude" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_growToInclude" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->growToInclude((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_growToInclude",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_growToInclude" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_growToInclude" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_growToInclude" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->growToInclude((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofRectangle_growToInclude",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_growToInclude" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_growToInclude" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_growToInclude" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofRectangle_growToInclude" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_growToInclude" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); (arg1)->growToInclude((ofPoint const &)*arg2,(ofPoint const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_growToInclude(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_growToInclude__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_growToInclude__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRectangle_growToInclude__SWIG_3(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectangle_growToInclude__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectangle_growToInclude'.\n" + " Possible C/C++ prototypes are:\n" " ofRectangle::growToInclude(float,float)\n" + " ofRectangle::growToInclude(ofPoint const &)\n" " ofRectangle::growToInclude(ofRectangle const &)\n" + " ofRectangle::growToInclude(ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectangle_getIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_getIntersection",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getIntersection" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_getIntersection" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_getIntersection" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); + result = ((ofRectangle const *)arg1)->getIntersection((ofRectangle const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getUnion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_getUnion",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getUnion" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_getUnion" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle_getUnion" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); result = ((ofRectangle const *)arg1)->getUnion((ofRectangle const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_standardize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_standardize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_standardize" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); (arg1)->standardize(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getStandardized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getStandardized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getStandardized" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getStandardized(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_isStandardized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_isStandardized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_isStandardized" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (bool)((ofRectangle const *)arg1)->isStandardized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getArea",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getArea" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getArea(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getPerimeter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getPerimeter",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getPerimeter" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getPerimeter(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getAspectRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getAspectRatio",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getAspectRatio" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getAspectRatio(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_isEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_isEmpty",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_isEmpty" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (bool)((ofRectangle const *)arg1)->isEmpty(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getMin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getMin" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getMin(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getMax",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getMax" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getMax(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getMinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getMinX",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getMinX" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getMinX(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getMaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getMaxX",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getMaxX" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getMaxX(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getMinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getMinY",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getMinY" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getMinY(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getMaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getMaxY",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getMaxY" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getMaxY(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getLeft",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getLeft" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getLeft(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getRight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getRight" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getRight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getTop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getTop" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getTop(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getBottom",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getBottom" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getBottom(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getTopLeft",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getTopLeft" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getTopLeft(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getTopRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getTopRight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getTopRight" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getTopRight(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getBottomLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getBottomLeft",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getBottomLeft" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getBottomLeft(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getBottomRight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getBottomRight" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getBottomRight(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getHorzAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofAlignHorz arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_getHorzAnchor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getHorzAnchor" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_getHorzAnchor" "', argument " "2"" of type '" "ofAlignHorz""'"); } + arg2 = static_cast< ofAlignHorz >(val2); result = (float)((ofRectangle const *)arg1)->getHorzAnchor(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getVertAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofAlignVert arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_getVertAnchor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getVertAnchor" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_getVertAnchor" "', argument " "2"" of type '" "ofAlignVert""'"); } + arg2 = static_cast< ofAlignVert >(val2); result = (float)((ofRectangle const *)arg1)->getVertAnchor(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getPosition",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getPosition" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getPosition(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getPositionRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getPositionRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getPositionRef" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (ofPoint *) &(arg1)->getPositionRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getCenter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getCenter",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getCenter" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ((ofRectangle const *)arg1)->getCenter(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getX",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getX" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getX(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getY",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getY" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getY(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getWidth" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_getHeight" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)((ofRectangle const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle___add__" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle___add__" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle___add__" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = (arg1)->operator +((ofPoint const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle___sub__" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle___sub__" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle___sub__" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = (arg1)->operator -((ofPoint const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle___eq__" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle___eq__" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle___eq__" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); + result = (bool)((ofRectangle const *)arg1)->operator ==((ofRectangle const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle___ne__" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle___ne__" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectangle___ne__" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); + result = (bool)((ofRectangle const *)arg1)->operator !=((ofRectangle const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_isZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_isZero",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_isZero" "', argument " "1"" of type '" "ofRectangle const *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (bool)((ofRectangle const *)arg1)->isZero(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_position_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; ofPoint *arg2 = (ofPoint *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_position_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_position_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRectangle_position_set" "', argument " "2"" of type '" "ofPoint *""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); if (arg1) (arg1)->position = *arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_position_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_position_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_position_get" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (ofPoint *)& ((arg1)->position); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_width_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_width_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_width_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_width_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_width_get" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float) ((arg1)->width); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_height_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_height_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_height_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_height_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_height_get" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float) ((arg1)->height); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_x_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_x_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_x_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofRectangle_x_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_x_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_x_get" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)ofRectangle_x_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectangle_y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_y_set" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectangle_y_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofRectangle_y_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle_y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle_y_get" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (float)ofRectangle_y_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectangle___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = (ofRectangle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRectangle___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofRectangle, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectangle___str__" "', argument " "1"" of type '" "ofRectangle *""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = (char *)ofRectangle___str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofRectangle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofRectangle, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofNode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofNode")) SWIG_fail; result = (ofNode *)new ofNode(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofNode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofNode" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofNode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofNode *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofNode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofNode, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode const &""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (ofNode *)new ofNode((ofNode const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofNode__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofNode *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofNode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofNode, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofNode" "', argument " "1"" of type '" "ofNode &&""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (ofNode *)new ofNode((ofNode &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofNode(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofNode__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofNode__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofNode__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofNode'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::ofNode()\n" " ofNode::ofNode(ofNode const &)\n" + " ofNode::ofNode(ofNode &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_setParent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofNode_setParent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setParent" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofNode, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setParent" "', argument " "2"" of type '" "ofNode &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setParent" "', argument " "2"" of type '" "ofNode &""'"); } + arg2 = reinterpret_cast< ofNode * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_setParent" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->setParent(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setParent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setParent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setParent" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofNode, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setParent" "', argument " "2"" of type '" "ofNode &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setParent" "', argument " "2"" of type '" "ofNode &""'"); } + arg2 = reinterpret_cast< ofNode * >(argp2); (arg1)->setParent(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setParent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_setParent__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_setParent__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_setParent'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::setParent(ofNode &,bool)\n" " ofNode::setParent(ofNode &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_clearParent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_clearParent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_clearParent" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_clearParent" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->clearParent(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_clearParent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_clearParent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_clearParent" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); (arg1)->clearParent(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_clearParent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_clearParent__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_clearParent__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_clearParent'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::clearParent(bool)\n" " ofNode::clearParent()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_getParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofNode *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getParent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getParent" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (ofNode *)((ofNode const *)arg1)->getParent(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getPosition",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getPosition" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getPosition(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getX",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getX" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (float)((ofNode const *)arg1)->getX(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getY",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getY" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (float)((ofNode const *)arg1)->getY(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getZ",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getZ" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (float)((ofNode const *)arg1)->getZ(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getXAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getXAxis",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getXAxis" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getXAxis(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getYAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getYAxis",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getYAxis" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getYAxis(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getZAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getZAxis",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getZAxis" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getZAxis(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getSideDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getSideDir",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getSideDir" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getSideDir(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getLookAtDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getLookAtDir",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getLookAtDir" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getLookAtDir(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getUpDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getUpDir",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getUpDir" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getUpDir(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getPitch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getPitch",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getPitch" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (float)((ofNode const *)arg1)->getPitch(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getHeading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getHeading",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getHeading" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (float)((ofNode const *)arg1)->getHeading(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getRoll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getRoll",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getRoll" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (float)((ofNode const *)arg1)->getRoll(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getOrientationQuat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getOrientationQuat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getOrientationQuat" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getOrientationQuat(); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getOrientationEuler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getOrientationEuler",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getOrientationEuler" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getOrientationEuler(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getScale",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getScale" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getScale(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getLocalTransformMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getLocalTransformMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getLocalTransformMatrix" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = (ofMatrix4x4 *) &((ofNode const *)arg1)->getLocalTransformMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getGlobalTransformMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getGlobalTransformMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getGlobalTransformMatrix" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getGlobalTransformMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getGlobalPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getGlobalPosition",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getGlobalPosition" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getGlobalPosition(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getGlobalOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofQuaternion result; if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getGlobalOrientation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getGlobalOrientation" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getGlobalOrientation(); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_getGlobalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_getGlobalScale",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_getGlobalScale" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); result = ((ofNode const *)arg1)->getGlobalScale(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setTransformMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setTransformMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setTransformMatrix" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setTransformMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setTransformMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->setTransformMatrix((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNode_setPosition",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setPosition" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_setPosition" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_setPosition" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_setPosition" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setPosition(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setPosition",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setPosition" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setPosition" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setPosition" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setPosition((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setPosition(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_setPosition__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_setPosition__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_setPosition'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::setPosition(float,float,float)\n" + " ofNode::setPosition(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_setGlobalPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNode_setGlobalPosition",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setGlobalPosition" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_setGlobalPosition" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_setGlobalPosition" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_setGlobalPosition" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setGlobalPosition(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setGlobalPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setGlobalPosition",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setGlobalPosition" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setGlobalPosition" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setGlobalPosition" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setGlobalPosition((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setGlobalPosition(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_setGlobalPosition__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_setGlobalPosition__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_setGlobalPosition'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::setGlobalPosition(float,float,float)\n" + " ofNode::setGlobalPosition(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_setOrientation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setOrientation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setOrientation" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setOrientation" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setOrientation" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->setOrientation((ofQuaternion const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setOrientation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setOrientation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setOrientation" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setOrientation" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setOrientation" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setOrientation((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setOrientation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_setOrientation__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_setOrientation__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_setOrientation'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::setOrientation(ofQuaternion const &)\n" + " ofNode::setOrientation(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_setGlobalOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setGlobalOrientation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setGlobalOrientation" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setGlobalOrientation" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setGlobalOrientation" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->setGlobalOrientation((ofQuaternion const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setScale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setScale" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_setScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setScale(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNode_setScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setScale" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_setScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_setScale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_setScale" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setScale(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setScale__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_setScale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_setScale" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_setScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_setScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_setScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_setScale__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_setScale__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_setScale__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_setScale'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::setScale(float)\n" " ofNode::setScale(float,float,float)\n" + " ofNode::setScale(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_move__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNode_move",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_move" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_move" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_move" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_move" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->move(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_move__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_move",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_move" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_move" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_move" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->move((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_move(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_move__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_move__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_move'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::move(float,float,float)\n" " ofNode::move(ofVec3f const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofNode_truck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_truck",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_truck" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_truck" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->truck(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_boom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_boom",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_boom" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_boom" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->boom(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_dolly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_dolly",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_dolly" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_dolly" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->dolly(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_tilt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_tilt",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_tilt" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_tilt" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->tilt(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_pan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_pan",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_pan" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_pan" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->pan(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_roll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_roll",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_roll" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_roll" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->roll(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_rotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_rotate" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_rotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_rotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->rotate((ofQuaternion const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofNode_rotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_rotate" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofNode_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->rotate(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_rotate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofNode_rotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_rotate" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_rotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_rotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofNode_rotate" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_rotate__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_rotate__SWIG_1(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_rotate__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_rotate'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::rotate(ofQuaternion const &)\n" + " ofNode::rotate(float,ofVec3f const &)\n" " ofNode::rotate(float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_rotateAround__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofQuaternion *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofNode_rotateAround",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_rotateAround" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_rotateAround" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_rotateAround" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofNode_rotateAround" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_rotateAround" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->rotateAround((ofQuaternion const &)*arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_rotateAround__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNode_rotateAround",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_rotateAround" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_rotateAround" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofNode_rotateAround" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_rotateAround" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofNode_rotateAround" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_rotateAround" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); (arg1)->rotateAround(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_rotateAround(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_rotateAround__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_rotateAround__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_rotateAround'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::rotateAround(ofQuaternion const &,ofVec3f const &)\n" + " ofNode::rotateAround(float,ofVec3f const &,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_lookAt",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_lookAt" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->lookAt((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofNode_lookAt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_lookAt" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofNode_lookAt" "', argument " "3"" of type '" "ofVec3f""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "3"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + (arg1)->lookAt((ofVec3f const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_lookAt",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_lookAt" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofNode, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } + arg2 = reinterpret_cast< ofNode * >(argp2); (arg1)->lookAt((ofNode const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_lookAt__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofNode *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofNode_lookAt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_lookAt" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofNode, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "2"" of type '" "ofNode const &""'"); } + arg2 = reinterpret_cast< ofNode * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofNode_lookAt" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_lookAt" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->lookAt((ofNode const &)*arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_lookAt(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_lookAt__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_lookAt__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_lookAt__SWIG_1(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_lookAt__SWIG_3(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_lookAt'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::lookAt(ofVec3f const &)\n" " ofNode::lookAt(ofVec3f const &,ofVec3f)\n" + " ofNode::lookAt(ofNode const &)\n" " ofNode::lookAt(ofNode const &,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_orbit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; ofVec3f *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofNode_orbit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_orbit" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_orbit" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_orbit" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_orbit" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofNode_orbit" "', argument " "5"" of type '" "ofVec3f const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_orbit" "', argument " "5"" of type '" "ofVec3f const &""'"); } + arg5 = reinterpret_cast< ofVec3f * >(argp5); (arg1)->orbit(arg2,arg3,arg4,(ofVec3f const &)*arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_orbit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNode_orbit",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_orbit" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_orbit" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_orbit" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_orbit" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->orbit(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_orbit__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; float arg2 ; float arg3 ; float arg4 ; ofNode *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofNode_orbit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_orbit" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNode_orbit" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNode_orbit" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNode_orbit" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofNode, 0 ); if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofNode_orbit" "', argument " "5"" of type '" "ofNode &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNode_orbit" "', argument " "5"" of type '" "ofNode &""'"); } + arg5 = reinterpret_cast< ofNode * >(argp5); (arg1)->orbit(arg2,arg3,arg4,*arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_orbit(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNode_orbit__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_orbit__SWIG_0(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_orbit__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_orbit'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::orbit(float,float,float,ofVec3f const &)\n" + " ofNode::orbit(float,float,float)\n" " ofNode::orbit(float,float,float,ofNode &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_transformGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofBaseRenderer *arg2 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_transformGL",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_transformGL" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_transformGL" "', argument " "2"" of type '" "ofBaseRenderer *""'"); } + arg2 = reinterpret_cast< ofBaseRenderer * >(argp2); ((ofNode const *)arg1)->transformGL(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_transformGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_transformGL",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_transformGL" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ((ofNode const *)arg1)->transformGL(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_transformGL(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_transformGL__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseRenderer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_transformGL__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_transformGL'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::transformGL(ofBaseRenderer *) const\n" " ofNode::transformGL() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofNode_restoreTransformGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; ofBaseRenderer *arg2 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_restoreTransformGL",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_restoreTransformGL" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_restoreTransformGL" "', argument " "2"" of type '" "ofBaseRenderer *""'"); } + arg2 = reinterpret_cast< ofBaseRenderer * >(argp2); ((ofNode const *)arg1)->restoreTransformGL(arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_restoreTransformGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_restoreTransformGL",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_restoreTransformGL" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ((ofNode const *)arg1)->restoreTransformGL(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_restoreTransformGL(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_restoreTransformGL__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseRenderer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_restoreTransformGL__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_restoreTransformGL'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::restoreTransformGL(ofBaseRenderer *) const\n" + " ofNode::restoreTransformGL() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNode_resetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_resetTransform",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_resetTransform" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); (arg1)->resetTransform(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_customDraw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; ofBaseRenderer *arg2 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofNode_customDraw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_customDraw" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofNode_customDraw" "', argument " "2"" of type '" "ofBaseRenderer const *""'"); } + arg2 = reinterpret_cast< ofBaseRenderer * >(argp2); ((ofNode const *)arg1)->customDraw((ofBaseRenderer const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_customDraw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_customDraw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_customDraw" "', argument " "1"" of type '" "ofNode *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); (arg1)->customDraw(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofNode_customDraw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_customDraw__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBaseRenderer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNode_customDraw__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNode_customDraw'.\n" + " Possible C/C++ prototypes are:\n" " ofNode::customDraw(ofBaseRenderer const *) const\n" " ofNode::customDraw()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofNode_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofNode *arg1 = (ofNode *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNode_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofNode, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNode_draw" "', argument " "1"" of type '" "ofNode const *""'"); } + arg1 = reinterpret_cast< ofNode * >(argp1); ((ofNode const *)arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *ofNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofNode, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofDrawAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofDrawAxis",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawAxis" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofDrawAxis(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; size_t arg2 ; bool arg3 ; bool arg4 ; bool arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; size_t val2 ; + int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawGrid",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawGrid" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawGrid" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawGrid" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); ofDrawGrid(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; size_t arg2 ; bool arg3 ; bool arg4 ; bool arg5 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; + bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawGrid",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawGrid" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawGrid" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ofDrawGrid(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; size_t arg2 ; bool arg3 ; bool arg4 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; + int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawGrid",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawGrid" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ofDrawGrid(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; size_t arg2 ; bool arg3 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawGrid",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGrid" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ofDrawGrid(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; size_t arg2 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawGrid",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGrid" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ofDrawGrid(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawGrid",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGrid" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofDrawGrid(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDrawGrid")) SWIG_fail; ofDrawGrid(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGrid(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofDrawGrid__SWIG_6(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGrid__SWIG_5(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawGrid__SWIG_4(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawGrid__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawGrid__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawGrid__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawGrid__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawGrid'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawGrid(float,size_t,bool,bool,bool,bool)\n" + " ofDrawGrid(float,size_t,bool,bool,bool)\n" " ofDrawGrid(float,size_t,bool,bool)\n" + " ofDrawGrid(float,size_t,bool)\n" " ofDrawGrid(float,size_t)\n" " ofDrawGrid(float)\n" " ofDrawGrid()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; size_t arg2 ; bool arg3 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawGridPlane",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGridPlane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGridPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawGridPlane" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ofDrawGridPlane(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; size_t arg2 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawGridPlane",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGridPlane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawGridPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ofDrawGridPlane(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawGridPlane",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawGridPlane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofDrawGridPlane(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGridPlane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDrawGridPlane")) SWIG_fail; ofDrawGridPlane(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawGridPlane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofDrawGridPlane__SWIG_3(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofDrawGridPlane__SWIG_2(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawGridPlane__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawGridPlane__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawGridPlane'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawGridPlane(float,size_t,bool)\n" " ofDrawGridPlane(float,size_t)\n" + " ofDrawGridPlane(float)\n" " ofDrawGridPlane()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawArrow__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawArrow",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawArrow" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawArrow" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawArrow" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawArrow((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawArrow__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawArrow",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawArrow" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawArrow" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ofDrawArrow((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawArrow(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawArrow__SWIG_1(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawArrow__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawArrow'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawArrow(ofVec3f const &,ofVec3f const &,float)\n" + " ofDrawArrow(ofVec3f const &,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawRotationAxes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawRotationAxes",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRotationAxes" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRotationAxes" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRotationAxes" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofDrawRotationAxes(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRotationAxes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawRotationAxes",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRotationAxes" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRotationAxes" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawRotationAxes(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRotationAxes__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawRotationAxes",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRotationAxes" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofDrawRotationAxes(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRotationAxes(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRotationAxes__SWIG_2(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRotationAxes__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRotationAxes__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawRotationAxes'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawRotationAxes(float,float,int)\n" " ofDrawRotationAxes(float,float)\n" + " ofDrawRotationAxes(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_new_ofCamera(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofCamera")) SWIG_fail; result = (ofCamera *)new ofCamera(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCamera, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofCamera(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofCamera",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofCamera" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setFov(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setFov",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setFov" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setFov" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setFov(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setNearClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setNearClip",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setNearClip" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setNearClip" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setNearClip(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setFarClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setFarClip",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setFarClip" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setFarClip" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setFarClip(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setLensOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setLensOffset",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setLensOffset" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_setLensOffset" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_setLensOffset" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); (arg1)->setLensOffset((ofVec2f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setAspectRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setAspectRatio",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setAspectRatio" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setAspectRatio" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setAspectRatio(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setForceAspectRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setForceAspectRatio",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setForceAspectRatio" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setForceAspectRatio" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setForceAspectRatio(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getFov(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getFov",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getFov" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (float)((ofCamera const *)arg1)->getFov(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getNearClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getNearClip",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getNearClip" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (float)((ofCamera const *)arg1)->getNearClip(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getFarClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getFarClip",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getFarClip" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (float)((ofCamera const *)arg1)->getFarClip(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getLensOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getLensOffset",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getLensOffset" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = ((ofCamera const *)arg1)->getLensOffset(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getForceAspectRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getForceAspectRatio",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getForceAspectRatio" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (bool)((ofCamera const *)arg1)->getForceAspectRatio(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getAspectRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getAspectRatio",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getAspectRatio" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (float)((ofCamera const *)arg1)->getAspectRatio(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; bool arg2 ; float arg3 ; float arg4 ; float arg5 ; + ofVec2f *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofCamera_setupPerspective",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupPerspective" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setupPerspective" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCamera_setupPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCamera_setupPerspective" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCamera_setupPerspective" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofCamera_setupPerspective" "', argument " "6"" of type '" "ofVec2f const &""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_setupPerspective" "', argument " "6"" of type '" "ofVec2f const &""'"); } + arg6 = reinterpret_cast< ofVec2f * >(argp6); (arg1)->setupPerspective(arg2,arg3,arg4,arg5,(ofVec2f const &)*arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; bool arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCamera_setupPerspective",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupPerspective" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setupPerspective" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCamera_setupPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCamera_setupPerspective" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCamera_setupPerspective" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->setupPerspective(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; bool arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; bool val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofCamera_setupPerspective",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupPerspective" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setupPerspective" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCamera_setupPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCamera_setupPerspective" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setupPerspective(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; bool arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofCamera_setupPerspective",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupPerspective" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setupPerspective" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCamera_setupPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setupPerspective(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setupPerspective",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupPerspective" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setupPerspective" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setupPerspective(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_setupPerspective",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupPerspective" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); (arg1)->setupPerspective(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setupPerspective(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_setupPerspective__SWIG_5(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCamera_setupPerspective__SWIG_4(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCamera_setupPerspective__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCamera_setupPerspective__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCamera_setupPerspective__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_setupPerspective__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_setupPerspective'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::setupPerspective(bool,float,float,float,ofVec2f const &)\n" + " ofCamera::setupPerspective(bool,float,float,float)\n" " ofCamera::setupPerspective(bool,float,float)\n" + " ofCamera::setupPerspective(bool,float)\n" " ofCamera::setupPerspective(bool)\n" " ofCamera::setupPerspective()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_setupOffAxisViewPortal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofCamera_setupOffAxisViewPortal",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setupOffAxisViewPortal" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_setupOffAxisViewPortal" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_setupOffAxisViewPortal" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCamera_setupOffAxisViewPortal" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_setupOffAxisViewPortal" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofCamera_setupOffAxisViewPortal" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_setupOffAxisViewPortal" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + (arg1)->setupOffAxisViewPortal((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_setVFlip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setVFlip",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setVFlip" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCamera_setVFlip" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setVFlip(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_isVFlipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_isVFlipped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_isVFlipped" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (bool)((ofCamera const *)arg1)->isVFlipped(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_enableOrtho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_enableOrtho",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_enableOrtho" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); (arg1)->enableOrtho(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_disableOrtho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_disableOrtho",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_disableOrtho" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); (arg1)->disableOrtho(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getOrtho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getOrtho",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getOrtho" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (bool)((ofCamera const *)arg1)->getOrtho(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getImagePlaneDistance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofRectangle arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_getImagePlaneDistance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getImagePlaneDistance" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_getImagePlaneDistance" "', argument " "2"" of type '" "ofRectangle""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_getImagePlaneDistance" "', argument " "2"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } + } result = (float)((ofCamera const *)arg1)->getImagePlaneDistance(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getImagePlaneDistance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getImagePlaneDistance",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getImagePlaneDistance" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = (float)((ofCamera const *)arg1)->getImagePlaneDistance(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getImagePlaneDistance(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[3] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_getImagePlaneDistance__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_getImagePlaneDistance__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_getImagePlaneDistance'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::getImagePlaneDistance(ofRectangle) const\n" + " ofCamera::getImagePlaneDistance() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; ofRectangle arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_begin",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_begin" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_begin" "', argument " "2"" of type '" "ofRectangle""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_begin" "', argument " "2"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } + } (arg1)->begin(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_begin" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); (arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_begin__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_begin__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::begin(ofRectangle)\n" " ofCamera::begin()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_end" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); (arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getProjectionMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofRectangle arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_getProjectionMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getProjectionMatrix" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_getProjectionMatrix" "', argument " "2"" of type '" "ofRectangle""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_getProjectionMatrix" "', argument " "2"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } + } result = ((ofCamera const *)arg1)->getProjectionMatrix(arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getProjectionMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getProjectionMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getProjectionMatrix" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = ((ofCamera const *)arg1)->getProjectionMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getProjectionMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_getProjectionMatrix__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_getProjectionMatrix__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_getProjectionMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::getProjectionMatrix(ofRectangle) const\n" + " ofCamera::getProjectionMatrix() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_getModelViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getModelViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getModelViewMatrix" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = ((ofCamera const *)arg1)->getModelViewMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getModelViewProjectionMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofRectangle arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_getModelViewProjectionMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getModelViewProjectionMatrix" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_getModelViewProjectionMatrix" "', argument " "2"" of type '" "ofRectangle""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_getModelViewProjectionMatrix" "', argument " "2"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } + } result = ((ofCamera const *)arg1)->getModelViewProjectionMatrix(arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getModelViewProjectionMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)"O:ofCamera_getModelViewProjectionMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_getModelViewProjectionMatrix" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); result = ((ofCamera const *)arg1)->getModelViewProjectionMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_getModelViewProjectionMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[3] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_getModelViewProjectionMatrix__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_getModelViewProjectionMatrix__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_getModelViewProjectionMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::getModelViewProjectionMatrix(ofRectangle) const\n" + " ofCamera::getModelViewProjectionMatrix() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_worldToScreen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; ofRectangle arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofCamera_worldToScreen",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_worldToScreen" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_worldToScreen" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_worldToScreen" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCamera_worldToScreen" "', argument " "3"" of type '" "ofRectangle""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_worldToScreen" "', argument " "3"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } + } result = ((ofCamera const *)arg1)->worldToScreen(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_worldToScreen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_worldToScreen",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_worldToScreen" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_worldToScreen" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_worldToScreen" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + result = ((ofCamera const *)arg1)->worldToScreen(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_worldToScreen(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_worldToScreen__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_worldToScreen__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_worldToScreen'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::worldToScreen(ofVec3f,ofRectangle) const\n" + " ofCamera::worldToScreen(ofVec3f) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_screenToWorld__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; ofRectangle arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofCamera_screenToWorld",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_screenToWorld" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_screenToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_screenToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCamera_screenToWorld" "', argument " "3"" of type '" "ofRectangle""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_screenToWorld" "', argument " "3"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } + } result = ((ofCamera const *)arg1)->screenToWorld(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_screenToWorld__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_screenToWorld",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_screenToWorld" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_screenToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_screenToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + result = ((ofCamera const *)arg1)->screenToWorld(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_screenToWorld(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_screenToWorld__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_screenToWorld__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_screenToWorld'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::screenToWorld(ofVec3f,ofRectangle) const\n" + " ofCamera::screenToWorld(ofVec3f) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_worldToCamera__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; ofRectangle arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofCamera_worldToCamera",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_worldToCamera" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_worldToCamera" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_worldToCamera" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCamera_worldToCamera" "', argument " "3"" of type '" "ofRectangle""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_worldToCamera" "', argument " "3"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } + } result = ((ofCamera const *)arg1)->worldToCamera(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_worldToCamera__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_worldToCamera",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_worldToCamera" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_worldToCamera" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_worldToCamera" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + result = ((ofCamera const *)arg1)->worldToCamera(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_worldToCamera(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_worldToCamera__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_worldToCamera__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_worldToCamera'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::worldToCamera(ofVec3f,ofRectangle) const\n" + " ofCamera::worldToCamera(ofVec3f) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_cameraToWorld__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; ofRectangle arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofCamera_cameraToWorld",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_cameraToWorld" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_cameraToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_cameraToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCamera_cameraToWorld" "', argument " "3"" of type '" "ofRectangle""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_cameraToWorld" "', argument " "3"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } + } result = ((ofCamera const *)arg1)->cameraToWorld(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_cameraToWorld__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCamera *arg1 = (ofCamera *) 0 ; ofVec3f arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_cameraToWorld",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_cameraToWorld" "', argument " "1"" of type '" "ofCamera const *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_cameraToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_cameraToWorld" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + result = ((ofCamera const *)arg1)->cameraToWorld(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCamera_cameraToWorld(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_cameraToWorld__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCamera, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCamera_cameraToWorld__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCamera_cameraToWorld'.\n" + " Possible C/C++ prototypes are:\n" " ofCamera::cameraToWorld(ofVec3f,ofRectangle) const\n" + " ofCamera::cameraToWorld(ofVec3f) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCamera_setRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCamera *arg1 = (ofCamera *) 0 ; SwigValueWrapper< shared_ptr< ofBaseRenderer > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCamera_setRenderer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCamera, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCamera_setRenderer" "', argument " "1"" of type '" "ofCamera *""'"); } + arg1 = reinterpret_cast< ofCamera * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCamera_setRenderer" "', argument " "2"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCamera_setRenderer" "', argument " "2"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + else { shared_ptr< ofBaseRenderer > * temp = reinterpret_cast< shared_ptr< ofBaseRenderer > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setRenderer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofCamera_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofCamera, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofEasyCam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofEasyCam")) SWIG_fail; + result = (ofEasyCam *)new ofEasyCam(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofEasyCam, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofEasyCam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofEasyCam",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofEasyCam" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; ofRectangle arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_begin",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_begin" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofEasyCam_begin" "', argument " "2"" of type '" "ofRectangle""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofEasyCam_begin" "', argument " "2"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } + } (arg1)->begin(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_begin" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); (arg1)->begin(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofEasyCam, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofEasyCam_begin__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofEasyCam, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofEasyCam_begin__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofEasyCam_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofEasyCam::begin(ofRectangle)\n" " ofEasyCam::begin()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEasyCam_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_reset",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_reset" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); (arg1)->reset(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setTarget__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setTarget",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setTarget" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofEasyCam_setTarget" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofEasyCam_setTarget" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setTarget((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setTarget__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; ofNode *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setTarget",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setTarget" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofNode, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofEasyCam_setTarget" "', argument " "2"" of type '" "ofNode &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofEasyCam_setTarget" "', argument " "2"" of type '" "ofNode &""'"); } + arg2 = reinterpret_cast< ofNode * >(argp2); (arg1)->setTarget(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setTarget(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofEasyCam, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofEasyCam_setTarget__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofEasyCam, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofNode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofEasyCam_setTarget__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofEasyCam_setTarget'.\n" + " Possible C/C++ prototypes are:\n" " ofEasyCam::setTarget(ofVec3f const &)\n" " ofEasyCam::setTarget(ofNode &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofEasyCam_getTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofNode *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_getTarget",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getTarget" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (ofNode *) &(arg1)->getTarget(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofNode, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setDistance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setDistance" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEasyCam_setDistance" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setDistance(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_getDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_getDistance",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getDistance" "', argument " "1"" of type '" "ofEasyCam const *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (float)((ofEasyCam const *)arg1)->getDistance(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setDrag",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setDrag" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEasyCam_setDrag" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setDrag(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_getDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_getDrag",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getDrag" "', argument " "1"" of type '" "ofEasyCam const *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (float)((ofEasyCam const *)arg1)->getDrag(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setAutoDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setAutoDistance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setAutoDistance" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEasyCam_setAutoDistance" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setAutoDistance(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; ofCoreEvents *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setEvents",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setEvents" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofCoreEvents, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofEasyCam_setEvents" "', argument " "2"" of type '" "ofCoreEvents &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofEasyCam_setEvents" "', argument " "2"" of type '" "ofCoreEvents &""'"); } + arg2 = reinterpret_cast< ofCoreEvents * >(argp2); (arg1)->setEvents(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_setTranslationKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofEasyCam_setTranslationKey",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_setTranslationKey" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); ecode2 = SWIG_AsVal_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEasyCam_setTranslationKey" "', argument " "2"" of type '" "char""'"); } + arg2 = static_cast< char >(val2); (arg1)->setTranslationKey(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_getTranslationKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + char result; if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_getTranslationKey",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getTranslationKey" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (char)(arg1)->getTranslationKey(); + resultobj = SWIG_From_char(static_cast< char >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_enableMouseInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_enableMouseInput",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_enableMouseInput" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); (arg1)->enableMouseInput(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_disableMouseInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_disableMouseInput",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_disableMouseInput" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); (arg1)->disableMouseInput(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_getMouseInputEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_getMouseInputEnabled",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getMouseInputEnabled" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (bool)(arg1)->getMouseInputEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_enableMouseMiddleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_enableMouseMiddleButton",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_enableMouseMiddleButton" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); (arg1)->enableMouseMiddleButton(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_disableMouseMiddleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_disableMouseMiddleButton",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_disableMouseMiddleButton" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); (arg1)->disableMouseMiddleButton(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEasyCam_getMouseMiddleButtonEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofEasyCam *arg1 = (ofEasyCam *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofEasyCam_getMouseMiddleButtonEnabled",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofEasyCam, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEasyCam_getMouseMiddleButtonEnabled" "', argument " "1"" of type '" "ofEasyCam *""'"); } + arg1 = reinterpret_cast< ofEasyCam * >(argp1); result = (bool)(arg1)->getMouseMiddleButtonEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofEasyCam_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofEasyCam, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofMesh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofMesh")) SWIG_fail; result = (ofMesh *)new ofMesh(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPrimitiveMode arg1 ; std::vector< ofVec3f > *arg2 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMesh *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofMesh",&obj0,&obj1)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofMesh" "', argument " "1"" of type '" "ofPrimitiveMode""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofMesh" "', argument " "1"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofMesh" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofMesh" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofVec3f > * >(argp2); + result = (ofMesh *)new ofMesh(arg1,(std::vector< ofVec3f > const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofMesh__SWIG_0(self, args);} if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ofMesh__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofMesh'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::ofMesh()\n" + " ofMesh::ofMesh(ofPrimitiveMode,std::vector< ofVec3f > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofMeshFace > *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setFromTriangles",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setFromTriangles" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofMeshFace > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setFromTriangles" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->setFromTriangles((std::vector< ofMeshFace > const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofMeshFace > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_setFromTriangles",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setFromTriangles" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setFromTriangles" "', argument " "2"" of type '" "std::vector< ofMeshFace > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofMeshFace > * >(argp2); + (arg1)->setFromTriangles((std::vector< ofMeshFace > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setFromTriangles(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_setFromTriangles__SWIG_1(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_setFromTriangles__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_setFromTriangles'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::setFromTriangles(std::vector< ofMeshFace > const &,bool)\n" + " ofMesh::setFromTriangles(std::vector< ofMeshFace > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setMode" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPrimitiveMode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getMode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getMode" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getMode(); + resultobj = SWIG_NewPointerObj((new ofPrimitiveMode(static_cast< const ofPrimitiveMode& >(result))), SWIGTYPE_p_ofPrimitiveMode, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; ofPrimitiveMode arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 ; int res5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_plane",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_plane" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMesh_plane" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_plane" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp5); arg5 = *temp; + if (SWIG_IsNewObj(res5)) delete temp; } } result = ofMesh::plane(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_plane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_plane" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::plane(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_plane",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_plane" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ofMesh::plane(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_plane",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_plane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_plane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofMesh::plane(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_plane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_plane__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_plane__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_plane__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_plane__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_plane'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::plane(float,float,int,int,ofPrimitiveMode)\n" + " ofMesh::plane(float,float,int,int)\n" " ofMesh::plane(float,float,int)\n" " ofMesh::plane(float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; int arg2 ; ofPrimitiveMode arg3 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_sphere",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_sphere" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_sphere" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_sphere" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } result = ofMesh::sphere(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; int arg2 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_sphere",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_sphere" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ofMesh::sphere(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_sphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_sphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::sphere(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_sphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_sphere__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_sphere__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_sphere__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_sphere'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::sphere(float,int,ofPrimitiveMode)\n" " ofMesh::sphere(float,int)\n" + " ofMesh::sphere(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_icosahedron(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_icosahedron",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosahedron" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::icosahedron(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_icosphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; std::size_t arg2 ; float val1 ; int ecode1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_icosphere",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_icosphere" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = ofMesh::icosphere(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_icosphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_icosphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_icosphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::icosphere(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_icosphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_icosphere__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_icosphere__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_icosphere'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::icosphere(float,std::size_t)\n" " ofMesh::icosphere(float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; ofPrimitiveMode arg7 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; + int ecode6 = 0 ; void *argp7 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_cylinder" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); { res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofMesh_cylinder" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_cylinder" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp7); arg7 = *temp; + if (SWIG_IsNewObj(res7)) delete temp; } } result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_cylinder" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cylinder" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = ofMesh::cylinder(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_cylinder",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cylinder" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::cylinder(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_cylinder",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cylinder" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ofMesh::cylinder(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_cylinder",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofMesh::cylinder(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cylinder(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_5(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_4(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cylinder__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_cylinder__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_cylinder'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::cylinder(float,float,int,int,int,bool,ofPrimitiveMode)\n" + " ofMesh::cylinder(float,float,int,int,int,bool)\n" " ofMesh::cylinder(float,float,int,int,int)\n" + " ofMesh::cylinder(float,float,int,int)\n" " ofMesh::cylinder(float,float,int)\n" + " ofMesh::cylinder(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; ofPrimitiveMode arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; + int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cone" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); { res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMesh_cone" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_cone" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp6); arg6 = *temp; + if (SWIG_IsNewObj(res6)) delete temp; } } result = ofMesh::cone(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_cone" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = ofMesh::cone(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_cone",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_cone" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::cone(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; int arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_cone",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_cone" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = ofMesh::cone(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_cone",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_cone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_cone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ofMesh::cone(arg1,arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_cone(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_4(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_cone__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_cone__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_cone'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::cone(float,float,int,int,int,ofPrimitiveMode)\n" + " ofMesh::cone(float,float,int,int,int)\n" " ofMesh::cone(float,float,int,int)\n" " ofMesh::cone(float,float,int)\n" + " ofMesh::cone(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; int arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_box" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMesh_box" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); result = ofMesh::box(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_box" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = ofMesh::box(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_box",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_box" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = ofMesh::box(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_box",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_box" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_box" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_box" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofMesh::box(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_box(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_box__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_box'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::box(float,float,float,int,int,int)\n" + " ofMesh::box(float,float,float,int,int)\n" " ofMesh::box(float,float,float,int)\n" + " ofMesh::box(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_axis__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_axis",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMesh_axis" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = ofMesh::axis(arg1); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_axis__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh result; if (!PyArg_ParseTuple(args,(char *)":ofMesh_axis")) SWIG_fail; result = ofMesh::axis(); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_axis(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofMesh_axis__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofMesh_axis__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_axis'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::axis(float)\n" " ofMesh::axis()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_addVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addVertex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addVertex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addVertex" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addVertex" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->addVertex((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofVec3f > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addVertices",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addVertices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addVertices" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addVertices" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofVec3f > * >(argp2); (arg1)->addVertices((std::vector< ofVec3f > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addVertices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addVertices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addVertices" "', argument " "2"" of type '" "ofVec3f const *""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addVertices" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addVertices((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addVertices__SWIG_0(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_addVertices__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addVertices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::addVertices(std::vector< ofVec3f > const &)\n" + " ofMesh::addVertices(ofVec3f const *,std::size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_removeVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeVertex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeVertex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->removeVertex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setVertex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setVertex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setVertex" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setVertex" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->setVertex(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clearVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearVertices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearVertices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clear" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumVertices(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVerticesPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVerticesPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)(arg1)->getVerticesPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVerticesPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVerticesPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)((ofMesh const *)arg1)->getVerticesPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVerticesPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVerticesPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVerticesPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getVerticesPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getVerticesPointer()\n" " ofMesh::getVerticesPointer() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getVertex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertex" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getVertex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &(arg1)->getVertices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &((ofMesh const *)arg1)->getVertices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVertices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getVertices__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getVertices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getVertices()\n" " ofMesh::getVertices() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveVertsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveVertsChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveVertsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveVertsChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasVertices(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofMesh *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_append",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_append" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMesh, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_append" "', argument " "2"" of type '" "ofMesh const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_append" "', argument " "2"" of type '" "ofMesh const &""'"); } + arg2 = reinterpret_cast< ofMesh * >(argp2); (arg1)->append((ofMesh const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_mergeDuplicateVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_mergeDuplicateVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_mergeDuplicateVertices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->mergeDuplicateVertices(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getCentroid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getCentroid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getCentroid" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getCentroid(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getNormal",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormal" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getNormal" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getNormal(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addNormal",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addNormal" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addNormal" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addNormal" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->addNormal((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofVec3f > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addNormals",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addNormals" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addNormals" "', argument " "2"" of type '" "std::vector< ofVec3f > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofVec3f > * >(argp2); (arg1)->addNormals((std::vector< ofVec3f > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addNormals",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addNormals" "', argument " "2"" of type '" "ofVec3f const *""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addNormals" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addNormals((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addNormals(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addNormals__SWIG_0(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_addNormals__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addNormals'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::addNormals(std::vector< ofVec3f > const &)\n" + " ofMesh::addNormals(ofVec3f const *,std::size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_removeNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeNormal",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeNormal" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeNormal" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->removeNormal(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setNormal",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setNormal" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setNormal" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setNormal" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setNormal" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->setNormal(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clearNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumNormals(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormalsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormalsPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)(arg1)->getNormalsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormalsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormalsPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec3f *)((ofMesh const *)arg1)->getNormalsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormalsPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormalsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormalsPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getNormalsPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getNormalsPointer()\n" " ofMesh::getNormalsPointer() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &(arg1)->getNormals(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofVec3f > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec3f > *) &((ofMesh const *)arg1)->getNormals(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNormals(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormals__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getNormals__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getNormals'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getNormals()\n" " ofMesh::getNormals() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveNormalsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveNormalsChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveNormalsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveNormalsChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasNormals(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_enableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_disableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_usingNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingNormals(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_smoothNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_smoothNormals",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_smoothNormals" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_smoothNormals" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->smoothNormals(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMeshFace result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getFace",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFace" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getFace" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getFace(arg2); + resultobj = SWIG_NewPointerObj((new ofMeshFace(static_cast< const ofMeshFace& >(result))), SWIGTYPE_p_ofMeshFace, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< ofVec3f > > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getFaceNormals",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFaceNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getFaceNormals" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); result = ((ofMesh const *)arg1)->getFaceNormals(arg2); + resultobj = SWIG_NewPointerObj((new std::vector< ofVec3f >(static_cast< const std::vector< ofVec3f >& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getFaceNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getFaceNormals" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getFaceNormals(); + resultobj = SWIG_NewPointerObj((new std::vector< ofVec3f >(static_cast< const std::vector< ofVec3f >& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getFaceNormals(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getFaceNormals__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_getFaceNormals__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getFaceNormals'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getFaceNormals(bool) const\n" " ofMesh::getFaceNormals() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getUniqueFaces(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofMeshFace > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getUniqueFaces",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getUniqueFaces" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofMeshFace > *) &((ofMesh const *)arg1)->getUniqueFaces(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofFloatColor result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getColor" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofFloatColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addColor" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + arg2 = reinterpret_cast< ofFloatColor * >(argp2); (arg1)->addColor((ofFloatColor const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addColors__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofFloatColor > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addColors",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addColors" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addColors" "', argument " "2"" of type '" "std::vector< ofFloatColor > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addColors" "', argument " "2"" of type '" "std::vector< ofFloatColor > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofFloatColor > * >(argp2); + (arg1)->addColors((std::vector< ofFloatColor > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addColors__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofFloatColor *arg2 = (ofFloatColor *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addColors",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addColors" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addColors" "', argument " "2"" of type '" "ofFloatColor const *""'"); } + arg2 = reinterpret_cast< ofFloatColor * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addColors" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addColors((ofFloatColor const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addColors(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addColors__SWIG_0(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_addColors__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addColors'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::addColors(std::vector< ofFloatColor > const &)\n" + " ofMesh::addColors(ofFloatColor const *,std::size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_removeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeColor" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->removeColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofFloatColor *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setColor" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + arg3 = reinterpret_cast< ofFloatColor * >(argp3); (arg1)->setColor(arg2,(ofFloatColor const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clearColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearColors" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumColors" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumColors(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColorsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getColorsPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofFloatColor *)(arg1)->getColorsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofFloatColor *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColorsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getColorsPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofFloatColor *)((ofMesh const *)arg1)->getColorsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getColorsPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getColorsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getColorsPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getColorsPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getColorsPointer()\n" " ofMesh::getColorsPointer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getColors__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofFloatColor > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getColors" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofFloatColor > *) &(arg1)->getColors(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getColors__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofFloatColor > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getColors" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofFloatColor > *) &((ofMesh const *)arg1)->getColors(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getColors(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getColors__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getColors__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getColors'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getColors()\n" " ofMesh::getColors() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveColorsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveColorsChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveColorsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveColorsChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasColors" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasColors(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_enableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableColors" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_disableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableColors" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_usingColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingColors" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingColors(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getTexCoord",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoord" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = ((ofMesh const *)arg1)->getTexCoord(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addTexCoord",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoord" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addTexCoord" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); (arg1)->addTexCoord((ofVec2f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofVec2f > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addTexCoords",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "std::vector< ofVec2f > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "std::vector< ofVec2f > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofVec2f > * >(argp2); (arg1)->addTexCoords((std::vector< ofVec2f > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addTexCoords",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addTexCoords" "', argument " "2"" of type '" "ofVec2f const *""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addTexCoords" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addTexCoords((ofVec2f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTexCoords(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addTexCoords__SWIG_0(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_addTexCoords__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addTexCoords'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::addTexCoords(std::vector< ofVec2f > const &)\n" + " ofMesh::addTexCoords(ofVec2f const *,std::size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_removeTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeTexCoord",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->removeTexCoord(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setTexCoord",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setTexCoord" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMesh_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); (arg1)->setTexCoord(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clearTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumTexCoords(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoordsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoordsPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec2f *)(arg1)->getTexCoordsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoordsPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoordsPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVec2f *)((ofMesh const *)arg1)->getTexCoordsPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoordsPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoordsPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoordsPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getTexCoordsPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getTexCoordsPointer()\n" " ofMesh::getTexCoordsPointer() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofVec2f > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoords" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec2f > *) &(arg1)->getTexCoords(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofVec2f > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofVec2f > *) &((ofMesh const *)arg1)->getTexCoords(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getTexCoords(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoords__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getTexCoords__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getTexCoords'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getTexCoords()\n" " ofMesh::getTexCoords() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveTexCoordsChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveTexCoordsChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveTexCoordsChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveTexCoordsChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasTexCoords" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasTexCoords(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_enableTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableTextures" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableTextures(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_disableTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableTextures" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableTextures(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_usingTextures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingTextures",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingTextures" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingTextures(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setupIndicesAuto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_setupIndicesAuto",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setupIndicesAuto" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->setupIndicesAuto(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofIndexType > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofIndexType > *) &(arg1)->getIndices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofIndexType result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_getIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndex" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofIndexType)((ofMesh const *)arg1)->getIndex(arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_addIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->addIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::vector< ofIndexType > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_addIndices",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "std::vector< ofIndexType > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "std::vector< ofIndexType > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofIndexType > * >(argp2); + (arg1)->addIndices((std::vector< ofIndexType > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType *arg2 = (ofIndexType *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_addIndices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_addIndices" "', argument " "2"" of type '" "ofIndexType const *""'"); } + arg2 = reinterpret_cast< ofIndexType * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addIndices" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); (arg1)->addIndices((ofIndexType const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addIndices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofMesh_addIndices__SWIG_0(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_addIndices__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_addIndices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::addIndices(std::vector< ofIndexType > const &)\n" + " ofMesh::addIndices(ofIndexType const *,std::size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_removeIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_removeIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_removeIndex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_removeIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); (arg1)->removeIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; + int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_setIndex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setIndex" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setIndex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setIndex" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); (arg1)->setIndex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_clearIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_clearIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_clearIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->clearIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getNumIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getNumIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getNumIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = ((ofMesh const *)arg1)->getNumIndices(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofIndexType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndexPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndexPointer" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofIndexType *)(arg1)->getIndexPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofIndexType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndexPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndexPointer" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofIndexType *)((ofMesh const *)arg1)->getIndexPointer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndexPointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndexPointer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndexPointer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getIndexPointer'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getIndexPointer()\n" " ofMesh::getIndexPointer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofIndexType > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_getIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (std::vector< ofIndexType > *) &((ofMesh const *)arg1)->getIndices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getIndices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_getIndices__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getIndices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getIndices()\n" " ofMesh::getIndices() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_haveIndicesChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_haveIndicesChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_haveIndicesChanged" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)(arg1)->haveIndicesChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_hasIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_hasIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_hasIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->hasIndices(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_addTriangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; ofIndexType arg4 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_addTriangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_addTriangle" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_addTriangle" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_addTriangle" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_addTriangle" "', argument " "4"" of type '" "ofIndexType""'"); } + arg4 = static_cast< ofIndexType >(val4); (arg1)->addTriangle(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_enableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_enableIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_enableIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->enableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_disableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_disableIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_disableIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); (arg1)->disableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_usingIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_usingIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_usingIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (bool)((ofMesh const *)arg1)->usingIndices(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_setColorForIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; ofColor arg4 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMesh_setColorForIndices",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_setColorForIndices" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_setColorForIndices" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_setColorForIndices" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); { + res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMesh_setColorForIndices" "', argument " "4"" of type '" "ofColor""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_setColorForIndices" "', argument " "4"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + (arg1)->setColorForIndices(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_getMeshForIndices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getMeshForIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getMeshForIndices" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_getMeshForIndices" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); result = ((ofMesh const *)arg1)->getMeshForIndices(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMesh *arg1 = (ofMesh *) 0 ; ofIndexType arg2 ; ofIndexType arg3 ; ofIndexType arg4 ; + ofIndexType arg5 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; + unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMesh_getMeshForIndices",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_getMeshForIndices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMesh_getMeshForIndices" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_getMeshForIndices" "', argument " "3"" of type '" "ofIndexType""'"); } + arg3 = static_cast< ofIndexType >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMesh_getMeshForIndices" "', argument " "4"" of type '" "ofIndexType""'"); } + arg4 = static_cast< ofIndexType >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMesh_getMeshForIndices" "', argument " "5"" of type '" "ofIndexType""'"); } + arg5 = static_cast< ofIndexType >(val5); result = ((ofMesh const *)arg1)->getMeshForIndices(arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_getMeshForIndices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_getMeshForIndices__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_getMeshForIndices__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_getMeshForIndices'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::getMeshForIndices(ofIndexType,ofIndexType) const\n" + " ofMesh::getMeshForIndices(ofIndexType,ofIndexType,ofIndexType,ofIndexType) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_drawVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawVertices" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->drawVertices(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_drawWireframe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawWireframe",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawWireframe" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->drawWireframe(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_drawFaces(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_drawFaces",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_drawFaces" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->drawFaces(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMesh_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_draw" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); ((ofMesh const *)arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; ofPolyRenderMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_draw" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyRenderMode, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } + else { ofPolyRenderMode * temp = reinterpret_cast< ofPolyRenderMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } ((ofMesh const *)arg1)->draw(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_draw__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPolyRenderMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_draw__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_draw'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::draw() const\n" " ofMesh::draw(ofPolyRenderMode) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMesh_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_load" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->load(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMesh_save",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_save" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMesh_save" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ((ofMesh const *)arg1)->save(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMesh_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMesh_save" "', argument " "1"" of type '" "ofMesh const *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofMesh_save" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ((ofMesh const *)arg1)->save(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMesh_save(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMesh_save__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMesh_save__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMesh_save'.\n" + " Possible C/C++ prototypes are:\n" " ofMesh::save(std::string,bool) const\n" " ofMesh::save(std::string) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = (ofMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMesh, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMesh" "', argument " "1"" of type '" "ofMesh *""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofMesh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofMesh, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofMeshFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofMeshFace")) SWIG_fail; + result = (ofMeshFace *)new ofMeshFace(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMeshFace, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_getFaceNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMeshFace_getFaceNormal",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getFaceNormal" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getFaceNormal(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_setVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setVertex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setVertex" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setVertex" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMeshFace_setVertex" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->setVertex(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_getVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getVertex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getVertex" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getVertex" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getVertex(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_setNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setNormal",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setNormal" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setNormal" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setNormal" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMeshFace_setNormal" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->setNormal(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_getNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getNormal",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getNormal" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getNormal" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofVec3f *) &((ofMeshFace const *)arg1)->getNormal(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_setColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofFloatColor *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setColor" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMeshFace_setColor" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + arg3 = reinterpret_cast< ofFloatColor * >(argp3); (arg1)->setColor(arg2,(ofFloatColor const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_getColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofFloatColor *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getColor" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getColor" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofFloatColor *) &((ofMeshFace const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_setTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMeshFace_setTexCoord",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setTexCoord" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMeshFace_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMeshFace_setTexCoord" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); (arg1)->setTexCoord(arg2,(ofVec2f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_getTexCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; ofIndexType arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_getTexCoord",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_getTexCoord" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_getTexCoord" "', argument " "2"" of type '" "ofIndexType""'"); } + arg2 = static_cast< ofIndexType >(val2); result = (ofVec2f *) &((ofMeshFace const *)arg1)->getTexCoord(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_setHasColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_setHasColors",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setHasColors" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setHasColors" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setHasColors(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_setHasNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_setHasNormals",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setHasNormals" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setHasNormals" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setHasNormals(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_setHasTexcoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMeshFace_setHasTexcoords",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_setHasTexcoords" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMeshFace_setHasTexcoords" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setHasTexcoords(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_hasColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMeshFace_hasColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_hasColors" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); result = (bool)((ofMeshFace const *)arg1)->hasColors(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_hasNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMeshFace_hasNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_hasNormals" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); result = (bool)((ofMeshFace const *)arg1)->hasNormals(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMeshFace_hasTexcoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMeshFace_hasTexcoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMeshFace_hasTexcoords" "', argument " "1"" of type '" "ofMeshFace const *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); result = (bool)((ofMeshFace const *)arg1)->hasTexcoords(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofMeshFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMeshFace *arg1 = (ofMeshFace *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMeshFace",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMeshFace, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMeshFace" "', argument " "1"" of type '" "ofMeshFace *""'"); } + arg1 = reinterpret_cast< ofMeshFace * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofMeshFace_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofMeshFace, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofPlanePrimitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":new_ofPlanePrimitive")) SWIG_fail; result = (ofPlanePrimitive *)new ofPlanePrimitive(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPlanePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPlanePrimitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; ofPrimitiveMode arg5 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 ; int res5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPlanePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_ofPlanePrimitive",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofPlanePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofPlanePrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofPlanePrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofPlanePrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ofPlanePrimitive" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofPlanePrimitive" "', argument " "5"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp5); arg5 = *temp; + if (SWIG_IsNewObj(res5)) delete temp; } } result = (ofPlanePrimitive *)new ofPlanePrimitive(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPlanePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPlanePrimitive__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofPlanePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofPlanePrimitive",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofPlanePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofPlanePrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofPlanePrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofPlanePrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = (ofPlanePrimitive *)new ofPlanePrimitive(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPlanePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPlanePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofPlanePrimitive__SWIG_0(self, args);} if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofPlanePrimitive__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofPlanePrimitive__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofPlanePrimitive'.\n" + " Possible C/C++ prototypes are:\n" " ofPlanePrimitive::ofPlanePrimitive()\n" + " ofPlanePrimitive::ofPlanePrimitive(float,float,int,int,ofPrimitiveMode)\n" + " ofPlanePrimitive::ofPlanePrimitive(float,float,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofPlanePrimitive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPlanePrimitive",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPlanePrimitive" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; + ofPrimitiveMode arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPlanePrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_set" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPlanePrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPlanePrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPlanePrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); { res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofPlanePrimitive_set" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPlanePrimitive_set" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp6); arg6 = *temp; + if (SWIG_IsNewObj(res6)) delete temp; } } (arg1)->set(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPlanePrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_set" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPlanePrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPlanePrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPlanePrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPlanePrimitive_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_set" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPlanePrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPlanePrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPlanePrimitive_set__SWIG_2(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPlanePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPlanePrimitive_set__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPlanePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPlanePrimitive_set__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPlanePrimitive_set'.\n" + " Possible C/C++ prototypes are:\n" " ofPlanePrimitive::set(float,float,int,int,ofPrimitiveMode)\n" + " ofPlanePrimitive::set(float,float,int,int)\n" " ofPlanePrimitive::set(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_resizeToTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; ofTexture *arg2 = 0 ; float arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPlanePrimitive_resizeToTexture",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + arg2 = reinterpret_cast< ofTexture * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->resizeToTexture(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_resizeToTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; ofTexture *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPlanePrimitive_resizeToTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPlanePrimitive_resizeToTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + arg2 = reinterpret_cast< ofTexture * >(argp2); (arg1)->resizeToTexture(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_resizeToTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[4] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPlanePrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofPlanePrimitive_resizeToTexture__SWIG_1(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPlanePrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPlanePrimitive_resizeToTexture__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPlanePrimitive_resizeToTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofPlanePrimitive::resizeToTexture(ofTexture &,float)\n" + " ofPlanePrimitive::resizeToTexture(ofTexture &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_setWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPlanePrimitive_setWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_setWidth" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_setWidth" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_setHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPlanePrimitive_setHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_setHeight" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_setHeight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_setColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPlanePrimitive_setColumns",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_setColumns" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_setColumns" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setColumns(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_setRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPlanePrimitive_setRows",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_setRows" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_setRows" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setRows(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_setResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPlanePrimitive_setResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_setResolution" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPlanePrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPlanePrimitive_setResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPlanePrimitive_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_setMode" "', argument " "1"" of type '" "ofPlanePrimitive *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPlanePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPlanePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getNumColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getNumColumns",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getNumColumns" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (int)((ofPlanePrimitive const *)arg1)->getNumColumns(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getNumRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getNumRows",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getNumRows" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (int)((ofPlanePrimitive const *)arg1)->getNumRows(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofVec2f result; if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getResolution" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = ((ofPlanePrimitive const *)arg1)->getResolution(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getWidth" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (float)((ofPlanePrimitive const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPlanePrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPlanePrimitive *arg1 = (ofPlanePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPlanePrimitive_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPlanePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPlanePrimitive_getHeight" "', argument " "1"" of type '" "ofPlanePrimitive const *""'"); } + arg1 = reinterpret_cast< ofPlanePrimitive * >(argp1); result = (float)((ofPlanePrimitive const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofPlanePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPlanePrimitive, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofSpherePrimitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSpherePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":new_ofSpherePrimitive")) SWIG_fail; + result = (ofSpherePrimitive *)new ofSpherePrimitive(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSpherePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofSpherePrimitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; int arg2 ; ofPrimitiveMode arg3 ; float val1 ; int ecode1 = 0 ; int val2 ; + int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofSpherePrimitive *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofSpherePrimitive",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofSpherePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofSpherePrimitive" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ofSpherePrimitive" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofSpherePrimitive" "', argument " "3"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } result = (ofSpherePrimitive *)new ofSpherePrimitive(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSpherePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofSpherePrimitive__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; int arg2 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofSpherePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofSpherePrimitive",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofSpherePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofSpherePrimitive" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofSpherePrimitive *)new ofSpherePrimitive(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSpherePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofSpherePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofSpherePrimitive__SWIG_0(self, args);} if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofSpherePrimitive__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofSpherePrimitive__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofSpherePrimitive'.\n" + " Possible C/C++ prototypes are:\n" " ofSpherePrimitive::ofSpherePrimitive()\n" + " ofSpherePrimitive::ofSpherePrimitive(float,int,ofPrimitiveMode)\n" + " ofSpherePrimitive::ofSpherePrimitive(float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofSpherePrimitive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSpherePrimitive",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSpherePrimitive" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; float arg2 ; int arg3 ; ofPrimitiveMode arg4 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSpherePrimitive_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_set" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSpherePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSpherePrimitive_set" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofSpherePrimitive_set" "', argument " "4"" of type '" "ofPrimitiveMode""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSpherePrimitive_set" "', argument " "4"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp4); arg4 = *temp; + if (SWIG_IsNewObj(res4)) delete temp; } } (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; float arg2 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofSpherePrimitive_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_set" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSpherePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSpherePrimitive_set" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSpherePrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSpherePrimitive_set__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSpherePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSpherePrimitive_set__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSpherePrimitive_set'.\n" + " Possible C/C++ prototypes are:\n" " ofSpherePrimitive::set(float,int,ofPrimitiveMode)\n" + " ofSpherePrimitive::set(float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_setResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSpherePrimitive_setResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_setResolution" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSpherePrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_setRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSpherePrimitive_setRadius",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_setRadius" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSpherePrimitive_setRadius" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setRadius(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSpherePrimitive_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_setMode" "', argument " "1"" of type '" "ofSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSpherePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSpherePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_getRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofSpherePrimitive_getRadius",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_getRadius" "', argument " "1"" of type '" "ofSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); result = (float)((ofSpherePrimitive const *)arg1)->getRadius(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSpherePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofSpherePrimitive *arg1 = (ofSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofSpherePrimitive_getResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSpherePrimitive_getResolution" "', argument " "1"" of type '" "ofSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofSpherePrimitive * >(argp1); result = (int)((ofSpherePrimitive const *)arg1)->getResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofSpherePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofSpherePrimitive, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofIcoSpherePrimitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofIcoSpherePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":new_ofIcoSpherePrimitive")) SWIG_fail; + result = (ofIcoSpherePrimitive *)new ofIcoSpherePrimitive(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofIcoSpherePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofIcoSpherePrimitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; int arg2 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofIcoSpherePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofIcoSpherePrimitive",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofIcoSpherePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofIcoSpherePrimitive" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofIcoSpherePrimitive *)new ofIcoSpherePrimitive(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofIcoSpherePrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofIcoSpherePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofIcoSpherePrimitive__SWIG_0(self, args);} if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofIcoSpherePrimitive__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofIcoSpherePrimitive'.\n" + " Possible C/C++ prototypes are:\n" " ofIcoSpherePrimitive::ofIcoSpherePrimitive()\n" + " ofIcoSpherePrimitive::ofIcoSpherePrimitive(float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofIcoSpherePrimitive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ofIcoSpherePrimitive",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofIcoSpherePrimitive" "', argument " "1"" of type '" "ofIcoSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; float arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofIcoSpherePrimitive_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_set" "', argument " "1"" of type '" "ofIcoSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofIcoSpherePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofIcoSpherePrimitive_set" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_setResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofIcoSpherePrimitive_setResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_setResolution" "', argument " "1"" of type '" "ofIcoSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofIcoSpherePrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_setRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofIcoSpherePrimitive_setRadius",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_setRadius" "', argument " "1"" of type '" "ofIcoSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofIcoSpherePrimitive_setRadius" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setRadius(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofIcoSpherePrimitive_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_setMode" "', argument " "1"" of type '" "ofIcoSpherePrimitive *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofIcoSpherePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofIcoSpherePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_getRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofIcoSpherePrimitive_getRadius",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_getRadius" "', argument " "1"" of type '" "ofIcoSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); result = (float)((ofIcoSpherePrimitive const *)arg1)->getRadius(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofIcoSpherePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofIcoSpherePrimitive *arg1 = (ofIcoSpherePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofIcoSpherePrimitive_getResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofIcoSpherePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofIcoSpherePrimitive_getResolution" "', argument " "1"" of type '" "ofIcoSpherePrimitive const *""'"); } + arg1 = reinterpret_cast< ofIcoSpherePrimitive * >(argp1); + result = (int)((ofIcoSpherePrimitive const *)arg1)->getResolution(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofIcoSpherePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofIcoSpherePrimitive, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":new_ofCylinderPrimitive")) SWIG_fail; + result = (ofCylinderPrimitive *)new ofCylinderPrimitive(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCylinderPrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; ofPrimitiveMode arg7 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; void *argp7 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + ofCylinderPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_ofCylinderPrimitive",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofCylinderPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofCylinderPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofCylinderPrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofCylinderPrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofCylinderPrimitive" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofCylinderPrimitive" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); { res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ofCylinderPrimitive" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofCylinderPrimitive" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp7); arg7 = *temp; + if (SWIG_IsNewObj(res7)) delete temp; } } + result = (ofCylinderPrimitive *)new ofCylinderPrimitive(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCylinderPrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; bool val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofCylinderPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_ofCylinderPrimitive",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofCylinderPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofCylinderPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofCylinderPrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofCylinderPrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofCylinderPrimitive" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofCylinderPrimitive" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); result = (ofCylinderPrimitive *)new ofCylinderPrimitive(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCylinderPrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofCylinderPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_ofCylinderPrimitive",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofCylinderPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofCylinderPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofCylinderPrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofCylinderPrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofCylinderPrimitive" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = (ofCylinderPrimitive *)new ofCylinderPrimitive(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCylinderPrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofCylinderPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofCylinderPrimitive",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofCylinderPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofCylinderPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofCylinderPrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofCylinderPrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = (ofCylinderPrimitive *)new ofCylinderPrimitive(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCylinderPrimitive, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofCylinderPrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofCylinderPrimitive__SWIG_0(self, args);} if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofCylinderPrimitive__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofCylinderPrimitive__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofCylinderPrimitive__SWIG_2(self, args);} } } } } } } if (argc == 7) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofCylinderPrimitive__SWIG_1(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofCylinderPrimitive'.\n" + " Possible C/C++ prototypes are:\n" " ofCylinderPrimitive::ofCylinderPrimitive()\n" + " ofCylinderPrimitive::ofCylinderPrimitive(float,float,int,int,int,bool,ofPrimitiveMode)\n" + " ofCylinderPrimitive::ofCylinderPrimitive(float,float,int,int,int,bool)\n" + " ofCylinderPrimitive::ofCylinderPrimitive(float,float,int,int,int)\n" + " ofCylinderPrimitive::ofCylinderPrimitive(float,float,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofCylinderPrimitive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofCylinderPrimitive",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofCylinderPrimitive" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; + int arg5 ; int arg6 ; bool arg7 ; ofPrimitiveMode arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; bool val7 ; + int ecode7 = 0 ; void *argp8 ; int res8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofCylinderPrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_set" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCylinderPrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCylinderPrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCylinderPrimitive_set" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCylinderPrimitive_set" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); { res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ofCylinderPrimitive_set" "', argument " "8"" of type '" "ofPrimitiveMode""'"); } + if (!argp8) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCylinderPrimitive_set" "', argument " "8"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp8); arg8 = *temp; + if (SWIG_IsNewObj(res8)) delete temp; } } (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; + int arg5 ; int arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofCylinderPrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_set" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCylinderPrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCylinderPrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCylinderPrimitive_set" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCylinderPrimitive_set" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; + int arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofCylinderPrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_set" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCylinderPrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCylinderPrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCylinderPrimitive_set" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->set(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; + int arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCylinderPrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_set" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCylinderPrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCylinderPrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; float arg3 ; bool arg4 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofCylinderPrimitive_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_set" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCylinderPrimitive_set" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofCylinderPrimitive_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_set" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCylinderPrimitive_set__SWIG_5(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCylinderPrimitive_set__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCylinderPrimitive_set__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCylinderPrimitive_set__SWIG_2(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCylinderPrimitive_set__SWIG_1(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCylinderPrimitive_set__SWIG_0(self, args);} } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCylinderPrimitive_set'.\n" + " Possible C/C++ prototypes are:\n" " ofCylinderPrimitive::set(float,float,int,int,int,bool,ofPrimitiveMode)\n" + " ofCylinderPrimitive::set(float,float,int,int,int,bool)\n" " ofCylinderPrimitive::set(float,float,int,int,int)\n" + " ofCylinderPrimitive::set(float,float,int,int)\n" " ofCylinderPrimitive::set(float,float,bool)\n" + " ofCylinderPrimitive::set(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setRadius",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setRadius" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setRadius" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setRadius(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setHeight" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setHeight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setCapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setCapped",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setCapped" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setCapped" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setCapped(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolutionRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setResolutionRadius",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setResolutionRadius" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setResolutionRadius" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionRadius(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setResolutionHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setResolutionHeight" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setResolutionHeight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolutionCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setResolutionCap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setResolutionCap" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setResolutionCap" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionCap(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; int arg2 ; int arg3 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofCylinderPrimitive_setResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofCylinderPrimitive_setResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCylinderPrimitive_setResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCylinderPrimitive_setResolution__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofCylinderPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCylinderPrimitive_setResolution__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCylinderPrimitive_setResolution'.\n" + " Possible C/C++ prototypes are:\n" " ofCylinderPrimitive::setResolution(int,int,int)\n" + " ofCylinderPrimitive::setResolution(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setMode" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCylinderPrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCylinderPrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setTopCapColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; ofColor arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setTopCapColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setTopCapColor" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCylinderPrimitive_setTopCapColor" "', argument " "2"" of type '" "ofColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCylinderPrimitive_setTopCapColor" "', argument " "2"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setTopCapColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setCylinderColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; ofColor arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setCylinderColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setCylinderColor" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCylinderPrimitive_setCylinderColor" "', argument " "2"" of type '" "ofColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCylinderPrimitive_setCylinderColor" "', argument " "2"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setCylinderColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_setBottomCapColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; ofColor arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofCylinderPrimitive_setBottomCapColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_setBottomCapColor" "', argument " "1"" of type '" "ofCylinderPrimitive *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCylinderPrimitive_setBottomCapColor" "', argument " "2"" of type '" "ofColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCylinderPrimitive_setBottomCapColor" "', argument " "2"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setBottomCapColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getTopCapIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getTopCapIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getTopCapIndices" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getTopCapIndices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getTopCapMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getTopCapMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getTopCapMesh" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getTopCapMesh(); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCylinderIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getCylinderIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCylinderIndices" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getCylinderIndices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCylinderMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getCylinderMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCylinderMesh" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getCylinderMesh(); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getBottomCapIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getBottomCapIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getBottomCapIndices" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getBottomCapIndices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getBottomCapMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getBottomCapMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getBottomCapMesh" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getBottomCapMesh(); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolutionRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolutionRadius",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionRadius" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); + result = (int)((ofCylinderPrimitive const *)arg1)->getResolutionRadius(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolutionHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); + result = (int)((ofCylinderPrimitive const *)arg1)->getResolutionHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolutionCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolutionCap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolutionCap" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); + result = (int)((ofCylinderPrimitive const *)arg1)->getResolutionCap(); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getResolution" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = ((ofCylinderPrimitive const *)arg1)->getResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getHeight" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (float)((ofCylinderPrimitive const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getRadius",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getRadius" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (float)((ofCylinderPrimitive const *)arg1)->getRadius(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCylinderPrimitive_getCapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofCylinderPrimitive *arg1 = (ofCylinderPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofCylinderPrimitive_getCapped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofCylinderPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCylinderPrimitive_getCapped" "', argument " "1"" of type '" "ofCylinderPrimitive const *""'"); } + arg1 = reinterpret_cast< ofCylinderPrimitive * >(argp1); result = (bool)((ofCylinderPrimitive const *)arg1)->getCapped(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofCylinderPrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofCylinderPrimitive, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofConePrimitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofConePrimitive")) SWIG_fail; + result = (ofConePrimitive *)new ofConePrimitive(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofConePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofConePrimitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; ofPrimitiveMode arg6 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; void *argp6 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofConePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_ofConePrimitive",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofConePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofConePrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofConePrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofConePrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofConePrimitive" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); { res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ofConePrimitive" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofConePrimitive" "', argument " "6"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp6); arg6 = *temp; + if (SWIG_IsNewObj(res6)) delete temp; } } + result = (ofConePrimitive *)new ofConePrimitive(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofConePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofConePrimitive__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofConePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_ofConePrimitive",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofConePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofConePrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofConePrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofConePrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofConePrimitive" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = (ofConePrimitive *)new ofConePrimitive(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofConePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofConePrimitive__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; int arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofConePrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofConePrimitive",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofConePrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofConePrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofConePrimitive" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofConePrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = (ofConePrimitive *)new ofConePrimitive(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofConePrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofConePrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofConePrimitive__SWIG_0(self, args);} if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofConePrimitive__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofConePrimitive__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofConePrimitive__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofConePrimitive'.\n" + " Possible C/C++ prototypes are:\n" " ofConePrimitive::ofConePrimitive()\n" + " ofConePrimitive::ofConePrimitive(float,float,int,int,int,ofPrimitiveMode)\n" + " ofConePrimitive::ofConePrimitive(float,float,int,int,int)\n" + " ofConePrimitive::ofConePrimitive(float,float,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofConePrimitive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofConePrimitive",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofConePrimitive" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; + int arg6 ; ofPrimitiveMode arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; void *argp7 ; int res7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofConePrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_set" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofConePrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofConePrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofConePrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofConePrimitive_set" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); { res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofConePrimitive_set" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofConePrimitive_set" "', argument " "7"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp7); arg7 = *temp; + if (SWIG_IsNewObj(res7)) delete temp; } } (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; + int arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofConePrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_set" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofConePrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofConePrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofConePrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofConePrimitive_set" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->set(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofConePrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_set" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofConePrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofConePrimitive_set" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofConePrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofConePrimitive_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_set" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofConePrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofConePrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofConePrimitive_set__SWIG_3(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofConePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofConePrimitive_set__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofConePrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofConePrimitive_set__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofConePrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_ofPrimitiveMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofConePrimitive_set__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofConePrimitive_set'.\n" + " Possible C/C++ prototypes are:\n" " ofConePrimitive::set(float,float,int,int,int,ofPrimitiveMode)\n" + " ofConePrimitive::set(float,float,int,int,int)\n" " ofConePrimitive::set(float,float,int,int)\n" + " ofConePrimitive::set(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setResolutionRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setResolutionRadius",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setResolutionRadius" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_setResolutionRadius" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionRadius(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setResolutionHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setResolutionHeight" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_setResolutionHeight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setResolutionCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setResolutionCap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setResolutionCap" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_setResolutionCap" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionCap(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofConePrimitive_setResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setResolution" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofConePrimitive_setResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofConePrimitive_setResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setMode" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofConePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofConePrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setRadius",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setRadius" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_setRadius" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setRadius(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setHeight" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofConePrimitive_setHeight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setTopColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; ofColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setTopColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setTopColor" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofConePrimitive_setTopColor" "', argument " "2"" of type '" "ofColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofConePrimitive_setTopColor" "', argument " "2"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setTopColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_setCapColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; ofColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofConePrimitive_setCapColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_setCapColor" "', argument " "1"" of type '" "ofConePrimitive *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofConePrimitive_setCapColor" "', argument " "2"" of type '" "ofColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofConePrimitive_setCapColor" "', argument " "2"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setCapColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getConeIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getConeIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getConeIndices" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getConeIndices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getConeMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofMesh result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getConeMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getConeMesh" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getConeMesh(); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getCapIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getCapIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getCapIndices" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getCapIndices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getCapMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getCapMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getCapMesh" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getCapMesh(); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolutionRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolutionRadius",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionRadius" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)((ofConePrimitive const *)arg1)->getResolutionRadius(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolutionHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)((ofConePrimitive const *)arg1)->getResolutionHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolutionCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolutionCap",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolutionCap" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (int)((ofConePrimitive const *)arg1)->getResolutionCap(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getResolution" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = ((ofConePrimitive const *)arg1)->getResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getRadius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getRadius",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getRadius" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (float)((ofConePrimitive const *)arg1)->getRadius(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofConePrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofConePrimitive *arg1 = (ofConePrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofConePrimitive_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofConePrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofConePrimitive_getHeight" "', argument " "1"" of type '" "ofConePrimitive const *""'"); } + arg1 = reinterpret_cast< ofConePrimitive * >(argp1); result = (float)((ofConePrimitive const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofConePrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofConePrimitive, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofBoxPrimitive")) SWIG_fail; + result = (ofBoxPrimitive *)new ofBoxPrimitive(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBoxPrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; int arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofBoxPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_ofBoxPrimitive",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofBoxPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofBoxPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofBoxPrimitive" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofBoxPrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofBoxPrimitive" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofBoxPrimitive" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); result = (ofBoxPrimitive *)new ofBoxPrimitive(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBoxPrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; int arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofBoxPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_ofBoxPrimitive",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofBoxPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofBoxPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofBoxPrimitive" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofBoxPrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofBoxPrimitive" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); result = (ofBoxPrimitive *)new ofBoxPrimitive(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBoxPrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; int arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofBoxPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofBoxPrimitive",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofBoxPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofBoxPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofBoxPrimitive" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofBoxPrimitive" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = (ofBoxPrimitive *)new ofBoxPrimitive(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBoxPrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofBoxPrimitive *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofBoxPrimitive",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofBoxPrimitive" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofBoxPrimitive" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofBoxPrimitive" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofBoxPrimitive *)new ofBoxPrimitive(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBoxPrimitive, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofBoxPrimitive(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofBoxPrimitive__SWIG_0(self, args);} if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofBoxPrimitive__SWIG_4(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofBoxPrimitive__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofBoxPrimitive__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofBoxPrimitive__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofBoxPrimitive'.\n" + " Possible C/C++ prototypes are:\n" " ofBoxPrimitive::ofBoxPrimitive()\n" + " ofBoxPrimitive::ofBoxPrimitive(float,float,float,int,int,int)\n" + " ofBoxPrimitive::ofBoxPrimitive(float,float,float,int,int)\n" + " ofBoxPrimitive::ofBoxPrimitive(float,float,float,int)\n" " ofBoxPrimitive::ofBoxPrimitive(float,float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofBoxPrimitive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofBoxPrimitive",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofBoxPrimitive" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; float arg2 ; float arg3 ; float arg4 ; int arg5 ; int arg6 ; int arg7 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofBoxPrimitive_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_set" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBoxPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBoxPrimitive_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBoxPrimitive_set" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBoxPrimitive_set" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBoxPrimitive_set" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBoxPrimitive_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_set" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBoxPrimitive_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBoxPrimitive_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_set" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBoxPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBoxPrimitive_set__SWIG_2(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBoxPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBoxPrimitive_set__SWIG_1(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBoxPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBoxPrimitive_set__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBoxPrimitive_set'.\n" + " Possible C/C++ prototypes are:\n" " ofBoxPrimitive::set(float,float,float,int,int,int)\n" + " ofBoxPrimitive::set(float,float,float)\n" " ofBoxPrimitive::set(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setWidth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setWidth" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setHeight" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setHeight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setDepth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setDepth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setDepth" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setDepth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_resizeToTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; ofTexture *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_resizeToTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_resizeToTexture" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofTexture, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBoxPrimitive_resizeToTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBoxPrimitive_resizeToTexture" "', argument " "2"" of type '" "ofTexture &""'"); } + arg2 = reinterpret_cast< ofTexture * >(argp2); (arg1)->resizeToTexture(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getSideIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< unsigned int > > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_getSideIndices",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getSideIndices" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_getSideIndices" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofBoxPrimitive const *)arg1)->getSideIndices(arg2); + resultobj = SWIG_NewPointerObj((new std::vector< ofIndexType >(static_cast< const std::vector< ofIndexType >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getSideMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMesh result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_getSideMesh",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getSideMesh" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_getSideMesh" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofBoxPrimitive const *)arg1)->getSideMesh(arg2); + resultobj = SWIG_NewPointerObj((new ofMesh(static_cast< const ofMesh& >(result))), SWIGTYPE_p_ofMesh, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setResolution" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolutionWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setResolutionWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setResolutionWidth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setResolutionWidth" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setResolutionHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setResolutionHeight" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setResolutionHeight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolutionDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setResolutionDepth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setResolutionDepth" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setResolutionDepth" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setResolutionDepth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBoxPrimitive_setResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setResolution" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBoxPrimitive_setResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBoxPrimitive_setResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBoxPrimitive, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBoxPrimitive_setResolution__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofBoxPrimitive, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBoxPrimitive_setResolution__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBoxPrimitive_setResolution'.\n" + " Possible C/C++ prototypes are:\n" " ofBoxPrimitive::setResolution(int)\n" + " ofBoxPrimitive::setResolution(int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; ofPrimitiveMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBoxPrimitive_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setMode" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPrimitiveMode, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBoxPrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBoxPrimitive_setMode" "', argument " "2"" of type '" "ofPrimitiveMode""'"); } + else { ofPrimitiveMode * temp = reinterpret_cast< ofPrimitiveMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_setSideColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; int arg2 ; ofColor arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofBoxPrimitive_setSideColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_setSideColor" "', argument " "1"" of type '" "ofBoxPrimitive *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBoxPrimitive_setSideColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBoxPrimitive_setSideColor" "', argument " "3"" of type '" "ofColor""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBoxPrimitive_setSideColor" "', argument " "3"" of type '" "ofColor""'"); } + else { ofColor * temp = reinterpret_cast< ofColor * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } + (arg1)->setSideColor(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolutionWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolutionWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionWidth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)((ofBoxPrimitive const *)arg1)->getResolutionWidth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolutionHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolutionHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionHeight" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)((ofBoxPrimitive const *)arg1)->getResolutionHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolutionDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolutionDepth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolutionDepth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (int)((ofBoxPrimitive const *)arg1)->getResolutionDepth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getResolution" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = ((ofBoxPrimitive const *)arg1)->getResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getWidth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)((ofBoxPrimitive const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getHeight" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)((ofBoxPrimitive const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getDepth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getDepth" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = (float)((ofBoxPrimitive const *)arg1)->getDepth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBoxPrimitive_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBoxPrimitive *arg1 = (ofBoxPrimitive *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofBoxPrimitive_getSize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBoxPrimitive, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBoxPrimitive_getSize" "', argument " "1"" of type '" "ofBoxPrimitive const *""'"); } + arg1 = reinterpret_cast< ofBoxPrimitive * >(argp1); result = ((ofBoxPrimitive const *)arg1)->getSize(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofBoxPrimitive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofBoxPrimitive, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofInit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofInit")) SWIG_fail; ofInit(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupOpenGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; ofWindowMode arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupOpenGL",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupOpenGL" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupOpenGL" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupOpenGL" "', argument " "3"" of type '" "ofWindowMode""'"); } + arg3 = static_cast< ofWindowMode >(val3); ofSetupOpenGL(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCreateWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofWindowSettings *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofAppBaseWindow > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofCreateWindow",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofWindowSettings, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCreateWindow" "', argument " "1"" of type '" "ofWindowSettings const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCreateWindow" "', argument " "1"" of type '" "ofWindowSettings const &""'"); } + arg1 = reinterpret_cast< ofWindowSettings * >(argp1); result = ofCreateWindow((ofWindowSettings const &)*arg1); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofAppBaseWindow >(static_cast< const shared_ptr< ofAppBaseWindow >& >(result))), SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + shared_ptr< ofMainLoop > result; if (!PyArg_ParseTuple(args,(char *)":ofGetMainLoop")) SWIG_fail; result = ofGetMainLoop(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofMainLoop >(static_cast< const shared_ptr< ofMainLoop >& >(result))), SWIGTYPE_p_shared_ptrT_ofMainLoop_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + shared_ptr< ofMainLoop > arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetMainLoop",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofMainLoop_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetMainLoop" "', argument " "1"" of type '" "shared_ptr< ofMainLoop >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetMainLoop" "', argument " "1"" of type '" "shared_ptr< ofMainLoop >""'"); } + else { shared_ptr< ofMainLoop > * temp = reinterpret_cast< shared_ptr< ofMainLoop > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ofSetMainLoop(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupOpenGL__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< shared_ptr< ofAppGLFWWindow > > arg1 ; int arg2 ; int arg3 ; ofWindowMode arg4 ; void *argp1 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupOpenGL",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofAppGLFWWindow_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetupOpenGL" "', argument " "1"" of type '" "shared_ptr< ofAppGLFWWindow >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetupOpenGL" "', argument " "1"" of type '" "shared_ptr< ofAppGLFWWindow >""'"); } + else { shared_ptr< ofAppGLFWWindow > * temp = reinterpret_cast< shared_ptr< ofAppGLFWWindow > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupOpenGL" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupOpenGL" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupOpenGL" "', argument " "4"" of type '" "ofWindowMode""'"); } + arg4 = static_cast< ofWindowMode >(val4); ofSetupOpenGL(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupOpenGL(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupOpenGL__SWIG_0(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofAppGLFWWindow_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupOpenGL__SWIG_2(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupOpenGL'.\n" + " Possible C/C++ prototypes are:\n" " ofSetupOpenGL(int,int,ofWindowMode)\n" + " ofSetupOpenGL(shared_ptr< ofAppGLFWWindow >,int,int,ofWindowMode)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRunApp__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< shared_ptr< ofBaseApp > > arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRunApp",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofBaseApp >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofBaseApp >""'"); } + else { shared_ptr< ofBaseApp > * temp = reinterpret_cast< shared_ptr< ofBaseApp > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } result = (int)ofRunApp(arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRunApp__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofRunApp")) SWIG_fail; result = (int)ofRunApp(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRunApp__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< shared_ptr< ofAppBaseWindow > > arg1 ; SwigValueWrapper< shared_ptr< ofBaseApp > > arg2 ; void *argp1 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofRunApp",&obj0,&obj1)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofAppBaseWindow >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRunApp" "', argument " "1"" of type '" "shared_ptr< ofAppBaseWindow >""'"); } + else { shared_ptr< ofAppBaseWindow > * temp = reinterpret_cast< shared_ptr< ofAppBaseWindow > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofRunApp" "', argument " "2"" of type '" "shared_ptr< ofBaseApp >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRunApp" "', argument " "2"" of type '" "shared_ptr< ofBaseApp >""'"); } + else { shared_ptr< ofBaseApp > * temp = reinterpret_cast< shared_ptr< ofBaseApp > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } ofRunApp(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRunApp(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofRunApp__SWIG_1(self, args);} if (argc == 1) { + int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRunApp__SWIG_0(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofAppBaseWindow_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_shared_ptrT_ofBaseApp_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRunApp__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRunApp'.\n" + " Possible C/C++ prototypes are:\n" " ofRunApp(shared_ptr< ofBaseApp >)\n" " ofRunApp()\n" + " ofRunApp(shared_ptr< ofAppBaseWindow >,shared_ptr< ofBaseApp >)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRunMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofRunMainLoop")) SWIG_fail; result = (int)ofRunMainLoop(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetAppPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseApp *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofGetAppPtr")) SWIG_fail; result = (ofBaseApp *)ofGetAppPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBaseApp, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofExit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; + int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofExit",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofExit" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofExit(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofExit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofExit")) SWIG_fail; ofExit(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofExit(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_ofExit__SWIG_1(self, args);} if (argc == 1) { + int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofExit__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofExit'.\n" + " Possible C/C++ prototypes are:\n" " ofExit(int)\n" " ofExit()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetFrameRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofGetFrameRate")) SWIG_fail; result = (float)ofGetFrameRate(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetTargetFrameRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofGetTargetFrameRate")) SWIG_fail; result = (float)ofGetTargetFrameRate(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetFrameRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; + int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetFrameRate",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetFrameRate" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetFrameRate(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetLastFrameTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + double result; if (!PyArg_ParseTuple(args,(char *)":ofGetLastFrameTime")) SWIG_fail; result = (double)ofGetLastFrameTime(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetOrientation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofOrientation arg1 ; bool arg2 ; int val1 ; int ecode1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetOrientation",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetOrientation" "', argument " "1"" of type '" "ofOrientation""'"); } + arg1 = static_cast< ofOrientation >(val1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetOrientation" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofSetOrientation(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetOrientation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofOrientation arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetOrientation",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetOrientation" "', argument " "1"" of type '" "ofOrientation""'"); } + arg1 = static_cast< ofOrientation >(val1); ofSetOrientation(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetOrientation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetOrientation__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetOrientation__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetOrientation'.\n" + " Possible C/C++ prototypes are:\n" " ofSetOrientation(ofOrientation,bool)\n" " ofSetOrientation(ofOrientation)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofGetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofOrientation result; if (!PyArg_ParseTuple(args,(char *)":ofGetOrientation")) SWIG_fail; + result = (ofOrientation)ofGetOrientation(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofHideCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofHideCursor")) SWIG_fail; ofHideCursor(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShowCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofShowCursor")) SWIG_fail; ofShowCursor(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowPositionX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowPositionX")) SWIG_fail; result = (int)ofGetWindowPositionX(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowPositionY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowPositionY")) SWIG_fail; result = (int)ofGetWindowPositionY(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetScreenWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetScreenWidth")) SWIG_fail; result = (int)ofGetScreenWidth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetScreenHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetScreenHeight")) SWIG_fail; result = (int)ofGetScreenHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowMode")) SWIG_fail; result = (int)ofGetWindowMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetWidth")) SWIG_fail; result = (int)ofGetWidth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetHeight")) SWIG_fail; result = (int)ofGetHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowWidth")) SWIG_fail; result = (int)ofGetWindowWidth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowHeight")) SWIG_fail; result = (int)ofGetWindowHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRandomWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofRandomWidth")) SWIG_fail; result = (float)ofRandomWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRandomHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float result; if (!PyArg_ParseTuple(args,(char *)":ofRandomHeight")) SWIG_fail; result = (float)ofRandomHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDoesHWOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofDoesHWOrientation")) SWIG_fail; result = (bool)ofDoesHWOrientation(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowSize")) SWIG_fail; result = ofGetWindowSize(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowRect")) SWIG_fail; result = ofGetWindowRect(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetWindowPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofAppBaseWindow *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofGetWindowPtr")) SWIG_fail; + result = (ofAppBaseWindow *)ofGetWindowPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofAppBaseWindow, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetWindowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetWindowPosition",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetWindowPosition" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetWindowPosition" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetWindowPosition(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetWindowShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetWindowShape",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetWindowShape" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetWindowShape" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetWindowShape(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetWindowTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetWindowTitle",&obj0)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSetWindowTitle" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofSetWindowTitle(arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableSetupScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableSetupScreen")) SWIG_fail; ofEnableSetupScreen(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableSetupScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableSetupScreen")) SWIG_fail; ofDisableSetupScreen(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetFullscreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetFullscreen",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetFullscreen" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetFullscreen(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofToggleFullscreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofToggleFullscreen")) SWIG_fail; ofToggleFullscreen(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetVerticalSync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetVerticalSync",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetVerticalSync" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetVerticalSync(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofCoreEvents *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofEvents")) SWIG_fail; result = (ofCoreEvents *) &ofEvents(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofCoreEvents, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurrentRenderer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; SwigValueWrapper< shared_ptr< ofBaseRenderer > > arg1 ; bool arg2 ; void *argp1 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetCurrentRenderer",&obj0,&obj1)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + else { shared_ptr< ofBaseRenderer > * temp = reinterpret_cast< shared_ptr< ofBaseRenderer > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetCurrentRenderer" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofSetCurrentRenderer(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurrentRenderer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; SwigValueWrapper< shared_ptr< ofBaseRenderer > > arg1 ; void *argp1 ; int res1 = 0 ; + PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetCurrentRenderer",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetCurrentRenderer" "', argument " "1"" of type '" "shared_ptr< ofBaseRenderer >""'"); } + else { shared_ptr< ofBaseRenderer > * temp = reinterpret_cast< shared_ptr< ofBaseRenderer > * >(argp1); arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; } } ofSetCurrentRenderer(arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurrentRenderer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSetCurrentRenderer__SWIG_1(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetCurrentRenderer__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetCurrentRenderer'.\n" + " Possible C/C++ prototypes are:\n" " ofSetCurrentRenderer(shared_ptr< ofBaseRenderer >,bool)\n" + " ofSetCurrentRenderer(shared_ptr< ofBaseRenderer >)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetCurrentRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + shared_ptr< ofBaseRenderer > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentRenderer")) SWIG_fail; + result = (shared_ptr< ofBaseRenderer > *) &ofGetCurrentRenderer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shared_ptrT_ofBaseRenderer_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetEscapeQuitsApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetEscapeQuitsApp",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetEscapeQuitsApp" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetEscapeQuitsApp(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *FIRMATA_MAJOR_VERSION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_MAJOR_VERSION",SWIG_From_int(static_cast< int >(2))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_MINOR_VERSION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_MINOR_VERSION",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_MAX_DATA_BYTES_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_MAX_DATA_BYTES",SWIG_From_int(static_cast< int >(32))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_DIGITAL_MESSAGE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_DIGITAL_MESSAGE",SWIG_From_int(static_cast< int >(0x90))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_ANALOG_MESSAGE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_ANALOG_MESSAGE",SWIG_From_int(static_cast< int >(0xE0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_REPORT_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_REPORT_ANALOG",SWIG_From_int(static_cast< int >(0xC0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_REPORT_DIGITAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_REPORT_DIGITAL",SWIG_From_int(static_cast< int >(0xD0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SET_PIN_MODE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SET_PIN_MODE",SWIG_From_int(static_cast< int >(0xF4))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_REPORT_VERSION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_REPORT_VERSION",SWIG_From_int(static_cast< int >(0xF9))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSTEM_RESET_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSTEM_RESET",SWIG_From_int(static_cast< int >(0xFF))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_START_SYSEX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_START_SYSEX",SWIG_From_int(static_cast< int >(0xF0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_END_SYSEX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_END_SYSEX",SWIG_From_int(static_cast< int >(0xF7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_INPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_INPUT",SWIG_From_int(static_cast< int >(0x00))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_OUTPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_OUTPUT",SWIG_From_int(static_cast< int >(0x01))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_ANALOG",SWIG_From_int(static_cast< int >(0x02))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_PWM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_PWM",SWIG_From_int(static_cast< int >(0x03))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SERVO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SERVO",SWIG_From_int(static_cast< int >(0x04))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SHIFT",SWIG_From_int(static_cast< int >(0x05))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C",SWIG_From_int(static_cast< int >(0x06))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *TOTAL_PIN_MODES_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "TOTAL_PIN_MODES",SWIG_From_int(static_cast< int >(7))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_SERVO_CONFIG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_SERVO_CONFIG",SWIG_From_int(static_cast< int >(0x70))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_FIRMATA_STRING_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_FIRMATA_STRING",SWIG_From_int(static_cast< int >(0x71))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SHIFT_DATA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SHIFT_DATA",SWIG_From_int(static_cast< int >(0x75))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_REQUEST_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C_REQUEST",SWIG_From_int(static_cast< int >(0x76))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_REPLY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C_REPLY",SWIG_From_int(static_cast< int >(0x77))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *I2C_CONFIG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "I2C_CONFIG",SWIG_From_int(static_cast< int >(0x78))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *EXTENDED_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "EXTENDED_ANALOG",SWIG_From_int(static_cast< int >(0x6F))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *PIN_STATE_QUERY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "PIN_STATE_QUERY",SWIG_From_int(static_cast< int >(0x6D))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *PIN_STATE_RESPONSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "PIN_STATE_RESPONSE",SWIG_From_int(static_cast< int >(0x6E))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *CAPABILITY_QUERY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "CAPABILITY_QUERY",SWIG_From_int(static_cast< int >(0x6B))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *CAPABILITY_RESPONSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "CAPABILITY_RESPONSE",SWIG_From_int(static_cast< int >(0x6C))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ANALOG_MAPPING_QUERY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ANALOG_MAPPING_QUERY",SWIG_From_int(static_cast< int >(0x69))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ANALOG_MAPPING_RESPONSE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ANALOG_MAPPING_RESPONSE",SWIG_From_int(static_cast< int >(0x6A))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_REPORT_FIRMWARE",SWIG_From_int(static_cast< int >(0x79))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SAMPLING_INTERVAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SAMPLING_INTERVAL",SWIG_From_int(static_cast< int >(0x7A))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_NON_REALTIME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_NON_REALTIME",SWIG_From_int(static_cast< int >(0x7E))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMATA_SYSEX_REALTIME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMATA_SYSEX_REALTIME",SWIG_From_int(static_cast< int >(0x7F))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_TOTAL_DIGITAL_PINS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_TOTAL_DIGITAL_PINS",SWIG_From_int(static_cast< int >(22))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_TOTAL_ANALOG_PINS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_TOTAL_ANALOG_PINS",SWIG_From_int(static_cast< int >(6))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_TOTAL_PORTS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_TOTAL_PORTS",SWIG_From_int(static_cast< int >(3))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_INPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_INPUT",SWIG_From_int(static_cast< int >(0x00))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_OUTPUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_OUTPUT",SWIG_From_int(static_cast< int >(0x01))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_ANALOG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_ANALOG",SWIG_From_int(static_cast< int >(0x02))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_PWM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_PWM",SWIG_From_int(static_cast< int >(0x03))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_SERVO_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_SERVO",SWIG_From_int(static_cast< int >(0x04))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_HIGH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_HIGH",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_LOW_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_LOW",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_ON_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_ON",SWIG_From_int(static_cast< int >(1))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *ARD_OFF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "ARD_OFF",SWIG_From_int(static_cast< int >(0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SYSEX_SERVO_ATTACH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SYSEX_SERVO_ATTACH",SWIG_From_int(static_cast< int >(0x00))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SYSEX_SERVO_DETACH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SYSEX_SERVO_DETACH",SWIG_From_int(static_cast< int >(0x01))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *SYSEX_SERVO_WRITE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "SYSEX_SERVO_WRITE",SWIG_From_int(static_cast< int >(0x02))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_ARDUINO_DELAY_LENGTH_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_ARDUINO_DELAY_LENGTH",SWIG_From_double(static_cast< double >(4.0))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMWARE2_2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMWARE2_2",SWIG_From_int(static_cast< int >(22))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *FIRMWARE2_3_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "FIRMWARE2_3",SWIG_From_int(static_cast< int >(23))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofArduino(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofArduino")) SWIG_fail; + result = (ofArduino *)new ofArduino(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofArduino, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofArduino(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofArduino",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofArduino" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_connect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; std::string *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_connect",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_connect" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_connect" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->connect((std::string const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_connect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_connect",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_connect" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_connect" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->connect((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_connect(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofArduino_connect__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_connect__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofArduino_connect'.\n" + " Possible C/C++ prototypes are:\n" " ofArduino::connect(std::string const &,int)\n" + " ofArduino::connect(std::string const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofArduino_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_isInitialized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_isInitialized" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (bool)((ofArduino const *)arg1)->isInitialized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_isArduinoReady(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_isArduinoReady",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_isArduinoReady" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (bool)((ofArduino const *)arg1)->isArduinoReady(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_disconnect",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_disconnect" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->disconnect(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_update" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendDigitalPinMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendDigitalPinMode",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendDigitalPinMode" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendDigitalPinMode(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendAnalogPinReporting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendAnalogPinReporting",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendAnalogPinReporting" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendAnalogPinReporting(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_setUseDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_setUseDelay",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_setUseDelay" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_setUseDelay" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseDelay(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_setDigitalHistoryLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_setDigitalHistoryLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_setDigitalHistoryLength" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_setDigitalHistoryLength" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setDigitalHistoryLength(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_setAnalogHistoryLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_setAnalogHistoryLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_setAnalogHistoryLength" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_setAnalogHistoryLength" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setAnalogHistoryLength(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_setStringHistoryLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_setStringHistoryLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_setStringHistoryLength" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_setStringHistoryLength" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setStringHistoryLength(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_setSysExHistoryLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_setSysExHistoryLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_setSysExHistoryLength" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_setSysExHistoryLength" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setSysExHistoryLength(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendDigital__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofArduino_sendDigital",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendDigital" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendDigital" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendDigital" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofArduino_sendDigital" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); (arg1)->sendDigital(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendDigital__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendDigital",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendDigital" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendDigital" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendDigital" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendDigital(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendDigital(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendDigital__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendDigital__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofArduino_sendDigital'.\n" + " Possible C/C++ prototypes are:\n" " ofArduino::sendDigital(int,int,bool)\n" " ofArduino::sendDigital(int,int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofArduino_sendPwm__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofArduino_sendPwm",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendPwm" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendPwm" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendPwm" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofArduino_sendPwm" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); (arg1)->sendPwm(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendPwm__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendPwm",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendPwm" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendPwm" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendPwm" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendPwm(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendPwm(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendPwm__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendPwm__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofArduino_sendPwm'.\n" + " Possible C/C++ prototypes are:\n" " ofArduino::sendPwm(int,int,bool)\n" " ofArduino::sendPwm(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofArduino_sendSysEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; SwigValueWrapper< std::vector< unsigned char > > arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendSysEx",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendSysEx" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendSysEx" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofArduino_sendSysEx" "', argument " "3"" of type '" "std::vector< unsigned char >""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_sendSysEx" "', argument " "3"" of type '" "std::vector< unsigned char >""'"); } + else { std::vector< unsigned char > * temp = reinterpret_cast< std::vector< unsigned char > * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->sendSysEx(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_sendString",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendString" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofArduino_sendString" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->sendString(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendProtocolVersionRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_sendProtocolVersionRequest",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendProtocolVersionRequest" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->sendProtocolVersionRequest(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendFirmwareVersionRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_sendFirmwareVersionRequest",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendFirmwareVersionRequest" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->sendFirmwareVersionRequest(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_sendReset",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendReset" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->sendReset(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendSysExBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_sendSysExBegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendSysExBegin" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->sendSysExBegin(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendSysExEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_sendSysExEnd",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendSysExEnd" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); (arg1)->sendSysExEnd(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_sendByte",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendByte" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendByte" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); (arg1)->sendByte(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendValueAsTwo7bitBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_sendValueAsTwo7bitBytes",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendValueAsTwo7bitBytes" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendValueAsTwo7bitBytes" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->sendValueAsTwo7bitBytes(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getPwm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getPwm",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getPwm" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getPwm" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getPwm(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getDigital(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getDigital",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getDigital" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getDigital" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getDigital(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getAnalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getAnalog",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getAnalog" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getAnalog" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getAnalog(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getSysEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< unsigned char > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getSysEx",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getSysEx" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((ofArduino const *)arg1)->getSysEx(); + resultobj = SWIG_NewPointerObj((new std::vector< unsigned char >(static_cast< const std::vector< unsigned char >& >(result))), SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getString",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getString" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((ofArduino const *)arg1)->getString(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getMajorProtocolVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMajorProtocolVersion",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMajorProtocolVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMajorProtocolVersion(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getMinorProtocolVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMinorProtocolVersion",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMinorProtocolVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMinorProtocolVersion(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getMajorFirmwareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMajorFirmwareVersion",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMajorFirmwareVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMajorFirmwareVersion(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getMinorFirmwareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getMinorFirmwareVersion",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getMinorFirmwareVersion" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (int)((ofArduino const *)arg1)->getMinorFirmwareVersion(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getFirmwareName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getFirmwareName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getFirmwareName" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((ofArduino const *)arg1)->getFirmwareName(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getDigitalHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; list< int > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getDigitalHistory",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getDigitalHistory" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getDigitalHistory" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (list< int > *)(arg1)->getDigitalHistory(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_listT_int_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getAnalogHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; list< int > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getAnalogHistory",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getAnalogHistory" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getAnalogHistory" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (list< int > *)(arg1)->getAnalogHistory(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_listT_int_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getSysExHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + list< std::vector< unsigned char > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getSysExHistory",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getSysExHistory" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (list< std::vector< unsigned char > > *)(arg1)->getSysExHistory(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getStringHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; list< std::string > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_getStringHistory",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getStringHistory" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (list< std::string > *)(arg1)->getStringHistory(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_listT_std__string_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getDigitalPinMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getDigitalPinMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getDigitalPinMode" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getDigitalPinMode" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getDigitalPinMode(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getAnalogPinReporting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getAnalogPinReporting",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getAnalogPinReporting" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getAnalogPinReporting" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getAnalogPinReporting(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getValueFromTwo7bitBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; unsigned char arg2 ; unsigned char arg3 ; void *argp1 = 0 ; + int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; unsigned char val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_getValueFromTwo7bitBytes",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getValueFromTwo7bitBytes" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getValueFromTwo7bitBytes" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_getValueFromTwo7bitBytes" "', argument " "3"" of type '" "unsigned char""'"); } + arg3 = static_cast< unsigned char >(val3); result = (int)(arg1)->getValueFromTwo7bitBytes(arg2,arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EDigitalPinChanged_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; ofEvent< int const > arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_EDigitalPinChanged_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EDigitalPinChanged_set" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofEventT_int_const_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_EDigitalPinChanged_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_EDigitalPinChanged_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + else { ofEvent< int const > * temp = reinterpret_cast< ofEvent< int const > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } if (arg1) (arg1)->EDigitalPinChanged = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EDigitalPinChanged_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofEvent< int const > result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_EDigitalPinChanged_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EDigitalPinChanged_get" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((arg1)->EDigitalPinChanged); + resultobj = SWIG_NewPointerObj((new ofEvent< int const >(static_cast< const ofEvent< int const >& >(result))), SWIGTYPE_p_ofEventT_int_const_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EAnalogPinChanged_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; ofEvent< int const > arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_EAnalogPinChanged_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EAnalogPinChanged_set" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofEventT_int_const_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_EAnalogPinChanged_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_EAnalogPinChanged_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + else { ofEvent< int const > * temp = reinterpret_cast< ofEvent< int const > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } if (arg1) (arg1)->EAnalogPinChanged = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EAnalogPinChanged_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofEvent< int const > result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_EAnalogPinChanged_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EAnalogPinChanged_get" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((arg1)->EAnalogPinChanged); + resultobj = SWIG_NewPointerObj((new ofEvent< int const >(static_cast< const ofEvent< int const >& >(result))), SWIGTYPE_p_ofEventT_int_const_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_ESysExReceived_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; ofEvent< std::vector< unsigned char > const > arg2 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_ESysExReceived_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_ESysExReceived_set" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_ESysExReceived_set" "', argument " "2"" of type '" "ofEvent< std::vector< unsigned char > const >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_ESysExReceived_set" "', argument " "2"" of type '" "ofEvent< std::vector< unsigned char > const >""'"); } + else { + ofEvent< std::vector< unsigned char > const > * temp = reinterpret_cast< ofEvent< std::vector< unsigned char > const > * >(argp2); + arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } if (arg1) (arg1)->ESysExReceived = arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_ESysExReceived_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofEvent< std::vector< unsigned char > const > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_ESysExReceived_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_ESysExReceived_get" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((arg1)->ESysExReceived); + resultobj = SWIG_NewPointerObj((new ofEvent< std::vector< unsigned char > const >(static_cast< const ofEvent< std::vector< unsigned char > const >& >(result))), SWIGTYPE_p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EProtocolVersionReceived_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; ofEvent< int const > arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_EProtocolVersionReceived_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EProtocolVersionReceived_set" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofEventT_int_const_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_EProtocolVersionReceived_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_EProtocolVersionReceived_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + else { ofEvent< int const > * temp = reinterpret_cast< ofEvent< int const > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } if (arg1) (arg1)->EProtocolVersionReceived = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EProtocolVersionReceived_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofEvent< int const > result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_EProtocolVersionReceived_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EProtocolVersionReceived_get" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((arg1)->EProtocolVersionReceived); + resultobj = SWIG_NewPointerObj((new ofEvent< int const >(static_cast< const ofEvent< int const >& >(result))), SWIGTYPE_p_ofEventT_int_const_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EFirmwareVersionReceived_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; ofEvent< int const > arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_EFirmwareVersionReceived_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EFirmwareVersionReceived_set" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofEventT_int_const_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_EFirmwareVersionReceived_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_EFirmwareVersionReceived_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + else { ofEvent< int const > * temp = reinterpret_cast< ofEvent< int const > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } if (arg1) (arg1)->EFirmwareVersionReceived = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EFirmwareVersionReceived_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofEvent< int const > result; if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_EFirmwareVersionReceived_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EFirmwareVersionReceived_get" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((arg1)->EFirmwareVersionReceived); + resultobj = SWIG_NewPointerObj((new ofEvent< int const >(static_cast< const ofEvent< int const >& >(result))), SWIGTYPE_p_ofEventT_int_const_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EInitialized_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; ofEvent< int const > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_EInitialized_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EInitialized_set" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofEventT_int_const_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_EInitialized_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofArduino_EInitialized_set" "', argument " "2"" of type '" "ofEvent< int const >""'"); } + else { ofEvent< int const > * temp = reinterpret_cast< ofEvent< int const > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } if (arg1) (arg1)->EInitialized = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EInitialized_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofEvent< int const > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_EInitialized_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EInitialized_get" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = ((arg1)->EInitialized); + resultobj = SWIG_NewPointerObj((new ofEvent< int const >(static_cast< const ofEvent< int const >& >(result))), SWIGTYPE_p_ofEventT_int_const_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EStringReceived_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; + ofEvent< std::string const > *arg2 = (ofEvent< std::string const > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_EStringReceived_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EStringReceived_set" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofEventT_std__string_const_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofArduino_EStringReceived_set" "', argument " "2"" of type '" "ofEvent< std::string const > *""'"); } + arg2 = reinterpret_cast< ofEvent< std::string const > * >(argp2); if (arg1) (arg1)->EStringReceived = *arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_EStringReceived_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofEvent< std::string const > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofArduino_EStringReceived_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_EStringReceived_get" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); result = (ofEvent< std::string const > *)& ((arg1)->EStringReceived); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofEventT_std__string_const_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofArduino_sendServo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendServo" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServo" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendServo" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofArduino_sendServo" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); (arg1)->sendServo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendServo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendServo" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServo" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendServo" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendServo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendServo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendServo__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofArduino_sendServo'.\n" + " Possible C/C++ prototypes are:\n" " ofArduino::sendServo(int,int,bool)\n" " ofArduino::sendServo(int,int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofArduino_sendServoAttach",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendServoAttach" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServoAttach" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendServoAttach" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofArduino_sendServoAttach" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofArduino_sendServoAttach" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->sendServoAttach(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofArduino_sendServoAttach",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendServoAttach" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServoAttach" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendServoAttach" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofArduino_sendServoAttach" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->sendServoAttach(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofArduino_sendServoAttach",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendServoAttach" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServoAttach" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofArduino_sendServoAttach" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->sendServoAttach(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_sendServoAttach",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendServoAttach" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServoAttach" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->sendServoAttach(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServoAttach(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendServoAttach__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendServoAttach__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendServoAttach__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofArduino, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofArduino_sendServoAttach__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofArduino_sendServoAttach'.\n" + " Possible C/C++ prototypes are:\n" " ofArduino::sendServoAttach(int,int,int,int)\n" + " ofArduino::sendServoAttach(int,int,int)\n" " ofArduino::sendServoAttach(int,int)\n" + " ofArduino::sendServoAttach(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofArduino_sendServoDetach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_sendServoDetach",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_sendServoDetach" "', argument " "1"" of type '" "ofArduino *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_sendServoDetach" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->sendServoDetach(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofArduino_getServo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofArduino *arg1 = (ofArduino *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofArduino_getServo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofArduino, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofArduino_getServo" "', argument " "1"" of type '" "ofArduino const *""'"); } + arg1 = reinterpret_cast< ofArduino * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofArduino_getServo" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofArduino const *)arg1)->getServo(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofArduino_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofArduino, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofSerial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofSerial")) SWIG_fail; result = (ofSerial *)new ofSerial(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofSerial, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofSerial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofSerial",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofSerial" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_listDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_listDevices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_listDevices" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->listDevices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_enumerateDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_enumerateDevices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_enumerateDevices" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->enumerateDevices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_getDeviceList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofSerialDeviceInfo > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_getDeviceList",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_getDeviceList" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (arg1)->getDeviceList(); + resultobj = SWIG_NewPointerObj((new std::vector< ofSerialDeviceInfo >(static_cast< const std::vector< ofSerialDeviceInfo >& >(result))), SWIGTYPE_p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_setup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_setup",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_setup" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (bool)(arg1)->setup(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_setup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; std::string arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSerial_setup",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_setup" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSerial_setup" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSerial_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->setup(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_setup__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSerial_setup",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_setup" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSerial_setup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSerial_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->setup(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_setup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSerial_setup__SWIG_0(self, args);} } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSerial_setup__SWIG_2(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSerial_setup__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSerial_setup'.\n" + " Possible C/C++ prototypes are:\n" " ofSerial::setup()\n" " ofSerial::setup(std::string,int)\n" + " ofSerial::setup(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSerial_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_isInitialized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_isInitialized" "', argument " "1"" of type '" "ofSerial const *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (bool)((ofSerial const *)arg1)->isInitialized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_close" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_available(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_available",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_available" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (int)(arg1)->available(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_readBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofSerial_readBytes",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_readBytes" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSerial_readBytes" "', argument " "2"" of type '" "unsigned char *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSerial_readBytes" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (int)(arg1)->readBytes(arg2,arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_readByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_readByte",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_readByte" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); result = (int)(arg1)->readByte(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_writeBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofSerial_writeBytes",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_writeBytes" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofSerial_writeBytes" "', argument " "2"" of type '" "unsigned char *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSerial_writeBytes" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (int)(arg1)->writeBytes(arg2,arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_writeByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSerial_writeByte",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_writeByte" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSerial_writeByte" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->writeByte(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_flush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSerial_flush",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_flush" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSerial_flush" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSerial_flush" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->flush(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_flush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSerial_flush",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_flush" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSerial_flush" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->flush(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_flush__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_flush",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_flush" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->flush(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSerial_flush(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSerial_flush__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSerial_flush__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofSerial, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSerial_flush__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSerial_flush'.\n" + " Possible C/C++ prototypes are:\n" " ofSerial::flush(bool,bool)\n" " ofSerial::flush(bool)\n" + " ofSerial::flush()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSerial_drain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofSerial *arg1 = (ofSerial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSerial_drain",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofSerial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSerial_drain" "', argument " "1"" of type '" "ofSerial *""'"); } + arg1 = reinterpret_cast< ofSerial * >(argp1); (arg1)->drain(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofSerial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofSerial, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *OF_LIGHT_POINT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_POINT",SWIG_From_int(static_cast< int >(OF_LIGHT_POINT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LIGHT_DIRECTIONAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_DIRECTIONAL",SWIG_From_int(static_cast< int >(OF_LIGHT_DIRECTIONAL))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LIGHT_SPOT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_SPOT",SWIG_From_int(static_cast< int >(OF_LIGHT_SPOT))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_LIGHT_AREA_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_LIGHT_AREA",SWIG_From_int(static_cast< int >(OF_LIGHT_AREA))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_ofEnableLighting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableLighting")) SWIG_fail; ofEnableLighting(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableLighting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableLighting")) SWIG_fail; ofDisableLighting(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableSeparateSpecularLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofEnableSeparateSpecularLight")) SWIG_fail; + ofEnableSeparateSpecularLight(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableSeparateSpecularLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofDisableSeparateSpecularLight")) SWIG_fail; + ofDisableSeparateSpecularLight(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetLightingEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetLightingEnabled")) SWIG_fail; result = (bool)ofGetLightingEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetSmoothLighting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetSmoothLighting",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetSmoothLighting" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetSmoothLighting(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetGlobalAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFloatColor *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetGlobalAmbientColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetGlobalAmbientColor" "', argument " "1"" of type '" "ofFloatColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetGlobalAmbientColor" "', argument " "1"" of type '" "ofFloatColor const &""'"); } + arg1 = reinterpret_cast< ofFloatColor * >(argp1); ofSetGlobalAmbientColor((ofColor_< float > const &)*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetGlobalAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFloatColor *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":ofGetGlobalAmbientColor")) SWIG_fail; + result = (ofFloatColor *) &ofGetGlobalAmbientColor(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofLight")) SWIG_fail; result = (ofLight *)new ofLight(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofLight, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_setup",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setup" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->setup(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_enable",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_enable" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->enable(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_disable",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_disable" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->disable(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getIsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsEnabled",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsEnabled" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setDirectional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_setDirectional",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setDirectional" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->setDirectional(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getIsDirectional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsDirectional",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsDirectional" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsDirectional(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setSpotlight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofLight_setSpotlight",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setSpotlight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setSpotlight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLight_setSpotlight" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setSpotlight(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setSpotlight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofLight_setSpotlight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setSpotlight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setSpotlight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSpotlight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setSpotlight__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_setSpotlight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setSpotlight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->setSpotlight(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setSpotlight(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLight_setSpotlight__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLight_setSpotlight__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLight_setSpotlight__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLight_setSpotlight'.\n" + " Possible C/C++ prototypes are:\n" " ofLight::setSpotlight(float,float)\n" " ofLight::setSpotlight(float)\n" + " ofLight::setSpotlight()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofLight_getIsSpotlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsSpotlight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsSpotlight" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsSpotlight(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setSpotlightCutOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofLight_setSpotlightCutOff",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setSpotlightCutOff" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setSpotlightCutOff" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSpotlightCutOff(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getSpotlightCutOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getSpotlightCutOff",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getSpotlightCutOff" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getSpotlightCutOff(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setSpotConcentration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofLight_setSpotConcentration",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setSpotConcentration" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setSpotConcentration" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSpotConcentration(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getSpotConcentration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getSpotConcentration",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getSpotConcentration" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getSpotConcentration(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setPointLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_setPointLight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setPointLight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->setPointLight(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getIsPointLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsPointLight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsPointLight" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsPointLight(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAttenuation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofLight_setAttenuation",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAttenuation" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setAttenuation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLight_setAttenuation" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofLight_setAttenuation" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setAttenuation(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAttenuation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofLight_setAttenuation",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAttenuation" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setAttenuation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLight_setAttenuation" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAttenuation(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAttenuation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofLight_setAttenuation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAttenuation" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setAttenuation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setAttenuation(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAttenuation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_setAttenuation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAttenuation" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); (arg1)->setAttenuation(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAttenuation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLight_setAttenuation__SWIG_3(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLight_setAttenuation__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLight_setAttenuation__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofLight, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLight_setAttenuation__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLight_setAttenuation'.\n" + " Possible C/C++ prototypes are:\n" " ofLight::setAttenuation(float,float,float)\n" + " ofLight::setAttenuation(float,float)\n" " ofLight::setAttenuation(float)\n" " ofLight::setAttenuation()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofLight_getAttenuationConstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getAttenuationConstant",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationConstant" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getAttenuationConstant(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getAttenuationLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getAttenuationLinear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationLinear" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getAttenuationLinear(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getAttenuationQuadratic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getAttenuationQuadratic",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAttenuationQuadratic" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (float)((ofLight const *)arg1)->getAttenuationQuadratic(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAreaLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofLight_setAreaLight",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAreaLight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLight_setAreaLight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLight_setAreaLight" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAreaLight(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getIsAreaLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getIsAreaLight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getIsAreaLight" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (bool)((ofLight const *)arg1)->getIsAreaLight(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getType" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (int)((ofLight const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; ofFloatColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofLight_setAmbientColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setAmbientColor" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLight_setAmbientColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLight_setAmbientColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + arg2 = reinterpret_cast< ofFloatColor * >(argp2); (arg1)->setAmbientColor((ofFloatColor const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setDiffuseColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; ofFloatColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofLight_setDiffuseColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setDiffuseColor" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLight_setDiffuseColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLight_setDiffuseColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + arg2 = reinterpret_cast< ofFloatColor * >(argp2); (arg1)->setDiffuseColor((ofFloatColor const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_setSpecularColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; ofFloatColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofLight_setSpecularColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_setSpecularColor" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLight_setSpecularColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLight_setSpecularColor" "', argument " "2"" of type '" "ofFloatColor const &""'"); } + arg2 = reinterpret_cast< ofFloatColor * >(argp2); (arg1)->setSpecularColor((ofFloatColor const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFloatColor result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getAmbientColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getAmbientColor" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = ((ofLight const *)arg1)->getAmbientColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getDiffuseColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFloatColor result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getDiffuseColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getDiffuseColor" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = ((ofLight const *)arg1)->getDiffuseColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getSpecularColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofFloatColor result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getSpecularColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getSpecularColor" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = ((ofLight const *)arg1)->getSpecularColor(); + resultobj = SWIG_NewPointerObj((new ofFloatColor(static_cast< const ofFloatColor& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLight_getLightID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofLight_getLightID",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLight_getLightID" "', argument " "1"" of type '" "ofLight const *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); result = (int)((ofLight const *)arg1)->getLightID(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofLight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofLight *arg1 = (ofLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofLight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofLight, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofLight" "', argument " "1"" of type '" "ofLight *""'"); } + arg1 = reinterpret_cast< ofLight * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofLight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofLight, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofLightsData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< weak_ptr< ofLight::Data >,std::allocator< weak_ptr< ofLight::Data > > > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":ofLightsData")) SWIG_fail; + result = (std::vector< weak_ptr< ofLight::Data >,std::allocator< weak_ptr< ofLight::Data > > > *) &ofLightsData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMaterial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofMaterial")) SWIG_fail; + result = (ofMaterial *)new ofMaterial(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMaterial, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofMaterial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMaterial",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMaterial" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_setColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; ofFloatColor arg2 ; ofFloatColor arg3 ; ofFloatColor arg4 ; ofFloatColor arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; + void *argp5 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMaterial_setColors",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setColors" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMaterial_setColors" "', argument " "2"" of type '" "ofFloatColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setColors" "', argument " "2"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMaterial_setColors" "', argument " "3"" of type '" "ofFloatColor""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setColors" "', argument " "3"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMaterial_setColors" "', argument " "4"" of type '" "ofFloatColor""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setColors" "', argument " "4"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp4); arg4 = *temp; + if (SWIG_IsNewObj(res4)) delete temp; } } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMaterial_setColors" "', argument " "5"" of type '" "ofFloatColor""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setColors" "', argument " "5"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp5); arg5 = *temp; + if (SWIG_IsNewObj(res5)) delete temp; } } (arg1)->setColors(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_setDiffuseColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; ofFloatColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMaterial_setDiffuseColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setDiffuseColor" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMaterial_setDiffuseColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setDiffuseColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setDiffuseColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_setAmbientColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; ofFloatColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMaterial_setAmbientColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setAmbientColor" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMaterial_setAmbientColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setAmbientColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setAmbientColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_setSpecularColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMaterial *arg1 = (ofMaterial *) 0 ; ofFloatColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMaterial_setSpecularColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setSpecularColor" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMaterial_setSpecularColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setSpecularColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setSpecularColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_setEmissiveColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMaterial *arg1 = (ofMaterial *) 0 ; ofFloatColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMaterial_setEmissiveColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setEmissiveColor" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMaterial_setEmissiveColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setEmissiveColor" "', argument " "2"" of type '" "ofFloatColor""'"); } + else { ofFloatColor * temp = reinterpret_cast< ofFloatColor * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setEmissiveColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_setShininess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMaterial_setShininess",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setShininess" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMaterial_setShininess" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setShininess(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_getData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMaterial::Data result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMaterial_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_getData" "', argument " "1"" of type '" "ofMaterial const *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); result = ((ofMaterial const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj((new ofMaterial::Data(static_cast< const ofMaterial::Data& >(result))), SWIGTYPE_p_ofMaterial__Data, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMaterial_setData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMaterial *arg1 = (ofMaterial *) 0 ; ofMaterial::Data *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMaterial_setData",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMaterial_setData" "', argument " "1"" of type '" "ofMaterial *""'"); } + arg1 = reinterpret_cast< ofMaterial * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMaterial__Data, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMaterial_setData" "', argument " "2"" of type '" "ofMaterial::Data const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMaterial_setData" "', argument " "2"" of type '" "ofMaterial::Data const &""'"); } + arg2 = reinterpret_cast< ofMaterial::Data * >(argp2); (arg1)->setData((ofMaterial::Data const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofMaterial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofMaterial, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofShader__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShader")) SWIG_fail; result = (ofShader *)new ofShader(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofShader, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofShader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShader" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShader__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofShader *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofShader, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShader" "', argument " "1"" of type '" "ofShader const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShader" "', argument " "1"" of type '" "ofShader const &""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (ofShader *)new ofShader((ofShader const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofShader, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShader__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofShader *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofShader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofShader, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShader" "', argument " "1"" of type '" "ofShader &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShader" "', argument " "1"" of type '" "ofShader &&""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (ofShader *)new ofShader((ofShader &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofShader, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShader(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofShader__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShader__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShader__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShader'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::ofShader()\n" " ofShader::ofShader(ofShader const &)\n" + " ofShader::ofShader(ofShader &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_load" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string arg2 ; std::string arg3 ; std::string arg4 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_load",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_load" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_load" "', argument " "3"" of type '" "std::string""'"); } + arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_load" "', argument " "4"" of type '" "std::string""'"); } + arg4 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_load",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_load" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_load" "', argument " "3"" of type '" "std::string""'"); } + arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_load__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_load__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_load__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_load'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::load(std::string)\n" + " ofShader::load(std::string,std::string,std::string)\n" " ofShader::load(std::string,std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setGeometryInputType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_setGeometryInputType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setGeometryInputType" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setGeometryInputType" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setGeometryInputType" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setGeometryInputType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setGeometryOutputType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_setGeometryOutputType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setGeometryOutputType" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setGeometryOutputType" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setGeometryOutputType" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setGeometryOutputType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setGeometryOutputCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_setGeometryOutputCount",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setGeometryOutputCount" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setGeometryOutputCount" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setGeometryOutputCount(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_getGeometryMaxOutputCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_getGeometryMaxOutputCount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getGeometryMaxOutputCount" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (int)((ofShader const *)arg1)->getGeometryMaxOutputCount(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_unload",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_unload" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); (arg1)->unload(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_isLoaded",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_isLoaded" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (bool)((ofShader const *)arg1)->isLoaded(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_begin" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->begin(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_end" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->end(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofBaseHasTexture *arg3 = 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofBaseHasTexture, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofBaseHasTexture const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofBaseHasTexture const &""'"); } + arg3 = reinterpret_cast< ofBaseHasTexture * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformTexture" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformTexture((std::string const &)*arg2,(ofBaseHasTexture const &)*arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofTexture *arg3 = 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformTexture",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofTexture, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofTexture const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "ofTexture const &""'"); } + arg3 = reinterpret_cast< ofTexture * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformTexture" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformTexture((std::string const &)*arg2,(ofTexture const &)*arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; GLint arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setUniformTexture",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformTexture" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformTexture" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniformTexture" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformTexture" "', argument " "4"" of type '" "GLint""'"); } + arg4 = static_cast< GLint >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniformTexture" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ((ofShader const *)arg1)->setUniformTexture((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofBaseHasTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniformTexture__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofTexture, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniformTexture__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniformTexture__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniformTexture'.\n" + " Possible C/C++ prototypes are:\n" + " ofShader::setUniformTexture(std::string const &,ofBaseHasTexture const &,int) const\n" + " ofShader::setUniformTexture(std::string const &,ofTexture const &,int) const\n" + " ofShader::setUniformTexture(std::string const &,int,GLint,int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1i",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1i" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1i" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1i" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform1i" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofShader const *)arg1)->setUniform1i((std::string const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2i",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2i" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2i" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2i" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform2i" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2i" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform2i((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setUniform3i",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3i" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3i" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3i" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform3i" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3i" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform3i" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ((ofShader const *)arg1)->setUniform3i((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4i(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setUniform4i",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4i" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4i" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4i" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform4i" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform4i" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform4i" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setUniform4i" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ((ofShader const *)arg1)->setUniform4i((std::string const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform1f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofShader const *)arg1)->setUniform1f((std::string const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform2f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2f" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofShader const *)arg1)->setUniform2f((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setUniform3f",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform3f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3f" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform3f" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofShader const *)arg1)->setUniform3f((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setUniform4f",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform4f" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setUniform4f" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setUniform4f" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofShader const *)arg1)->setUniform4f((std::string const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform2f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2f" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2f" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); + ((ofShader const *)arg1)->setUniform2f((std::string const &)*arg2,(ofVec2f const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform2f__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform2f__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform2f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform2f(std::string const &,float,float) const\n" + " ofShader::setUniform2f(std::string const &,ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform3f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3f" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3f" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); + ((ofShader const *)arg1)->setUniform3f((std::string const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform3f__SWIG_1(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform3f__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform3f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform3f(std::string const &,float,float,float) const\n" + " ofShader::setUniform3f(std::string const &,ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofVec4f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofVec4f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofVec4f const &""'"); } + arg3 = reinterpret_cast< ofVec4f * >(argp3); + ((ofShader const *)arg1)->setUniform4f((std::string const &)*arg2,(ofVec4f const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofFloatColor *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4f" "', argument " "3"" of type '" "ofFloatColor const &""'"); } + arg3 = reinterpret_cast< ofFloatColor * >(argp3); + ((ofShader const *)arg1)->setUniform4f((std::string const &)*arg2,(ofFloatColor const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform4f__SWIG_1(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform4f__SWIG_2(self, args);} } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform4f__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform4f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform4f(std::string const &,float,float,float,float) const\n" + " ofShader::setUniform4f(std::string const &,ofVec4f const &) const\n" + " ofShader::setUniform4f(std::string const &,ofFloatColor const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform1iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform1iv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform1iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1iv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform1iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform1iv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform1iv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform1iv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform1iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform1iv(std::string const &,int const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2iv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform2iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform2iv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform2iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform2iv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform2iv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform2iv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform2iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform2iv(std::string const &,int const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform3iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3iv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform3iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform3iv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform3iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform3iv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform3iv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform3iv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform3iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform3iv(std::string const &,int const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform4iv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform4iv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofShader const *)arg1)->setUniform4iv((std::string const &)*arg2,(int const *)arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4iv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4iv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4iv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4iv" "', argument " "3"" of type '" "int const *""'"); } + arg3 = reinterpret_cast< int * >(argp3); + ((ofShader const *)arg1)->setUniform4iv((std::string const &)*arg2,(int const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4iv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform4iv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform4iv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform4iv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform4iv(std::string const &,int const *,int) const\n" + " ofShader::setUniform4iv(std::string const &,int const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform1fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform1fv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform1fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform1fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform1fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform1fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform1fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform1fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform1fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform1fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform1fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform1fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform1fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform1fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform2fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform2fv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform2fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform2fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform2fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform2fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform2fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform2fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform2fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform2fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform2fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform2fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform2fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform2fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform3fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform3fv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform3fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform3fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform3fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform3fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform3fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform3fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform3fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform3fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform3fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform3fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform3fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform3fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniform4fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniform4fv" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniform4fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniform4fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniform4fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniform4fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniform4fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setUniform4fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniform4fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniform4fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniform4fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniform4fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniform4fv(std::string const &,float const *,int) const\n" + " ofShader::setUniform4fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniforms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; ofParameterGroup *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_setUniforms",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniforms" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofParameterGroup, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniforms" "', argument " "2"" of type '" "ofParameterGroup const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniforms" "', argument " "2"" of type '" "ofParameterGroup const &""'"); } + arg2 = reinterpret_cast< ofParameterGroup * >(argp2); ((ofShader const *)arg1)->setUniforms((ofParameterGroup const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix3f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix3x3 *arg3 = 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformMatrix3f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix3x3, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + arg3 = reinterpret_cast< ofMatrix3x3 * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformMatrix3f" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformMatrix3f((std::string const &)*arg2,(ofMatrix3x3 const &)*arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix3f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix3x3 *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniformMatrix3f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix3x3, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix3f" "', argument " "3"" of type '" "ofMatrix3x3 const &""'"); } + arg3 = reinterpret_cast< ofMatrix3x3 * >(argp3); + ((ofShader const *)arg1)->setUniformMatrix3f((std::string const &)*arg2,(ofMatrix3x3 const &)*arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix3f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniformMatrix3f__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniformMatrix3f__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniformMatrix3f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniformMatrix3f(std::string const &,ofMatrix3x3 const &,int) const\n" + " ofShader::setUniformMatrix3f(std::string const &,ofMatrix3x3 const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix4x4 *arg3 = 0 ; int arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setUniformMatrix4f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformMatrix4f" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix4f" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + arg3 = reinterpret_cast< ofMatrix4x4 * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setUniformMatrix4f" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); + ((ofShader const *)arg1)->setUniformMatrix4f((std::string const &)*arg2,(ofMatrix4x4 const &)*arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; ofMatrix4x4 *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setUniformMatrix4f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setUniformMatrix4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setUniformMatrix4f" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix4f" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setUniformMatrix4f" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setUniformMatrix4f" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + arg3 = reinterpret_cast< ofMatrix4x4 * >(argp3); + ((ofShader const *)arg1)->setUniformMatrix4f((std::string const &)*arg2,(ofMatrix4x4 const &)*arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setUniformMatrix4f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setUniformMatrix4f__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShader_setUniformMatrix4f__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setUniformMatrix4f'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setUniformMatrix4f(std::string const &,ofMatrix4x4 const &,int) const\n" + " ofShader::setUniformMatrix4f(std::string const &,ofMatrix4x4 const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_getUniformLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GLint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getUniformLocation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getUniformLocation" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getUniformLocation" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getUniformLocation" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (GLint)((ofShader const *)arg1)->getUniformLocation((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_getAttributeLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GLint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getAttributeLocation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getAttributeLocation" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getAttributeLocation" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getAttributeLocation" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (GLint)((ofShader const *)arg1)->getAttributeLocation((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute1f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute1f",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute1f" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute1f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofShader const *)arg1)->setAttribute1f(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute2f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute2f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute2f" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute2f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute2f" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofShader const *)arg1)->setAttribute2f(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute3f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShader_setAttribute3f",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute3f" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute3f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute3f" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute3f" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofShader const *)arg1)->setAttribute3f(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; GLint arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShader_setAttribute4f",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4f" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShader_setAttribute4f" "', argument " "2"" of type '" "GLint""'"); } + arg2 = static_cast< GLint >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShader_setAttribute4f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShader_setAttribute4f" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShader_setAttribute4f" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShader_setAttribute4f" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((ofShader const *)arg1)->setAttribute4f(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute1fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute1fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute1fv" "', argument " "4"" of type '" "GLsizei""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute1fv" "', argument " "4"" of type '" "GLsizei""'"); } + else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + ((ofShader const *)arg1)->setAttribute1fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute1fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute1fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute1fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute1fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute1fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute1fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute1fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute1fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute1fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute1fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute1fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute2fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute2fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute2fv" "', argument " "4"" of type '" "GLsizei""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute2fv" "', argument " "4"" of type '" "GLsizei""'"); } + else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + ((ofShader const *)arg1)->setAttribute2fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute2fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute2fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute2fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute2fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute2fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute2fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute2fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute2fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute2fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute2fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute2fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute3fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute3fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute3fv" "', argument " "4"" of type '" "GLsizei""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute3fv" "', argument " "4"" of type '" "GLsizei""'"); } + else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + ((ofShader const *)arg1)->setAttribute3fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute3fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute3fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute3fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute3fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute3fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute3fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute3fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute3fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute3fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute3fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute3fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; GLsizei arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setAttribute4fv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute4fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLsizei, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShader_setAttribute4fv" "', argument " "4"" of type '" "GLsizei""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute4fv" "', argument " "4"" of type '" "GLsizei""'"); } + else { GLsizei * temp = reinterpret_cast< GLsizei * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } + ((ofShader const *)arg1)->setAttribute4fv((std::string const &)*arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; std::string *arg2 = 0 ; float *arg3 = (float *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setAttribute4fv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setAttribute4fv" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setAttribute4fv" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_setAttribute4fv" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); + ((ofShader const *)arg1)->setAttribute4fv((std::string const &)*arg2,(float const *)arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setAttribute4fv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute4fv__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLsizei, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setAttribute4fv__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setAttribute4fv'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setAttribute4fv(std::string const &,float const *,GLsizei) const\n" + " ofShader::setAttribute4fv(std::string const &,float const *) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_bindAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; GLuint arg2 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_bindAttribute",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_bindAttribute" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLuint, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_bindAttribute" "', argument " "2"" of type '" "GLuint""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_bindAttribute" "', argument " "2"" of type '" "GLuint""'"); } + else { GLuint * temp = reinterpret_cast< GLuint * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShader_bindAttribute" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_bindAttribute" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } ((ofShader const *)arg1)->bindAttribute(arg2,(std::string const &)*arg3); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_printActiveUniforms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_printActiveUniforms",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_printActiveUniforms" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->printActiveUniforms(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_printActiveAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_printActiveAttributes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_printActiveAttributes" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); ((ofShader const *)arg1)->printActiveAttributes(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; std::string arg3 ; std::string arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShader_setupShaderFromSource",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setupShaderFromSource" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setupShaderFromSource" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setupShaderFromSource" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_setupShaderFromSource" "', argument " "3"" of type '" "std::string""'"); } + arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_setupShaderFromSource" "', argument " "4"" of type '" "std::string""'"); } + arg4 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->setupShaderFromSource(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromSource__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setupShaderFromSource",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setupShaderFromSource" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setupShaderFromSource" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setupShaderFromSource" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_setupShaderFromSource" "', argument " "3"" of type '" "std::string""'"); } + arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->setupShaderFromSource(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromSource(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setupShaderFromSource__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofShader, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLenum, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShader_setupShaderFromSource__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShader_setupShaderFromSource'.\n" + " Possible C/C++ prototypes are:\n" " ofShader::setupShaderFromSource(GLenum,std::string,std::string)\n" + " ofShader::setupShaderFromSource(GLenum,std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShader_setupShaderFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShader_setupShaderFromFile",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_setupShaderFromFile" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_setupShaderFromFile" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_setupShaderFromFile" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShader_setupShaderFromFile" "', argument " "3"" of type '" "std::string""'"); } + arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->setupShaderFromFile(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_linkProgram(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_linkProgram",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_linkProgram" "', argument " "1"" of type '" "ofShader *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (bool)(arg1)->linkProgram(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_bindDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_bindDefaults",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_bindDefaults" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = (bool)((ofShader const *)arg1)->bindDefaults(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_getProgram(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShader_getProgram",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getProgram" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); result = ((ofShader const *)arg1)->getProgram(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_getShader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getShader",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getShader" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getShader" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getShader" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + result = ((ofShader const *)arg1)->getShader(arg2); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; ofShader *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader___eq__" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader___eq__" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader___eq__" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); result = (bool)((ofShader const *)arg1)->operator ==((ofShader const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; ofShader *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader___ne__" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofShader, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader___ne__" "', argument " "2"" of type '" "ofShader const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader___ne__" "', argument " "2"" of type '" "ofShader const &""'"); } + arg2 = reinterpret_cast< ofShader * >(argp2); result = (bool)((ofShader const *)arg1)->operator !=((ofShader const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShader_getShaderSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofShader *arg1 = (ofShader *) 0 ; GLenum arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShader_getShaderSource",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofShader, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShader_getShaderSource" "', argument " "1"" of type '" "ofShader const *""'"); } + arg1 = reinterpret_cast< ofShader * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLenum, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShader_getShaderSource" "', argument " "2"" of type '" "GLenum""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShader_getShaderSource" "', argument " "2"" of type '" "GLenum""'"); } + else { GLenum * temp = reinterpret_cast< GLenum * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + result = ((ofShader const *)arg1)->getShaderSource(arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofShader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofShader, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofVbo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVbo")) SWIG_fail; result = (ofVbo *)new ofVbo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVbo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVbo, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVbo" "', argument " "1"" of type '" "ofVbo const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVbo" "', argument " "1"" of type '" "ofVbo const &""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofVbo *)new ofVbo((ofVbo const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVbo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVbo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofVbo__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVbo__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofVbo'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::ofVbo()\n" " ofVbo::ofVbo(ofVbo const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofVbo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVbo" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setMesh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofMesh *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setMesh",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setMesh" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMesh, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setMesh" "', argument " "2"" of type '" "ofMesh const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setMesh" "', argument " "2"" of type '" "ofMesh const &""'"); } + arg2 = reinterpret_cast< ofMesh * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setMesh" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setMesh((ofMesh const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofMesh *arg2 = 0 ; int arg3 ; bool arg4 ; bool arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; + bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofVbo_setMesh",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setMesh" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMesh, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setMesh" "', argument " "2"" of type '" "ofMesh const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setMesh" "', argument " "2"" of type '" "ofMesh const &""'"); } + arg2 = reinterpret_cast< ofMesh * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setMesh" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setMesh" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setMesh" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setMesh" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->setMesh((ofMesh const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setMesh__SWIG_0(self, args);} } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setMesh__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setMesh'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setMesh(ofMesh const &,int)\n" + " ofVbo::setMesh(ofMesh const &,int,bool,bool,bool)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setVertexData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexData" "', argument " "2"" of type '" "ofVec3f const *""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setVertexData((ofVec3f const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setVertexData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexData" "', argument " "2"" of type '" "ofVec2f const *""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setVertexData((ofVec2f const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofFloatColor *arg2 = (ofFloatColor *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setColorData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setColorData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setColorData" "', argument " "2"" of type '" "ofFloatColor const *""'"); } + arg2 = reinterpret_cast< ofFloatColor * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setColorData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setColorData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setColorData((ofFloatColor const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setNormalData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setNormalData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setNormalData" "', argument " "2"" of type '" "ofVec3f const *""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setNormalData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setNormalData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setNormalData((ofVec3f const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setTexCoordData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setTexCoordData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setTexCoordData" "', argument " "2"" of type '" "ofVec2f const *""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setTexCoordData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setTexCoordData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setTexCoordData((ofVec2f const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setIndexData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofIndexType *arg2 = (ofIndexType *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setIndexData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setIndexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setIndexData" "', argument " "2"" of type '" "ofIndexType const *""'"); } + arg2 = reinterpret_cast< ofIndexType * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setIndexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setIndexData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setIndexData((ofIndexType const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofVbo_setVertexData",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setVertexData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setVertexData" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->setVertexData((float const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setVertexData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setVertexData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setVertexData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexData__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexData__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexData__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexData__SWIG_2(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setVertexData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setVertexData(ofVec3f const *,int,int)\n" + " ofVbo::setVertexData(ofVec2f const *,int,int)\n" " ofVbo::setVertexData(float const *,int,int,int,int)\n" + " ofVbo::setVertexData(float const *,int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setColorData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setColorData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setColorData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setColorData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setColorData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setColorData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setColorData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setColorData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setColorData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setColorData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setColorData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setColorData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setColorData((float const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setColorData__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setColorData__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setColorData__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setColorData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setColorData(ofFloatColor const *,int,int)\n" + " ofVbo::setColorData(float const *,int,int,int)\n" " ofVbo::setColorData(float const *,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setNormalData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setNormalData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setNormalData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setNormalData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setNormalData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setNormalData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setNormalData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setNormalData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setNormalData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setNormalData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setNormalData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setNormalData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setNormalData((float const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setNormalData__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setNormalData__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setNormalData__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setNormalData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setNormalData(ofVec3f const *,int,int)\n" + " ofVbo::setNormalData(float const *,int,int,int)\n" " ofVbo::setNormalData(float const *,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setTexCoordData",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setTexCoordData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setTexCoordData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setTexCoordData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setTexCoordData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setTexCoordData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setTexCoordData((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setTexCoordData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setTexCoordData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setTexCoordData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setTexCoordData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setTexCoordData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setTexCoordData((float const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setTexCoordData__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setTexCoordData__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setTexCoordData__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setTexCoordData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setTexCoordData(ofVec2f const *,int,int)\n" + " ofVbo::setTexCoordData(float const *,int,int,int)\n" " ofVbo::setTexCoordData(float const *,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; float *arg3 = (float *) 0 ; int arg4 ; int arg5 ; int arg6 ; + int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; + int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofVbo_setAttributeData",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setAttributeData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_setAttributeData" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVbo_setAttributeData" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setAttributeData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setAttributeData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setAttributeData" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofVbo_setAttributeData" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->setAttributeData(arg2,(float const *)arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; float *arg3 = (float *) 0 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofVbo_setAttributeData",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setAttributeData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_setAttributeData" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVbo_setAttributeData" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setAttributeData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setAttributeData" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setAttributeData" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->setAttributeData(arg2,(float const *)arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setAttributeData__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setAttributeData__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setAttributeData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setAttributeData(int,float const *,int,int,int,int)\n" + " ofVbo::setAttributeData(int,float const *,int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setVertexBuffer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setVertexBuffer" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setVertexBuffer(*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setVertexBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setVertexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setVertexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setVertexBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setVertexBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setVertexBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setVertexBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexBuffer__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setVertexBuffer__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setVertexBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setVertexBuffer(ofBufferObject &,int,int,int)\n" + " ofVbo::setVertexBuffer(ofBufferObject &,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setColorBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setColorBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setColorBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setColorBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setColorBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setColorBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setColorBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setColorBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setColorBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setColorBuffer(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setColorBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setColorBuffer__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setColorBuffer__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setColorBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setColorBuffer(ofBufferObject &,int,int)\n" + " ofVbo::setColorBuffer(ofBufferObject &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setNormalBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setNormalBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setNormalBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setNormalBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setNormalBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setNormalBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setNormalBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setNormalBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setNormalBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setNormalBuffer(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setNormalBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setNormalBuffer__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setNormalBuffer__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setNormalBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setNormalBuffer(ofBufferObject &,int,int)\n" + " ofVbo::setNormalBuffer(ofBufferObject &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_setTexCoordBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setTexCoordBuffer(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_setTexCoordBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setTexCoordBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_setTexCoordBuffer" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setTexCoordBuffer(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setTexCoordBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setTexCoordBuffer__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setTexCoordBuffer__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setTexCoordBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setTexCoordBuffer(ofBufferObject &,int,int)\n" + " ofVbo::setTexCoordBuffer(ofBufferObject &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_setIndexBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofBufferObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_setIndexBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setIndexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_setIndexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setIndexBuffer" "', argument " "2"" of type '" "ofBufferObject &""'"); } + arg2 = reinterpret_cast< ofBufferObject * >(argp2); (arg1)->setIndexBuffer(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; ofBufferObject *arg3 = 0 ; int arg4 ; int arg5 ; int arg6 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofVbo_setAttributeBuffer",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setAttributeBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_setAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + arg3 = reinterpret_cast< ofBufferObject * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setAttributeBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setAttributeBuffer" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofVbo_setAttributeBuffer" "', argument " "6"" of type '" "int""'"); } + arg6 = static_cast< int >(val6); (arg1)->setAttributeBuffer(arg2,*arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; ofBufferObject *arg3 = 0 ; int arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_setAttributeBuffer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_setAttributeBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_setAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofBufferObject, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_setAttributeBuffer" "', argument " "3"" of type '" "ofBufferObject &""'"); } + arg3 = reinterpret_cast< ofBufferObject * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_setAttributeBuffer" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_setAttributeBuffer" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->setAttributeBuffer(arg2,*arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_setAttributeBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setAttributeBuffer__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofBufferObject, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_setAttributeBuffer__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_setAttributeBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::setAttributeBuffer(int,ofBufferObject &,int,int,int)\n" + " ofVbo::setAttributeBuffer(int,ofBufferObject &,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getVertexBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVertexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getVertexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getVertexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getColorBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getColorBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getColorBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getColorBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getNormalBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNormalBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNormalBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getNormalBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getTexCoordBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getTexCoordBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getTexCoordBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getTexCoordBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getIndexBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getIndexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getIndexBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &(arg1)->getIndexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofBufferObject *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_getAttributeBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getAttributeBuffer" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_getAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofBufferObject *) &(arg1)->getAttributeBuffer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getVertexBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVertexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getVertexBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getVertexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getVertexBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getVertexBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getVertexBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getVertexBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getVertexBuffer()\n" " ofVbo::getVertexBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getColorBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getColorBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getColorBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getColorBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getColorBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getColorBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getColorBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getColorBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getColorBuffer()\n" " ofVbo::getColorBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getNormalBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNormalBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNormalBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getNormalBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getNormalBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getNormalBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getNormalBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getNormalBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getNormalBuffer()\n" " ofVbo::getNormalBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getTexCoordBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getTexCoordBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getTexCoordBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getTexCoordBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getTexCoordBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getTexCoordBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getTexCoordBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getTexCoordBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getTexCoordBuffer()\n" " ofVbo::getTexCoordBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getIndexBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofBufferObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getIndexBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getIndexBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (ofBufferObject *) &((ofVbo const *)arg1)->getIndexBuffer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getIndexBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getIndexBuffer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVbo_getIndexBuffer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getIndexBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getIndexBuffer()\n" " ofVbo::getIndexBuffer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofBufferObject *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_getAttributeBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getAttributeBuffer" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_getAttributeBuffer" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofBufferObject *) &((ofVbo const *)arg1)->getAttributeBuffer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofBufferObject, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeBuffer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_getAttributeBuffer__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_getAttributeBuffer__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_getAttributeBuffer'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::getAttributeBuffer(int)\n" " ofVbo::getAttributeBuffer(int) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_updateMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofMesh *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_updateMesh",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateMesh" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMesh, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateMesh" "', argument " "2"" of type '" "ofMesh const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVbo_updateMesh" "', argument " "2"" of type '" "ofMesh const &""'"); } + arg2 = reinterpret_cast< ofMesh * >(argp2); (arg1)->updateMesh((ofMesh const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateVertexData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateVertexData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateVertexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateVertexData" "', argument " "2"" of type '" "ofVec3f const *""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateVertexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateVertexData((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateVertexData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateVertexData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateVertexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateVertexData" "', argument " "2"" of type '" "ofVec2f const *""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateVertexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateVertexData((ofVec2f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateColorData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofFloatColor *arg2 = (ofFloatColor *) 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateColorData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateColorData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofColor_T_float_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateColorData" "', argument " "2"" of type '" "ofFloatColor const *""'"); } + arg2 = reinterpret_cast< ofFloatColor * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateColorData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateColorData((ofFloatColor const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateNormalData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateNormalData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateNormalData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateNormalData" "', argument " "2"" of type '" "ofVec3f const *""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateNormalData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateNormalData((ofVec3f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateTexCoordData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateTexCoordData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateTexCoordData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateTexCoordData" "', argument " "2"" of type '" "ofVec2f const *""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateTexCoordData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateTexCoordData((ofVec2f const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateIndexData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; ofIndexType *arg2 = (ofIndexType *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateIndexData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateIndexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateIndexData" "', argument " "2"" of type '" "ofIndexType const *""'"); } + arg2 = reinterpret_cast< ofIndexType * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateIndexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateIndexData((ofIndexType const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateVertexData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateVertexData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateVertexData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateVertexData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateVertexData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateVertexData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateVertexData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateVertexData__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateVertexData__SWIG_1(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateVertexData__SWIG_2(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_updateVertexData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::updateVertexData(ofVec3f const *,int)\n" + " ofVbo::updateVertexData(ofVec2f const *,int)\n" " ofVbo::updateVertexData(float const *,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_updateColorData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateColorData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateColorData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateColorData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateColorData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateColorData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateColorData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateColorData__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateColorData__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_updateColorData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::updateColorData(ofFloatColor const *,int)\n" + " ofVbo::updateColorData(float const *,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_updateNormalData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateNormalData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateNormalData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateNormalData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateNormalData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateNormalData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateNormalData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateNormalData__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateNormalData__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_updateNormalData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::updateNormalData(ofVec3f const *,int)\n" + " ofVbo::updateNormalData(float const *,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_updateTexCoordData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; float *arg2 = (float *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_updateTexCoordData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateTexCoordData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVbo_updateTexCoordData" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_updateTexCoordData" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->updateTexCoordData((float const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_updateTexCoordData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateTexCoordData__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_updateTexCoordData__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_updateTexCoordData'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::updateTexCoordData(ofVec2f const *,int)\n" + " ofVbo::updateTexCoordData(float const *,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_updateAttributeData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; float *arg3 = (float *) 0 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_updateAttributeData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_updateAttributeData" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_updateAttributeData" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVbo_updateAttributeData" "', argument " "3"" of type '" "float const *""'"); } + arg3 = reinterpret_cast< float * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_updateAttributeData" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->updateAttributeData(arg2,(float const *)arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_enableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_enableColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_enableColors" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->enableColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_enableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_enableNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_enableNormals" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->enableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_enableTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_enableTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_enableTexCoords" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->enableTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_enableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_enableIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_enableIndices" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->enableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_disableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_disableColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_disableColors" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->disableColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_disableNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_disableNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_disableNormals" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->disableNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_disableTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_disableTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_disableTexCoords" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->disableTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_disableIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_disableIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_disableIndices" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->disableIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getVaoId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVaoId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getVaoId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getVaoId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getVertId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getVertId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getVertId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getVertId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getColorId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getColorId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getColorId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getColorId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getNormalId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNormalId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNormalId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getNormalId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getTexCoordId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getTexCoordId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getTexCoordId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getTexCoordId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getIndexId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; GLuint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getIndexId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getIndexId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = ((ofVbo const *)arg1)->getIndexId(); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getAttributeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; GLuint result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_getAttributeId",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getAttributeId" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_getAttributeId" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofVbo const *)arg1)->getAttributeId(arg2); + resultobj = SWIG_NewPointerObj((new GLuint(static_cast< const GLuint& >(result))), SWIGTYPE_p_GLuint, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getIsAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getIsAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getIsAllocated" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (bool)((ofVbo const *)arg1)->getIsAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getUsingVerts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getUsingVerts",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getUsingVerts" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (bool)((ofVbo const *)arg1)->getUsingVerts(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getUsingColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getUsingColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getUsingColors" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (bool)((ofVbo const *)arg1)->getUsingColors(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getUsingNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getUsingNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getUsingNormals" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (bool)((ofVbo const *)arg1)->getUsingNormals(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getUsingTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getUsingTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getUsingTexCoords" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (bool)((ofVbo const *)arg1)->getUsingTexCoords(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getUsingIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getUsingIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getUsingIndices" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (bool)((ofVbo const *)arg1)->getUsingIndices(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_draw" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_draw" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_draw" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_draw" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofVbo const *)arg1)->draw(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_drawElements__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_drawElements",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElements" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawElements" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_drawElements" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_drawElements" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofVbo const *)arg1)->drawElements(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_drawElements__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVbo_drawElements",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElements" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawElements" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_drawElements" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofVbo const *)arg1)->drawElements(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_drawElements(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_drawElements__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVbo, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVbo_drawElements__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVbo_drawElements'.\n" + " Possible C/C++ prototypes are:\n" " ofVbo::drawElements(int,int,int) const\n" + " ofVbo::drawElements(int,int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVbo_drawInstanced(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVbo_drawInstanced",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawInstanced" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawInstanced" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_drawInstanced" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_drawInstanced" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVbo_drawInstanced" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); ((ofVbo const *)arg1)->drawInstanced(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_drawElementsInstanced(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVbo_drawElementsInstanced",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_drawElementsInstanced" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_drawElementsInstanced" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVbo_drawElementsInstanced" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVbo_drawElementsInstanced" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((ofVbo const *)arg1)->drawElementsInstanced(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_bind" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ((ofVbo const *)arg1)->bind(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_unbind" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ((ofVbo const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clear" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clearVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_clearVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearVertices" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->clearVertices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clearNormals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_clearNormals",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearNormals" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->clearNormals(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clearColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_clearColors",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearColors" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->clearColors(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clearTexCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_clearTexCoords",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearTexCoords" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->clearTexCoords(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clearIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_clearIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearIndices" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); (arg1)->clearIndices(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_clearAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_clearAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_clearAttribute" "', argument " "1"" of type '" "ofVbo *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_clearAttribute" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->clearAttribute(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getNumVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNumVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNumVertices" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (int)((ofVbo const *)arg1)->getNumVertices(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_getNumIndices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVbo_getNumIndices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_getNumIndices" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); result = (int)((ofVbo const *)arg1)->getNumIndices(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVbo_hasAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVbo *arg1 = (ofVbo *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVbo_hasAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVbo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVbo_hasAttribute" "', argument " "1"" of type '" "ofVbo const *""'"); } + arg1 = reinterpret_cast< ofVbo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVbo_hasAttribute" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (bool)((ofVbo const *)arg1)->hasAttribute(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofVbo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofVbo, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofVboMesh_draw__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVboMesh_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_draw" "', argument " "1"" of type '" "ofVboMesh const *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); ((ofVboMesh const *)arg1)->draw(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVboMesh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVboMesh")) SWIG_fail; + result = (ofVboMesh *)new ofVboMesh(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVboMesh, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVboMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMesh *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVboMesh *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVboMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMesh, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVboMesh" "', argument " "1"" of type '" "ofMesh const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVboMesh" "', argument " "1"" of type '" "ofMesh const &""'"); } + arg1 = reinterpret_cast< ofMesh * >(argp1); result = (ofVboMesh *)new ofVboMesh((ofMesh const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVboMesh, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVboMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofVboMesh__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVboMesh__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofVboMesh'.\n" + " Possible C/C++ prototypes are:\n" " ofVboMesh::ofVboMesh()\n" " ofVboMesh::ofVboMesh(ofMesh const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofVboMesh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVboMesh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVboMesh" "', argument " "1"" of type '" "ofVboMesh *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_setUsage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVboMesh_setUsage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_setUsage" "', argument " "1"" of type '" "ofVboMesh *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVboMesh_setUsage" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setUsage(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; ofPolyRenderMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVboMesh_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_draw" "', argument " "1"" of type '" "ofVboMesh const *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyRenderMode, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVboMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVboMesh_draw" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } + else { ofPolyRenderMode * temp = reinterpret_cast< ofPolyRenderMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } ((ofVboMesh const *)arg1)->draw(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVboMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVboMesh_draw__SWIG_0_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVboMesh, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPolyRenderMode, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVboMesh_draw__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVboMesh_draw'.\n" + " Possible C/C++ prototypes are:\n" " draw() const\n" " ofVboMesh::draw(ofPolyRenderMode) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVboMesh_drawInstanced(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; ofPolyRenderMode arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVboMesh_drawInstanced",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_drawInstanced" "', argument " "1"" of type '" "ofVboMesh const *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyRenderMode, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVboMesh_drawInstanced" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVboMesh_drawInstanced" "', argument " "2"" of type '" "ofPolyRenderMode""'"); } + else { ofPolyRenderMode * temp = reinterpret_cast< ofPolyRenderMode * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVboMesh_drawInstanced" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofVboMesh const *)arg1)->drawInstanced(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_getVbo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVboMesh_getVbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_getVbo" "', argument " "1"" of type '" "ofVboMesh *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); result = (ofVbo *) &(arg1)->getVbo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVbo, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_getVbo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVboMesh *arg1 = (ofVboMesh *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVbo *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVboMesh_getVbo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVboMesh, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVboMesh_getVbo" "', argument " "1"" of type '" "ofVboMesh const *""'"); } + arg1 = reinterpret_cast< ofVboMesh * >(argp1); result = (ofVbo *) &((ofVboMesh const *)arg1)->getVbo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVbo, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVboMesh_getVbo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVboMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVboMesh_getVbo__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVboMesh, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVboMesh_getVbo__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVboMesh_getVbo'.\n" + " Possible C/C++ prototypes are:\n" " ofVboMesh::getVbo()\n" " ofVboMesh::getVbo() const\n"); return 0; } +SWIGINTERN PyObject *ofVboMesh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofVboMesh, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_INTERPOLATE_NEAREST_NEIGHBOR",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_NEAREST_NEIGHBOR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_INTERPOLATE_BILINEAR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_INTERPOLATE_BILINEAR",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_BILINEAR))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *OF_INTERPOLATE_BICUBIC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "OF_INTERPOLATE_BICUBIC",SWIG_From_int(static_cast< int >(OF_INTERPOLATE_BICUBIC))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_new_ofPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPixels")) SWIG_fail; + result = (ofPixels_< unsigned char > *)new ofPixels_< unsigned char >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *)new ofPixels_< unsigned char >((ofPixels_< unsigned char > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > &&""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char > *)new ofPixels_< unsigned char >((ofPixels_< unsigned char > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofPixels__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofPixels__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofPixels__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::ofPixels_()\n" + " ofPixels_< unsigned char >::ofPixels_(ofPixels_< unsigned char > const &)\n" + " ofPixels_< unsigned char >::ofPixels_(ofPixels_< unsigned char > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocate" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; ofPixelFormat arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocate" "', argument " "4"" of type '" "ofPixelFormat""'"); } + arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; ofImageType arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_allocate__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_allocate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::allocate(size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::allocate(size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned char >::allocate(size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (bool)((ofPixels_< unsigned char > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_clear" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_set" "', argument " "2"" of type '" "unsigned char""'"); } + arg2 = static_cast< unsigned char >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; unsigned char arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; unsigned char val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_set" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_set" "', argument " "3"" of type '" "unsigned char""'"); } + arg3 = static_cast< unsigned char >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_set__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_set'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::set(unsigned char)\n" + " ofPixels_< unsigned char >::set(size_t,unsigned char)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned char const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromPixels__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setFromPixels(unsigned char const *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::setFromPixels(unsigned char const *,size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned char >::setFromPixels(unsigned char const *,size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned char *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromExternalPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned char *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromExternalPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromExternalPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromExternalPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromExternalPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setFromExternalPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setFromExternalPixels(unsigned char *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::setFromExternalPixels(unsigned char *,size_t,size_t,ofPixelFormat)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; + int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + else { + std::vector< size_t,std::allocator< size_t > > * temp = reinterpret_cast< std::vector< size_t,std::allocator< size_t > > * >(argp6); + arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + std::vector< int,std::allocator< int > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned char const *""'"); } + arg2 = reinterpret_cast< unsigned char * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + int res = swig::asptr(obj5, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< int,std::allocator< int > >""'"); } + arg6 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } + (arg1)->setFromAlignedPixels((unsigned char const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setFromAlignedPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_setFromAlignedPixels__SWIG_2(self, args);} } } } } + } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromAlignedPixels__SWIG_1(self, args);} } } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[5], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofPixels_setFromAlignedPixels__SWIG_3(self, args);} } } } } } } if (argc == 6) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_setFromAlignedPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setFromAlignedPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,size_t,size_t)\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,ofPixelFormat,size_t)\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,ofPixelFormat,std::vector< size_t,std::allocator< size_t > >)\n" + " ofPixels_< unsigned char >::setFromAlignedPixels(unsigned char const *,size_t,size_t,ofPixelFormat,std::vector< int,std::allocator< int > >)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_swap" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_crop" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_crop" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_crop" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_crop" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_crop" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_cropTo" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_cropTo" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPixels_cropTo" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPixels_cropTo" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); ((ofPixels_< unsigned char > const *)arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rotate90" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; int arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofPixels_< unsigned char > const *)arg1)->rotate90To(*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; bool arg3 ; + bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ((ofPixels_< unsigned char > const *)arg1)->mirrorTo(*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_mirror" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; ofInterpolationMethod arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } + arg4 = static_cast< ofInterpolationMethod >(val4); result = (bool)(arg1)->resize(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->resize(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_resize__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_resize'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::resize(size_t,size_t,ofInterpolationMethod)\n" + " ofPixels_< unsigned char >::resize(size_t,size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; + ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } + arg3 = static_cast< ofInterpolationMethod >(val3); + result = (bool)((ofPixels_< unsigned char > const *)arg1)->resizeTo(*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_resizeTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); + result = (bool)((ofPixels_< unsigned char > const *)arg1)->resizeTo(*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_resizeTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPixels_resizeTo__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_resizeTo__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_resizeTo'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::resizeTo(ofPixels_< unsigned char > &,ofInterpolationMethod) const\n" + " ofPixels_< unsigned char >::resizeTo(ofPixels_< unsigned char > &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_pasteInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_pasteInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned char > const *)arg1)->pasteInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_blendInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofPixels_< unsigned char > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_blendInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_blendInto" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned char > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned char > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_blendInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPixels_blendInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned char > const *)arg1)->blendInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_swapRgb",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); result = (unsigned char *)(arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (unsigned char *)((ofPixels_< unsigned char > const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_getData__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_getData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_getData'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::getData()\n" + " ofPixels_< unsigned char >::getData() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); result = (unsigned char *)(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + unsigned char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (unsigned char *)((ofPixels_< unsigned char > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::getPixels()\n" + " ofPixels_< unsigned char >::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getPixelIndex" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getPixelIndex" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned char > const *)arg1)->getPixelIndex(arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned char > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned char > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned char >(static_cast< const ofColor_< unsigned char >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::getColor(size_t,size_t) const\n" + " ofPixels_< unsigned char >::getColor(size_t) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; + ofColor_< unsigned char > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_setColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned char > const &""'"); } + arg4 = reinterpret_cast< ofColor_< unsigned char > * >(argp4); + (arg1)->setColor(arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; ofColor_< unsigned char > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned char > const &""'"); } + arg3 = reinterpret_cast< ofColor_< unsigned char > * >(argp3); + (arg1)->setColor(arg2,(ofColor_< unsigned char > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofColor_< unsigned char > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned char > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned char > * >(argp2); (arg1)->setColor((ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPixels_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_setColor'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned char >::setColor(size_t,size_t,ofColor_< unsigned char > const &)\n" + " ofPixels_< unsigned char >::setColor(size_t,ofColor_< unsigned char > const &)\n" + " ofPixels_< unsigned char >::setColor(ofColor_< unsigned char > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); + result = (unsigned char *) &((ofPixels_< unsigned char > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (unsigned char *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPixels___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::operator [](size_t) const\n" + " ofPixels_< unsigned char >::operator [](size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getWidth(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getHeight(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBytesPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getBytesPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBitsPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getBitsPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBytesPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getBytesPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBitsPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getBitsPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getBytesStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getBytesStride",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getBytesStride" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getBytesStride(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getNumChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getNumChannels(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getTotalBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getTotalBytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getTotalBytes" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getTotalBytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getNumPlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getNumPlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getNumPlanes" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = ((ofPixels_< unsigned char > const *)arg1)->getNumPlanes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getPlane",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPlane" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getPlane(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >(static_cast< const ofPixels_< unsigned char >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getChannel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned char > const *)arg1)->getChannel(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >(static_cast< const ofPixels_< unsigned char >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixelFormat result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getPixelFormat" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixelFormat)((ofPixels_< unsigned char > const *)arg1)->getPixelFormat(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_size" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); result = ((ofPixels_< unsigned char > const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofImageType)((ofPixels_< unsigned char > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; ofPixels_< unsigned char > arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned char > const""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned char > const""'"); } + else { ofPixels_< unsigned char > * temp = reinterpret_cast< ofPixels_< unsigned char > * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->setChannel(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setImageType" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_setNumChannels" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_pixelBitsFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixelFormat arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_pixelBitsFromPixelFormat",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofPixels_pixelBitsFromPixelFormat" "', argument " "1"" of type '" "ofPixelFormat""'"); } + arg1 = static_cast< ofPixelFormat >(val1); + result = ofPixels_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR pixelBitsFromPixelFormat(arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_bytesFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; size_t arg1 ; size_t arg2 ; ofPixelFormat arg3 ; size_t val1 ; int ecode1 = 0 ; size_t val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_bytesFromPixelFormat",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofPixels_bytesFromPixelFormat" "', argument " "1"" of type '" "size_t""'"); } + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_bytesFromPixelFormat" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_bytesFromPixelFormat" "', argument " "3"" of type '" "ofPixelFormat""'"); } + arg3 = static_cast< ofPixelFormat >(val3); + result = ofPixels_< unsigned char >::SWIGTEMPLATEDISAMBIGUATOR bytesFromPixelFormat(arg1,arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::iterator)(arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); result = (ofPixels_< unsigned char >::iterator)(arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::const_iterator)((ofPixels_< unsigned char > const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::begin()\n" + " ofPixels_< unsigned char >::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::const_iterator)((ofPixels_< unsigned char > const *)arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_end__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::end()\n" + " ofPixels_< unsigned char >::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::reverse_iterator)(arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::reverse_iterator)(arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::const_reverse_iterator)((ofPixels_< unsigned char > const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::rbegin()\n" + " ofPixels_< unsigned char >::rbegin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned char >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); + result = (ofPixels_< unsigned char >::const_reverse_iterator)((ofPixels_< unsigned char > const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPixels_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPixels_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned char >::rend()\n" + " ofPixels_< unsigned char >::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPixels_getLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char >::Line result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getLine" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::Line(static_cast< const ofPixels_< unsigned char >::Line& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__Line, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< unsigned char >::Lines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getLines" "', argument " "1"" of type '" "ofPixels_< unsigned char > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (arg1)->getLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::Lines(static_cast< const ofPixels_< unsigned char >::Lines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__Lines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getConstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned char >::ConstLine result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPixels_getConstLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getConstLine" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getConstLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned char > const *)arg1)->getConstLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::ConstLine(static_cast< const ofPixels_< unsigned char >::ConstLine& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLine, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPixels_getConstLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned char > *arg1 = (ofPixels_< unsigned char > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< unsigned char >::ConstLines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPixels_getConstLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPixels_getConstLines" "', argument " "1"" of type '" "ofPixels_< unsigned char > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned char > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPixels_getConstLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPixels_getConstLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned char > const *)arg1)->getConstLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned char >::ConstLines(static_cast< const ofPixels_< unsigned char >::ConstLines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_char_t__ConstLines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPixels_T_unsigned_char_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofFloatPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofFloatPixels")) SWIG_fail; + result = (ofPixels_< float > *)new ofPixels_< float >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofFloatPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofFloatPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofFloatPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatPixels" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatPixels" "', argument " "1"" of type '" "ofPixels_< float > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float > *)new ofPixels_< float >((ofPixels_< float > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< float > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofFloatPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofFloatPixels" "', argument " "1"" of type '" "ofPixels_< float > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofFloatPixels" "', argument " "1"" of type '" "ofPixels_< float > &&""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float > *)new ofPixels_< float >((ofPixels_< float > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofFloatPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofFloatPixels__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatPixels__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofFloatPixels__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofFloatPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::ofPixels_()\n" + " ofPixels_< float >::ofPixels_(ofPixels_< float > const &)\n" + " ofPixels_< float >::ofPixels_(ofPixels_< float > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocate" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocate" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; + ofPixelFormat arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocate" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocate" "', argument " "4"" of type '" "ofPixelFormat""'"); } + arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; ofImageType arg4 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_allocate" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_allocate__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_allocate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::allocate(size_t,size_t,size_t)\n" + " ofPixels_< float >::allocate(size_t,size_t,ofPixelFormat)\n" + " ofPixels_< float >::allocate(size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (bool)((ofPixels_< float > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_clear" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_set" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_set" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_set" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_set__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_set'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::set(float)\n" " ofPixels_< float >::set(size_t,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; + size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((float const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromPixels__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::setFromPixels(float const *,size_t,size_t,size_t)\n" + " ofPixels_< float >::setFromPixels(float const *,size_t,size_t,ofPixelFormat)\n" + " ofPixels_< float >::setFromPixels(float const *,size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromExternalPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; + size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "2"" of type '" "float *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromExternalPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "2"" of type '" "float *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromExternalPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromExternalPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromExternalPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromExternalPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setFromExternalPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::setFromExternalPixels(float *,size_t,size_t,size_t)\n" + " ofPixels_< float >::setFromExternalPixels(float *,size_t,size_t,ofPixelFormat)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; void *argp6 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + else { + std::vector< size_t,std::allocator< size_t > > * temp = reinterpret_cast< std::vector< size_t,std::allocator< size_t > > * >(argp6); + arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; float *arg2 = (float *) 0 ; size_t arg3 ; + size_t arg4 ; ofPixelFormat arg5 ; std::vector< int,std::allocator< int > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + int res = swig::asptr(obj5, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofFloatPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< int,std::allocator< int > >""'"); } + arg6 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->setFromAlignedPixels((float const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setFromAlignedPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_2(self, args);} } } } + } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_1(self, args);} } } } } } } if (argc == 6) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[5], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_3(self, args);} } } } } } } + if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_setFromAlignedPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setFromAlignedPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,size_t,size_t)\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,ofPixelFormat,size_t)\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,ofPixelFormat,std::vector< size_t,std::allocator< size_t > >)\n" + " ofPixels_< float >::setFromAlignedPixels(float const *,size_t,size_t,ofPixelFormat,std::vector< int,std::allocator< int > >)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_swap" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_swap" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_swap" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; + size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofFloatPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_crop" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_crop" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_crop" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_crop" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_crop" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; + size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofFloatPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_cropTo" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_cropTo" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofFloatPixels_cropTo" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofFloatPixels_cropTo" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); ((ofPixels_< float > const *)arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rotate90" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofPixels_< float > const *)arg1)->rotate90To(*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ((ofPixels_< float > const *)arg1)->mirrorTo(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_mirror" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; + ofInterpolationMethod arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resize" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } + arg4 = static_cast< ofInterpolationMethod >(val4); result = (bool)(arg1)->resize(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resize" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->resize(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_resize__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_resize'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::resize(size_t,size_t,ofInterpolationMethod)\n" + " ofPixels_< float >::resize(size_t,size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; + ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } + arg3 = static_cast< ofInterpolationMethod >(val3); result = (bool)((ofPixels_< float > const *)arg1)->resizeTo(*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_resizeTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); result = (bool)((ofPixels_< float > const *)arg1)->resizeTo(*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_resizeTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofFloatPixels_resizeTo__SWIG_1(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_resizeTo__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_resizeTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::resizeTo(ofPixels_< float > &,ofInterpolationMethod) const\n" + " ofPixels_< float >::resizeTo(ofPixels_< float > &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_pasteInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_pasteInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< float > const *)arg1)->pasteInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_blendInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofPixels_< float > *arg2 = 0 ; size_t arg3 ; size_t arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_blendInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_blendInto" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_float_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< float > &""'"); } + arg2 = reinterpret_cast< ofPixels_< float > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_blendInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofFloatPixels_blendInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< float > const *)arg1)->blendInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_swapRgb",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getData" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)(arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getData" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)((ofPixels_< float > const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_getData__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_getData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_getData'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::getData()\n" " ofPixels_< float >::getData() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (float *)((ofPixels_< float > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::getPixels()\n" " ofPixels_< float >::getPixels() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getPixelIndex" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< float > const *)arg1)->getPixelIndex(arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getColor" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< float > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofColor_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getColor" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< float > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< float >(static_cast< const ofColor_< float >& >(result))), SWIGTYPE_p_ofColor_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::getColor(size_t,size_t) const\n" + " ofPixels_< float >::getColor(size_t) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; + ofColor_< float > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofFloatPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofFloatPixels_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "4"" of type '" "ofColor_< float > const &""'"); } + arg4 = reinterpret_cast< ofColor_< float > * >(argp4); (arg1)->setColor(arg2,arg3,(ofColor_< float > const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; ofColor_< float > *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "3"" of type '" "ofColor_< float > const &""'"); } + arg3 = reinterpret_cast< ofColor_< float > * >(argp3); (arg1)->setColor(arg2,(ofColor_< float > const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofColor_< float > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setColor" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_float_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setColor" "', argument " "2"" of type '" "ofColor_< float > const &""'"); } + arg2 = reinterpret_cast< ofColor_< float > * >(argp2); (arg1)->setColor((ofColor_< float > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_setColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::setColor(size_t,size_t,ofColor_< float > const &)\n" + " ofPixels_< float >::setColor(size_t,ofColor_< float > const &)\n" + " ofPixels_< float >::setColor(ofColor_< float > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (float *) &((ofPixels_< float > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofFloatPixels___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::operator [](size_t) const\n" + " ofPixels_< float >::operator [](size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getWidth(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getHeight(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBytesPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBitsPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBitsPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBytesPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBitsPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBitsPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getBytesStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getBytesStride",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getBytesStride" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getBytesStride(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getNumChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getNumChannels(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getTotalBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getTotalBytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getTotalBytes" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getTotalBytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getNumPlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getNumPlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getNumPlanes" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->getNumPlanes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getPlane",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPlane" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getPlane(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >(static_cast< const ofPixels_< float >& >(result))), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getChannel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< float > const *)arg1)->getChannel(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >(static_cast< const ofPixels_< float >& >(result))), SWIGTYPE_p_ofPixels_T_float_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixelFormat result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getPixelFormat" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixelFormat)((ofPixels_< float > const *)arg1)->getPixelFormat(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_size" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = ((ofPixels_< float > const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofImageType)((ofPixels_< float > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; ofPixels_< float > arg3 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_float_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofFloatPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< float > const""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofFloatPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< float > const""'"); } + else { ofPixels_< float > * temp = reinterpret_cast< ofPixels_< float > * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->setChannel(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setImageType" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_setNumChannels" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_pixelBitsFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixelFormat arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_pixelBitsFromPixelFormat",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatPixels_pixelBitsFromPixelFormat" "', argument " "1"" of type '" "ofPixelFormat""'"); } + arg1 = static_cast< ofPixelFormat >(val1); + result = ofPixels_< float >::SWIGTEMPLATEDISAMBIGUATOR pixelBitsFromPixelFormat(arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_bytesFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; size_t arg1 ; size_t arg2 ; ofPixelFormat arg3 ; size_t val1 ; int ecode1 = 0 ; size_t val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_bytesFromPixelFormat",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofFloatPixels_bytesFromPixelFormat" "', argument " "1"" of type '" "size_t""'"); } + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_bytesFromPixelFormat" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_bytesFromPixelFormat" "', argument " "3"" of type '" "ofPixelFormat""'"); } + arg3 = static_cast< ofPixelFormat >(val3); + result = ofPixels_< float >::SWIGTEMPLATEDISAMBIGUATOR bytesFromPixelFormat(arg1,arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_begin" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::iterator)(arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_end" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::iterator)(arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::const_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_begin" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_iterator)((ofPixels_< float > const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::begin()\n" " ofPixels_< float >::begin() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::const_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_end" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_iterator)((ofPixels_< float > const *)arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_end__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::end()\n" " ofPixels_< float >::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::reverse_iterator)(arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rend" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); result = (ofPixels_< float >::reverse_iterator)(arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; ofPixels_< float >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_reverse_iterator)((ofPixels_< float > const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::rbegin()\n" " ofPixels_< float >::rbegin() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< float >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofFloatPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_rend" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); + result = (ofPixels_< float >::const_reverse_iterator)((ofPixels_< float > const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofFloatPixels_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_float_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofFloatPixels_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofFloatPixels_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< float >::rend()\n" " ofPixels_< float >::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float >::Line result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getLine" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::Line(static_cast< const ofPixels_< float >::Line& >(result))), SWIGTYPE_p_ofPixels_T_float_t__Line, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< float >::Lines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getLines" "', argument " "1"" of type '" "ofPixels_< float > *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (arg1)->getLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::Lines(static_cast< const ofPixels_< float >::Lines& >(result))), SWIGTYPE_p_ofPixels_T_float_t__Lines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getConstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< float >::ConstLine result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofFloatPixels_getConstLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getConstLine" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getConstLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< float > const *)arg1)->getConstLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::ConstLine(static_cast< const ofPixels_< float >::ConstLine& >(result))), SWIGTYPE_p_ofPixels_T_float_t__ConstLine, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofFloatPixels_getConstLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< float > *arg1 = (ofPixels_< float > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< float >::ConstLines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofFloatPixels_getConstLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_float_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofFloatPixels_getConstLines" "', argument " "1"" of type '" "ofPixels_< float > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< float > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofFloatPixels_getConstLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofFloatPixels_getConstLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< float > const *)arg1)->getConstLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< float >::ConstLines(static_cast< const ofPixels_< float >::ConstLines& >(result))), SWIGTYPE_p_ofPixels_T_float_t__ConstLines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofFloatPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPixels_T_float_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofShortPixels")) SWIG_fail; + result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofShortPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofShortPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const &""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >((ofPixels_< unsigned short > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofShortPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > &&""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofShortPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > &&""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short > *)new ofPixels_< unsigned short >((ofPixels_< unsigned short > &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofShortPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofShortPixels__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortPixels__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofShortPixels__SWIG_2(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofShortPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::ofPixels_()\n" + " ofPixels_< unsigned short >::ofPixels_(ofPixels_< unsigned short > const &)\n" + " ofPixels_< unsigned short >::ofPixels_(ofPixels_< unsigned short > &&)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocate" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofPixelFormat arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocate" "', argument " "4"" of type '" "ofPixelFormat""'"); } + arg4 = static_cast< ofPixelFormat >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofImageType arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_allocate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_allocate" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_allocate" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_allocate" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_allocate" "', argument " "4"" of type '" "ofImageType""'"); } + arg4 = static_cast< ofImageType >(val4); (arg1)->allocate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_allocate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_allocate__SWIG_1(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_allocate__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_allocate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_allocate'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::allocate(size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::allocate(size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned short >::allocate(size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_isAllocated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_isAllocated",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_isAllocated" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (bool)((ofPixels_< unsigned short > const *)arg1)->isAllocated(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_clear" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_set" "', argument " "2"" of type '" "unsigned short""'"); } + arg2 = static_cast< unsigned short >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; unsigned short arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_set" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_set" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_set" "', argument " "3"" of type '" "unsigned short""'"); } + arg3 = static_cast< unsigned short >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofShortPixels_set__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_set__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_set'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::set(unsigned short)\n" + " ofPixels_< unsigned short >::set(size_t,unsigned short)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofImageType arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromPixels" "', argument " "5"" of type '" "ofImageType""'"); } + arg5 = static_cast< ofImageType >(val5); (arg1)->setFromPixels((unsigned short const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromPixels__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setFromPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setFromPixels(unsigned short const *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::setFromPixels(unsigned short const *,size_t,size_t,ofPixelFormat)\n" + " ofPixels_< unsigned short >::setFromPixels(unsigned short const *,size_t,size_t,ofImageType)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromExternalPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned short *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromExternalPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_setFromExternalPixels",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "2"" of type '" "unsigned short *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromExternalPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); (arg1)->setFromExternalPixels(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromExternalPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromExternalPixels__SWIG_1(self, args);} } } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromExternalPixels__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setFromExternalPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setFromExternalPixels(unsigned short *,size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::setFromExternalPixels(unsigned short *,size_t,size_t,ofPixelFormat)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; size_t arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; + int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 ; + int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< size_t,std::allocator< size_t > >""'"); } + else { + std::vector< size_t,std::allocator< size_t > > * temp = reinterpret_cast< std::vector< size_t,std::allocator< size_t > > * >(argp6); + arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } + (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + unsigned short *arg2 = (unsigned short *) 0 ; size_t arg3 ; size_t arg4 ; ofPixelFormat arg5 ; + std::vector< int,std::allocator< int > > arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + size_t val3 ; int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_setFromAlignedPixels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "2"" of type '" "unsigned short const *""'"); } + arg2 = reinterpret_cast< unsigned short * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "5"" of type '" "ofPixelFormat""'"); } + arg5 = static_cast< ofPixelFormat >(val5); { + std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0; + int res = swig::asptr(obj5, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofShortPixels_setFromAlignedPixels" "', argument " "6"" of type '" "std::vector< int,std::allocator< int > >""'"); } + arg6 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } + (arg1)->setFromAlignedPixels((unsigned short const *)arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setFromAlignedPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_2(self, args);} } } } + } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_1(self, args);} } } } } } } if (argc == 6) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = swig::asptr(argv[5], (std::vector< int,std::allocator< int > >**)(0)); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_3(self, args);} } } } } } } + if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_setFromAlignedPixels__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setFromAlignedPixels'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,size_t,size_t)\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,ofPixelFormat,size_t)\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,ofPixelFormat,std::vector< size_t,std::allocator< size_t > >)\n" + " ofPixels_< unsigned short >::setFromAlignedPixels(unsigned short const *,size_t,size_t,ofPixelFormat,std::vector< int,std::allocator< int > >)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_swap" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_swap" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_crop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; size_t arg4 ; + size_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofShortPixels_crop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_crop" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_crop" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_crop" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_crop" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_crop" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); (arg1)->crop(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_cropTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; size_t arg5 ; size_t arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; + int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; size_t val5 ; int ecode5 = 0 ; size_t val6 ; int ecode6 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofShortPixels_cropTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_cropTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_cropTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_cropTo" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_cropTo" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); ecode5 = SWIG_AsVal_size_t(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofShortPixels_cropTo" "', argument " "5"" of type '" "size_t""'"); } + arg5 = static_cast< size_t >(val5); ecode6 = SWIG_AsVal_size_t(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofShortPixels_cropTo" "', argument " "6"" of type '" "size_t""'"); } + arg6 = static_cast< size_t >(val6); ((ofPixels_< unsigned short > const *)arg1)->cropTo(*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_rotate90",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rotate90" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_rotate90" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->rotate90(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rotate90To(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; int arg3 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_rotate90To",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rotate90To" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_rotate90To" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_rotate90To" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ((ofPixels_< unsigned short > const *)arg1)->rotate90To(*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_mirrorTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; bool arg3 ; + bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_mirrorTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_mirrorTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_mirrorTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_mirrorTo" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_mirrorTo" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ((ofPixels_< unsigned short > const *)arg1)->mirrorTo(*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; bool arg2 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_mirror",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_mirror" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_mirror" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_mirror" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->mirror(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofInterpolationMethod arg4 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; + int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_resize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_resize" "', argument " "4"" of type '" "ofInterpolationMethod""'"); } + arg4 = static_cast< ofInterpolationMethod >(val4); result = (bool)(arg1)->resize(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_resize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resize" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resize" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->resize(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_resize__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_resize__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_resize'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::resize(size_t,size_t,ofInterpolationMethod)\n" + " ofPixels_< unsigned short >::resize(size_t,size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + ofPixels_< unsigned short > *arg2 = 0 ; ofInterpolationMethod arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_resizeTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_resizeTo" "', argument " "3"" of type '" "ofInterpolationMethod""'"); } + arg3 = static_cast< ofInterpolationMethod >(val3); + result = (bool)((ofPixels_< unsigned short > const *)arg1)->resizeTo(*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + ofPixels_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_resizeTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_resizeTo" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_resizeTo" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); + result = (bool)((ofPixels_< unsigned short > const *)arg1)->resizeTo(*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_resizeTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortPixels_resizeTo__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_resizeTo__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_resizeTo'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::resizeTo(ofPixels_< unsigned short > &,ofInterpolationMethod) const\n" + " ofPixels_< unsigned short >::resizeTo(ofPixels_< unsigned short > &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_pasteInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_pasteInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_pasteInto" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_pasteInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_pasteInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_pasteInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned short > const *)arg1)->pasteInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_blendInto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofPixels_< unsigned short > *arg2 = 0 ; size_t arg3 ; + size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; size_t val4 ; + int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_blendInto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_blendInto" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 ); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_blendInto" "', argument " "2"" of type '" "ofPixels_< unsigned short > &""'"); } + arg2 = reinterpret_cast< ofPixels_< unsigned short > * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_blendInto" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofShortPixels_blendInto" "', argument " "4"" of type '" "size_t""'"); } + arg4 = static_cast< size_t >(val4); result = (bool)((ofPixels_< unsigned short > const *)arg1)->blendInto(*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_swapRgb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_swapRgb",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_swapRgb" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); (arg1)->swapRgb(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); result = (unsigned short *)(arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getData" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (unsigned short *)((ofPixels_< unsigned short > const *)arg1)->getData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getData__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getData__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_getData'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::getData()\n" + " ofPixels_< unsigned short >::getData() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); result = (unsigned short *)(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (unsigned short *)((ofPixels_< unsigned short > const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::getPixels()\n" + " ofPixels_< unsigned short >::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixelIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getPixelIndex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixelIndex" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getPixelIndex" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getPixelIndex" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned short > const *)arg1)->getPixelIndex(arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofColor_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned short > const *)arg1)->getColor(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + ofColor_< unsigned short > result; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned short > const *)arg1)->getColor(arg2); + resultobj = SWIG_NewPointerObj((new ofColor_< unsigned short >(static_cast< const ofColor_< unsigned short >& >(result))), SWIGTYPE_p_ofColor_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_getColor__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels_getColor__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_getColor'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::getColor(size_t,size_t) const\n" + " ofPixels_< unsigned short >::getColor(size_t) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + ofColor_< unsigned short > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofShortPixels_setColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofShortPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "4"" of type '" "ofColor_< unsigned short > const &""'"); } + arg4 = reinterpret_cast< ofColor_< unsigned short > * >(argp4); + (arg1)->setColor(arg2,arg3,(ofColor_< unsigned short > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + ofColor_< unsigned short > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_setColor",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "3"" of type '" "ofColor_< unsigned short > const &""'"); } + arg3 = reinterpret_cast< ofColor_< unsigned short > * >(argp3); + (arg1)->setColor(arg2,(ofColor_< unsigned short > const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; + ofColor_< unsigned short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setColor" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setColor" "', argument " "2"" of type '" "ofColor_< unsigned short > const &""'"); } + arg2 = reinterpret_cast< ofColor_< unsigned short > * >(argp2); (arg1)->setColor((ofColor_< unsigned short > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_setColor__SWIG_2(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortPixels_setColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofShortPixels_setColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_setColor'.\n" + " Possible C/C++ prototypes are:\n" + " ofPixels_< unsigned short >::setColor(size_t,size_t,ofColor_< unsigned short > const &)\n" + " ofPixels_< unsigned short >::setColor(size_t,ofColor_< unsigned short > const &)\n" + " ofPixels_< unsigned short >::setColor(ofColor_< unsigned short > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); + result = (unsigned short *) &((ofPixels_< unsigned short > const *)arg1)->operator [](arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(*result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + unsigned short *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels___getitem__" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels___getitem__" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (unsigned short *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofShortPixels___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::operator [](size_t) const\n" + " ofPixels_< unsigned short >::operator [](size_t)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getWidth" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getWidth(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getHeight" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getHeight(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBytesPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBitsPerPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBitsPerPixel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBitsPerPixel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBitsPerPixel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBytesPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBitsPerChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBitsPerChannel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBitsPerChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBitsPerChannel(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getBytesStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getBytesStride",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getBytesStride" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getBytesStride(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getNumChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getNumChannels(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getTotalBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getTotalBytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getTotalBytes" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getTotalBytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getNumPlanes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getNumPlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getNumPlanes" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->getNumPlanes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getPlane",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPlane" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getPlane" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getPlane(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >(static_cast< const ofPixels_< unsigned short >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getChannel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned short > const *)arg1)->getChannel(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >(static_cast< const ofPixels_< unsigned short >& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixelFormat result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getPixelFormat" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixelFormat)((ofPixels_< unsigned short > const *)arg1)->getPixelFormat(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + size_t result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_size" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = ((ofPixels_< unsigned short > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofImageType result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_getImageType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofImageType)((ofPixels_< unsigned short > const *)arg1)->getImageType(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setChannel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; ofPixels_< unsigned short > arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_setChannel",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setChannel" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setChannel" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofShortPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned short > const""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofShortPixels_setChannel" "', argument " "3"" of type '" "ofPixels_< unsigned short > const""'"); } + else { ofPixels_< unsigned short > * temp = reinterpret_cast< ofPixels_< unsigned short > * >(argp3); arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->setChannel(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; ofImageType arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setImageType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setImageType" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setImageType" "', argument " "2"" of type '" "ofImageType""'"); } + arg2 = static_cast< ofImageType >(val2); (arg1)->setImageType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_setNumChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_setNumChannels",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_setNumChannels" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_setNumChannels" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->setNumChannels(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_pixelBitsFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixelFormat arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_pixelBitsFromPixelFormat",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortPixels_pixelBitsFromPixelFormat" "', argument " "1"" of type '" "ofPixelFormat""'"); } + arg1 = static_cast< ofPixelFormat >(val1); + result = ofPixels_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR pixelBitsFromPixelFormat(arg1); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_bytesFromPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; size_t arg1 ; size_t arg2 ; ofPixelFormat arg3 ; size_t val1 ; int ecode1 = 0 ; size_t val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_bytesFromPixelFormat",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofShortPixels_bytesFromPixelFormat" "', argument " "1"" of type '" "size_t""'"); } + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_bytesFromPixelFormat" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_bytesFromPixelFormat" "', argument " "3"" of type '" "ofPixelFormat""'"); } + arg3 = static_cast< ofPixelFormat >(val3); + result = ofPixels_< unsigned short >::SWIGTEMPLATEDISAMBIGUATOR bytesFromPixelFormat(arg1,arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::iterator)(arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::iterator)(arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::const_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_begin" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_iterator)((ofPixels_< unsigned short > const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::begin()\n" + " ofPixels_< unsigned short >::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::const_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_end" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_iterator)((ofPixels_< unsigned short > const *)arg1)->end(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_end__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::end()\n" + " ofPixels_< unsigned short >::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::reverse_iterator)(arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::reverse_iterator)(arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; PyObject * obj0 = 0 ; ofPixels_< unsigned short >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rbegin" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_reverse_iterator)((ofPixels_< unsigned short > const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::rbegin()\n" + " ofPixels_< unsigned short >::rbegin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels_< unsigned short >::const_reverse_iterator result; + if (!PyArg_ParseTuple(args,(char *)"O:ofShortPixels_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_rend" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); + result = (ofPixels_< unsigned short >::const_reverse_iterator)((ofPixels_< unsigned short > const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofShortPixels_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofShortPixels_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPixels_< unsigned short >::rend()\n" + " ofPixels_< unsigned short >::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short >::Line result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getLine" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = (arg1)->getLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::Line(static_cast< const ofPixels_< unsigned short >::Line& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__Line, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofPixels_< unsigned short >::Lines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getLines" "', argument " "1"" of type '" "ofPixels_< unsigned short > *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = (arg1)->getLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::Lines(static_cast< const ofPixels_< unsigned short >::Lines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__Lines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getConstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; + size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPixels_< unsigned short >::ConstLine result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofShortPixels_getConstLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getConstLine" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getConstLine" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); result = ((ofPixels_< unsigned short > const *)arg1)->getConstLine(arg2); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::ConstLine(static_cast< const ofPixels_< unsigned short >::ConstLine& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLine, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofShortPixels_getConstLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPixels_< unsigned short > *arg1 = (ofPixels_< unsigned short > *) 0 ; size_t arg2 ; size_t arg3 ; + void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofPixels_< unsigned short >::ConstLines result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofShortPixels_getConstLines",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPixels_T_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofShortPixels_getConstLines" "', argument " "1"" of type '" "ofPixels_< unsigned short > const *""'"); } + arg1 = reinterpret_cast< ofPixels_< unsigned short > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofShortPixels_getConstLines" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofShortPixels_getConstLines" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); result = ((ofPixels_< unsigned short > const *)arg1)->getConstLines(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPixels_< unsigned short >::ConstLines(static_cast< const ofPixels_< unsigned short >::ConstLines& >(result))), SWIGTYPE_p_ofPixels_T_unsigned_short_t__ConstLines, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofShortPixels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPixels_T_unsigned_short_t, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPath")) SWIG_fail; result = (ofPath *)new ofPath(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPath, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_clear" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_newSubPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_newSubPath",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_newSubPath" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->newSubPath(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_close" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_lineTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->lineTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_lineTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->lineTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_lineTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_lineTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_lineTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_lineTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_lineTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->lineTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_lineTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_lineTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_lineTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_lineTo__SWIG_2(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_lineTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::lineTo(ofPoint const &)\n" " ofPath::lineTo(float,float)\n" + " ofPath::lineTo(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_moveTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->moveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_moveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_moveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_moveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->moveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_moveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_moveTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_moveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_moveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_moveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->moveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_moveTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_moveTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_moveTo__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_moveTo__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_moveTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::moveTo(ofPoint const &)\n" " ofPath::moveTo(float,float,float)\n" + " ofPath::moveTo(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_curveTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->curveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->curveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_curveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_curveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_curveTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_curveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->curveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_curveTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_curveTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_curveTo__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_curveTo__SWIG_2(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_curveTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::curveTo(ofPoint const &)\n" " ofPath::curveTo(float,float)\n" + " ofPath::curveTo(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_bezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_bezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_bezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_bezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_bezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_bezierTo__SWIG_0(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_bezierTo__SWIG_1(self, args);} } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_bezierTo__SWIG_2(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_bezierTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPath::bezierTo(float,float,float,float,float,float)\n" + " ofPath::bezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; + float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_quadBezierTo" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_quadBezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_quadBezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_quadBezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_quadBezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_quadBezierTo__SWIG_0(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_quadBezierTo__SWIG_1(self, args);} } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_quadBezierTo__SWIG_2(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_quadBezierTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPath::quadBezierTo(float,float,float,float,float,float)\n" + " ofPath::quadBezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arc__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arc" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_arc" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arc(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arc__SWIG_0(self, args);} } } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arc__SWIG_1(self, args);} } } } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arc__SWIG_2(self, args);} } } } } } } } if (argc == 8) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arc__SWIG_3(self, args);} } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_arc'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::arc(ofPoint const &,float,float,float,float)\n" + " ofPath::arc(ofPoint const &,float,float,float,float,bool)\n" " ofPath::arc(float,float,float,float,float,float)\n" + " ofPath::arc(float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arcNegative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_arcNegative" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_arcNegative" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_arcNegative(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arcNegative__SWIG_0(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arcNegative__SWIG_1(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_arcNegative__SWIG_2(self, args);} } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_arcNegative'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::arcNegative(ofPoint const &,float,float,float,float)\n" + " ofPath::arcNegative(float,float,float,float,float,float)\n" + " ofPath::arcNegative(float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_triangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_triangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_triangle" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->triangle(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_triangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_triangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_triangle" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_triangle" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_triangle" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_triangle" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->triangle(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_triangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_triangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_triangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_triangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_triangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPath_triangle" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_triangle" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->triangle((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_triangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_triangle__SWIG_2(self, args);} } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_triangle__SWIG_0(self, args);} } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_triangle__SWIG_1(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_triangle'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::triangle(float,float,float,float,float,float)\n" + " ofPath::triangle(float,float,float,float,float,float,float,float,float)\n" + " ofPath::triangle(ofPoint const &,ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_circle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_circle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->circle(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_circle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_circle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_circle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->circle(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_circle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_circle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_circle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_circle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_circle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_circle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->circle((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_circle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_circle__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_circle__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_circle__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_circle'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::circle(float,float,float)\n" " ofPath::circle(float,float,float,float)\n" + " ofPath::circle(ofPoint const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_ellipse" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->ellipse(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_ellipse" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_ellipse" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->ellipse(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_ellipse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_ellipse" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_ellipse" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_ellipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_ellipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->ellipse((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_ellipse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_ellipse__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_ellipse__SWIG_0(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_ellipse__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_ellipse'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::ellipse(float,float,float,float)\n" + " ofPath::ellipse(float,float,float,float,float)\n" " ofPath::ellipse(ofPoint const &,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_rectangle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); (arg1)->rectangle((ofRectangle const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->rectangle((ofPoint const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rectangle(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectangle" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->rectangle(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_rectangle__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectangle__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectangle__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectangle__SWIG_3(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_rectangle'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::rectangle(ofRectangle const &)\n" + " ofPath::rectangle(ofPoint const &,float,float)\n" " ofPath::rectangle(float,float,float,float)\n" + " ofPath::rectangle(float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_rectRounded",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->rectRounded((ofRectangle const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rectRounded((ofPoint const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->rectRounded(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + float arg8 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; + int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_rectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_rectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); (arg1)->rectRounded((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofRectangle *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->rectRounded((ofRectangle const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; + float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPath_rectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rectRounded" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_rectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPath_rectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPath_rectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPath_rectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPath_rectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPath_rectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPath_rectRounded" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPath_rectRounded" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->rectRounded(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rectRounded(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[11] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 10) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_4(self, args);} } } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_2(self, args);} } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_3(self, args);} } } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_rectRounded__SWIG_5(self, args);} } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_rectRounded'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::rectRounded(ofRectangle const &,float)\n" + " ofPath::rectRounded(ofPoint const &,float,float,float)\n" " ofPath::rectRounded(float,float,float,float,float)\n" + " ofPath::rectRounded(ofPoint const &,float,float,float,float,float,float)\n" + " ofPath::rectRounded(ofRectangle const &,float,float,float,float)\n" + " ofPath::rectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_setPolyWindingMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPolyWindingMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setPolyWindingMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setPolyWindingMode" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setPolyWindingMode" "', argument " "2"" of type '" "ofPolyWindingMode""'"); } + arg2 = static_cast< ofPolyWindingMode >(val2); (arg1)->setPolyWindingMode(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getWindingMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyWindingMode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getWindingMode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getWindingMode" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofPolyWindingMode)((ofPath const *)arg1)->getWindingMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setFilled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFilled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFilled" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setFilled" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setFilled(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setStrokeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeWidth" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setStrokeWidth" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setStrokeWidth(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setColor" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setColor" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setHexColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setHexColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setHexColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFillColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFillColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setFillColor" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setFillColor" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setFillColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setFillHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setFillHexColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setFillHexColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setFillHexColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setFillHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setStrokeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_setStrokeColor" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_setStrokeColor" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); (arg1)->setStrokeColor((ofColor const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setStrokeHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setStrokeHexColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setStrokeHexColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setStrokeHexColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setStrokeHexColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_isFilled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_isFilled",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_isFilled" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->isFilled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getFillColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getFillColor" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = ((ofPath const *)arg1)->getFillColor(); + resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getStrokeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofColor result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getStrokeColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getStrokeColor" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = ((ofPath const *)arg1)->getStrokeColor(); + resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getStrokeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getStrokeWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getStrokeWidth" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (float)((ofPath const *)arg1)->getStrokeWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_hasOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_hasOutline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_hasOutline" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->hasOutline(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setCurveResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setCurveResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setCurveResolution" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setCurveResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setCurveResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setCircleResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setCircleResolution" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setCircleResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setCircleResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCircleResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCircleResolution" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (int)((ofPath const *)arg1)->getCircleResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setUseShapeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setUseShapeColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setUseShapeColor" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setUseShapeColor" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseShapeColor(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getUseShapeColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getUseShapeColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getUseShapeColor" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (bool)((ofPath const *)arg1)->getUseShapeColor(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_draw" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ((ofPath const *)arg1)->draw(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_draw" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofPath const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_draw__SWIG_0(self, args);} } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_draw__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_draw'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::draw() const\n" " ofPath::draw(float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_getOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< ofPolyline > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getOutline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getOutline" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (std::vector< ofPolyline > *) &((ofPath const *)arg1)->getOutline(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_tessellate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_tessellate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_tessellate" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->tessellate(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getTessellation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMesh *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getTessellation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getTessellation" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofMesh *) &((ofPath const *)arg1)->getTessellation(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_simplify__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_simplify",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_simplify" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_simplify" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->simplify(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_simplify__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_simplify",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_simplify" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); (arg1)->simplify(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_simplify(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_simplify__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPath_simplify__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_simplify'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::simplify(float)\n" " ofPath::simplify()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPath_translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_translate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_translate" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_translate" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->translate((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_rotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_rotate" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPath_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->rotate(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPath_scale",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_scale" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPath_scale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->scale(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPath *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_append",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_append" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPath, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPath_append" "', argument " "2"" of type '" "ofPath const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPath_append" "', argument " "2"" of type '" "ofPath const &""'"); } + arg2 = reinterpret_cast< ofPath * >(argp2); (arg1)->append((ofPath const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_setMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; ofPath::Mode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPath_setMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_setMode" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPath_setMode" "', argument " "2"" of type '" "ofPath::Mode""'"); } + arg2 = static_cast< ofPath::Mode >(val2); (arg1)->setMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPath::Mode result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getMode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getMode" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (ofPath::Mode)(arg1)->getMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCommands__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofPath::Command > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCommands",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCommands" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); result = (std::vector< ofPath::Command > *) &(arg1)->getCommands(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCommands__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofPath::Command > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPath_getCommands",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPath_getCommands" "', argument " "1"" of type '" "ofPath const *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); + result = (std::vector< ofPath::Command > *) &((ofPath const *)arg1)->getCommands(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPath_getCommands(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_getCommands__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPath, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPath_getCommands__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPath_getCommands'.\n" + " Possible C/C++ prototypes are:\n" " ofPath::getCommands()\n" " ofPath::getCommands() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPath *arg1 = (ofPath *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPath",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPath, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPath" "', argument " "1"" of type '" "ofPath *""'"); } + arg1 = reinterpret_cast< ofPath * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPath, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofPolyline__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofPolyline")) SWIG_fail; + result = (ofPolyline *)new ofPolyline(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPolyline, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPolyline__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< ofPoint > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyline *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofPolyline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofPolyline" "', argument " "1"" of type '" "std::vector< ofPoint > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofPolyline" "', argument " "1"" of type '" "std::vector< ofPoint > const &""'"); } + arg1 = reinterpret_cast< std::vector< ofPoint > * >(argp1); + result = (ofPolyline *)new ofPolyline((std::vector< ofPoint > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPolyline, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofPolyline(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofPolyline__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ofPolyline__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofPolyline'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::ofPolyline()\n" + " ofPolyline::ofPolyline(std::vector< ofPoint > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_fromRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_fromRectangle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_fromRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_fromRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); result = ofPolyline::fromRectangle((ofRectangle const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_clear" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_addVertex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->addVertex((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_addVertex",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_addVertex" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->addVertex(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_addVertex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_addVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->addVertex(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_addVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_addVertex__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_addVertex__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_addVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::addVertex(ofPoint const &)\n" + " ofPolyline::addVertex(float,float,float)\n" " ofPolyline::addVertex(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; std::vector< ofPoint > *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_addVertices",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertices" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "std::vector< ofPoint > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "std::vector< ofPoint > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofPoint > * >(argp2); (arg1)->addVertices((std::vector< ofPoint > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = (ofPoint *) 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_addVertices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_addVertices" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_addVertices" "', argument " "2"" of type '" "ofPoint const *""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_addVertices" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->addVertices((ofPoint const *)arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_addVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofPolyline_addVertices__SWIG_0(self, args);} } } if (argc == 3) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); + if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_addVertices__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_addVertices'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::addVertices(std::vector< ofPoint > const &)\n" + " ofPolyline::addVertices(ofPoint const *,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_insertVertex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_insertVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_insertVertex" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->insertVertex((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; int arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_insertVertex",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_insertVertex" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_insertVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_insertVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_insertVertex" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_insertVertex" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->insertVertex(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_insertVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_insertVertex__SWIG_0(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_insertVertex__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_insertVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::insertVertex(ofPoint const &,int)\n" + " ofPolyline::insertVertex(float,float,float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_resize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_resize" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_resize" "', argument " "2"" of type '" "size_t""'"); } + arg2 = static_cast< size_t >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_size" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline___getitem__" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofPoint *) &((ofPolyline const *)arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline___getitem__" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (ofPoint *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline___getitem____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline___getitem____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::operator [](int) const\n" " ofPolyline::operator [](int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getVertices__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofPoint > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getVertices" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (std::vector< ofPoint > *) &(arg1)->getVertices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getVertices__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofPoint > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getVertices" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); + result = (std::vector< ofPoint > *) &((ofPolyline const *)arg1)->getVertices(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getVertices(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_getVertices__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_getVertices__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getVertices'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::getVertices()\n" " ofPolyline::getVertices() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_begin" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_begin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_begin" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->begin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_begin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_begin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_begin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_begin'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::begin()\n" " ofPolyline::begin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rbegin" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->rbegin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rbegin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rbegin" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->rbegin(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rbegin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rbegin__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rbegin__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_rbegin'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::rbegin()\n" " ofPolyline::rbegin() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_end" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->end(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_end",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_end" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->end(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_end(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_end__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_end__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_end'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::end()\n" " ofPolyline::end() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rend" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (arg1)->rend(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVec3f,std::allocator< ofVec3f > >::const_reverse_iterator > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_rend",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_rend" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->rend(); + resultobj = SWIG_NewPointerObj((new std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator(static_cast< const std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator& >(result))), SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_rend(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rend__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_rend__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_rend'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::rend()\n" " ofPolyline::rend() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_lineTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->lineTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_lineTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_lineTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->lineTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_lineTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_lineTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_lineTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_lineTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->lineTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_lineTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_lineTo__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_lineTo__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_lineTo__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_lineTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::lineTo(ofPoint const &)\n" " ofPolyline::lineTo(float,float,float)\n" + " ofPolyline::lineTo(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; + int arg8 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int val8 ; + int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; bool arg7 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; int arg7 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->arc((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; int arg8 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + float arg8 ; int arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + float val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofPolyline_arc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arc" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arc" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arc" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arc" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arc" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arc" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arc" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arc" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_int(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_arc" "', argument " "9"" of type '" "int""'"); } + arg9 = static_cast< int >(val9); (arg1)->arc(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arc(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_1(self, args);} } } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_2(self, args);} } } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_5(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_0(self, args);} } } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_4(self, args);} } } } } } } } } if (argc == 9) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arc__SWIG_6(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_arc'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::arc(ofPoint const &,float,float,float,float,bool,int)\n" + " ofPolyline::arc(ofPoint const &,float,float,float,float,bool)\n" + " ofPolyline::arc(ofPoint const &,float,float,float,float,int)\n" + " ofPolyline::arc(ofPoint const &,float,float,float,float)\n" + " ofPolyline::arc(float,float,float,float,float,float,int)\n" " ofPolyline::arc(float,float,float,float,float,float)\n" + " ofPolyline::arc(float,float,float,float,float,float,float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "int""'"); } + arg7 = static_cast< int >(val7); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); (arg1)->arcNegative((ofPoint const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arcNegative" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; int arg9 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofPolyline_arcNegative",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_arcNegative" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_arcNegative" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_arcNegative" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_arcNegative" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_arcNegative" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_arcNegative" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_arcNegative" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_arcNegative" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_int(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_arcNegative" "', argument " "9"" of type '" "int""'"); } + arg9 = static_cast< int >(val9); (arg1)->arcNegative(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_arcNegative(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_1(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_0(self, args);} } } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_3(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_2(self, args);} } } } } } } } } if (argc == 9) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_arcNegative__SWIG_4(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_arcNegative'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::arcNegative(ofPoint const &,float,float,float,float,int)\n" + " ofPolyline::arcNegative(ofPoint const &,float,float,float,float)\n" + " ofPolyline::arcNegative(float,float,float,float,float,float,int)\n" + " ofPolyline::arcNegative(float,float,float,float,float,float)\n" + " ofPolyline::arcNegative(float,float,float,float,float,float,float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->curveTo((ofPoint const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_curveTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); (arg1)->curveTo((ofPoint const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_curveTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_curveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_curveTo" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->curveTo(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_curveTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_curveTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->curveTo(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_curveTo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_curveTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_curveTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_curveTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->curveTo(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_curveTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_4(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_curveTo__SWIG_2(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_curveTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::curveTo(ofPoint const &,int)\n" + " ofPolyline::curveTo(ofPoint const &)\n" " ofPolyline::curveTo(float,float,float,int)\n" + " ofPolyline::curveTo(float,float,float)\n" " ofPolyline::curveTo(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->bezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; int arg11 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; int val11 ; int ecode11 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_bezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_bezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_int(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofPolyline_bezierTo" "', argument " "11"" of type '" "int""'"); } + arg11 = static_cast< int >(val11); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPolyline_bezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_bezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_bezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_bezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_bezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_bezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_bezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_bezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_bezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_bezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_bezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->bezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_bezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[12] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 11) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_0(self, args);} } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_3(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_2(self, args);} } } } } } } } } if (argc == 10) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_5(self, args);} } } } } } } } } } } if (argc == 11) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_bezierTo__SWIG_4(self, args);} } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_bezierTo'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &,int)\n" + " ofPolyline::bezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float,int)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float,float,float,float,int)\n" + " ofPolyline::bezierTo(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; int arg11 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; int val11 ; int ecode11 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_quadBezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_quadBezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_int(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofPolyline_quadBezierTo" "', argument " "11"" of type '" "int""'"); } + arg11 = static_cast< int >(val11); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; + int ecode10 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofPolyline_quadBezierTo" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofPolyline_quadBezierTo" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + int arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "int""'"); } + arg5 = static_cast< int >(val5); + (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); + (arg1)->quadBezierTo((ofPoint const &)*arg2,(ofPoint const &)*arg3,(ofPoint const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofPolyline_quadBezierTo" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofPolyline_quadBezierTo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_quadBezierTo" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_quadBezierTo" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_quadBezierTo" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofPolyline_quadBezierTo" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofPolyline_quadBezierTo" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofPolyline_quadBezierTo" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofPolyline_quadBezierTo" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); (arg1)->quadBezierTo(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_quadBezierTo(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[12] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 11) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_3(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_2(self, args);} } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_5(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_4(self, args);} } } } } } } } } if (argc == 10) { + int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_1(self, args);} } } } } } } } } } } + if (argc == 11) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); + _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_quadBezierTo__SWIG_0(self, args);} } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_quadBezierTo'.\n" + " Possible C/C++ prototypes are:\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float,float,float,float,int)\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float,float,float,float)\n" + " ofPolyline::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &,int)\n" + " ofPolyline::quadBezierTo(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float,int)\n" + " ofPolyline::quadBezierTo(float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofPolyline result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_getSmoothed",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getSmoothed" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getSmoothed" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_getSmoothed" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofPolyline const *)arg1)->getSmoothed(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getSmoothed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getSmoothed" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getSmoothed" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getSmoothed(arg2); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getSmoothed(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_getSmoothed__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_getSmoothed__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getSmoothed'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::getSmoothed(int,float) const\n" + " ofPolyline::getSmoothed(int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getResampledBySpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getResampledBySpacing",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getResampledBySpacing" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getResampledBySpacing" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getResampledBySpacing(arg2); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getResampledByCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPolyline result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getResampledByCount",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getResampledByCount" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getResampledByCount" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getResampledByCount(arg2); + resultobj = SWIG_NewPointerObj((new ofPolyline(static_cast< const ofPolyline& >(result))), SWIGTYPE_p_ofPolyline, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_simplify__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_simplify",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_simplify" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_simplify" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->simplify(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_simplify__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_simplify",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_simplify" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->simplify(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_simplify(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_simplify__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_simplify__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_simplify'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::simplify(float)\n" " ofPolyline::simplify()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_close" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_setClosed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_setClosed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setClosed" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_setClosed" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setClosed(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_isClosed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_isClosed",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_isClosed" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (bool)((ofPolyline const *)arg1)->isClosed(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_hasChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_hasChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_hasChanged" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (bool)(arg1)->hasChanged(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_flagHasChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_flagHasChanged",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_flagHasChanged" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->flagHasChanged(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; ofPolyline *arg3 = 0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_inside",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofPolyline, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "ofPolyline const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "ofPolyline const &""'"); } + arg3 = reinterpret_cast< ofPolyline * >(argp3); result = (bool)ofPolyline::inside(arg1,arg2,(ofPolyline const &)*arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_inside",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofPolyline_inside" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofPolyline const *)arg1)->inside(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPolyline *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_inside",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofPolyline, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPolyline const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPolyline const &""'"); } + arg2 = reinterpret_cast< ofPolyline * >(argp2); + result = (bool)ofPolyline::inside((ofVec3f const &)*arg1,(ofPolyline const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_inside",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_inside" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_inside" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = (bool)((ofPolyline const *)arg1)->inside((ofPoint const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_inside(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_inside__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_inside__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofPolyline_inside__SWIG_1(self, args);} } } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_inside__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_inside'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::inside(float,float,ofPolyline const &)\n" + " ofPolyline::inside(float,float) const\n" " ofPolyline::inside(ofPoint const &,ofPolyline const &)\n" + " ofPolyline::inside(ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getBoundingBox",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getBoundingBox" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getBoundingBox(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getPerimeter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getPerimeter",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPerimeter" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (float)((ofPolyline const *)arg1)->getPerimeter(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getArea",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getArea" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = (float)((ofPolyline const *)arg1)->getArea(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getCentroid2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getCentroid2D",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getCentroid2D" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getCentroid2D(); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; unsigned int *arg3 = (unsigned int *) 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofPolyline_getClosestPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getClosestPoint" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofPolyline_getClosestPoint" "', argument " "3"" of type '" "unsigned int *""'"); } + arg3 = reinterpret_cast< unsigned int * >(argp3); + result = ((ofPolyline const *)arg1)->getClosestPoint((ofPoint const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getClosestPoint",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getClosestPoint" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_getClosestPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); result = ((ofPolyline const *)arg1)->getClosestPoint((ofPoint const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getClosestPoint(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_getClosestPoint__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_getClosestPoint__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_getClosestPoint'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::getClosestPoint(ofPoint const &,unsigned int *) const\n" + " ofPolyline::getClosestPoint(ofPoint const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getIndexAtLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getIndexAtLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getIndexAtLength" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getIndexAtLength" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getIndexAtLength(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getIndexAtPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getIndexAtPercent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getIndexAtPercent" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getIndexAtPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getIndexAtPercent(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getLengthAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getLengthAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getLengthAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getLengthAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofPolyline const *)arg1)->getLengthAtIndex(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getLengthAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getLengthAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getLengthAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getLengthAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getLengthAtIndexInterpolated(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtLength",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtLength" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtLength" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtLength(arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtPercent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtPercent" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtPercent(arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getPointAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofPoint result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getPointAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getPointAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getPointAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getPointAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getAngleAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getAngleAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getAngleAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getAngleAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofPolyline const *)arg1)->getAngleAtIndex(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getAngleAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getAngleAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getAngleAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getAngleAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)((ofPolyline const *)arg1)->getAngleAtIndexInterpolated(arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getRotationAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getRotationAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRotationAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getRotationAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getRotationAtIndex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getRotationAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getRotationAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRotationAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getRotationAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getRotationAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getTangentAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getTangentAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getTangentAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getTangentAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getTangentAtIndex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getTangentAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getTangentAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getTangentAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getTangentAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getTangentAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getNormalAtIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getNormalAtIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getNormalAtIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getNormalAtIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofPolyline const *)arg1)->getNormalAtIndex(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getNormalAtIndexInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getNormalAtIndexInterpolated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getNormalAtIndexInterpolated" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getNormalAtIndexInterpolated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofPolyline const *)arg1)->getNormalAtIndexInterpolated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_getWrappedIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_getWrappedIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getWrappedIndex" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofPolyline_getWrappedIndex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (int)((ofPolyline const *)arg1)->getWrappedIndex(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; ofVec3f arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofPolyline_setRightVector",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setRightVector" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofPolyline_setRightVector" "', argument " "2"" of type '" "ofVec3f""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofPolyline_setRightVector" "', argument " "2"" of type '" "ofVec3f""'"); } + else { ofVec3f * temp = reinterpret_cast< ofVec3f * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } + (arg1)->setRightVector(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_setRightVector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_setRightVector" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); (arg1)->setRightVector(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_setRightVector(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_setRightVector__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofPolyline, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofPolyline_setRightVector__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofPolyline_setRightVector'.\n" + " Possible C/C++ prototypes are:\n" " ofPolyline::setRightVector(ofVec3f)\n" " ofPolyline::setRightVector()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofPolyline_getRightVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_getRightVector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_getRightVector" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); result = ((ofPolyline const *)arg1)->getRightVector(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPolyline_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofPolyline_draw",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofPolyline_draw" "', argument " "1"" of type '" "ofPolyline const *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); ((ofPolyline const *)arg1)->draw(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofPolyline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyline *arg1 = (ofPolyline *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofPolyline",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofPolyline, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofPolyline" "', argument " "1"" of type '" "ofPolyline *""'"); } + arg1 = reinterpret_cast< ofPolyline * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofPolyline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofPolyline, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *CIRC_RESOLUTION_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *module; + PyObject *d; + if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; + d = PyModule_GetDict(module); + if (!d) return NULL; + SWIG_Python_SetConstant(d, "CIRC_RESOLUTION",SWIG_From_int(static_cast< int >(22))); + return SWIG_Py_Void(); +} + + +SWIGINTERN PyObject *_wrap_ofSetColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetColor",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofSetColor(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int arg3 ; int arg4 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetColor" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ofSetColor(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetColor" "', argument " "1"" of type '" "ofColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetColor" "', argument " "1"" of type '" "ofColor const &""'"); } + arg1 = reinterpret_cast< ofColor * >(argp1); ofSetColor((ofColor_< unsigned char > const &)*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor *arg1 = 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetColor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetColor" "', argument " "1"" of type '" "ofColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetColor" "', argument " "1"" of type '" "ofColor const &""'"); } + arg1 = reinterpret_cast< ofColor * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetColor((ofColor_< unsigned char > const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetColor(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSetColor__SWIG_2(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetColor__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetColor__SWIG_3(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetColor__SWIG_0(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetColor__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetColor'.\n" + " Possible C/C++ prototypes are:\n" " ofSetColor(int,int,int)\n" " ofSetColor(int,int,int,int)\n" + " ofSetColor(ofColor const &)\n" " ofSetColor(ofColor const &,int)\n" " ofSetColor(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetHexColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; + int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetHexColor",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetHexColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetHexColor(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofNoFill")) SWIG_fail; ofNoFill(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofFill")) SWIG_fail; ofFill(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofGetFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofFillFlag result; if (!PyArg_ParseTuple(args,(char *)":ofGetFill")) SWIG_fail; result = (ofFillFlag)ofGetFill(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetBackgroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor result; if (!PyArg_ParseTuple(args,(char *)":ofGetBackgroundColor")) SWIG_fail; result = ofGetBackgroundColor(); + resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor result; if (!PyArg_ParseTuple(args,(char *)":ofGetBackground")) SWIG_fail; result = ofGetBackground(); + resultobj = SWIG_NewPointerObj((new ofColor(static_cast< const ofColor& >(result))), SWIGTYPE_p_ofColor_T_unsigned_char_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackground__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int arg3 ; int arg4 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBackground",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBackground" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBackground" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBackground" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBackground" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ofBackground(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBackground__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBackground",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBackground" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBackground" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBackground" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofBackground(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBackground__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBackground",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBackground" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBackground" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofBackground(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackground__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBackground",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBackground" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofBackground(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackground__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBackground",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBackground" "', argument " "1"" of type '" "ofColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBackground" "', argument " "1"" of type '" "ofColor const &""'"); } + arg1 = reinterpret_cast< ofColor * >(argp1); ofBackground((ofColor_< unsigned char > const &)*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackground(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBackground__SWIG_4(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofBackground__SWIG_3(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBackground__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBackground__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBackground__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBackground'.\n" + " Possible C/C++ prototypes are:\n" " ofBackground(int,int,int,int)\n" " ofBackground(int,int,int)\n" + " ofBackground(int,int)\n" " ofBackground(int)\n" " ofBackground(ofColor const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBackgroundHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBackgroundHex",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBackgroundHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBackgroundHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofBackgroundHex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackgroundHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBackgroundHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBackgroundHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofBackgroundHex(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackgroundHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBackgroundHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBackgroundHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBackgroundHex'.\n" + " Possible C/C++ prototypes are:\n" " ofBackgroundHex(int,int)\n" " ofBackgroundHex(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBackgroundGradient__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor *arg1 = 0 ; ofColor *arg2 = 0 ; ofGradientMode arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBackgroundGradient",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBackgroundGradient" "', argument " "1"" of type '" "ofColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBackgroundGradient" "', argument " "1"" of type '" "ofColor const &""'"); } + arg1 = reinterpret_cast< ofColor * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBackgroundGradient" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBackgroundGradient" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBackgroundGradient" "', argument " "3"" of type '" "ofGradientMode""'"); } + arg3 = static_cast< ofGradientMode >(val3); + ofBackgroundGradient((ofColor_< unsigned char > const &)*arg1,(ofColor_< unsigned char > const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackgroundGradient__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor *arg1 = 0 ; ofColor *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofBackgroundGradient",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBackgroundGradient" "', argument " "1"" of type '" "ofColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBackgroundGradient" "', argument " "1"" of type '" "ofColor const &""'"); } + arg1 = reinterpret_cast< ofColor * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBackgroundGradient" "', argument " "2"" of type '" "ofColor const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBackgroundGradient" "', argument " "2"" of type '" "ofColor const &""'"); } + arg2 = reinterpret_cast< ofColor * >(argp2); + ofBackgroundGradient((ofColor_< unsigned char > const &)*arg1,(ofColor_< unsigned char > const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBackgroundGradient(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBackgroundGradient__SWIG_1(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBackgroundGradient__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBackgroundGradient'.\n" + " Possible C/C++ prototypes are:\n" " ofBackgroundGradient(ofColor const &,ofColor const &,ofGradientMode)\n" + " ofBackgroundGradient(ofColor const &,ofColor const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int arg3 ; int arg4 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; + int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetBackgroundColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetBackgroundColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetBackgroundColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetBackgroundColor" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ofSetBackgroundColor(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetBackgroundColor",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetBackgroundColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetBackgroundColor" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofSetBackgroundColor(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetBackgroundColor",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetBackgroundColor" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetBackgroundColor(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetBackgroundColor",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundColor" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetBackgroundColor(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofColor *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetBackgroundColor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetBackgroundColor" "', argument " "1"" of type '" "ofColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetBackgroundColor" "', argument " "1"" of type '" "ofColor const &""'"); } + arg1 = reinterpret_cast< ofColor * >(argp1); ofSetBackgroundColor((ofColor_< unsigned char > const &)*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColor(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSetBackgroundColor__SWIG_4(self, args);} } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBackgroundColor__SWIG_3(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBackgroundColor__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBackgroundColor__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBackgroundColor__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetBackgroundColor'.\n" + " Possible C/C++ prototypes are:\n" " ofSetBackgroundColor(int,int,int,int)\n" " ofSetBackgroundColor(int,int,int)\n" + " ofSetBackgroundColor(int,int)\n" " ofSetBackgroundColor(int)\n" " ofSetBackgroundColor(ofColor const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColorHex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetBackgroundColorHex",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundColorHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetBackgroundColorHex" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetBackgroundColorHex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColorHex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetBackgroundColorHex",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundColorHex" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetBackgroundColorHex(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundColorHex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBackgroundColorHex__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBackgroundColorHex__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetBackgroundColorHex'.\n" + " Possible C/C++ prototypes are:\n" " ofSetBackgroundColorHex(int,int)\n" " ofSetBackgroundColorHex(int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetBackgroundAuto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetBackgroundAuto",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBackgroundAuto" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetBackgroundAuto(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofGetBackgroundAuto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetBackgroundAuto")) SWIG_fail; result = (bool)ofGetBackgroundAuto(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofClear__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofClear",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofClear" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofClear" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofClear" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofClear" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofClear(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofClear__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofClear",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofClear" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofClear" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofClear" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofClear(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofClear__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofClear",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofClear" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofClear" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofClear(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofClear__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofClear",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofClear" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofClear(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofClear__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofColor *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofClear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofClear" "', argument " "1"" of type '" "ofColor const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofClear" "', argument " "1"" of type '" "ofColor const &""'"); } + arg1 = reinterpret_cast< ofColor * >(argp1); ofClear((ofColor_< unsigned char > const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofClear(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofClear__SWIG_4(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofClear__SWIG_3(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofClear__SWIG_2(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofClear__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofClear__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofClear'.\n" + " Possible C/C++ prototypes are:\n" " ofClear(float,float,float,float)\n" " ofClear(float,float,float)\n" + " ofClear(float,float)\n" " ofClear(float)\n" " ofClear(ofColor const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofClearAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofClearAlpha")) SWIG_fail; ofClearAlpha(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawTriangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawTriangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawTriangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawTriangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofDrawTriangle(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofDrawTriangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawTriangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawTriangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawTriangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawTriangle" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawTriangle" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawTriangle" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofDrawTriangle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawTriangle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawTriangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawTriangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawTriangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); + ofDrawTriangle((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawTriangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawTriangle__SWIG_2(self, args);} } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawTriangle__SWIG_0(self, args);} } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawTriangle__SWIG_1(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawTriangle'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawTriangle(float,float,float,float,float,float)\n" + " ofDrawTriangle(float,float,float,float,float,float,float,float,float)\n" + " ofDrawTriangle(ofPoint const &,ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawCircle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawCircle",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCircle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCircle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawCircle(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCircle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawCircle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCircle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCircle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCircle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawCircle(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCircle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawCircle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawCircle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawCircle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawCircle((ofVec3f const &)*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCircle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCircle__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCircle__SWIG_0(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCircle__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawCircle'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawCircle(float,float,float)\n" " ofDrawCircle(float,float,float,float)\n" + " ofDrawCircle(ofPoint const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawEllipse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawEllipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawEllipse(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawEllipse",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawEllipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawEllipse" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawEllipse(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawEllipse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawEllipse" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawEllipse((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawEllipse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawEllipse__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawEllipse__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawEllipse__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawEllipse'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawEllipse(float,float,float,float)\n" + " ofDrawEllipse(float,float,float,float,float)\n" " ofDrawEllipse(ofPoint const &,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawLine" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawLine" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawLine" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawLine" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawLine(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawLine" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawLine" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawLine" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawLine" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawLine" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawLine" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofDrawLine(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawLine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawLine" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawLine" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawLine" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawLine" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ofDrawLine((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawLine(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawLine__SWIG_2(self, args);} } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawLine__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawLine__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawLine'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawLine(float,float,float,float)\n" + " ofDrawLine(float,float,float,float,float,float)\n" " ofDrawLine(ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawRectangle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawRectangle(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawRectangle",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ofDrawRectangle((ofRectangle const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawRectangle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawRectangle((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawRectangle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawRectangle(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawRectangle__SWIG_1(self, args);} } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectangle__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectangle__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectangle__SWIG_3(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawRectangle'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawRectangle(float,float,float,float)\n" + " ofDrawRectangle(ofRectangle const &)\n" " ofDrawRectangle(ofPoint const &,float,float)\n" + " ofDrawRectangle(float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawRectRounded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawRectRounded((ofRectangle const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawRectRounded(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofDrawRectRounded(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ofDrawRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawRectRounded((ofRectangle const &)*arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofDrawRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawRectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawRectRounded" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofDrawRectRounded(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawRectRounded(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_0(self, args);} } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_5(self, args);} } } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_2(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_4(self, args);} } } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawRectRounded__SWIG_6(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawRectRounded'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawRectRounded(ofRectangle const &,float)\n" + " ofDrawRectRounded(ofPoint const &,float,float,float)\n" " ofDrawRectRounded(float,float,float,float,float)\n" + " ofDrawRectRounded(float,float,float,float,float,float)\n" + " ofDrawRectRounded(ofPoint const &,float,float,float,float,float,float)\n" + " ofDrawRectRounded(ofRectangle const &,float,float,float,float)\n" + " ofDrawRectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofDrawCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofDrawCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofDrawCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawCurve" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofDrawCurve" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofDrawCurve" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofDrawCurve" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofDrawCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCurve(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCurve__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCurve__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawCurve'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawCurve(float,float,float,float,float,float,float,float)\n" + " ofDrawCurve(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDrawBezier__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofDrawBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofDrawBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBezier__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofDrawBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofDrawBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofDrawBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofDrawBezier" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofDrawBezier" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofDrawBezier" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofDrawBezier" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofDrawBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBezier(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBezier__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBezier__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawBezier'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawBezier(float,float,float,float,float,float,float,float)\n" + " ofDrawBezier(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTriangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTriangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTriangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTriangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTriangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTriangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTriangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTriangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofTriangle(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTriangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofTriangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTriangle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTriangle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTriangle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTriangle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTriangle" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTriangle" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTriangle" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTriangle" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofTriangle" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofTriangle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTriangle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTriangle",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTriangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTriangle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTriangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTriangle" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofTriangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTriangle" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); + ofTriangle((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTriangle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTriangle__SWIG_2(self, args);} } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTriangle__SWIG_0(self, args);} } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTriangle__SWIG_1(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTriangle'.\n" + " Possible C/C++ prototypes are:\n" " ofTriangle(float,float,float,float,float,float)\n" + " ofTriangle(float,float,float,float,float,float,float,float,float)\n" + " ofTriangle(ofPoint const &,ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCircle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofCircle",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCircle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCircle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofCircle(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCircle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofCircle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCircle" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCircle" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCircle" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofCircle(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCircle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofCircle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCircle" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCircle" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCircle" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofCircle((ofVec3f const &)*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCircle(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCircle__SWIG_2(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCircle__SWIG_0(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCircle__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCircle'.\n" + " Possible C/C++ prototypes are:\n" " ofCircle(float,float,float)\n" " ofCircle(float,float,float,float)\n" + " ofCircle(ofPoint const &,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEllipse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofEllipse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEllipse" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofEllipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofEllipse(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEllipse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofEllipse",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEllipse" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofEllipse" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofEllipse" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofEllipse(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofEllipse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofEllipse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofEllipse" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofEllipse" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofEllipse" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofEllipse" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofEllipse((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEllipse(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofEllipse__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofEllipse__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofEllipse__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofEllipse'.\n" + " Possible C/C++ prototypes are:\n" " ofEllipse(float,float,float,float)\n" + " ofEllipse(float,float,float,float,float)\n" " ofEllipse(ofPoint const &,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofLine" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLine" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLine" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofLine" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofLine(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofLine" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLine" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLine" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofLine" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofLine" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofLine" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofLine(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofLine",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLine" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLine" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLine" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLine" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ofLine((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLine(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLine__SWIG_2(self, args);} } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLine__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofLine__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLine'.\n" + " Possible C/C++ prototypes are:\n" " ofLine(float,float,float,float)\n" + " ofLine(float,float,float,float,float,float)\n" " ofLine(ofPoint const &,ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRect" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRect" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofRect(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRect",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRect" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRect" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ofRect((ofRectangle const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofRect",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRect" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRect" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofRect((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRect__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRect",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRect" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRect" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRect" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRect" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRect" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofRect(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRect(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofRect__SWIG_1(self, args);} } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRect__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRect__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRect__SWIG_3(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRect'.\n" + " Possible C/C++ prototypes are:\n" " ofRect(float,float,float,float)\n" " ofRect(ofRectangle const &)\n" + " ofRect(ofPoint const &,float,float)\n" " ofRect(float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofRectRounded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofRectRounded((ofRectangle const &)*arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofRectRounded(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ofRectRounded((ofVec3f const &)*arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofRectRounded" "', argument " "1"" of type '" "ofRectangle const &""'"); } + arg1 = reinterpret_cast< ofRectangle * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofRectRounded((ofRectangle const &)*arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofRectRounded",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRectRounded" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRectRounded" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRectRounded" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRectRounded" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofRectRounded" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofRectRounded" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofRectRounded" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofRectRounded" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofRectRounded" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofRectRounded(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRectRounded(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_0(self, args);} } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_4(self, args);} } } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_2(self, args);} } } } } } if (argc == 7) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_3(self, args);} } } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRectRounded__SWIG_5(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRectRounded'.\n" + " Possible C/C++ prototypes are:\n" " ofRectRounded(ofRectangle const &,float)\n" + " ofRectRounded(ofPoint const &,float,float,float)\n" " ofRectRounded(float,float,float,float,float)\n" + " ofRectRounded(ofPoint const &,float,float,float,float,float,float)\n" + " ofRectRounded(ofRectangle const &,float,float,float,float)\n" + " ofRectRounded(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofCurve",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurve" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurve" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurve" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofCurve" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurve" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofCurve" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofCurve" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofCurve" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofCurve" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofCurve" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofCurve" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofCurve" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofCurve(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurve(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 12) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCurve__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCurve__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCurve'.\n" + " Possible C/C++ prototypes are:\n" " ofCurve(float,float,float,float,float,float,float,float)\n" + " ofCurve(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBezier__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ofBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezier__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; + int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:ofBezier",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezier" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezier" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezier" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezier" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezier" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezier" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezier" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezier" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofBezier" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofBezier" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofBezier" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofBezier" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ofBezier(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezier(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[13] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 12) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 8) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezier__SWIG_0(self, args);} } } } } } } } } if (argc == 12) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezier__SWIG_1(self, args);} } } } } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBezier'.\n" + " Possible C/C++ prototypes are:\n" " ofBezier(float,float,float,float,float,float,float,float)\n" + " ofBezier(float,float,float,float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofBeginShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofBeginShape")) SWIG_fail; ofBeginShape(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVertex",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofVertex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVertex",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofVertex(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVertex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofVertex(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVertex__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVertex__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofVertex(float,float)\n" " ofVertex(float,float,float)\n" + " ofVertex(ofPoint &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< ofPoint,std::allocator< ofPoint > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + arg1 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp1); + ofVertices((std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofCurveVertex",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurveVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofCurveVertex(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofCurveVertex",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofCurveVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofCurveVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofCurveVertex(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCurveVertex",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveVertex" "', argument " "1"" of type '" "ofPoint &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofCurveVertex(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofCurveVertex__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofCurveVertex__SWIG_0(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofCurveVertex__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofCurveVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofCurveVertex(float,float)\n" " ofCurveVertex(float,float,float)\n" + " ofCurveVertex(ofPoint &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofCurveVertices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::vector< ofPoint,std::allocator< ofPoint > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofCurveVertices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveVertices" "', argument " "1"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + arg1 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp1); + ofCurveVertices((std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofBezierVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezierVertex" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierVertex" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezierVertex" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofBezierVertex(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBezierVertex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierVertex" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); + ofBezierVertex((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierVertex__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:ofBezierVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofBezierVertex" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBezierVertex" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBezierVertex" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofBezierVertex" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierVertex" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofBezierVertex" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofBezierVertex" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofBezierVertex" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofBezierVertex" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ofBezierVertex(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierVertex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBezierVertex__SWIG_1(self, args);} } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezierVertex__SWIG_0(self, args);} } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBezierVertex__SWIG_2(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBezierVertex'.\n" + " Possible C/C++ prototypes are:\n" " ofBezierVertex(float,float,float,float,float,float)\n" + " ofBezierVertex(ofPoint const &,ofPoint const &,ofPoint const &)\n" + " ofBezierVertex(float,float,float,float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEndShape__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEndShape",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEndShape" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofEndShape(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEndShape__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEndShape")) SWIG_fail; ofEndShape(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEndShape(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofEndShape__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofEndShape__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofEndShape'.\n" + " Possible C/C++ prototypes are:\n" " ofEndShape(bool)\n" " ofEndShape()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNextContour__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofNextContour",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNextContour" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofNextContour(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNextContour__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofNextContour")) SWIG_fail; ofNextContour(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNextContour(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofNextContour__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofNextContour__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNextContour'.\n" + " Possible C/C++ prototypes are:\n" " ofNextContour(bool)\n" " ofNextContour()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetDrawBitmapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDrawBitmapMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetDrawBitmapMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetDrawBitmapMode" "', argument " "1"" of type '" "ofDrawBitmapMode""'"); } + arg1 = static_cast< ofDrawBitmapMode >(val1); ofSetDrawBitmapMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; ofColor *arg3 = 0 ; ofColor *arg4 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + arg3 = reinterpret_cast< ofColor * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + arg4 = reinterpret_cast< ofColor * >(argp4); + ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2,(ofColor_< unsigned char > const &)*arg3,(ofColor_< unsigned char > const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; ofColor *arg3 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "ofColor const &""'"); } + arg3 = reinterpret_cast< ofColor * >(argp3); + ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2,(ofColor_< unsigned char > const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; ofPoint *arg2 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawBitmapStringHighlight",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ofDrawBitmapStringHighlight(arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; ofColor *arg4 = 0 ; ofColor *arg5 = 0 ; int val2 ; + int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + arg4 = reinterpret_cast< ofColor * >(argp4); + res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofDrawBitmapStringHighlight" "', argument " "5"" of type '" "ofColor const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "5"" of type '" "ofColor const &""'"); } + arg5 = reinterpret_cast< ofColor * >(argp5); + ofDrawBitmapStringHighlight(arg1,arg2,arg3,(ofColor_< unsigned char > const &)*arg4,(ofColor_< unsigned char > const &)*arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; ofColor *arg4 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBitmapStringHighlight" "', argument " "4"" of type '" "ofColor const &""'"); } + arg4 = reinterpret_cast< ofColor * >(argp4); + ofDrawBitmapStringHighlight(arg1,arg2,arg3,(ofColor_< unsigned char > const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; int arg2 ; int arg3 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBitmapStringHighlight",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofDrawBitmapStringHighlight" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBitmapStringHighlight" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBitmapStringHighlight" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofDrawBitmapStringHighlight(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBitmapStringHighlight(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_2(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_1(self, args);} } } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_5(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_0(self, args);} } } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofColor_T_unsigned_char_t, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofDrawBitmapStringHighlight__SWIG_3(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawBitmapStringHighlight'.\n" + " Possible C/C++ prototypes are:\n" + " ofDrawBitmapStringHighlight(std::string,ofPoint const &,ofColor const &,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,ofPoint const &,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,ofPoint const &)\n" + " ofDrawBitmapStringHighlight(std::string,int,int,ofColor const &,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,int,int,ofColor const &)\n" + " ofDrawBitmapStringHighlight(std::string,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetupGraphicDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSetupGraphicDefaults")) SWIG_fail; ofSetupGraphicDefaults(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSetupScreen")) SWIG_fail; ofSetupScreen(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetRectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectMode result; if (!PyArg_ParseTuple(args,(char *)":ofGetRectMode")) SWIG_fail; result = (ofRectMode)ofGetRectMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCircleResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetCircleResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCircleResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetCircleResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCurveResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetCurveResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCurveResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetCurveResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetLineWidth",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetLineWidth" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofSetLineWidth(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; + bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetDepthTest",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetDepthTest" "', argument " "1"" of type '" "bool""'"); } + arg1 = static_cast< bool >(val1); ofSetDepthTest(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableDepthTest")) SWIG_fail; ofEnableDepthTest(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableDepthTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableDepthTest")) SWIG_fail; ofDisableDepthTest(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableBlendMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBlendMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofEnableBlendMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofEnableBlendMode" "', argument " "1"" of type '" "ofBlendMode""'"); } + arg1 = static_cast< ofBlendMode >(val1); ofEnableBlendMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableBlendMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableBlendMode")) SWIG_fail; ofDisableBlendMode(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnablePointSprites(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnablePointSprites")) SWIG_fail; ofEnablePointSprites(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisablePointSprites(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisablePointSprites")) SWIG_fail; ofDisablePointSprites(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableAlphaBlending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableAlphaBlending")) SWIG_fail; ofEnableAlphaBlending(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableAlphaBlending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableAlphaBlending")) SWIG_fail; ofDisableAlphaBlending(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableSmoothing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableSmoothing")) SWIG_fail; ofEnableSmoothing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableSmoothing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableSmoothing")) SWIG_fail; ofDisableSmoothing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofEnableAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEnableAntiAliasing")) SWIG_fail; ofEnableAntiAliasing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDisableAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofDisableAntiAliasing")) SWIG_fail; ofDisableAntiAliasing(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofStyle result; + if (!PyArg_ParseTuple(args,(char *)":ofGetStyle")) SWIG_fail; result = ofGetStyle(); + resultobj = SWIG_NewPointerObj((new ofStyle(static_cast< const ofStyle& >(result))), SWIGTYPE_p_ofStyle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ofStyle arg1 ; + void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSetStyle",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofStyle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSetStyle" "', argument " "1"" of type '" "ofStyle""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSetStyle" "', argument " "1"" of type '" "ofStyle""'"); } + else { ofStyle * temp = reinterpret_cast< ofStyle * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } + ofSetStyle(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPushStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPushStyle")) SWIG_fail; ofPushStyle(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPopStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPopStyle")) SWIG_fail; ofPopStyle(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetPolyMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPolyWindingMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetPolyMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetPolyMode" "', argument " "1"" of type '" "ofPolyWindingMode""'"); } + arg1 = static_cast< ofPolyWindingMode >(val1); ofSetPolyMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetRectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetRectMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetRectMode" "', argument " "1"" of type '" "ofRectMode""'"); } + arg1 = static_cast< ofRectMode >(val1); ofSetRectMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofPushMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPushMatrix")) SWIG_fail; ofPushMatrix(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPopMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPopMatrix")) SWIG_fail; ofPopMatrix(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCurrentMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetCurrentMatrix",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetCurrentMatrix" "', argument " "1"" of type '" "ofMatrixMode""'"); } + arg1 = static_cast< ofMatrixMode >(val1); result = ofGetCurrentMatrix(arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCurrentOrientationMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentOrientationMatrix")) SWIG_fail; + result = ofGetCurrentOrientationMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCurrentNormalMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentNormalMatrix")) SWIG_fail; + result = ofGetCurrentNormalMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTranslate",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTranslate" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTranslate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTranslate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofTranslate(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofTranslate",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTranslate" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTranslate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofTranslate(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTranslate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTranslate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTranslate" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTranslate" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofTranslate((ofVec3f const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTranslate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTranslate__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofTranslate__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTranslate__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTranslate'.\n" + " Possible C/C++ prototypes are:\n" " ofTranslate(float,float,float)\n" " ofTranslate(float,float)\n" + " ofTranslate(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofScale",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofScale" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofScale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofScale(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofScale",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofScale" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofScale(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofScale__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofScale",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofScale" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofScale" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ofScale((ofVec3f const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofScale__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofScale__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofScale__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofScale'.\n" + " Possible C/C++ prototypes are:\n" " ofScale(float,float,float)\n" " ofScale(float,float)\n" + " ofScale(ofPoint const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofRotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotate" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofRotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofRotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofRotate(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofRotate",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotate" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotate(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofRotate__SWIG_1(self, args);} } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRotate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRotate'.\n" + " Possible C/C++ prototypes are:\n" " ofRotate(float,float,float,float)\n" " ofRotate(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRotateX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateX",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateX" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotateX(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRotateY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateY",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateY" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotateY(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRotateZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofRotateZ",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRotateZ" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofRotateZ(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofLoadIdentityMatrix")) SWIG_fail; ofLoadIdentityMatrix(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofLoadMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float *arg1 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadMatrix" "', argument " "1"" of type '" "float const *""'"); } + arg1 = reinterpret_cast< float * >(argp1); ofLoadMatrix((float const *)arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLoadMatrix__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofLoadMatrix__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofLoadMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofLoadMatrix(ofMatrix4x4 const &)\n" " ofLoadMatrix(float const *)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMultMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMultMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMultMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofMultMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMultMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float *arg1 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMultMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultMatrix" "', argument " "1"" of type '" "float const *""'"); } + arg1 = reinterpret_cast< float * >(argp1); ofMultMatrix((float const *)arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMultMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMultMatrix__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMultMatrix__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMultMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMultMatrix(ofMatrix4x4 const &)\n" " ofMultMatrix(float const *)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetMatrixMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixMode arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetMatrixMode",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetMatrixMode" "', argument " "1"" of type '" "ofMatrixMode""'"); } + arg1 = static_cast< ofMatrixMode >(val1); ofSetMatrixMode(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofLoadViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofLoadViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLoadViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLoadViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofLoadViewMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMultViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMultViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMultViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMultViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ofMultViewMatrix((ofMatrix4x4 const &)*arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCurrentViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentViewMatrix")) SWIG_fail; + result = ofGetCurrentViewMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPushView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPushView")) SWIG_fail; ofPushView(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofPopView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofPopView")) SWIG_fail; ofPopView(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofViewport",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofRectangle, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofViewport" "', argument " "1"" of type '" "ofRectangle""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofViewport" "', argument " "1"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } + } ofViewport(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; bool arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofViewport",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofViewport" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofViewport" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ofViewport(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofViewport",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofViewport" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofViewport(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofViewport",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofViewport" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofViewport(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofViewport",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofViewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofViewport(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofViewport",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofViewport" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofViewport(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofViewport")) SWIG_fail; ofViewport(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofViewport(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofViewport__SWIG_6(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofViewport__SWIG_0(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofViewport__SWIG_5(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofViewport__SWIG_4(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofViewport__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofViewport__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofViewport__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofViewport'.\n" + " Possible C/C++ prototypes are:\n" " ofViewport(ofRectangle)\n" " ofViewport(float,float,float,float,bool)\n" + " ofViewport(float,float,float,float)\n" " ofViewport(float,float,float)\n" " ofViewport(float,float)\n" + " ofViewport(float)\n" " ofViewport()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetCurrentViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)":ofGetCurrentViewport")) SWIG_fail; result = ofGetCurrentViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetNativeViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)":ofGetNativeViewport")) SWIG_fail; result = ofGetNativeViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetViewportWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetViewportWidth")) SWIG_fail; result = (int)ofGetViewportWidth(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetViewportHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetViewportHeight")) SWIG_fail; result = (int)ofGetViewportHeight(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenPerspective" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofSetupScreenPerspective" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofSetupScreenPerspective(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenPerspective" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofSetupScreenPerspective(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupScreenPerspective",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenPerspective" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofSetupScreenPerspective(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetupScreenPerspective",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenPerspective" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofSetupScreenPerspective(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetupScreenPerspective",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenPerspective" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofSetupScreenPerspective(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ofSetupScreenPerspective")) SWIG_fail; + ofSetupScreenPerspective(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenPerspective(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSetupScreenPerspective__SWIG_5(self, args);} if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_4(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenPerspective__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupScreenPerspective'.\n" + " Possible C/C++ prototypes are:\n" " ofSetupScreenPerspective(float,float,float,float,float)\n" + " ofSetupScreenPerspective(float,float,float,float)\n" " ofSetupScreenPerspective(float,float,float)\n" + " ofSetupScreenPerspective(float,float)\n" " ofSetupScreenPerspective(float)\n" " ofSetupScreenPerspective()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSetupScreenOrtho",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenOrtho" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSetupScreenOrtho" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofSetupScreenOrtho(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetupScreenOrtho",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetupScreenOrtho" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofSetupScreenOrtho(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetupScreenOrtho",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetupScreenOrtho" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofSetupScreenOrtho(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetupScreenOrtho",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetupScreenOrtho" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofSetupScreenOrtho(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSetupScreenOrtho")) SWIG_fail; ofSetupScreenOrtho(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetupScreenOrtho(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSetupScreenOrtho__SWIG_4(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSetupScreenOrtho__SWIG_3(self, args);} } if (argc == 2) { int _v; + { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenOrtho__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenOrtho__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetupScreenOrtho__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetupScreenOrtho'.\n" + " Possible C/C++ prototypes are:\n" " ofSetupScreenOrtho(float,float,float,float)\n" + " ofSetupScreenOrtho(float,float,float)\n" " ofSetupScreenOrtho(float,float)\n" " ofSetupScreenOrtho(float)\n" + " ofSetupScreenOrtho()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofOrientationToDegrees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofOrientation arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofOrientationToDegrees",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofOrientationToDegrees" "', argument " "1"" of type '" "ofOrientation""'"); } + arg1 = static_cast< ofOrientation >(val1); result = (int)ofOrientationToDegrees(arg1); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCoordHandedness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHandednessType arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetCoordHandedness",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCoordHandedness" "', argument " "1"" of type '" "ofHandednessType""'"); } + arg1 = static_cast< ofHandednessType >(val1); ofSetCoordHandedness(arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetCoordHandedness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofHandednessType result; if (!PyArg_ParseTuple(args,(char *)":ofGetCoordHandedness")) SWIG_fail; + result = (ofHandednessType)ofGetCoordHandedness(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; ofRectangle arg4 ; bool val2 ; int ecode2 = 0 ; + bool val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBeginSaveScreenAsPDF",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "4"" of type '" "ofRectangle""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBeginSaveScreenAsPDF" "', argument " "4"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } + } ofBeginSaveScreenAsPDF(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBeginSaveScreenAsPDF",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ofBeginSaveScreenAsPDF(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBeginSaveScreenAsPDF",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofBeginSaveScreenAsPDF(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBeginSaveScreenAsPDF",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsPDF" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofBeginSaveScreenAsPDF(arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsPDF(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_3(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_2(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBeginSaveScreenAsPDF__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBeginSaveScreenAsPDF'.\n" + " Possible C/C++ prototypes are:\n" " ofBeginSaveScreenAsPDF(std::string,bool,bool,ofRectangle)\n" + " ofBeginSaveScreenAsPDF(std::string,bool,bool)\n" " ofBeginSaveScreenAsPDF(std::string,bool)\n" + " ofBeginSaveScreenAsPDF(std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEndSaveScreenAsPDF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEndSaveScreenAsPDF")) SWIG_fail; ofEndSaveScreenAsPDF(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; ofRectangle arg4 ; bool val2 ; int ecode2 = 0 ; + bool val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofBeginSaveScreenAsSVG",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "4"" of type '" "ofRectangle""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBeginSaveScreenAsSVG" "', argument " "4"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } + } ofBeginSaveScreenAsSVG(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofBeginSaveScreenAsSVG",&obj0,&obj1,&obj2)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ofBeginSaveScreenAsSVG(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofBeginSaveScreenAsSVG",&obj0,&obj1)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); ofBeginSaveScreenAsSVG(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofBeginSaveScreenAsSVG",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofBeginSaveScreenAsSVG" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofBeginSaveScreenAsSVG(arg1); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBeginSaveScreenAsSVG(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBeginSaveScreenAsSVG__SWIG_3(self, args);} } if (argc == 2) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsSVG__SWIG_2(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofBeginSaveScreenAsSVG__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofBeginSaveScreenAsSVG__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofBeginSaveScreenAsSVG'.\n" + " Possible C/C++ prototypes are:\n" " ofBeginSaveScreenAsSVG(std::string,bool,bool,ofRectangle)\n" + " ofBeginSaveScreenAsSVG(std::string,bool,bool)\n" " ofBeginSaveScreenAsSVG(std::string,bool)\n" + " ofBeginSaveScreenAsSVG(std::string)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofEndSaveScreenAsSVG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofEndSaveScreenAsSVG")) SWIG_fail; ofEndSaveScreenAsSVG(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetPlaneResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofSetPlaneResolution",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetPlaneResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetPlaneResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetPlaneResolution(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofGetPlaneResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f result; if (!PyArg_ParseTuple(args,(char *)":ofGetPlaneResolution")) SWIG_fail; result = ofGetPlaneResolution(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawPlane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawPlane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawPlane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawPlane(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawPlane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawPlane",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawPlane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawPlane" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawPlane(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawPlane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawPlane",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawPlane" "', argument " "1"" of type '" "ofPoint &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawPlane" "', argument " "1"" of type '" "ofPoint &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawPlane(*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawPlane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawPlane",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawPlane" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawPlane(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawPlane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawPlane__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawPlane__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawPlane__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawPlane__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawPlane'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawPlane(float,float,float,float)\n" + " ofDrawPlane(float,float,float,float,float)\n" " ofDrawPlane(ofPoint &,float,float)\n" + " ofDrawPlane(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetSphereResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetSphereResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetSphereResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofGetSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetSphereResolution")) SWIG_fail; result = (int)ofGetSphereResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawSphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawSphere",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawSphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawSphere(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawSphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawSphere",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawSphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawSphere(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawSphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawSphere",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawSphere" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawSphere" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawSphere((ofVec3f const &)*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawSphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawSphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofDrawSphere(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawSphere__SWIG_3(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawSphere__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawSphere__SWIG_0(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawSphere__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawSphere'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawSphere(float,float,float)\n" " ofDrawSphere(float,float,float,float)\n" + " ofDrawSphere(ofPoint const &,float)\n" " ofDrawSphere(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetIcoSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetIcoSphereResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetIcoSphereResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetIcoSphereResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofGetIcoSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetIcoSphereResolution")) SWIG_fail; + result = (int)ofGetIcoSphereResolution(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawIcoSphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawIcoSphere",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawIcoSphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawIcoSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawIcoSphere(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawIcoSphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawIcoSphere",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawIcoSphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawIcoSphere(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawIcoSphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawIcoSphere",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawIcoSphere" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawIcoSphere" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawIcoSphere((ofVec3f const &)*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawIcoSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawIcoSphere",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawIcoSphere" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofDrawIcoSphere(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawIcoSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawIcoSphere__SWIG_3(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawIcoSphere__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawIcoSphere__SWIG_1(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawIcoSphere__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawIcoSphere'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawIcoSphere(float,float,float,float)\n" + " ofDrawIcoSphere(float,float,float)\n" " ofDrawIcoSphere(ofPoint const &,float)\n" " ofDrawIcoSphere(float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetCylinderResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetCylinderResolution",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCylinderResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetCylinderResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetCylinderResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofSetCylinderResolution(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCylinderResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetCylinderResolution",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetCylinderResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetCylinderResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetCylinderResolution(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetCylinderResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetCylinderResolution__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetCylinderResolution__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetCylinderResolution'.\n" + " Possible C/C++ prototypes are:\n" " ofSetCylinderResolution(int,int,int)\n" " ofSetCylinderResolution(int,int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofGetCylinderResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)":ofGetCylinderResolution")) SWIG_fail; result = ofGetCylinderResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCylinder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawCylinder",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawCylinder(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCylinder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawCylinder",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawCylinder" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawCylinder(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCylinder__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawCylinder",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawCylinder" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawCylinder" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawCylinder((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCylinder__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawCylinder",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCylinder" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawCylinder(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCylinder(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCylinder__SWIG_3(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCylinder__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCylinder__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCylinder__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawCylinder'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawCylinder(float,float,float,float)\n" + " ofDrawCylinder(float,float,float,float,float)\n" " ofDrawCylinder(ofPoint const &,float,float)\n" + " ofDrawCylinder(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSetConeResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetConeResolution",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetConeResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetConeResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetConeResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofSetConeResolution(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetConeResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int arg2 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofSetConeResolution",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetConeResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetConeResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ofSetConeResolution(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetConeResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetConeResolution__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetConeResolution__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetConeResolution'.\n" + " Possible C/C++ prototypes are:\n" " ofSetConeResolution(int,int,int)\n" " ofSetConeResolution(int,int)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofGetConeResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)":ofGetConeResolution")) SWIG_fail; result = ofGetConeResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofDrawCone",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawCone" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ofDrawCone(arg1,arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawCone",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawCone(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCone__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawCone",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawCone" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawCone" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawCone((ofVec3f const &)*arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCone__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawCone",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawCone" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawCone(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawCone(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCone__SWIG_3(self, args);} } } if (argc == 3) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCone__SWIG_2(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCone__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawCone__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawCone'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawCone(float,float,float,float,float)\n" + " ofDrawCone(float,float,float,float)\n" " ofDrawCone(ofPoint const &,float,float)\n" " ofDrawCone(float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofSetBoxResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSetBoxResolution",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBoxResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSetBoxResolution(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBoxResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int arg2 ; int arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSetBoxResolution",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSetBoxResolution" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSetBoxResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSetBoxResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ofSetBoxResolution(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofSetBoxResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBoxResolution__SWIG_0(self, args);} } if (argc == 3) { int _v; { + int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSetBoxResolution__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSetBoxResolution'.\n" + " Possible C/C++ prototypes are:\n" " ofSetBoxResolution(int)\n" " ofSetBoxResolution(int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetBoxResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)":ofGetBoxResolution")) SWIG_fail; result = ofGetBoxResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBox__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDrawBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBox" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDrawBox" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDrawBox" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ofDrawBox(arg1,arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBox__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBox",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBox" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawBox(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBox__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDrawBox",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawBox" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBox" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDrawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ofDrawBox((ofVec3f const &)*arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBox__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofDrawBox",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDrawBox" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofDrawBox" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofDrawBox((ofVec3f const &)*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBox__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDrawBox",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBox" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ofDrawBox(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBox__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofDrawBox",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDrawBox" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDrawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDrawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ofDrawBox(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofDrawBox(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBox__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBox__SWIG_3(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBox__SWIG_5(self, args);} } } } if (argc == 4) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBox__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBox__SWIG_1(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDrawBox__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDrawBox'.\n" + " Possible C/C++ prototypes are:\n" " ofDrawBox(float,float,float,float,float,float)\n" + " ofDrawBox(float,float,float,float)\n" " ofDrawBox(ofPoint const &,float,float,float)\n" + " ofDrawBox(ofPoint const &,float)\n" " ofDrawBox(float)\n" " ofDrawBox(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_new_of3dGraphics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofBaseRenderer *arg1 = (ofBaseRenderer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + of3dGraphics *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_of3dGraphics",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofBaseRenderer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_of3dGraphics" "', argument " "1"" of type '" "ofBaseRenderer *""'"); } + arg1 = reinterpret_cast< ofBaseRenderer * >(argp1); result = (of3dGraphics *)new of3dGraphics(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_of3dGraphics, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setPlaneResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_setPlaneResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setPlaneResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setPlaneResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setPlaneResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setPlaneResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getPlaneResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec2f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getPlaneResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getPlaneResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getPlaneResolution(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawPlane" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawPlane(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawPlane" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawPlane" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((of3dGraphics const *)arg1)->drawPlane(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "ofPoint &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "ofPoint &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawPlane" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawPlane(*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawPlane",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawPlane" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawPlane(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawPlane(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_0(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawPlane__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawPlane'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawPlane(float,float,float,float) const\n" + " of3dGraphics::drawPlane(float,float,float,float,float) const\n" + " of3dGraphics::drawPlane(ofPoint &,float,float) const\n" " of3dGraphics::drawPlane(float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_setSphereResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setSphereResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setSphereResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setSphereResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getSphereResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getSphereResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = (int)((of3dGraphics const *)arg1)->getSphereResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawSphere",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawSphere(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawSphere",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawSphere" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawSphere(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawSphere",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawSphere((ofPoint const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawSphere",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawSphere(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_0(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawSphere__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawSphere'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawSphere(float,float,float) const\n" + " of3dGraphics::drawSphere(float,float,float,float) const\n" " of3dGraphics::drawSphere(ofPoint const &,float) const\n" + " of3dGraphics::drawSphere(float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setIcoSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_setIcoSphereResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setIcoSphereResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setIcoSphereResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setIcoSphereResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getIcoSphereResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getIcoSphereResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getIcoSphereResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = (int)((of3dGraphics const *)arg1)->getIcoSphereResolution(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawIcoSphere",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawIcoSphere(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawIcoSphere",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawIcoSphere(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawIcoSphere",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawIcoSphere((ofPoint const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawIcoSphere",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawIcoSphere" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawIcoSphere(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawIcoSphere(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_2(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawIcoSphere__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawIcoSphere'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawIcoSphere(float,float,float,float) const\n" + " of3dGraphics::drawIcoSphere(float,float,float) const\n" " of3dGraphics::drawIcoSphere(ofPoint const &,float) const\n" + " of3dGraphics::drawIcoSphere(float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setCylinderResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_setCylinderResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setCylinderResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setCylinderResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_setCylinderResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setCylinderResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setCylinderResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setCylinderResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setCylinderResolution__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setCylinderResolution__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_setCylinderResolution'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::setCylinderResolution(int,int,int)\n" + " of3dGraphics::setCylinderResolution(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getCylinderResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getCylinderResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getCylinderResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getCylinderResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCylinder" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawCylinder(arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCylinder" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawCylinder" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((of3dGraphics const *)arg1)->drawCylinder(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCylinder" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawCylinder((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawCylinder",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCylinder" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCylinder" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCylinder" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawCylinder(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCylinder(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_0(self, args);} } } } } } if (argc == 6) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCylinder__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawCylinder'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawCylinder(float,float,float,float) const\n" + " of3dGraphics::drawCylinder(float,float,float,float,float) const\n" + " of3dGraphics::drawCylinder(ofPoint const &,float,float) const\n" " of3dGraphics::drawCylinder(float,float) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setConeResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_setConeResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setConeResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setConeResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setConeResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_setConeResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setConeResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setConeResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_setConeResolution",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setConeResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setConeResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setConeResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); (arg1)->setConeResolution(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setConeResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setConeResolution__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setConeResolution__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_setConeResolution'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::setConeResolution(int,int,int)\n" + " of3dGraphics::setConeResolution(int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getConeResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getConeResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getConeResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getConeResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCone" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawCone" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ((of3dGraphics const *)arg1)->drawCone(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawCone" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawCone(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawCone" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawCone((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawCone",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawCone" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawCone" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawCone" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawCone(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawCone(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawCone__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawCone'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawCone(float,float,float,float,float) const\n" + " of3dGraphics::drawCone(float,float,float,float) const\n" + " of3dGraphics::drawCone(ofPoint const &,float,float) const\n" " of3dGraphics::drawCone(float,float) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setBoxResolution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_setBoxResolution",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setBoxResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setBoxResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setBoxResolution(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setBoxResolution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_setBoxResolution",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_setBoxResolution" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_setBoxResolution" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_setBoxResolution" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_setBoxResolution" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); (arg1)->setBoxResolution(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_setBoxResolution(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setBoxResolution__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_setBoxResolution__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_setBoxResolution'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::setBoxResolution(int)\n" + " of3dGraphics::setBoxResolution(int,int,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_getBoxResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"O:of3dGraphics_getBoxResolution",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_getBoxResolution" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); result = ((of3dGraphics const *)arg1)->getBoxResolution(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + float arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawBox" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawBox" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "of3dGraphics_drawBox" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ((of3dGraphics const *)arg1)->drawBox(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawBox" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawBox(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawBox" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((of3dGraphics const *)arg1)->drawBox((ofPoint const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((of3dGraphics const *)arg1)->drawBox((ofPoint const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawBox",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawBox(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawBox",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawBox" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawBox" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((of3dGraphics const *)arg1)->drawBox(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawBox(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_4(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_3(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_5(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_2(self, args);} } } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_1(self, args);} } } } } } if (argc == 7) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_of3dGraphics, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_of3dGraphics_drawBox__SWIG_0(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'of3dGraphics_drawBox'.\n" + " Possible C/C++ prototypes are:\n" " of3dGraphics::drawBox(float,float,float,float,float,float) const\n" + " of3dGraphics::drawBox(float,float,float,float) const\n" + " of3dGraphics::drawBox(ofPoint const &,float,float,float) const\n" + " of3dGraphics::drawBox(ofPoint const &,float) const\n" " of3dGraphics::drawBox(float) const\n" + " of3dGraphics::drawBox(float,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:of3dGraphics_drawAxis",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawAxis" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawAxis" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ((of3dGraphics const *)arg1)->drawAxis(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; size_t arg3 ; bool arg4 ; bool arg5 ; bool arg6 ; bool arg7 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:of3dGraphics_drawGrid",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawGrid" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawGrid" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawGrid" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawGrid" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "of3dGraphics_drawGrid" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "of3dGraphics_drawGrid" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "of3dGraphics_drawGrid" "', argument " "7"" of type '" "bool""'"); } + arg7 = static_cast< bool >(val7); ((of3dGraphics const *)arg1)->drawGrid(arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawGridPlane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; size_t arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawGridPlane",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawGridPlane" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawGridPlane" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawGridPlane" "', argument " "3"" of type '" "size_t""'"); } + arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawGridPlane" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ((of3dGraphics const *)arg1)->drawGridPlane(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawArrow",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawArrow" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "of3dGraphics_drawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawArrow" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "of3dGraphics_drawArrow" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "of3dGraphics_drawArrow" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawArrow" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); + ((of3dGraphics const *)arg1)->drawArrow((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_of3dGraphics_drawRotationAxes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; of3dGraphics *arg1 = (of3dGraphics *) 0 ; float arg2 ; float arg3 ; int arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:of3dGraphics_drawRotationAxes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "1"" of type '" "of3dGraphics const *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "of3dGraphics_drawRotationAxes" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); ((of3dGraphics const *)arg1)->drawRotationAxes(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_of3dGraphics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + of3dGraphics *arg1 = (of3dGraphics *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_of3dGraphics",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_of3dGraphics, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_of3dGraphics" "', argument " "1"" of type '" "of3dGraphics *""'"); } + arg1 = reinterpret_cast< of3dGraphics * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *of3dGraphics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_of3dGraphics, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofTrueTypeFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTrueTypeFont *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofTrueTypeFont")) SWIG_fail; + result = (ofTrueTypeFont *)new ofTrueTypeFont(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTrueTypeFont, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofTrueTypeFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTrueTypeFont",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTrueTypeFont" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; bool arg6 ; float arg7 ; int arg8 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; + int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_load" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTrueTypeFont_load" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofTrueTypeFont_load" "', argument " "8"" of type '" "int""'"); } + arg8 = static_cast< int >(val8); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; bool arg6 ; float arg7 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; + bool val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_load" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofTrueTypeFont_load" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; bool val4 ; + int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofTrueTypeFont_load" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_load" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; bool arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_load" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = (bool)(arg1)->load((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_load",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_load" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_load" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->load((std::string const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_load(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[9] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_load__SWIG_5(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_load__SWIG_4(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_load__SWIG_3(self, args);} } } } } } if (argc == 6) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_load__SWIG_2(self, args);} } } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_load__SWIG_1(self, args);} } } } } } } } if (argc == 8) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_load__SWIG_0(self, args);} } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_load'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::load(std::string const &,int,bool,bool,bool,float,int)\n" + " ofTrueTypeFont::load(std::string const &,int,bool,bool,bool,float)\n" + " ofTrueTypeFont::load(std::string const &,int,bool,bool,bool)\n" + " ofTrueTypeFont::load(std::string const &,int,bool,bool)\n" " ofTrueTypeFont::load(std::string const &,int,bool)\n" + " ofTrueTypeFont::load(std::string const &,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_isLoaded",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_isLoaded" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)((ofTrueTypeFont const *)arg1)->isLoaded(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setGlobalDpi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_setGlobalDpi",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofTrueTypeFont_setGlobalDpi" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofTrueTypeFont::setGlobalDpi(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_isAntiAliased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_isAntiAliased",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_isAntiAliased" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)((ofTrueTypeFont const *)arg1)->isAntiAliased(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_hasFullCharacterSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_hasFullCharacterSet",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_hasFullCharacterSet" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (bool)((ofTrueTypeFont const *)arg1)->hasFullCharacterSet(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getNumCharacters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getNumCharacters",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getNumCharacters" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (int)((ofTrueTypeFont const *)arg1)->getNumCharacters(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getSize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getSize" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (int)((ofTrueTypeFont const *)arg1)->getSize(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getLineHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getLineHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getLineHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getLineHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setLineHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_setLineHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_setLineHeight" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_setLineHeight" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setLineHeight(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getAscenderHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getAscenderHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getAscenderHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getAscenderHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getDescenderHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getDescenderHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getDescenderHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getDescenderHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getGlyphBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofRectangle *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getGlyphBBox",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getGlyphBBox" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (ofRectangle *) &((ofTrueTypeFont const *)arg1)->getGlyphBBox(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofRectangle, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getLetterSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getLetterSpacing",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getLetterSpacing" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getLetterSpacing(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setLetterSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_setLetterSpacing",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_setLetterSpacing" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_setLetterSpacing" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setLetterSpacing(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getSpaceSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getSpaceSize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getSpaceSize" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)((ofTrueTypeFont const *)arg1)->getSpaceSize(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_setSpaceSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_setSpaceSize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_setSpaceSize" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_setSpaceSize" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSpaceSize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_stringWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_stringWidth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_stringWidth" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_stringWidth" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_stringWidth" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (float)((ofTrueTypeFont const *)arg1)->stringWidth((std::string const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_stringHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_stringHeight",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_stringHeight" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_stringHeight" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_stringHeight" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (float)((ofTrueTypeFont const *)arg1)->stringHeight((std::string const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTrueTypeFont_getStringBoundingBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); + result = ((ofTrueTypeFont const *)arg1)->getStringBoundingBox((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofRectangle result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getStringBoundingBox",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringBoundingBox" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); + result = ((ofTrueTypeFont const *)arg1)->getStringBoundingBox((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringBoundingBox(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[6] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringBoundingBox__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getStringBoundingBox'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getStringBoundingBox(std::string const &,float,float,bool) const\n" + " ofTrueTypeFont::getStringBoundingBox(std::string const &,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_drawString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_drawString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_drawString" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_drawString" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_drawString" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_drawString" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_drawString" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofTrueTypeFont const *)arg1)->drawString((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_drawStringAsShapes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_drawStringAsShapes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_drawStringAsShapes" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofTrueTypeFont const *)arg1)->drawStringAsShapes((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; int arg2 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofTTFCharacter result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getCharacterAsPoints",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = ((ofTrueTypeFont const *)arg1)->getCharacterAsPoints(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofTTFCharacter(static_cast< const ofTTFCharacter& >(result))), SWIGTYPE_p_ofTTFCharacter, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofTTFCharacter result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_getCharacterAsPoints",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); result = ((ofTrueTypeFont const *)arg1)->getCharacterAsPoints(arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofTTFCharacter(static_cast< const ofTTFCharacter& >(result))), SWIGTYPE_p_ofTTFCharacter, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofTTFCharacter result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_getCharacterAsPoints",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_getCharacterAsPoints" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = ((ofTrueTypeFont const *)arg1)->getCharacterAsPoints(arg2); + resultobj = SWIG_NewPointerObj((new ofTTFCharacter(static_cast< const ofTTFCharacter& >(result))), SWIGTYPE_p_ofTTFCharacter, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getCharacterAsPoints(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_1(self, args);} } } } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getCharacterAsPoints__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getCharacterAsPoints'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getCharacterAsPoints(int,bool,bool) const\n" + " ofTrueTypeFont::getCharacterAsPoints(int,bool) const\n" " ofTrueTypeFont::getCharacterAsPoints(int) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; bool arg3 ; bool arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + SwigValueWrapper< std::vector< ofTTFCharacter > > result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getStringAsPoints",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); + result = ((ofTrueTypeFont const *)arg1)->getStringAsPoints((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new std::vector< ofTTFCharacter >(static_cast< const std::vector< ofTTFCharacter >& >(result))), SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; SwigValueWrapper< std::vector< ofTTFCharacter > > result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofTrueTypeFont_getStringAsPoints",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); + result = ((ofTrueTypeFont const *)arg1)->getStringAsPoints((std::string const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new std::vector< ofTTFCharacter >(static_cast< const std::vector< ofTTFCharacter >& >(result))), SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + SwigValueWrapper< std::vector< ofTTFCharacter > > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_getStringAsPoints",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringAsPoints" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofTrueTypeFont const *)arg1)->getStringAsPoints((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new std::vector< ofTTFCharacter >(static_cast< const std::vector< ofTTFCharacter >& >(result))), SWIGTYPE_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringAsPoints(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringAsPoints__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getStringAsPoints'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getStringAsPoints(std::string const &,bool,bool) const\n" + " ofTrueTypeFont::getStringAsPoints(std::string const &,bool) const\n" + " ofTrueTypeFont::getStringAsPoints(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringMesh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMesh *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofTrueTypeFont_getStringMesh",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "5"" of type '" "bool""'"); } + arg5 = static_cast< bool >(val5); + result = (ofMesh *) &((ofTrueTypeFont const *)arg1)->getStringMesh((std::string const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringMesh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; std::string *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMesh *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofTrueTypeFont_getStringMesh",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); { std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofTrueTypeFont_getStringMesh" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); + result = (ofMesh *) &((ofTrueTypeFont const *)arg1)->getStringMesh((std::string const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMesh, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getStringMesh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringMesh__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofTrueTypeFont, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofTrueTypeFont_getStringMesh__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofTrueTypeFont_getStringMesh'.\n" + " Possible C/C++ prototypes are:\n" " ofTrueTypeFont::getStringMesh(std::string const &,float,float,bool) const\n" + " ofTrueTypeFont::getStringMesh(std::string const &,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_getFontTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_getFontTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_getFontTexture" "', argument " "1"" of type '" "ofTrueTypeFont const *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (ofTexture *) &((ofTrueTypeFont const *)arg1)->getFontTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_lineHeight_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_lineHeight_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_lineHeight_set" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_lineHeight_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofTrueTypeFont_lineHeight_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_lineHeight_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_lineHeight_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_lineHeight_get" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)ofTrueTypeFont_lineHeight_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_letterSpacing_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_letterSpacing_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_letterSpacing_set" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_letterSpacing_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofTrueTypeFont_letterSpacing_set(arg1,arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_letterSpacing_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_letterSpacing_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_letterSpacing_get" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)ofTrueTypeFont_letterSpacing_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_spaceSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTrueTypeFont_spaceSize_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_spaceSize_set" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTrueTypeFont_spaceSize_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ofTrueTypeFont_spaceSize_set(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTrueTypeFont_spaceSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTrueTypeFont *arg1 = (ofTrueTypeFont *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTrueTypeFont_spaceSize_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTrueTypeFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTrueTypeFont_spaceSize_get" "', argument " "1"" of type '" "ofTrueTypeFont *""'"); } + arg1 = reinterpret_cast< ofTrueTypeFont * >(argp1); result = (float)ofTrueTypeFont_spaceSize_get(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofTrueTypeFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofTrueTypeFont, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofMatrix3x3_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_a_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_a_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->a = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_a_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->a); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_b_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_b_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->b = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_b_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->b); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_c_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_c_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_c_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_c_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->c = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_c_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_c_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_c_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->c); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_d_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_d_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_d_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_d_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->d = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_d_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_d_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_d_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->d); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_e_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_e_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_e_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_e_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->e = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_e_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_e_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_e_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->e); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_f_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->f = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_f_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_f_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->f); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_g_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_g_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_g_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_g_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->g = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_g_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_g_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_g_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->g); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_h_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_h_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_h_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->h = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_h_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_h_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->h); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_i_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_i_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_i_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->i = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_i_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_i_get" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float) ((arg1)->i); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + float val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; + ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:new_ofMatrix3x3",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix3x3" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofMatrix3x3" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofMatrix3x3" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofMatrix3x3" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ofMatrix3x3" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_ofMatrix3x3" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_ofMatrix3x3" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:new_ofMatrix3x3",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix3x3" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofMatrix3x3" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofMatrix3x3" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofMatrix3x3" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ofMatrix3x3" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_ofMatrix3x3" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_ofMatrix3x3",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix3x3" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofMatrix3x3" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofMatrix3x3" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofMatrix3x3" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ofMatrix3x3" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_ofMatrix3x3",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix3x3" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofMatrix3x3" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofMatrix3x3" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofMatrix3x3" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_ofMatrix3x3",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix3x3" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofMatrix3x3" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofMatrix3x3" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofMatrix3x3",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix3x3" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofMatrix3x3" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofMatrix3x3",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix3x3" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofMatrix3x3",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix3x3" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofMatrix3x3 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofMatrix3x3",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix3x3" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofMatrix3x3 *)new ofMatrix3x3(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofMatrix3x3")) SWIG_fail; + result = (ofMatrix3x3 *)new ofMatrix3x3(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix3x3(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[10] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofMatrix3x3__SWIG_9(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofMatrix3x3__SWIG_8(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_7(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_6(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_5(self, args);} } } } } if (argc == 5) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_4(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_3(self, args);} } } } } } } if (argc == 7) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_2(self, args);} } } } } } } } if (argc == 8) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_1(self, args);} } } } } } } } } if (argc == 9) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix3x3__SWIG_0(self, args);} } } } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofMatrix3x3'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix3x3::ofMatrix3x3(float,float,float,float,float,float,float,float,float)\n" + " ofMatrix3x3::ofMatrix3x3(float,float,float,float,float,float,float,float)\n" + " ofMatrix3x3::ofMatrix3x3(float,float,float,float,float,float,float)\n" + " ofMatrix3x3::ofMatrix3x3(float,float,float,float,float,float)\n" + " ofMatrix3x3::ofMatrix3x3(float,float,float,float,float)\n" " ofMatrix3x3::ofMatrix3x3(float,float,float,float)\n" + " ofMatrix3x3::ofMatrix3x3(float,float,float)\n" " ofMatrix3x3::ofMatrix3x3(float,float)\n" + " ofMatrix3x3::ofMatrix3x3(float)\n" " ofMatrix3x3::ofMatrix3x3()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + float arg8 ; float arg9 ; float arg10 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; + int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:ofMatrix3x3_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_set" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix3x3_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix3x3_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix3x3_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix3x3_set" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofMatrix3x3_set" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofMatrix3x3_set" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofMatrix3x3_set" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofMatrix3x3_set" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; int *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int temp2 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___getitem__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3___getitem__" "', argument " "2"" of type '" "int""'"); } + temp2 = static_cast< int >(val2); arg2 = &temp2; result = (float *) &(arg1)->operator []((int const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_transpose__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_transpose",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_transpose" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); (arg1)->transpose(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_transpose__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_transpose",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_transpose" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_transpose" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_transpose" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->transpose((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_transpose(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix3x3_transpose__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix3x3_transpose__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix3x3_transpose'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix3x3::transpose()\n" " ofMatrix3x3::transpose(ofMatrix3x3 const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_determinant__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + float result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_determinant",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_determinant" "', argument " "1"" of type '" "ofMatrix3x3 const *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (float)((ofMatrix3x3 const *)arg1)->determinant(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_determinant__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_determinant",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_determinant" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_determinant" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_determinant" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (float)(arg1)->determinant((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_determinant(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix3x3_determinant__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix3x3_determinant__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix3x3_determinant'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix3x3::determinant() const\n" + " ofMatrix3x3::determinant(ofMatrix3x3 const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_inverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_inverse",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_inverse" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_inverse" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_inverse" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->inverse((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3_invert",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_invert" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); (arg1)->invert(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3_entrywiseTimes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3_entrywiseTimes",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3_entrywiseTimes" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->entrywiseTimes((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___add__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3___add__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___add__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->operator +((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___iadd__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3___iadd__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___iadd__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); (arg1)->operator +=((ofMatrix3x3 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___sub__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3___sub__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___sub__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->operator -((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___isub__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3___isub__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___isub__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); (arg1)->operator -=((ofMatrix3x3 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___mul__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3___mul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (arg1)->operator *(arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___imul__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3___imul__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___imul__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); (arg1)->operator *=((ofMatrix3x3 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___imul__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3___imul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->operator *=(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix3x3___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix3x3___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix3x3___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix3x3::operator *=(ofMatrix3x3 const &)\n" + " ofMatrix3x3::operator *=(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___mul__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3___mul__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___mul__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); result = (arg1)->operator *((ofMatrix3x3 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix3x3___mul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix3x3___mul____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix3x3 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___div__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3___div__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (arg1)->operator /(arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix3x3(static_cast< const ofMatrix3x3& >(result))), SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; ofMatrix3x3 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___idiv__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix3x3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix3x3___idiv__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix3x3___idiv__" "', argument " "2"" of type '" "ofMatrix3x3 const &""'"); } + arg2 = reinterpret_cast< ofMatrix3x3 * >(argp2); (arg1)->operator /=((ofMatrix3x3 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix3x3___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___idiv__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix3x3___idiv__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->operator /=(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix3x3___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix3x3, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix3x3___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix3x3___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix3x3::operator /=(ofMatrix3x3 const &)\n" + " ofMatrix3x3::operator /=(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix3x3___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix3x3___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix3x3___str__" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); result = (char *)ofMatrix3x3___str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofMatrix3x3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix3x3 *arg1 = (ofMatrix3x3 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMatrix3x3",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix3x3, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMatrix3x3" "', argument " "1"" of type '" "ofMatrix3x3 *""'"); } + arg1 = reinterpret_cast< ofMatrix3x3 * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofMatrix3x3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofMatrix3x3, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofMatrix4x4__mat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4__mat_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4__mat_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec4f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4__mat_set" "', argument " "2"" of type '" "ofVec4f [4]""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); { if (arg2) { size_t ii = 0; + for (; ii < (size_t)4; ++ii) *(ofVec4f *)&arg1->_mat[ii] = *((ofVec4f *)arg2 + ii); } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""_mat""' of type '""ofVec4f [4]""'"); } } + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4__mat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4__mat_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4__mat_get" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (ofVec4f *)(ofVec4f *) ((arg1)->_mat); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix4x4__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofMatrix4x4")) SWIG_fail; + result = (ofMatrix4x4 *)new ofMatrix4x4(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix4x4__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofMatrix4x4",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofMatrix4x4" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofMatrix4x4" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (ofMatrix4x4 *)new ofMatrix4x4((ofMatrix4x4 const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix4x4__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float *arg1 = (float *) (float *)0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofMatrix4x4",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofMatrix4x4" "', argument " "1"" of type '" "float const *const""'"); } + arg1 = reinterpret_cast< float * >(argp1); result = (ofMatrix4x4 *)new ofMatrix4x4((float const *)arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix4x4__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofMatrix4x4",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofQuaternion, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofMatrix4x4" "', argument " "1"" of type '" "ofQuaternion const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofMatrix4x4" "', argument " "1"" of type '" "ofQuaternion const &""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (ofMatrix4x4 *)new ofMatrix4x4((ofQuaternion const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix4x4__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; + float arg10 ; float arg11 ; float arg12 ; float arg13 ; float arg14 ; float arg15 ; float arg16 ; float val1 ; + int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; + int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; float val13 ; + int ecode13 = 0 ; float val14 ; int ecode14 = 0 ; float val15 ; int ecode15 = 0 ; float val16 ; int ecode16 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; + PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; PyObject * obj12 = 0 ; PyObject * obj13 = 0 ; PyObject * obj14 = 0 ; + PyObject * obj15 = 0 ; ofMatrix4x4 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOOOO:new_ofMatrix4x4",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofMatrix4x4" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofMatrix4x4" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofMatrix4x4" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofMatrix4x4" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofMatrix4x4" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ofMatrix4x4" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ofMatrix4x4" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_ofMatrix4x4" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_ofMatrix4x4" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_ofMatrix4x4" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_ofMatrix4x4" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_ofMatrix4x4" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ecode13 = SWIG_AsVal_float(obj12, &val13); if (!SWIG_IsOK(ecode13)) { + SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_ofMatrix4x4" "', argument " "13"" of type '" "float""'"); } + arg13 = static_cast< float >(val13); ecode14 = SWIG_AsVal_float(obj13, &val14); if (!SWIG_IsOK(ecode14)) { + SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_ofMatrix4x4" "', argument " "14"" of type '" "float""'"); } + arg14 = static_cast< float >(val14); ecode15 = SWIG_AsVal_float(obj14, &val15); if (!SWIG_IsOK(ecode15)) { + SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "new_ofMatrix4x4" "', argument " "15"" of type '" "float""'"); } + arg15 = static_cast< float >(val15); ecode16 = SWIG_AsVal_float(obj15, &val16); if (!SWIG_IsOK(ecode16)) { + SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "new_ofMatrix4x4" "', argument " "16"" of type '" "float""'"); } + arg16 = static_cast< float >(val16); + result = (ofMatrix4x4 *)new ofMatrix4x4(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofMatrix4x4(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[17] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 16) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofMatrix4x4__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofMatrix4x4__SWIG_1(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofMatrix4x4__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofMatrix4x4__SWIG_3(self, args);} } if (argc == 16) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[12], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[13], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[14], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[15], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofMatrix4x4__SWIG_4(self, args);} } } } } } } } } } } } } } } + } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofMatrix4x4'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::ofMatrix4x4()\n" " ofMatrix4x4::ofMatrix4x4(ofMatrix4x4 const &)\n" + " ofMatrix4x4::ofMatrix4x4(float const *const)\n" " ofMatrix4x4::ofMatrix4x4(ofQuaternion const &)\n" + " ofMatrix4x4::ofMatrix4x4(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_delete_ofMatrix4x4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMatrix4x4",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMatrix4x4" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_makeIdentityMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeIdentityMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); (arg1)->makeIdentityMatrix(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeScaleMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_makeScaleMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->makeScaleMatrix((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeScaleMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_makeScaleMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeScaleMatrix" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->makeScaleMatrix(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeScaleMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_makeScaleMatrix__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_makeScaleMatrix__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_makeScaleMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::makeScaleMatrix(ofVec3f const &)\n" + " ofMatrix4x4::makeScaleMatrix(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeTranslationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_makeTranslationMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->makeTranslationMatrix((ofVec3f const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeTranslationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_makeTranslationMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeTranslationMatrix" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->makeTranslationMatrix(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeTranslationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_makeTranslationMatrix__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_makeTranslationMatrix__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_makeTranslationMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::makeTranslationMatrix(ofVec3f const &)\n" + " ofMatrix4x4::makeTranslationMatrix(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_makeRotationMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->makeRotationMatrix((ofVec3f const &)*arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_makeRotationMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->makeRotationMatrix(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_makeRotationMatrix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->makeRotationMatrix(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_makeRotationMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->makeRotationMatrix((ofQuaternion const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; float arg4 ; + ofVec3f *arg5 = 0 ; float arg6 ; ofVec3f *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; float val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; float val6 ; int ecode6 = 0 ; + void *argp7 = 0 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMatrix4x4_makeRotationMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "5"" of type '" "ofVec3f const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "5"" of type '" "ofVec3f const &""'"); } + arg5 = reinterpret_cast< ofVec3f * >(argp5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "7"" of type '" "ofVec3f const &""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeRotationMatrix" "', argument " "7"" of type '" "ofVec3f const &""'"); } + arg7 = reinterpret_cast< ofVec3f * >(argp7); + (arg1)->makeRotationMatrix(arg2,(ofVec3f const &)*arg3,arg4,(ofVec3f const &)*arg5,arg6,(ofVec3f const &)*arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeRotationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[8] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_makeRotationMatrix__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_makeRotationMatrix__SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_makeRotationMatrix__SWIG_1(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_makeRotationMatrix__SWIG_2(self, args);} } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_makeRotationMatrix__SWIG_4(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_makeRotationMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::makeRotationMatrix(ofVec3f const &,ofVec3f const &)\n" + " ofMatrix4x4::makeRotationMatrix(float,ofVec3f const &)\n" + " ofMatrix4x4::makeRotationMatrix(float,float,float,float)\n" " ofMatrix4x4::makeRotationMatrix(ofQuaternion const &)\n" + " ofMatrix4x4::makeRotationMatrix(float,ofVec3f const &,float,ofVec3f const &,float,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeInvertOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_makeInvertOf",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeInvertOf" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeInvertOf" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeInvertOf" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); result = (bool)(arg1)->makeInvertOf((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeOrthoNormalOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_makeOrthoNormalOf",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeOrthoNormalOf" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeOrthoNormalOf" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeOrthoNormalOf" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->makeOrthoNormalOf((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeFromMultiplicationOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; ofMatrix4x4 *arg3 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_makeFromMultiplicationOf",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeFromMultiplicationOf" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeFromMultiplicationOf" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeFromMultiplicationOf" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeFromMultiplicationOf" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeFromMultiplicationOf" "', argument " "3"" of type '" "ofMatrix4x4 const &""'"); } + arg3 = reinterpret_cast< ofMatrix4x4 * >(argp3); + (arg1)->makeFromMultiplicationOf((ofMatrix4x4 const &)*arg2,(ofMatrix4x4 const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeOrthoMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; + double arg6 ; double arg7 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; + double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMatrix4x4_makeOrthoMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeOrthoMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeOrthoMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_makeOrthoMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeOrthoMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_makeOrthoMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_makeOrthoMatrix" "', argument " "6"" of type '" "double""'"); } + arg6 = static_cast< double >(val6); ecode7 = SWIG_AsVal_double(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofMatrix4x4_makeOrthoMatrix" "', argument " "7"" of type '" "double""'"); } + arg7 = static_cast< double >(val7); (arg1)->makeOrthoMatrix(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeOrtho2DMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; + void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; + double val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_makeOrtho2DMatrix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeOrtho2DMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeOrtho2DMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_makeOrtho2DMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeOrtho2DMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_makeOrtho2DMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); (arg1)->makeOrtho2DMatrix(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeFrustumMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; + double arg6 ; double arg7 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; + double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMatrix4x4_makeFrustumMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeFrustumMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makeFrustumMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_makeFrustumMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makeFrustumMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_makeFrustumMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_makeFrustumMatrix" "', argument " "6"" of type '" "double""'"); } + arg6 = static_cast< double >(val6); ecode7 = SWIG_AsVal_double(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofMatrix4x4_makeFrustumMatrix" "', argument " "7"" of type '" "double""'"); } + arg7 = static_cast< double >(val7); (arg1)->makeFrustumMatrix(arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makePerspectiveMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; + void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; + double val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_makePerspectiveMatrix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makePerspectiveMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_makePerspectiveMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_makePerspectiveMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_makePerspectiveMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_makePerspectiveMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); (arg1)->makePerspectiveMatrix(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeLookAtMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_makeLookAtMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + (arg1)->makeLookAtMatrix((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_makeLookAtViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_makeLookAtViewMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_makeLookAtViewMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + (arg1)->makeLookAtViewMatrix((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 result; if (!PyArg_ParseTuple(args,(char *)":ofMatrix4x4_newIdentityMatrix")) SWIG_fail; + result = ofMatrix4x4::newIdentityMatrix(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newScaleMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ofMatrix4x4::newScaleMatrix((ofVec3f const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newScaleMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newScaleMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofMatrix4x4::newScaleMatrix(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newScaleMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newScaleMatrix__SWIG_0(self, args);} } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_newScaleMatrix__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newScaleMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newScaleMatrix(ofVec3f const &)\n" + " ofMatrix4x4::newScaleMatrix(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newTranslationMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ofMatrix4x4::newTranslationMatrix((ofVec3f const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newTranslationMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newTranslationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ofMatrix4x4::newTranslationMatrix(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newTranslationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[4] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newTranslationMatrix__SWIG_0(self, args);} } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_newTranslationMatrix__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newTranslationMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newTranslationMatrix(ofVec3f const &)\n" + " ofMatrix4x4::newTranslationMatrix(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); + result = ofMatrix4x4::newRotationMatrix((ofVec3f const &)*arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ofMatrix4x4::newRotationMatrix(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; ofVec3f *arg2 = 0 ; float val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ofMatrix4x4::newRotationMatrix(arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; float arg1 ; ofVec3f *arg2 = 0 ; float arg3 ; ofVec3f *arg4 = 0 ; float arg5 ; ofVec3f *arg6 = 0 ; + float val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + float val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newRotationMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "6"" of type '" "ofVec3f const &""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "6"" of type '" "ofVec3f const &""'"); } + arg6 = reinterpret_cast< ofVec3f * >(argp6); + result = ofMatrix4x4::newRotationMatrix(arg1,(ofVec3f const &)*arg2,arg3,(ofVec3f const &)*arg4,arg5,(ofVec3f const &)*arg6); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_newRotationMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofQuaternion, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofQuaternion const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newRotationMatrix" "', argument " "1"" of type '" "ofQuaternion const &""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ofMatrix4x4::newRotationMatrix((ofQuaternion const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newRotationMatrix(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[7] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_4(self, args);} } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_0(self, args);} } } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_2(self, args);} } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_1(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_newRotationMatrix__SWIG_3(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_newRotationMatrix'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::newRotationMatrix(ofVec3f const &,ofVec3f const &)\n" + " ofMatrix4x4::newRotationMatrix(float,float,float,float)\n" " ofMatrix4x4::newRotationMatrix(float,ofVec3f const &)\n" + " ofMatrix4x4::newRotationMatrix(float,ofVec3f const &,float,ofVec3f const &,float,ofVec3f const &)\n" + " ofMatrix4x4::newRotationMatrix(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newOrthoMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + double arg1 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double val1 ; int ecode1 = 0 ; + double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; + double val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newOrthoMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_newOrthoMatrix" "', argument " "6"" of type '" "double""'"); } + arg6 = static_cast< double >(val6); result = ofMatrix4x4::newOrthoMatrix(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newOrtho2DMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; + int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newOrtho2DMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newOrtho2DMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); result = ofMatrix4x4::newOrtho2DMatrix(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newFrustumMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double val1 ; + int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; + int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrix4x4_newFrustumMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "5"" of type '" "double""'"); } + arg5 = static_cast< double >(val5); ecode6 = SWIG_AsVal_double(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_newFrustumMatrix" "', argument " "6"" of type '" "double""'"); } + arg6 = static_cast< double >(val6); result = ofMatrix4x4::newFrustumMatrix(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newPerspectiveMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 ; double arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; + int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_newPerspectiveMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "1"" of type '" "double""'"); } + arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "2"" of type '" "double""'"); } + arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "3"" of type '" "double""'"); } + arg3 = static_cast< double >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_newPerspectiveMatrix" "', argument " "4"" of type '" "double""'"); } + arg4 = static_cast< double >(val4); result = ofMatrix4x4::newPerspectiveMatrix(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_newLookAtMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4_newLookAtMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_newLookAtMatrix" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); + result = ofMatrix4x4::newLookAtMatrix((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; std::size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4___call__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___call__" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4___call__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4___call__" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); result = (float *) &(arg1)->operator ()(arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; std::size_t arg3 ; void *argp1 = 0 ; + int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrix4x4___call__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___call__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4___call__" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4___call__" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); result = (float)((ofMatrix4x4 const *)arg1)->operator ()(arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___call__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4___call____SWIG_0(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4___call____SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4___call__'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::operator ()(std::size_t,std::size_t)\n" + " ofMatrix4x4::operator ()(std::size_t,std::size_t) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getRowAsVec3f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_getRowAsVec3f",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getRowAsVec3f" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_getRowAsVec3f" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = ((ofMatrix4x4 const *)arg1)->getRowAsVec3f(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getRowAsVec4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; std::size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_getRowAsVec4f",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getRowAsVec4f" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_getRowAsVec4f" "', argument " "2"" of type '" "std::size_t""'"); } + arg2 = static_cast< std::size_t >(val2); result = ((ofMatrix4x4 const *)arg1)->getRowAsVec4f(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getPtr" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (float *)(arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getPtr" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (float *)((ofMatrix4x4 const *)arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_getPtr__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_getPtr'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::getPtr()\n" " ofMatrix4x4::getPtr() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isValid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isValid" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isValid(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_isNaN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isNaN",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isNaN" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isNaN(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_isIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_isIdentity",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_isIdentity" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (bool)((ofMatrix4x4 const *)arg1)->isIdentity(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->set((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float *arg2 = (float *) (float *)0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "float const *const""'"); } + arg2 = reinterpret_cast< float * >(argp2); (arg1)->set((float const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double *arg2 = (double *) (double *)0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "double const *const""'"); } + arg2 = reinterpret_cast< double * >(argp2); (arg1)->set((double const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float arg7 ; + float arg8 ; float arg9 ; float arg10 ; float arg11 ; float arg12 ; float arg13 ; float arg14 ; float arg15 ; float arg16 ; + float arg17 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; + int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; + int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; int ecode11 = 0 ; float val12 ; + int ecode12 = 0 ; float val13 ; int ecode13 = 0 ; float val14 ; int ecode14 = 0 ; float val15 ; int ecode15 = 0 ; + float val16 ; int ecode16 = 0 ; float val17 ; int ecode17 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; PyObject * obj9 = 0 ; PyObject * obj10 = 0 ; PyObject * obj11 = 0 ; + PyObject * obj12 = 0 ; PyObject * obj13 = 0 ; PyObject * obj14 = 0 ; PyObject * obj15 = 0 ; PyObject * obj16 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOOOOO:ofMatrix4x4_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_set" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrix4x4_set" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); ecode7 = SWIG_AsVal_float(obj6, &val7); if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ofMatrix4x4_set" "', argument " "7"" of type '" "float""'"); } + arg7 = static_cast< float >(val7); ecode8 = SWIG_AsVal_float(obj7, &val8); if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ofMatrix4x4_set" "', argument " "8"" of type '" "float""'"); } + arg8 = static_cast< float >(val8); ecode9 = SWIG_AsVal_float(obj8, &val9); if (!SWIG_IsOK(ecode9)) { + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ofMatrix4x4_set" "', argument " "9"" of type '" "float""'"); } + arg9 = static_cast< float >(val9); ecode10 = SWIG_AsVal_float(obj9, &val10); if (!SWIG_IsOK(ecode10)) { + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ofMatrix4x4_set" "', argument " "10"" of type '" "float""'"); } + arg10 = static_cast< float >(val10); ecode11 = SWIG_AsVal_float(obj10, &val11); if (!SWIG_IsOK(ecode11)) { + SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ofMatrix4x4_set" "', argument " "11"" of type '" "float""'"); } + arg11 = static_cast< float >(val11); ecode12 = SWIG_AsVal_float(obj11, &val12); if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ofMatrix4x4_set" "', argument " "12"" of type '" "float""'"); } + arg12 = static_cast< float >(val12); ecode13 = SWIG_AsVal_float(obj12, &val13); if (!SWIG_IsOK(ecode13)) { + SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "ofMatrix4x4_set" "', argument " "13"" of type '" "float""'"); } + arg13 = static_cast< float >(val13); ecode14 = SWIG_AsVal_float(obj13, &val14); if (!SWIG_IsOK(ecode14)) { + SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "ofMatrix4x4_set" "', argument " "14"" of type '" "float""'"); } + arg14 = static_cast< float >(val14); ecode15 = SWIG_AsVal_float(obj14, &val15); if (!SWIG_IsOK(ecode15)) { + SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "ofMatrix4x4_set" "', argument " "15"" of type '" "float""'"); } + arg15 = static_cast< float >(val15); ecode16 = SWIG_AsVal_float(obj15, &val16); if (!SWIG_IsOK(ecode16)) { + SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "ofMatrix4x4_set" "', argument " "16"" of type '" "float""'"); } + arg16 = static_cast< float >(val16); ecode17 = SWIG_AsVal_float(obj16, &val17); if (!SWIG_IsOK(ecode17)) { + SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "ofMatrix4x4_set" "', argument " "17"" of type '" "float""'"); } + arg17 = static_cast< float >(val17); + (arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[18] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 17) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_2(self, args);} } } if (argc == 17) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[12], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[13], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[14], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[15], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[16], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_set__SWIG_3(self, args);} } } } } } } } } } } } } } + } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_set'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::set(ofMatrix4x4 const &)\n" + " ofMatrix4x4::set(float const *const)\n" " ofMatrix4x4::set(double const *const)\n" + " ofMatrix4x4::set(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getInverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getInverse",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getInverse" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ((ofMatrix4x4 const *)arg1)->getInverse(); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getOrtho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double *arg2 = 0 ; double *arg3 = 0 ; double *arg4 = 0 ; double *arg5 = 0 ; + double *arg6 = 0 ; double *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; + void *argp7 = 0 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMatrix4x4_getOrtho",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getOrtho" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_getOrtho" "', argument " "2"" of type '" "double &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getOrtho" "', argument " "2"" of type '" "double &""'"); } + arg2 = reinterpret_cast< double * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_getOrtho" "', argument " "3"" of type '" "double &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getOrtho" "', argument " "3"" of type '" "double &""'"); } + arg3 = reinterpret_cast< double * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_getOrtho" "', argument " "4"" of type '" "double &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getOrtho" "', argument " "4"" of type '" "double &""'"); } + arg4 = reinterpret_cast< double * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMatrix4x4_getOrtho" "', argument " "5"" of type '" "double &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getOrtho" "', argument " "5"" of type '" "double &""'"); } + arg5 = reinterpret_cast< double * >(argp5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMatrix4x4_getOrtho" "', argument " "6"" of type '" "double &""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getOrtho" "', argument " "6"" of type '" "double &""'"); } + arg6 = reinterpret_cast< double * >(argp6); res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofMatrix4x4_getOrtho" "', argument " "7"" of type '" "double &""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getOrtho" "', argument " "7"" of type '" "double &""'"); } + arg7 = reinterpret_cast< double * >(argp7); + result = (bool)((ofMatrix4x4 const *)arg1)->getOrtho(*arg2,*arg3,*arg4,*arg5,*arg6,*arg7); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getFrustum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double *arg2 = 0 ; double *arg3 = 0 ; double *arg4 = 0 ; double *arg5 = 0 ; + double *arg6 = 0 ; double *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; + int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; + void *argp7 = 0 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofMatrix4x4_getFrustum",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getFrustum" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_getFrustum" "', argument " "2"" of type '" "double &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getFrustum" "', argument " "2"" of type '" "double &""'"); } + arg2 = reinterpret_cast< double * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_getFrustum" "', argument " "3"" of type '" "double &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getFrustum" "', argument " "3"" of type '" "double &""'"); } + arg3 = reinterpret_cast< double * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_getFrustum" "', argument " "4"" of type '" "double &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getFrustum" "', argument " "4"" of type '" "double &""'"); } + arg4 = reinterpret_cast< double * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMatrix4x4_getFrustum" "', argument " "5"" of type '" "double &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getFrustum" "', argument " "5"" of type '" "double &""'"); } + arg5 = reinterpret_cast< double * >(argp5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ofMatrix4x4_getFrustum" "', argument " "6"" of type '" "double &""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getFrustum" "', argument " "6"" of type '" "double &""'"); } + arg6 = reinterpret_cast< double * >(argp6); res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofMatrix4x4_getFrustum" "', argument " "7"" of type '" "double &""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getFrustum" "', argument " "7"" of type '" "double &""'"); } + arg7 = reinterpret_cast< double * >(argp7); + result = (bool)((ofMatrix4x4 const *)arg1)->getFrustum(*arg2,*arg3,*arg4,*arg5,*arg6,*arg7); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getPerspective(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; double *arg2 = 0 ; double *arg3 = 0 ; double *arg4 = 0 ; double *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_getPerspective",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getPerspective" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_getPerspective" "', argument " "2"" of type '" "double &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getPerspective" "', argument " "2"" of type '" "double &""'"); } + arg2 = reinterpret_cast< double * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_getPerspective" "', argument " "3"" of type '" "double &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getPerspective" "', argument " "3"" of type '" "double &""'"); } + arg3 = reinterpret_cast< double * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_getPerspective" "', argument " "4"" of type '" "double &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getPerspective" "', argument " "4"" of type '" "double &""'"); } + arg4 = reinterpret_cast< double * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_double, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMatrix4x4_getPerspective" "', argument " "5"" of type '" "double &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getPerspective" "', argument " "5"" of type '" "double &""'"); } + arg5 = reinterpret_cast< double * >(argp5); + result = (bool)((ofMatrix4x4 const *)arg1)->getPerspective(*arg2,*arg3,*arg4,*arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getLookAt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + float arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_getLookAt",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getLookAt" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_getLookAt" "', argument " "2"" of type '" "ofVec3f &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getLookAt" "', argument " "2"" of type '" "ofVec3f &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_getLookAt" "', argument " "3"" of type '" "ofVec3f &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getLookAt" "', argument " "3"" of type '" "ofVec3f &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_getLookAt" "', argument " "4"" of type '" "ofVec3f &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getLookAt" "', argument " "4"" of type '" "ofVec3f &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_getLookAt" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofMatrix4x4 const *)arg1)->getLookAt(*arg2,*arg3,*arg4,arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getLookAt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_getLookAt",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getLookAt" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_getLookAt" "', argument " "2"" of type '" "ofVec3f &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getLookAt" "', argument " "2"" of type '" "ofVec3f &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_getLookAt" "', argument " "3"" of type '" "ofVec3f &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getLookAt" "', argument " "3"" of type '" "ofVec3f &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_getLookAt" "', argument " "4"" of type '" "ofVec3f &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getLookAt" "', argument " "4"" of type '" "ofVec3f &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); ((ofMatrix4x4 const *)arg1)->getLookAt(*arg2,*arg3,*arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getLookAt(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_getLookAt__SWIG_1(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_getLookAt__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_getLookAt'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::getLookAt(ofVec3f &,ofVec3f &,ofVec3f &,float) const\n" + " ofMatrix4x4::getLookAt(ofVec3f &,ofVec3f &,ofVec3f &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_decompose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; ofQuaternion *arg3 = 0 ; ofVec3f *arg4 = 0 ; + ofQuaternion *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_decompose",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_decompose" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_decompose" "', argument " "2"" of type '" "ofVec3f &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_decompose" "', argument " "2"" of type '" "ofVec3f &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofQuaternion, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofMatrix4x4_decompose" "', argument " "3"" of type '" "ofQuaternion &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_decompose" "', argument " "3"" of type '" "ofQuaternion &""'"); } + arg3 = reinterpret_cast< ofQuaternion * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofMatrix4x4_decompose" "', argument " "4"" of type '" "ofVec3f &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_decompose" "', argument " "4"" of type '" "ofVec3f &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofQuaternion, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofMatrix4x4_decompose" "', argument " "5"" of type '" "ofQuaternion &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_decompose" "', argument " "5"" of type '" "ofQuaternion &""'"); } + arg5 = reinterpret_cast< ofQuaternion * >(argp5); ((ofMatrix4x4 const *)arg1)->decompose(*arg2,*arg3,*arg4,*arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getInverseOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getInverseOf",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getInverseOf" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getInverseOf" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ofMatrix4x4::getInverseOf((ofMatrix4x4 const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getTransposedOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getTransposedOf",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getTransposedOf" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getTransposedOf" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ofMatrix4x4::getTransposedOf((ofMatrix4x4 const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getOrthoNormalOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getOrthoNormalOf",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getOrthoNormalOf" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_getOrthoNormalOf" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ofMatrix4x4::getOrthoNormalOf((ofMatrix4x4 const &)*arg1); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->postMult((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->postMult((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMult" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->postMult((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMult(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMult__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMult__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMult__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMult'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMult(ofVec3f const &) const\n" + " ofMatrix4x4::postMult(ofVec4f const &) const\n" " ofMatrix4x4::postMult(ofMatrix4x4 const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->preMult((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->preMult((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMult",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMult" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMult" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->preMult((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMult(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_preMult__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_preMult__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_preMult__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_preMult'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::preMult(ofVec3f const &) const\n" + " ofMatrix4x4::preMult(ofVec4f const &) const\n" " ofMatrix4x4::preMult(ofMatrix4x4 const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___imul__" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___imul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___imul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->operator *=((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofMatrix4x4 result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); + result = ((ofMatrix4x4 const *)arg1)->operator *((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofMatrix4x4(static_cast< const ofMatrix4x4& >(result))), SWIGTYPE_p_ofMatrix4x4, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->operator *((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___mul__" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofMatrix4x4 const *)arg1)->operator *((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4___mul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4___mul____SWIG_2(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultTranslate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->postMultTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultScale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->postMultScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_postMultRotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->postMultRotate((ofQuaternion const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_postMultTranslate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultTranslate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->postMultTranslate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultTranslate(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[5] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMultTranslate__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_postMultTranslate__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultTranslate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultTranslate(ofVec3f const &)\n" + " ofMatrix4x4::postMultTranslate(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_postMultRotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_postMultRotate" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->postMultRotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMultRotate__SWIG_0(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_postMultRotate__SWIG_1(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultRotate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultRotate(ofQuaternion const &)\n" + " ofMatrix4x4::postMultRotate(float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_postMultScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_postMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_postMultScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_postMultScale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_postMultScale" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->postMultScale(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_postMultScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_postMultScale__SWIG_0(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_postMultScale__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_postMultScale'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::postMultScale(ofVec3f const &)\n" + " ofMatrix4x4::postMultScale(float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultScale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->preMultScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultTranslate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultTranslate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->preMultTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_preMultRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_preMultRotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_preMultRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_preMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_preMultRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->preMultRotate((ofQuaternion const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_setRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_setRotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_setRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_setRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_setRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->setRotate((ofQuaternion const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_setTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_setTranslation",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_setTranslation" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_setTranslation" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_setTranslation" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_setTranslation" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->setTranslation(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_setTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_setTranslation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_setTranslation" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_setTranslation" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_setTranslation" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->setTranslation((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_setTranslation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_setTranslation__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_setTranslation__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_setTranslation'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::setTranslation(float,float,float)\n" + " ofMatrix4x4::setTranslation(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_rotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_rotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_rotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_rotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_rotate" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_rotateRad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_rotateRad",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_rotateRad" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_rotateRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_rotateRad" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_rotateRad" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rotateRad(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_rotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_rotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_rotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_rotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->rotate((ofQuaternion const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_rotate__SWIG_1(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_rotate__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_rotate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::rotate(float,float,float,float)\n" + " ofMatrix4x4::rotate(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_translate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_translate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_translate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_translate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_translate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_translate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->translate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_translate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_translate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_translate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_translate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_translate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->translate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_translate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_translate__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_translate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_translate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::translate(float,float,float)\n" + " ofMatrix4x4::translate(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_scale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_scale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_scale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_scale" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->scale(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_scale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_scale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_scale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_scale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->scale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_scale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_scale__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_scale__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_scale'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::scale(float,float,float)\n" + " ofMatrix4x4::scale(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_glRotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_glRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_glRotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_glRotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_glRotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_glRotate" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->glRotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glRotateRad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrix4x4_glRotateRad",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_glRotateRad" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_glRotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_glRotateRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_glRotateRad" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrix4x4_glRotateRad" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->glRotateRad(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_glRotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_glRotate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_glRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_glRotate" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); (arg1)->glRotate((ofQuaternion const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_glRotate__SWIG_1(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_glRotate__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_glRotate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::glRotate(float,float,float,float)\n" + " ofMatrix4x4::glRotate(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glTranslate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_glTranslate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_glTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_glTranslate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_glTranslate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_glTranslate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->glTranslate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glTranslate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_glTranslate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_glTranslate" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_glTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_glTranslate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->glTranslate((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glTranslate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_glTranslate__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_glTranslate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_glTranslate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::glTranslate(float,float,float)\n" + " ofMatrix4x4::glTranslate(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glScale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrix4x4_glScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_glScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrix4x4_glScale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrix4x4_glScale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrix4x4_glScale" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->glScale(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glScale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_glScale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_glScale" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_glScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_glScale" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->glScale((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_glScale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_glScale__SWIG_1(self, args);} } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrix4x4_glScale__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_glScale'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::glScale(float,float,float)\n" + " ofMatrix4x4::glScale(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getRotate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getRotate" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ((ofMatrix4x4 const *)arg1)->getRotate(); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getTranslation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getTranslation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getTranslation" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ((ofMatrix4x4 const *)arg1)->getTranslation(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_getScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4_getScale",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_getScale" "', argument " "1"" of type '" "ofMatrix4x4 const *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = ((ofMatrix4x4 const *)arg1)->getScale(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_transform3x3__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_transform3x3",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_transform3x3" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_transform3x3" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_transform3x3" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_transform3x3" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); + result = ofMatrix4x4::transform3x3((ofVec3f const &)*arg1,(ofMatrix4x4 const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_transform3x3__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrix4x4 *arg1 = 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrix4x4_transform3x3",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMatrix4x4, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4_transform3x3" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_transform3x3" "', argument " "1"" of type '" "ofMatrix4x4 const &""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrix4x4_transform3x3" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrix4x4_transform3x3" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); + result = ofMatrix4x4::transform3x3((ofMatrix4x4 const &)*arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4_transform3x3(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_transform3x3__SWIG_0(self, args);} } } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrix4x4_transform3x3__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrix4x4_transform3x3'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrix4x4::transform3x3(ofVec3f const &,ofMatrix4x4 const &)\n" + " ofMatrix4x4::transform3x3(ofMatrix4x4 const &,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrix4x4___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrix4x4 *arg1 = (ofMatrix4x4 *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrix4x4___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrix4x4___str__" "', argument " "1"" of type '" "ofMatrix4x4 *""'"); } + arg1 = reinterpret_cast< ofMatrix4x4 * >(argp1); result = (char *)ofMatrix4x4___str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofMatrix4x4_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofMatrix4x4, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofQuaternion__v_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofVec4f *arg2 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion__v_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion__v_set" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec4f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion__v_set" "', argument " "2"" of type '" "ofVec4f *""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); if (arg1) (arg1)->_v = *arg2; resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion__v_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion__v_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion__v_get" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (ofVec4f *)& ((arg1)->_v); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofQuaternion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofQuaternion")) SWIG_fail; + result = (ofQuaternion *)new ofQuaternion(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofQuaternion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofQuaternion",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofQuaternion" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofQuaternion" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofQuaternion" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofQuaternion" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofQuaternion *)new ofQuaternion(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofQuaternion__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofQuaternion",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofQuaternion" "', argument " "1"" of type '" "ofVec4f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofQuaternion" "', argument " "1"" of type '" "ofVec4f const &""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (ofQuaternion *)new ofQuaternion((ofVec4f const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofQuaternion__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; ofVec3f *arg2 = 0 ; float val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:new_ofQuaternion",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofQuaternion" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofQuaternion" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofQuaternion" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofQuaternion *)new ofQuaternion(arg1,(ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofQuaternion__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; ofVec3f *arg2 = 0 ; float arg3 ; ofVec3f *arg4 = 0 ; float arg5 ; ofVec3f *arg6 = 0 ; float val1 ; + int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_ofQuaternion",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofQuaternion" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ofQuaternion" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofQuaternion" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofQuaternion" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ofQuaternion" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofQuaternion" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ofQuaternion" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ofQuaternion" "', argument " "6"" of type '" "ofVec3f const &""'"); } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofQuaternion" "', argument " "6"" of type '" "ofVec3f const &""'"); } + arg6 = reinterpret_cast< ofVec3f * >(argp6); + result = (ofQuaternion *)new ofQuaternion(arg1,(ofVec3f const &)*arg2,arg3,(ofVec3f const &)*arg4,arg5,(ofVec3f const &)*arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofQuaternion(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofQuaternion__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofQuaternion__SWIG_2(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofQuaternion__SWIG_3(self, args);} } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofQuaternion__SWIG_1(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofQuaternion__SWIG_4(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofQuaternion'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::ofQuaternion()\n" + " ofQuaternion::ofQuaternion(float,float,float,float)\n" " ofQuaternion::ofQuaternion(ofVec4f const &)\n" + " ofQuaternion::ofQuaternion(float,ofVec3f const &)\n" + " ofQuaternion::ofQuaternion(float,ofVec3f const &,float,ofVec3f const &,float,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofQuaternion_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_set" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofQuaternion_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofQuaternion_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofQuaternion_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_set" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); (arg1)->set((ofVec4f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_set" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_set" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->set((ofMatrix4x4 const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion_set__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofMatrix4x4, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion_set__SWIG_2(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion_set'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::set(float,float,float,float)\n" + " ofQuaternion::set(ofVec4f const &)\n" " ofQuaternion::set(ofMatrix4x4 const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___getitem__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___getitem__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofQuaternion const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___getitem____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___getitem____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::operator [](int)\n" " ofQuaternion::operator [](int) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion_get",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_get" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_get" "', argument " "2"" of type '" "ofMatrix4x4 &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_get" "', argument " "2"" of type '" "ofMatrix4x4 &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); ((ofQuaternion const *)arg1)->get(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_x(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_x",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_x" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (float *) &(arg1)->x(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_y(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_y",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_y" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (float *) &(arg1)->y(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_z(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_z",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_z" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (float *) &(arg1)->z(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_w(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_w",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_w" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (float *) &(arg1)->w(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_asVec4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_asVec4",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_asVec4" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->asVec4(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_asVec3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_asVec3",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_asVec3" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->asVec3(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_zeroRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_zeroRotation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_zeroRotation" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (bool)((ofQuaternion const *)arg1)->zeroRotation(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_length",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_length" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (float)((ofQuaternion const *)arg1)->length(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_length2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_length2",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_length2" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (float)((ofQuaternion const *)arg1)->length2(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_conj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_conj",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_conj" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->conj(); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_inverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_inverse",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_inverse" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->inverse(); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofQuaternion_makeRotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_makeRotate" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion_makeRotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofQuaternion_makeRotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofQuaternion_makeRotate" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->makeRotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofQuaternion_makeRotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_makeRotate" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion_makeRotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->makeRotate(arg2,(ofVec3f const &)*arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; float arg4 ; + ofVec3f *arg5 = 0 ; float arg6 ; ofVec3f *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + void *argp3 = 0 ; int res3 = 0 ; float val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; float val6 ; int ecode6 = 0 ; + void *argp7 = 0 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:ofQuaternion_makeRotate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_makeRotate" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion_makeRotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofQuaternion_makeRotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofQuaternion_makeRotate" "', argument " "5"" of type '" "ofVec3f const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate" "', argument " "5"" of type '" "ofVec3f const &""'"); } + arg5 = reinterpret_cast< ofVec3f * >(argp5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofQuaternion_makeRotate" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ofQuaternion_makeRotate" "', argument " "7"" of type '" "ofVec3f const &""'"); } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate" "', argument " "7"" of type '" "ofVec3f const &""'"); } + arg7 = reinterpret_cast< ofVec3f * >(argp7); + (arg1)->makeRotate(arg2,(ofVec3f const &)*arg3,arg4,(ofVec3f const &)*arg5,arg6,(ofVec3f const &)*arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofQuaternion_makeRotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_makeRotate" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_makeRotate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->makeRotate((ofVec3f const &)*arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[8] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion_makeRotate__SWIG_3(self, args);} } } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion_makeRotate__SWIG_1(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion_makeRotate__SWIG_0(self, args);} } } } } } if (argc == 7) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion_makeRotate__SWIG_2(self, args);} } } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion_makeRotate'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::makeRotate(float,float,float,float)\n" + " ofQuaternion::makeRotate(float,ofVec3f const &)\n" + " ofQuaternion::makeRotate(float,ofVec3f const &,float,ofVec3f const &,float,ofVec3f const &)\n" + " ofQuaternion::makeRotate(ofVec3f const &,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion_makeRotate_original(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofQuaternion_makeRotate_original",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_makeRotate_original" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_makeRotate_original" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate_original" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofQuaternion_makeRotate_original" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_makeRotate_original" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); (arg1)->makeRotate_original((ofVec3f const &)*arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_getRotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float *arg2 = 0 ; float *arg3 = 0 ; float *arg4 = 0 ; + float *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; + void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofQuaternion_getRotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_getRotate" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_getRotate" "', argument " "2"" of type '" "float &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_getRotate" "', argument " "2"" of type '" "float &""'"); } + arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofQuaternion_getRotate" "', argument " "3"" of type '" "float &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_getRotate" "', argument " "3"" of type '" "float &""'"); } + arg3 = reinterpret_cast< float * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofQuaternion_getRotate" "', argument " "4"" of type '" "float &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_getRotate" "', argument " "4"" of type '" "float &""'"); } + arg4 = reinterpret_cast< float * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofQuaternion_getRotate" "', argument " "5"" of type '" "float &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_getRotate" "', argument " "5"" of type '" "float &""'"); } + arg5 = reinterpret_cast< float * >(argp5); ((ofQuaternion const *)arg1)->getRotate(*arg2,*arg3,*arg4,*arg5); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_getRotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float *arg2 = 0 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofQuaternion_getRotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_getRotate" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_float, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion_getRotate" "', argument " "2"" of type '" "float &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_getRotate" "', argument " "2"" of type '" "float &""'"); } + arg2 = reinterpret_cast< float * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofQuaternion_getRotate" "', argument " "3"" of type '" "ofVec3f &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_getRotate" "', argument " "3"" of type '" "ofVec3f &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); ((ofQuaternion const *)arg1)->getRotate(*arg2,*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_getRotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion_getRotate__SWIG_1(self, args);} } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion_getRotate__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion_getRotate'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::getRotate(float &,float &,float &,float &) const\n" + " ofQuaternion::getRotate(float &,ofVec3f &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion_getEuler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_getEuler",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_getEuler" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->getEuler(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_slerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; ofQuaternion *arg3 = 0 ; ofQuaternion *arg4 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofQuaternion_slerp",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_slerp" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion_slerp" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofQuaternion_slerp" "', argument " "3"" of type '" "ofQuaternion const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_slerp" "', argument " "3"" of type '" "ofQuaternion const &""'"); } + arg3 = reinterpret_cast< ofQuaternion * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofQuaternion_slerp" "', argument " "4"" of type '" "ofQuaternion const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion_slerp" "', argument " "4"" of type '" "ofQuaternion const &""'"); } + arg4 = reinterpret_cast< ofQuaternion * >(argp4); + (arg1)->slerp(arg2,(ofQuaternion const &)*arg3,(ofQuaternion const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion_normalize" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); (arg1)->normalize(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___eq__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___eq__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___eq__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (bool)((ofQuaternion const *)arg1)->operator ==((ofQuaternion const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___ne__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___ne__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___ne__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (bool)((ofQuaternion const *)arg1)->operator !=((ofQuaternion const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofQuaternion const *)arg1)->operator *(arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator *((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___mul__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofQuaternion const *)arg1)->operator *((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___mul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___mul____SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___mul____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofQuaternion___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___imul__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofQuaternion *) &(arg1)->operator *=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___imul__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___imul__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator *=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___imul____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___imul____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::operator *=(float)\n" + " ofQuaternion::operator *=(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___div__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofQuaternion const *)arg1)->operator /(arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___div__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___div__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator /((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___div____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___div____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofQuaternion___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___idiv__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofQuaternion *) &(arg1)->operator /=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___idiv__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___idiv__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator /=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofQuaternion___idiv____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofQuaternion, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofQuaternion___idiv____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofQuaternion___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofQuaternion::operator /=(float)\n" + " ofQuaternion::operator /=(ofQuaternion const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofQuaternion___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___add__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___add__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___add__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator +((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___iadd__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___iadd__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___iadd__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator +=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___isub__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___isub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___isub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = (ofQuaternion *) &(arg1)->operator -=((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; ofQuaternion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofQuaternion___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___sub__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofQuaternion, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofQuaternion___sub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofQuaternion___sub__" "', argument " "2"" of type '" "ofQuaternion const &""'"); } + arg2 = reinterpret_cast< ofQuaternion * >(argp2); + result = ((ofQuaternion const *)arg1)->operator -((ofQuaternion const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofQuaternion result; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___neg__" "', argument " "1"" of type '" "ofQuaternion const *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = ((ofQuaternion const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofQuaternion(static_cast< const ofQuaternion& >(result))), SWIGTYPE_p_ofQuaternion, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofQuaternion___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofQuaternion___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofQuaternion___str__" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); result = (char *)ofQuaternion___str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofQuaternion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofQuaternion *arg1 = (ofQuaternion *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofQuaternion",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofQuaternion, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofQuaternion" "', argument " "1"" of type '" "ofQuaternion *""'"); } + arg1 = reinterpret_cast< ofQuaternion * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofQuaternion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofQuaternion, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofVec2f_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_x_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_x_set" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_x_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->x = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_x_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_x_get" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float) ((arg1)->x); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_y_set" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_y_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->y = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_y_get" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float) ((arg1)->y); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec2f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVec2f")) SWIG_fail; result = (ofVec2f *)new ofVec2f(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec2f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec2f",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofVec2f" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofVec2f *)new ofVec2f(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec2f__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_ofVec2f",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofVec2f" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofVec2f" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *)new ofVec2f(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec2f__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec2f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVec2f" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVec2f" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (ofVec2f *)new ofVec2f((ofVec3f const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec2f__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec2f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVec2f" "', argument " "1"" of type '" "ofVec4f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVec2f" "', argument " "1"" of type '" "ofVec4f const &""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (ofVec2f *)new ofVec2f((ofVec4f const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec2f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofVec2f__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVec2f__SWIG_3(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVec2f__SWIG_4(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofVec2f__SWIG_1(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofVec2f__SWIG_2(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofVec2f'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::ofVec2f()\n" " ofVec2f::ofVec2f(float)\n" + " ofVec2f::ofVec2f(float,float)\n" " ofVec2f::ofVec2f(ofVec3f const &)\n" " ofVec2f::ofVec2f(ofVec4f const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getPtr" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float *)(arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getPtr" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float *)((ofVec2f const *)arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_getPtr__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_getPtr'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::getPtr()\n" " ofVec2f::getPtr() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___getitem__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___getitem__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofVec2f const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___getitem____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___getitem____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::operator [](int)\n" " ofVec2f::operator [](int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_set" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_set" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_set" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_set" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); (arg1)->set((ofVec2f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_set" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_set__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_set__SWIG_2(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_set__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_set'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::set(float,float)\n" " ofVec2f::set(ofVec2f const &)\n" + " ofVec2f::set(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___eq__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___eq__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___eq__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->operator ==((ofVec2f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___ne__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___ne__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___ne__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->operator !=((ofVec2f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_match__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_match",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_match" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_match" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_match" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_match" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec2f const *)arg1)->match((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_match__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_match",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_match" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_match" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_match" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->match((ofVec2f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_match(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_match__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_match__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_match'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::match(ofVec2f const &,float) const\n" + " ofVec2f::match(ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_isAligned__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_isAligned",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_isAligned" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_isAligned" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_isAligned" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_isAligned" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec2f const *)arg1)->isAligned((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_isAligned__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_isAligned",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_isAligned" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_isAligned" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_isAligned" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->isAligned((ofVec2f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_isAligned(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_isAligned__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_isAligned__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_isAligned'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::isAligned(ofVec2f const &,float) const\n" + " ofVec2f::isAligned(ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_isAlignedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_isAlignedRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_isAlignedRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_isAlignedRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_isAlignedRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_isAlignedRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec2f const *)arg1)->isAlignedRad((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_isAlignedRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_isAlignedRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_isAlignedRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_isAlignedRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_isAlignedRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->isAlignedRad((ofVec2f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_isAlignedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_isAlignedRad__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_isAlignedRad__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_isAlignedRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::isAlignedRad(ofVec2f const &,float) const\n" + " ofVec2f::isAlignedRad(ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_align__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_align",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_align" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_align" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_align" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_align" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec2f const *)arg1)->align((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_align__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_align",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_align" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_align" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_align" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->align((ofVec2f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_align(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_align__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_align__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_align'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::align(ofVec2f const &,float) const\n" + " ofVec2f::align(ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_alignRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_alignRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_alignRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_alignRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_alignRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_alignRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec2f const *)arg1)->alignRad((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_alignRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_alignRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_alignRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_alignRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_alignRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (bool)((ofVec2f const *)arg1)->alignRad((ofVec2f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_alignRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_alignRad__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_alignRad__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_alignRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::alignRad(ofVec2f const &,float) const\n" + " ofVec2f::alignRad(ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___add__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___add__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___add__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator +((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___add__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___add__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator +(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___iadd__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___iadd__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___iadd__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator +=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___iadd__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___iadd__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator +=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::operator +=(ofVec2f const &)\n" " ofVec2f::operator +=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___sub__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___sub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___sub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator -((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___sub__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___sub__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator -(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___neg__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___isub__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___isub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___isub__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator -=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___isub__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___isub__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator -=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___isub____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::operator -=(ofVec2f const &)\n" " ofVec2f::operator -=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___mul__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___mul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___mul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator *((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___mul__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___mul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator *(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___imul__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___imul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___imul__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator *=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___imul__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___imul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator *=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::operator *=(ofVec2f const &)\n" " ofVec2f::operator *=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___div__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___div__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___div__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->operator /((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___div__" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___div__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->operator /(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec2f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___idiv__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f___idiv__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f___idiv__" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->operator /=((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___idiv__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f___idiv__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->operator /=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::operator /=(ofVec2f const &)\n" " ofVec2f::operator /=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_getScaled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_getScaled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getScaled" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getScaled" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->getScaled(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_scale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_scale" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->scale(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getRotated__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_getRotated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getRotated" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getRotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->getRotated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getRotated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec2f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_getRotated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getRotated" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getRotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_getRotated" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_getRotated" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); result = ((ofVec2f const *)arg1)->getRotated(arg2,(ofVec2f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getRotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_getRotated__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_getRotated__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_getRotated'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::getRotated(float) const\n" + " ofVec2f::getRotated(float,ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_getRotatedRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getRotatedRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->getRotatedRad(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_getRotatedRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getRotatedRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_getRotatedRad" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_getRotatedRad" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); result = ((ofVec2f const *)arg1)->getRotatedRad(arg2,(ofVec2f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getRotatedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_getRotatedRad__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_getRotatedRad__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_getRotatedRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::getRotatedRad(float) const\n" + " ofVec2f::getRotatedRad(float,ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rotate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotate" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->rotate(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_rotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotate" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_rotate" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_rotate" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); result = (ofVec2f *) &(arg1)->rotate(arg2,(ofVec2f const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_rotate__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_rotate__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_rotate'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::rotate(float)\n" " ofVec2f::rotate(float,ofVec2f const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rotateRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotateRad" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->rotateRad(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_rotateRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotateRad" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_rotateRad" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_rotateRad" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); result = (ofVec2f *) &(arg1)->rotateRad(arg2,(ofVec2f const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotateRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_rotateRad__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_rotateRad__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_rotateRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::rotateRad(float)\n" " ofVec2f::rotateRad(float,ofVec2f const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_getMapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; ofVec2f *arg3 = 0 ; ofVec2f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec2f_getMapped",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getMapped" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_getMapped" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_getMapped" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_getMapped" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_getMapped" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec2f_getMapped" "', argument " "4"" of type '" "ofVec2f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_getMapped" "', argument " "4"" of type '" "ofVec2f const &""'"); } + arg4 = reinterpret_cast< ofVec2f * >(argp4); + result = ((ofVec2f const *)arg1)->getMapped((ofVec2f const &)*arg2,(ofVec2f const &)*arg3,(ofVec2f const &)*arg4); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_map(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; ofVec2f *arg3 = 0 ; ofVec2f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec2f_map",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_map" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_map" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_map" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_map" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_map" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec2f_map" "', argument " "4"" of type '" "ofVec2f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_map" "', argument " "4"" of type '" "ofVec2f const &""'"); } + arg4 = reinterpret_cast< ofVec2f * >(argp4); + result = (ofVec2f *) &(arg1)->map((ofVec2f const &)*arg2,(ofVec2f const &)*arg3,(ofVec2f const &)*arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_distance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_distance" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_distance" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_distance" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (float)((ofVec2f const *)arg1)->distance((ofVec2f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_squareDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_squareDistance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_squareDistance" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_squareDistance" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_squareDistance" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (float)((ofVec2f const *)arg1)->squareDistance((ofVec2f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_getInterpolated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getInterpolated" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_getInterpolated" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_getInterpolated" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_getInterpolated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofVec2f const *)arg1)->getInterpolated((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec2f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_interpolate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_interpolate" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_interpolate" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_interpolate" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_interpolate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofVec2f *) &(arg1)->interpolate((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getMiddle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_getMiddle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getMiddle" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_getMiddle" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_getMiddle" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->getMiddle((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_middle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_middle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_middle" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_middle" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_middle" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (ofVec2f *) &(arg1)->middle((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_average(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = (ofVec2f *) 0 ; std::size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_average",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_average" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec2f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_average" "', argument " "2"" of type '" "ofVec2f const *""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_average" "', argument " "3"" of type '" "std::size_t""'"); } + arg3 = static_cast< std::size_t >(val3); result = (ofVec2f *) &(arg1)->average((ofVec2f const *)arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getNormalized" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_normalize" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (ofVec2f *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_limit",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_limit" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_limit" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->limit(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_length",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_length" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float)((ofVec2f const *)arg1)->length(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_lengthSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_lengthSquared",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_lengthSquared" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float)((ofVec2f const *)arg1)->lengthSquared(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_angle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_angle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_angle" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_angle" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_angle" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (float)((ofVec2f const *)arg1)->angle((ofVec2f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_angleRad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_angleRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_angleRad" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_angleRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_angleRad" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (float)((ofVec2f const *)arg1)->angleRad((ofVec2f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_getPerpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_getPerpendicular",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_getPerpendicular" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->getPerpendicular(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_perpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_perpendicular",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_perpendicular" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (ofVec2f *) &(arg1)->perpendicular(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_dot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_dot",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_dot" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_dot" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_dot" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = (float)((ofVec2f const *)arg1)->dot((ofVec2f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rescaled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rescaled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rescaled" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rescaled" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->rescaled(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rescale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rescale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rescale" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rescale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec2f *) &(arg1)->rescale(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec2f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotated__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_rotated",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotated" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->rotated(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_normalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_normalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_normalized" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->normalized(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_limited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_limited",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_limited" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_limited" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec2f const *)arg1)->limited(arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_perpendiculared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f_perpendiculared",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_perpendiculared" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = ((ofVec2f const *)arg1)->perpendiculared(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_interpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_interpolated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_interpolated" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_interpolated" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_interpolated" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec2f_interpolated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofVec2f const *)arg1)->interpolated((ofVec2f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_middled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_middled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_middled" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_middled" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_middled" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); result = ((ofVec2f const *)arg1)->middled((ofVec2f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_mapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; ofVec2f *arg3 = 0 ; ofVec2f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec2f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec2f_mapped",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_mapped" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_mapped" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_mapped" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_mapped" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_mapped" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec2f_mapped" "', argument " "4"" of type '" "ofVec2f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_mapped" "', argument " "4"" of type '" "ofVec2f const &""'"); } + arg4 = reinterpret_cast< ofVec2f * >(argp4); + result = ((ofVec2f const *)arg1)->mapped((ofVec2f const &)*arg2,(ofVec2f const &)*arg3,(ofVec2f const &)*arg4); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_distanceSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; ofVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec2f_distanceSquared",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_distanceSquared" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec2f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec2f_distanceSquared" "', argument " "2"" of type '" "ofVec2f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_distanceSquared" "', argument " "2"" of type '" "ofVec2f const &""'"); } + arg2 = reinterpret_cast< ofVec2f * >(argp2); + result = (float)((ofVec2f const *)arg1)->distanceSquared((ofVec2f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; float arg2 ; ofVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec2f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec2f_rotated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f_rotated" "', argument " "1"" of type '" "ofVec2f const *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec2f_rotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec2f_rotated" "', argument " "3"" of type '" "ofVec2f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec2f_rotated" "', argument " "3"" of type '" "ofVec2f const &""'"); } + arg3 = reinterpret_cast< ofVec2f * >(argp3); result = ((ofVec2f const *)arg1)->rotated(arg2,(ofVec2f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_rotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec2f_rotated__SWIG_0(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec2f_rotated__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec2f_rotated'.\n" + " Possible C/C++ prototypes are:\n" " ofVec2f::rotated(float) const\n" + " ofVec2f::rotated(float,ofVec2f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec2f_zero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f result; if (!PyArg_ParseTuple(args,(char *)":ofVec2f_zero")) SWIG_fail; result = ofVec2f::zero(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f_one(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f result; if (!PyArg_ParseTuple(args,(char *)":ofVec2f_one")) SWIG_fail; result = ofVec2f::one(); + resultobj = SWIG_NewPointerObj((new ofVec2f(static_cast< const ofVec2f& >(result))), SWIGTYPE_p_ofVec2f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec2f___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec2f___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec2f___str__" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (char *)ofVec2f___str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofVec2f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = (ofVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVec2f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec2f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVec2f" "', argument " "1"" of type '" "ofVec2f *""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofVec2f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofVec2f, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofVec3f_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_x_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_x_set" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_x_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->x = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_x_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_x_get" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float) ((arg1)->x); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_y_set" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_y_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->y = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_y_get" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float) ((arg1)->y); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_z_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_z_set" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_z_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->z = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_z_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_z_get" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float) ((arg1)->z); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec3f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVec3f")) SWIG_fail; result = (ofVec3f *)new ofVec3f(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec3f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:new_ofVec3f",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofVec3f" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofVec3f" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofVec3f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofVec3f *)new ofVec3f(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec3f__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_ofVec3f",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofVec3f" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofVec3f" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *)new ofVec3f(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec3f__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec3f",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofVec3f" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofVec3f *)new ofVec3f(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec3f__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec3f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVec3f" "', argument " "1"" of type '" "ofVec2f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVec3f" "', argument " "1"" of type '" "ofVec2f const &""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (ofVec3f *)new ofVec3f((ofVec2f const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec3f__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec3f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVec3f" "', argument " "1"" of type '" "ofVec4f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVec3f" "', argument " "1"" of type '" "ofVec4f const &""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (ofVec3f *)new ofVec3f((ofVec4f const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec3f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofVec3f__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVec3f__SWIG_4(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVec3f__SWIG_5(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofVec3f__SWIG_3(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofVec3f__SWIG_2(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofVec3f__SWIG_1(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofVec3f'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::ofVec3f()\n" " ofVec3f::ofVec3f(float,float,float)\n" + " ofVec3f::ofVec3f(float,float)\n" " ofVec3f::ofVec3f(float)\n" " ofVec3f::ofVec3f(ofVec2f const &)\n" + " ofVec3f::ofVec3f(ofVec4f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getPtr" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float *)(arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getPtr" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float *)((ofVec3f const *)arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getPtr__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_getPtr'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::getPtr()\n" " ofVec3f::getPtr() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___getitem__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___getitem__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofVec3f const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___getitem____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___getitem____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::operator [](int)\n" " ofVec3f::operator [](int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_set",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_set" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->set(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_set",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_set" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->set(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_set" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_set" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_set" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); (arg1)->set((ofVec3f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_set" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->set(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_set__SWIG_2(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_set__SWIG_3(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_set__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_set__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_set'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::set(float,float,float)\n" " ofVec3f::set(float,float)\n" + " ofVec3f::set(ofVec3f const &)\n" " ofVec3f::set(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___eq__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___eq__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___eq__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->operator ==((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___ne__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___ne__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___ne__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->operator !=((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_match__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_match",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_match" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_match" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_match" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_match" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec3f const *)arg1)->match((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_match__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_match",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_match" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_match" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_match" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->match((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_match(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_match__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_match__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_match'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::match(ofVec3f const &,float) const\n" + " ofVec3f::match(ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_isAligned__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_isAligned",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_isAligned" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_isAligned" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_isAligned" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_isAligned" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec3f const *)arg1)->isAligned((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_isAligned__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_isAligned",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_isAligned" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_isAligned" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_isAligned" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->isAligned((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_isAligned(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_isAligned__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_isAligned__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_isAligned'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::isAligned(ofVec3f const &,float) const\n" + " ofVec3f::isAligned(ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_isAlignedRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_isAlignedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_isAlignedRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_isAlignedRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_isAlignedRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec3f const *)arg1)->isAlignedRad((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_isAlignedRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_isAlignedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_isAlignedRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_isAlignedRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->isAlignedRad((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_isAlignedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_isAlignedRad__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_isAlignedRad__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_isAlignedRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::isAlignedRad(ofVec3f const &,float) const\n" + " ofVec3f::isAlignedRad(ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_align__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_align",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_align" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_align" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec3f const *)arg1)->align((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_align__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_align",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_align" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_align" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->align((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_align(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_align__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_align__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_align'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::align(ofVec3f const &,float) const\n" + " ofVec3f::align(ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_alignRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_alignRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_alignRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_alignRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_alignRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_alignRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec3f const *)arg1)->alignRad((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_alignRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_alignRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_alignRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_alignRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_alignRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (bool)((ofVec3f const *)arg1)->alignRad((ofVec3f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_alignRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_alignRad__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_alignRad__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_alignRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::alignRad(ofVec3f const &,float) const\n" + " ofVec3f::alignRad(ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___add__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___add__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___add__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator +((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___add__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___add__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator +(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___iadd__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___iadd__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___iadd__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator +=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___iadd__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___iadd__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator +=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::operator +=(ofVec3f const &)\n" " ofVec3f::operator +=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___sub__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___sub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___sub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator -((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___sub__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___sub__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator -(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___sub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___sub____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___neg__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ((ofVec3f const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___isub__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___isub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___isub__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator -=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___isub__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___isub__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator -=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___isub____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___isub____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::operator -=(ofVec3f const &)\n" " ofVec3f::operator -=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___mul__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___mul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator *((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___mul__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___mul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator *(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___imul__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___imul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___imul__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator *=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___imul__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___imul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator *=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::operator *=(ofVec3f const &)\n" " ofVec3f::operator *=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___div__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___div__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___div__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->operator /((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___div__" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___div__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->operator /(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec3f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___idiv__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f___idiv__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f___idiv__" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->operator /=((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___idiv__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f___idiv__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->operator /=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::operator /=(ofVec3f const &)\n" " ofVec3f::operator /=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_getScaled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_getScaled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getScaled" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getScaled" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->getScaled(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_scale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_scale" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->scale(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_getRotated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotated" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = ((ofVec3f const *)arg1)->getRotated(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotated",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotated" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_getRotated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_getRotated" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ((ofVec3f const *)arg1)->getRotated(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotated__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotated",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotated" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_getRotated" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotated" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + result = ((ofVec3f const *)arg1)->getRotated(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getRotated__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getRotated__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_getRotated__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_getRotated'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::getRotated(float,ofVec3f const &) const\n" + " ofVec3f::getRotated(float,float,float) const\n" + " ofVec3f::getRotated(float,ofVec3f const &,ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_getRotatedRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getRotatedRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getRotatedRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getRotatedRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + result = ((ofVec3f const *)arg1)->getRotatedRad(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getRotatedRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getRotatedRad__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_getRotatedRad__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_getRotatedRad__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_getRotatedRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::getRotatedRad(float,ofVec3f const &) const\n" + " ofVec3f::getRotatedRad(float,float,float) const\n" + " ofVec3f::getRotatedRad(float,ofVec3f const &,ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_rotate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotate" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = (ofVec3f *) &(arg1)->rotate(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotate" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_rotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofVec3f *) &(arg1)->rotate(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotate" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotate" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_rotate" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotate" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + result = (ofVec3f *) &(arg1)->rotate(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_rotate__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_rotate__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_rotate__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_rotate'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::rotate(float,ofVec3f const &)\n" " ofVec3f::rotate(float,float,float)\n" + " ofVec3f::rotate(float,ofVec3f const &,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_rotateRad",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotateRad" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = (ofVec3f *) &(arg1)->rotateRad(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotateRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotateRad" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_rotateRad" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofVec3f *) &(arg1)->rotateRad(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotateRad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotateRad" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotateRad" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotateRad" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_rotateRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotateRad" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + result = (ofVec3f *) &(arg1)->rotateRad(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotateRad(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_rotateRad__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_rotateRad__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_rotateRad__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_rotateRad'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::rotateRad(float,ofVec3f const &)\n" + " ofVec3f::rotateRad(float,float,float)\n" " ofVec3f::rotateRad(float,ofVec3f const &,ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_getMapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; ofVec3f *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVec3f_getMapped",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getMapped" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_getMapped" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getMapped" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_getMapped" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getMapped" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_getMapped" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getMapped" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofVec3f_getMapped" "', argument " "5"" of type '" "ofVec3f const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getMapped" "', argument " "5"" of type '" "ofVec3f const &""'"); } + arg5 = reinterpret_cast< ofVec3f * >(argp5); + result = ((ofVec3f const *)arg1)->getMapped((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,(ofVec3f const &)*arg5); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_map(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; ofVec3f *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVec3f_map",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_map" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_map" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_map" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_map" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_map" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_map" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_map" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofVec3f_map" "', argument " "5"" of type '" "ofVec3f const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_map" "', argument " "5"" of type '" "ofVec3f const &""'"); } + arg5 = reinterpret_cast< ofVec3f * >(argp5); + result = (ofVec3f *) &(arg1)->map((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,(ofVec3f const &)*arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_distance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_distance" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_distance" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_distance" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->distance((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_squareDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_squareDistance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_squareDistance" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_squareDistance" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_squareDistance" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->squareDistance((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_getInterpolated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getInterpolated" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_getInterpolated" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getInterpolated" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_getInterpolated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofVec3f const *)arg1)->getInterpolated((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_interpolate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_interpolate" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_interpolate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_interpolate" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_interpolate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofVec3f *) &(arg1)->interpolate((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getMiddle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_getMiddle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getMiddle" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_getMiddle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getMiddle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->getMiddle((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_middle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_middle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_middle" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_middle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_middle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->middle((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_average(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = (ofVec3f *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_average",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_average" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_average" "', argument " "2"" of type '" "ofVec3f const *""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_average" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (ofVec3f *) &(arg1)->average((ofVec3f const *)arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getNormalized" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ((ofVec3f const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_normalize" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (ofVec3f *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getLimited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_getLimited",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getLimited" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_getLimited" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->getLimited(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_limit",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_limit" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_limit" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->limit(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_length",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_length" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)((ofVec3f const *)arg1)->length(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_lengthSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_lengthSquared",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_lengthSquared" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)((ofVec3f const *)arg1)->lengthSquared(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_angle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_angle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_angle" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_angle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_angle" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->angle((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_angleRad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_angleRad",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_angleRad" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_angleRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_angleRad" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->angleRad((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getPerpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_getPerpendicular",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getPerpendicular" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_getPerpendicular" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getPerpendicular" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->getPerpendicular((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_perpendicular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_perpendicular",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_perpendicular" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_perpendicular" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_perpendicular" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->perpendicular((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_getCrossed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_getCrossed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_getCrossed" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_getCrossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_getCrossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->getCrossed((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_cross(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_cross",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_cross" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_cross" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_cross" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (ofVec3f *) &(arg1)->cross((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_dot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_dot",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_dot" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_dot" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_dot" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = (float)((ofVec3f const *)arg1)->dot((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rescaled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_rescaled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rescaled" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rescaled" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->rescaled(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rescale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_rescale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rescale" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rescale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec3f *) &(arg1)->rescale(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotated__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_rotated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotated" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); result = ((ofVec3f const *)arg1)->rotated(arg2,(ofVec3f const &)*arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotated__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotated",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotated" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_rotated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec3f_rotated" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (arg1)->rotated(arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_normalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f_normalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_normalized" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = ((ofVec3f const *)arg1)->normalized(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_limited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_limited",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_limited" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_limited" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec3f const *)arg1)->limited(arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_crossed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_crossed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_crossed" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_crossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_crossed" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->crossed((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_perpendiculared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_perpendiculared",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_perpendiculared" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_perpendiculared" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_perpendiculared" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->perpendiculared((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_mapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; ofVec3f *arg5 = 0 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; + int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVec3f_mapped",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_mapped" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_mapped" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_mapped" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_mapped" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_mapped" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_mapped" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_mapped" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofVec3f_mapped" "', argument " "5"" of type '" "ofVec3f const &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_mapped" "', argument " "5"" of type '" "ofVec3f const &""'"); } + arg5 = reinterpret_cast< ofVec3f * >(argp5); + result = ((ofVec3f const *)arg1)->mapped((ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,(ofVec3f const &)*arg5); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_distanceSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_distanceSquared",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_distanceSquared" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_distanceSquared" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_distanceSquared" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); + result = (float)((ofVec3f const *)arg1)->distanceSquared((ofVec3f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_interpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec3f_interpolated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_interpolated" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_interpolated" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_interpolated" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec3f_interpolated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofVec3f const *)arg1)->interpolated((ofVec3f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_middled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; ofVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec3f_middled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_middled" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec3f_middled" "', argument " "2"" of type '" "ofVec3f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_middled" "', argument " "2"" of type '" "ofVec3f const &""'"); } + arg2 = reinterpret_cast< ofVec3f * >(argp2); result = ((ofVec3f const *)arg1)->middled((ofVec3f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotated__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; float arg2 ; ofVec3f *arg3 = 0 ; ofVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofVec3f result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVec3f_rotated",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f_rotated" "', argument " "1"" of type '" "ofVec3f const *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec3f_rotated" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofVec3f_rotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotated" "', argument " "3"" of type '" "ofVec3f const &""'"); } + arg3 = reinterpret_cast< ofVec3f * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofVec3f_rotated" "', argument " "4"" of type '" "ofVec3f const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec3f_rotated" "', argument " "4"" of type '" "ofVec3f const &""'"); } + arg4 = reinterpret_cast< ofVec3f * >(argp4); + result = ((ofVec3f const *)arg1)->rotated(arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_rotated(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_rotated__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec3f_rotated__SWIG_2(self, args);} } } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec3f_rotated__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec3f_rotated'.\n" + " Possible C/C++ prototypes are:\n" " ofVec3f::rotated(float,ofVec3f const &) const\n" + " ofVec3f::rotated(float,float,float)\n" " ofVec3f::rotated(float,ofVec3f const &,ofVec3f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec3f_zero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)":ofVec3f_zero")) SWIG_fail; result = ofVec3f::zero(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f_one(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f result; if (!PyArg_ParseTuple(args,(char *)":ofVec3f_one")) SWIG_fail; result = ofVec3f::one(); + resultobj = SWIG_NewPointerObj((new ofVec3f(static_cast< const ofVec3f& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec3f___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec3f___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec3f___str__" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (char *)ofVec3f___str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofVec3f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = (ofVec3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVec3f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec3f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVec3f" "', argument " "1"" of type '" "ofVec3f *""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofVec3f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofVec3f, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofVec4f_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_x_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_x_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_x_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->x = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_x_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_x_get" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float) ((arg1)->x); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_y_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_y_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->y = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_y_get" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float) ((arg1)->y); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_z_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_z_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_z_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->z = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_z_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_z_get" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float) ((arg1)->z); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_w_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_w_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_w_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_w_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->w = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_w_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_w_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_w_get" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float) ((arg1)->w); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec4f__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVec4f")) SWIG_fail; result = (ofVec4f *)new ofVec4f(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec4f__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec4f",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofVec4f" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (ofVec4f *)new ofVec4f(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec4f__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofVec4f",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofVec4f" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofVec4f" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofVec4f" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofVec4f" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (ofVec4f *)new ofVec4f(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec4f__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec4f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVec4f" "', argument " "1"" of type '" "ofVec2f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVec4f" "', argument " "1"" of type '" "ofVec2f const &""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (ofVec4f *)new ofVec4f((ofVec2f const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec4f__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofVec4f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofVec4f" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofVec4f" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (ofVec4f *)new ofVec4f((ofVec3f const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofVec4f(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofVec4f__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVec4f__SWIG_3(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofVec4f__SWIG_4(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_ofVec4f__SWIG_1(self, args);} } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofVec4f__SWIG_2(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofVec4f'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::ofVec4f()\n" " ofVec4f::ofVec4f(float)\n" + " ofVec4f::ofVec4f(float,float,float,float)\n" " ofVec4f::ofVec4f(ofVec2f const &)\n" + " ofVec4f::ofVec4f(ofVec3f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getPtr" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float *)(arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_getPtr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getPtr" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float *)((ofVec4f const *)arg1)->getPtr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_getPtr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f_getPtr__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f_getPtr__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f_getPtr'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::getPtr()\n" " ofVec4f::getPtr() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___getitem__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float *) &(arg1)->operator [](arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVec4f *arg1 = (ofVec4f *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___getitem__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___getitem__" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (float)((ofVec4f const *)arg1)->operator [](arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___getitem____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___getitem____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___getitem__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::operator [](int)\n" " ofVec4f::operator [](int) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVec4f_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_set" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVec4f_set" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVec4f_set" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->set(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_set" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_set" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); (arg1)->set((ofVec4f const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_set(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f_set__SWIG_1(self, args);} } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f_set__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f_set'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::set(float,float,float,float)\n" " ofVec4f::set(ofVec4f const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___eq__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___eq__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___eq__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (bool)((ofVec4f const *)arg1)->operator ==((ofVec4f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___ne__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___ne__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___ne__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___ne__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (bool)((ofVec4f const *)arg1)->operator !=((ofVec4f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_match__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec4f_match",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_match" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_match" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_match" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_match" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)((ofVec4f const *)arg1)->match((ofVec4f const &)*arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_match__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_match",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_match" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_match" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_match" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (bool)((ofVec4f const *)arg1)->match((ofVec4f const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_match(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f_match__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f_match__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f_match'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::match(ofVec4f const &,float) const\n" + " ofVec4f::match(ofVec4f const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___add__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___add__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___add__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator +((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___add__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___add__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___add__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator +(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___add__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___add____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___add____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec4f___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___iadd__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___iadd__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___iadd__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator +=((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___iadd__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___iadd__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___iadd__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator +=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___iadd__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___iadd____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___iadd____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___iadd__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::operator +=(ofVec4f const &)\n" " ofVec4f::operator +=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___sub__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___sub__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator -(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___sub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___sub__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___sub__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___sub__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator -((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___sub____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___sub____SWIG_0(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec4f___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f___neg__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___neg__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = ((ofVec4f const *)arg1)->operator -(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___isub__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___isub__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator -=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___isub__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___isub__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___isub__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___isub__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator -=((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___isub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___isub____SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___isub____SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___isub__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::operator -=(float const)\n" " ofVec4f::operator -=(ofVec4f const &)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___mul__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___mul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator *((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___mul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___mul__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___mul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator *(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___mul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___mul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___mul____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec4f___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___imul__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___imul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___imul__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator *=((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___imul__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___imul__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___imul__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator *=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___imul__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___imul____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___imul____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___imul__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::operator *=(ofVec4f const &)\n" " ofVec4f::operator *=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___div__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___div__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___div__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->operator /((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___div__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___div__" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___div__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->operator /(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___div__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___div____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___div____SWIG_1(self, args);} } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } +SWIGINTERN PyObject *_wrap_ofVec4f___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___idiv__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f___idiv__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f___idiv__" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->operator /=((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f___idiv__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___idiv__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f___idiv__" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->operator /=(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___idiv__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVec4f___idiv____SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVec4f___idiv____SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVec4f___idiv__'.\n" + " Possible C/C++ prototypes are:\n" " ofVec4f::operator /=(ofVec4f const &)\n" " ofVec4f::operator /=(float const)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVec4f_getScaled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_getScaled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getScaled" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_getScaled" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->getScaled(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_scale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_scale" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->scale(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_distance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_distance" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_distance" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_distance" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (float)((ofVec4f const *)arg1)->distance((ofVec4f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_squareDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_squareDistance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_squareDistance" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_squareDistance" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_squareDistance" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (float)((ofVec4f const *)arg1)->squareDistance((ofVec4f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_getInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec4f_getInterpolated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getInterpolated" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_getInterpolated" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_getInterpolated" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_getInterpolated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofVec4f const *)arg1)->getInterpolated((ofVec4f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec4f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec4f_interpolate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_interpolate" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_interpolate" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_interpolate" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_interpolate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (ofVec4f *) &(arg1)->interpolate((ofVec4f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_getMiddle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_getMiddle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getMiddle" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_getMiddle" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_getMiddle" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->getMiddle((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_middle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_middle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_middle" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_middle" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_middle" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (ofVec4f *) &(arg1)->middle((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_average(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = (ofVec4f *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + ofVec4f *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec4f_average",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_average" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec4f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_average" "', argument " "2"" of type '" "ofVec4f const *""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_average" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (ofVec4f *) &(arg1)->average((ofVec4f const *)arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_getNormalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_getNormalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getNormalized" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = ((ofVec4f const *)arg1)->getNormalized(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_normalize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_normalize" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (ofVec4f *) &(arg1)->normalize(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_getLimited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_getLimited",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_getLimited" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_getLimited" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->getLimited(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_limit",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_limit" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_limit" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->limit(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_length",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_length" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float)((ofVec4f const *)arg1)->length(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_lengthSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_lengthSquared",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_lengthSquared" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float)((ofVec4f const *)arg1)->lengthSquared(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_dot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_dot",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_dot" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_dot" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_dot" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = (float)((ofVec4f const *)arg1)->dot((ofVec4f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_rescaled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_rescaled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_rescaled" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_rescaled" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->rescaled(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_rescale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_rescale",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_rescale" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_rescale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (ofVec4f *) &(arg1)->rescale(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec4f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_normalized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f_normalized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_normalized" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = ((ofVec4f const *)arg1)->normalized(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_limited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_limited",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_limited" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVec4f_limited" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = ((ofVec4f const *)arg1)->limited(arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_distanceSquared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_distanceSquared",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_distanceSquared" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_distanceSquared" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_distanceSquared" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); + result = (float)((ofVec4f const *)arg1)->distanceSquared((ofVec4f const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_interpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVec4f_interpolated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_interpolated" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_interpolated" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_interpolated" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVec4f_interpolated" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = ((ofVec4f const *)arg1)->interpolated((ofVec4f const &)*arg2,arg3); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_middled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; ofVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ofVec4f result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVec4f_middled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f_middled" "', argument " "1"" of type '" "ofVec4f const *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec4f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVec4f_middled" "', argument " "2"" of type '" "ofVec4f const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVec4f_middled" "', argument " "2"" of type '" "ofVec4f const &""'"); } + arg2 = reinterpret_cast< ofVec4f * >(argp2); result = ((ofVec4f const *)arg1)->middled((ofVec4f const &)*arg2); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_zero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f result; if (!PyArg_ParseTuple(args,(char *)":ofVec4f_zero")) SWIG_fail; result = ofVec4f::zero(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f_one(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f result; if (!PyArg_ParseTuple(args,(char *)":ofVec4f_one")) SWIG_fail; result = ofVec4f::one(); + resultobj = SWIG_NewPointerObj((new ofVec4f(static_cast< const ofVec4f& >(result))), SWIGTYPE_p_ofVec4f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVec4f___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVec4f___str__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVec4f___str__" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (char *)ofVec4f___str__(arg1); + resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofVec4f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = (ofVec4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVec4f",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVec4f, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVec4f" "', argument " "1"" of type '" "ofVec4f *""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *ofVec4f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofVec4f, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofRandom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRandom",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRandom" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (float)ofRandom(arg1); resultobj = SWIG_From_float(static_cast< float >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRandom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofRandom",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRandom" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofRandom" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)ofRandom(arg1,arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRandom(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofRandom__SWIG_0(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofRandom__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofRandom'.\n" + " Possible C/C++ prototypes are:\n" " ofRandom(float)\n" " ofRandom(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRandomf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float result; + if (!PyArg_ParseTuple(args,(char *)":ofRandomf")) SWIG_fail; result = (float)ofRandomf(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofRandomuf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float result; + if (!PyArg_ParseTuple(args,(char *)":ofRandomuf")) SWIG_fail; result = (float)ofRandomuf(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSeedRandom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + if (!PyArg_ParseTuple(args,(char *)":ofSeedRandom")) SWIG_fail; ofSeedRandom(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSeedRandom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSeedRandom",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSeedRandom" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); ofSeedRandom(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSeedRandom(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofSeedRandom__SWIG_0(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSeedRandom__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSeedRandom'.\n" + " Possible C/C++ prototypes are:\n" " ofSeedRandom()\n" " ofSeedRandom(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNormalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofNormalize",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNormalize" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNormalize" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNormalize" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofNormalize(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float arg4 ; float arg5 ; bool arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; + float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMap" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMap" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMap" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMap" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMap" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMap" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); result = (float)ofMap(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float arg4 ; float arg5 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMap",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofMap" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMap" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMap" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMap" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMap" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); result = (float)ofMap(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMap(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 5) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMap__SWIG_1(self, args);} } } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMap__SWIG_0(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMap'.\n" + " Possible C/C++ prototypes are:\n" " ofMap(float,float,float,float,float,bool)\n" + " ofMap(float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofClamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofClamp",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofClamp" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofClamp" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofClamp" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofClamp(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofInRange",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofInRange" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofInRange" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofInRange" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (bool)ofInRange(arg1,arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLerp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofLerp",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofLerp" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLerp" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLerp" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofLerp(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDist" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDist" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDist" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDist" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (float)ofDist(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDist",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDist" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDist" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDist" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDist" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDist" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDist" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); result = (float)ofDist(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDist(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDist__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDist__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDist'.\n" + " Possible C/C++ prototypes are:\n" " ofDist(float,float,float,float)\n" + " ofDist(float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofDistSquared__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofDistSquared",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDistSquared" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDistSquared" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDistSquared" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDistSquared" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (float)ofDistSquared(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDistSquared__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; float arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; + int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofDistSquared",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDistSquared" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofDistSquared" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofDistSquared" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofDistSquared" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofDistSquared" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_float(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofDistSquared" "', argument " "6"" of type '" "float""'"); } + arg6 = static_cast< float >(val6); result = (float)ofDistSquared(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDistSquared(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[7] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDistSquared__SWIG_0(self, args);} } } } } if (argc == 6) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofDistSquared__SWIG_1(self, args);} } } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofDistSquared'.\n" + " Possible C/C++ prototypes are:\n" " ofDistSquared(float,float,float,float)\n" + " ofDistSquared(float,float,float,float,float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofRadToDeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofRadToDeg",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofRadToDeg" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (float)ofRadToDeg(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDegToRad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofDegToRad",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofDegToRad" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (float)ofDegToRad(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLerpDegrees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofLerpDegrees",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofLerpDegrees" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLerpDegrees" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLerpDegrees" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofLerpDegrees(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofLerpRadians(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofLerpRadians",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofLerpRadians" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofLerpRadians" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofLerpRadians" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofLerpRadians(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofAngleDifferenceDegrees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofAngleDifferenceDegrees",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofAngleDifferenceDegrees" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofAngleDifferenceDegrees" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)ofAngleDifferenceDegrees(arg1,arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofAngleDifferenceRadians(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofAngleDifferenceRadians",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofAngleDifferenceRadians" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofAngleDifferenceRadians" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)ofAngleDifferenceRadians(arg1,arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofWrap",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrap" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofWrap" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofWrap" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofWrap(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrapRadians__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofWrapRadians",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapRadians" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofWrapRadians" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofWrapRadians" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofWrapRadians(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrapRadians__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofWrapRadians",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapRadians" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofWrapRadians" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)ofWrapRadians(arg1,arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrapRadians__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofWrapRadians",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapRadians" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (float)ofWrapRadians(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrapRadians(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofWrapRadians__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofWrapRadians__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofWrapRadians__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofWrapRadians'.\n" + " Possible C/C++ prototypes are:\n" " ofWrapRadians(float,float,float)\n" " ofWrapRadians(float,float)\n" + " ofWrapRadians(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofWrapDegrees__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofWrapDegrees",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapDegrees" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofWrapDegrees" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofWrapDegrees" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofWrapDegrees(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrapDegrees__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofWrapDegrees",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapDegrees" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofWrapDegrees" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)ofWrapDegrees(arg1,arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrapDegrees__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofWrapDegrees",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofWrapDegrees" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (float)ofWrapDegrees(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofWrapDegrees(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofWrapDegrees__SWIG_2(self, args);} } if (argc == 2) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { return _wrap_ofWrapDegrees__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofWrapDegrees__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofWrapDegrees'.\n" + " Possible C/C++ prototypes are:\n" " ofWrapDegrees(float,float,float)\n" " ofWrapDegrees(float,float)\n" + " ofWrapDegrees(float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (float)ofNoise(arg1); resultobj = SWIG_From_float(static_cast< float >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofNoise",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNoise" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)ofNoise(arg1,arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float)ofNoise((ofVec2f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofNoise",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNoise" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNoise" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofNoise(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)ofNoise((ofVec3f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OOOO:ofNoise",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofNoise" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofNoise" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofNoise" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (float)ofNoise(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float)ofNoise((ofVec4f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNoise(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; Py_ssize_t ii; + if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNoise__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNoise__SWIG_4(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofNoise__SWIG_6(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofNoise__SWIG_0(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNoise__SWIG_1(self, args);} } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNoise__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofNoise__SWIG_5(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofNoise'.\n" + " Possible C/C++ prototypes are:\n" " ofNoise(float)\n" " ofNoise(float,float)\n" " ofNoise(ofVec2f const &)\n" + " ofNoise(float,float,float)\n" " ofNoise(ofVec3f const &)\n" " ofNoise(float,float,float,float)\n" + " ofNoise(ofVec4f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (float)ofSignedNoise(arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:ofSignedNoise",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSignedNoise" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); result = (float)ofSignedNoise(arg1,arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec2f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec2f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec2f const &""'"); } + arg1 = reinterpret_cast< ofVec2f * >(argp1); result = (float)ofSignedNoise((ofVec2f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofSignedNoise",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSignedNoise" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSignedNoise" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); result = (float)ofSignedNoise(arg1,arg2,arg3); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec3f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec3f const &""'"); } + arg1 = reinterpret_cast< ofVec3f * >(argp1); result = (float)ofSignedNoise((ofVec3f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; float arg3 ; float arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; + int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofSignedNoise",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofSignedNoise" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofSignedNoise" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofSignedNoise" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); result = (float)ofSignedNoise(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVec4f *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSignedNoise",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec4f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSignedNoise" "', argument " "1"" of type '" "ofVec4f const &""'"); } + arg1 = reinterpret_cast< ofVec4f * >(argp1); result = (float)ofSignedNoise((ofVec4f const &)*arg1); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSignedNoise(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec2f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSignedNoise__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSignedNoise__SWIG_4(self, args);} } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec4f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSignedNoise__SWIG_6(self, args);} } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofSignedNoise__SWIG_0(self, args);} } if (argc == 2) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSignedNoise__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSignedNoise__SWIG_3(self, args);} } } } if (argc == 4) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofSignedNoise__SWIG_5(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSignedNoise'.\n" + " Possible C/C++ prototypes are:\n" " ofSignedNoise(float)\n" " ofSignedNoise(float,float)\n" + " ofSignedNoise(ofVec2f const &)\n" " ofSignedNoise(float,float,float)\n" " ofSignedNoise(ofVec3f const &)\n" + " ofSignedNoise(float,float,float,float)\n" " ofSignedNoise(ofVec4f const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofInsidePoly__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + float arg1 ; float arg2 ; std::vector< ofPoint,std::allocator< ofPoint > > *arg3 = 0 ; float val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofInsidePoly",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofInsidePoly" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofInsidePoly" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofInsidePoly" "', argument " "3"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofInsidePoly" "', argument " "3"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + arg3 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp3); + result = (bool)ofInsidePoly(arg1,arg2,(std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofInsidePoly__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; std::vector< ofPoint,std::allocator< ofPoint > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofInsidePoly",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofInsidePoly" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofInsidePoly" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofInsidePoly" "', argument " "2"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofInsidePoly" "', argument " "2"" of type '" "std::vector< ofPoint,std::allocator< ofPoint > > const &""'"); } + arg2 = reinterpret_cast< std::vector< ofPoint,std::allocator< ofPoint > > * >(argp2); + result = (bool)ofInsidePoly((ofVec3f const &)*arg1,(std::vector< ofVec3f,std::allocator< ofVec3f > > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofInsidePoly(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofInsidePoly__SWIG_1(self, args);} } } if (argc == 3) { int _v; { + int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0); + _v = SWIG_CheckState(res); if (_v) { return _wrap_ofInsidePoly__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofInsidePoly'.\n" + " Possible C/C++ prototypes are:\n" + " ofInsidePoly(float,float,std::vector< ofPoint,std::allocator< ofPoint > > const &)\n" + " ofInsidePoly(ofPoint const &,std::vector< ofPoint,std::allocator< ofPoint > > const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofLineSegmentIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; ofPoint *arg5 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; + void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofLineSegmentIntersection",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofLineSegmentIntersection" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofLineSegmentIntersection" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofLineSegmentIntersection" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofLineSegmentIntersection" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ofVec3f, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ofLineSegmentIntersection" "', argument " "5"" of type '" "ofPoint &""'"); } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofLineSegmentIntersection" "', argument " "5"" of type '" "ofPoint &""'"); } + arg5 = reinterpret_cast< ofPoint * >(argp5); + result = (bool)ofLineSegmentIntersection((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,*arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofBezierPoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierPoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierPoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBezierPoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierPoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierPoint" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); + result = ofBezierPoint((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurvePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCurvePoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurvePoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCurvePoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCurvePoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofCurvePoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurvePoint" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurvePoint" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); + result = ofCurvePoint((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofBezierTangent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofBezierTangent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofBezierTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofBezierTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofBezierTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofBezierTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofBezierTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofBezierTangent" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); + result = ofBezierTangent((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofCurveTangent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofPoint *arg1 = 0 ; ofPoint *arg2 = 0 ; ofPoint *arg3 = 0 ; ofPoint *arg4 = 0 ; float arg5 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + ofPoint result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofCurveTangent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofVec3f, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofCurveTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "1"" of type '" "ofPoint const &""'"); } + arg1 = reinterpret_cast< ofPoint * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofCurveTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofCurveTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "3"" of type '" "ofPoint const &""'"); } + arg3 = reinterpret_cast< ofPoint * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ofCurveTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofCurveTangent" "', argument " "4"" of type '" "ofPoint const &""'"); } + arg4 = reinterpret_cast< ofPoint * >(argp4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofCurveTangent" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); + result = ofCurveTangent((ofVec3f const &)*arg1,(ofVec3f const &)*arg2,(ofVec3f const &)*arg3,(ofVec3f const &)*arg4,arg5); + resultobj = SWIG_NewPointerObj((new ofPoint(static_cast< const ofPoint& >(result))), SWIGTYPE_p_ofVec3f, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofNextPow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; + int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofNextPow2",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofNextPow2" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = (int)ofNextPow2(arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; float arg1 ; + float val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofSign",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofSign" "', argument " "1"" of type '" "float""'"); } + arg1 = static_cast< float >(val1); result = (int)ofSign(arg1); resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofXml__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofXml")) SWIG_fail; result = (ofXml *)new ofXml(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofXml, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofXml(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofXml",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofXml" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofXml__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; ofXml *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofXml",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofXml" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofXml" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } result = (ofXml *)new ofXml((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofXml, SWIG_POINTER_NEW | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } +SWIGINTERN PyObject *_wrap_new_ofXml__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofXml *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:new_ofXml",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofXml, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofXml" "', argument " "1"" of type '" "ofXml const &""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ofXml" "', argument " "1"" of type '" "ofXml const &""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (ofXml *)new ofXml((ofXml const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofXml, SWIG_POINTER_NEW | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_new_ofXml(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofXml__SWIG_0(self, args);} if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofXml__SWIG_2(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_new_ofXml__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofXml'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::ofXml()\n" " ofXml::ofXml(std::string const &)\n" + " ofXml::ofXml(ofXml const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_load" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_load" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_load" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->load((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_save",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_save" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_save" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_save" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->save((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_addChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_addChild",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_addChild" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_addChild" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_addChild" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->addChild((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_addXml__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; ofXml *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofXml_addXml",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_addXml" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofXml, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_addXml" "', argument " "2"" of type '" "ofXml &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_addXml" "', argument " "2"" of type '" "ofXml &""'"); } + arg2 = reinterpret_cast< ofXml * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofXml_addXml" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->addXml(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_addXml__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; ofXml *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_addXml",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_addXml" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofXml, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_addXml" "', argument " "2"" of type '" "ofXml &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_addXml" "', argument " "2"" of type '" "ofXml &""'"); } + arg2 = reinterpret_cast< ofXml * >(argp2); (arg1)->addXml(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_addXml(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_addXml__SWIG_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofXml_addXml__SWIG_0(self, args);} } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_addXml'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::addXml(ofXml &,bool)\n" " ofXml::addXml(ofXml &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_getValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getValue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = ((ofXml const *)arg1)->getValue(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getValue" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getValue" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofXml const *)arg1)->getValue((std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; + fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getValue__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getValue'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getValue() const\n" " ofXml::getValue(std::string const &) const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofXml_getIntValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getIntValue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getIntValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (int)((ofXml const *)arg1)->getIntValue(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getIntValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getIntValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getIntValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getIntValue" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getIntValue" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)((ofXml const *)arg1)->getIntValue((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getIntValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getIntValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getIntValue__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getIntValue'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getIntValue() const\n" + " ofXml::getIntValue(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_getInt64Value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int64_t result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getInt64Value",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getInt64Value" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = ((ofXml const *)arg1)->getInt64Value(); + resultobj = SWIG_NewPointerObj((new int64_t(static_cast< const int64_t& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getInt64Value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int64_t result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getInt64Value",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getInt64Value" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getInt64Value" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getInt64Value" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofXml const *)arg1)->getInt64Value((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj((new int64_t(static_cast< const int64_t& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getInt64Value(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getInt64Value__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getInt64Value__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getInt64Value'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getInt64Value() const\n" + " ofXml::getInt64Value(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_getFloatValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getFloatValue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getFloatValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (float)((ofXml const *)arg1)->getFloatValue(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getFloatValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getFloatValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getFloatValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getFloatValue" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getFloatValue" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (float)((ofXml const *)arg1)->getFloatValue((std::string const &)*arg2); + resultobj = SWIG_From_float(static_cast< float >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getFloatValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getFloatValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getFloatValue__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getFloatValue'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getFloatValue() const\n" + " ofXml::getFloatValue(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_getBoolValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getBoolValue",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getBoolValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)((ofXml const *)arg1)->getBoolValue(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getBoolValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getBoolValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getBoolValue" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getBoolValue" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getBoolValue" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)((ofXml const *)arg1)->getBoolValue((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getBoolValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getBoolValue__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getBoolValue__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getBoolValue'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getBoolValue() const\n" + " ofXml::getBoolValue(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_setValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofXml_setValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setValue" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_setValue" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_setValue" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofXml_setValue" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_setValue" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (bool)(arg1)->setValue((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getAttribute" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getAttribute" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getAttribute" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ((ofXml const *)arg1)->getAttribute((std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; + fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_setAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofXml_setAttribute",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setAttribute" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_setAttribute" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_setAttribute" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ofXml_setAttribute" "', argument " "3"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_setAttribute" "', argument " "3"" of type '" "std::string const &""'"); } + arg3 = ptr; } result = (bool)(arg1)->setAttribute((std::string const &)*arg2,(std::string const &)*arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::map< std::string,std::string > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getAttributes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getAttributes" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = ((ofXml const *)arg1)->getAttributes(); + resultobj = SWIG_NewPointerObj((new std::map< std::string,std::string >(static_cast< const std::map< std::string,std::string >& >(result))), SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getNumChildren__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getNumChildren",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getNumChildren" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (int)((ofXml const *)arg1)->getNumChildren(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getNumChildren__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getNumChildren",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getNumChildren" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getNumChildren" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getNumChildren" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (int)((ofXml const *)arg1)->getNumChildren((std::string const &)*arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getNumChildren(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getNumChildren__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getNumChildren__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getNumChildren'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getNumChildren() const\n" + " ofXml::getNumChildren(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_removeAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_removeAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_removeAttribute" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_removeAttribute" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_removeAttribute" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->removeAttribute((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_removeAttributes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_removeAttributes",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_removeAttributes" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_removeAttributes" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_removeAttributes" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->removeAttributes((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_removeAttributes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_removeAttributes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_removeAttributes" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->removeAttributes(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_removeAttributes(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_removeAttributes__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_removeAttributes__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_removeAttributes'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::removeAttributes(std::string const &)\n" " ofXml::removeAttributes()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofXml_removeContents__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_removeContents",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_removeContents" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_removeContents" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_removeContents" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->removeContents((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_removeContents__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_removeContents",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_removeContents" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->removeContents(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_removeContents(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_removeContents__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_removeContents__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_removeContents'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::removeContents(std::string const &)\n" " ofXml::removeContents()\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofXml_remove__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_remove",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_remove" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_remove" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_remove" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->remove((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_remove",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_remove" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); (arg1)->remove(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_remove(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_remove__SWIG_1(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_remove__SWIG_0(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_remove'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::remove(std::string const &)\n" " ofXml::remove()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_exists",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_exists" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_exists" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_exists" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)((ofXml const *)arg1)->exists((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_clear" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getName" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = ((ofXml const *)arg1)->getName(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_reset",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_reset" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->reset(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_setToChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_setToChild",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setToChild" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofXml_setToChild" "', argument " "2"" of type '" "unsigned long""'"); } + arg2 = static_cast< unsigned long >(val2); result = (bool)(arg1)->setToChild(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_setTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_setTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setTo" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_setTo" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_setTo" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->setTo((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_setToParent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_setToParent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setToParent" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->setToParent(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_setToParent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_setToParent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setToParent" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofXml_setToParent" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); result = (bool)(arg1)->setToParent(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_setToParent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_setToParent__SWIG_0(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofXml_setToParent__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_setToParent'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::setToParent()\n" " ofXml::setToParent(int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_setToSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_setToSibling",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setToSibling" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->setToSibling(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_setToPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_setToPrevSibling",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_setToPrevSibling" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (bool)(arg1)->setToPrevSibling(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_loadFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_loadFromBuffer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_loadFromBuffer" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_loadFromBuffer" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_loadFromBuffer" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (bool)(arg1)->loadFromBuffer((std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_toString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofXml_toString",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_toString" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = ((ofXml const *)arg1)->toString(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; ofAbstractParameter *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_serialize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_serialize" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofAbstractParameter, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_serialize" "', argument " "2"" of type '" "ofAbstractParameter const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_serialize" "', argument " "2"" of type '" "ofAbstractParameter const &""'"); } + arg2 = reinterpret_cast< ofAbstractParameter * >(argp2); (arg1)->serialize((ofAbstractParameter const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_deserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofXml *arg1 = (ofXml *) 0 ; ofAbstractParameter *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_deserialize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_deserialize" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofAbstractParameter, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_deserialize" "', argument " "2"" of type '" "ofAbstractParameter &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_deserialize" "', argument " "2"" of type '" "ofAbstractParameter &""'"); } + arg2 = reinterpret_cast< ofAbstractParameter * >(argp2); (arg1)->deserialize(*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_tokenize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; std::vector< std::string > result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_tokenize",&obj0,&obj1)) SWIG_fail; { std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_tokenize" "', argument " "1"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_tokenize" "', argument " "1"" of type '" "std::string const &""'"); } + arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_tokenize" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_tokenize" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = ofXml::tokenize((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoElement__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + Poco::XML::Element *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getPocoElement",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getPocoElement" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (Poco::XML::Element *)(arg1)->getPocoElement(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Element, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoElement__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Poco::XML::Element *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getPocoElement",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getPocoElement" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getPocoElement" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getPocoElement" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (Poco::XML::Element *)(arg1)->getPocoElement((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Element, 0 | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoElement__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + Poco::XML::Element *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getPocoElement",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getPocoElement" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (Poco::XML::Element *)((ofXml const *)arg1)->getPocoElement(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Element, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoElement__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Poco::XML::Element *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofXml_getPocoElement",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getPocoElement" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofXml_getPocoElement" "', argument " "2"" of type '" "std::string const &""'"); } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofXml_getPocoElement" "', argument " "2"" of type '" "std::string const &""'"); } + arg2 = ptr; } result = (Poco::XML::Element *)((ofXml const *)arg1)->getPocoElement((std::string const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Element, 0 | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoElement(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getPocoElement__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getPocoElement__SWIG_2(self, args);} } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getPocoElement__SWIG_1(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getPocoElement__SWIG_3(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getPocoElement'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getPocoElement()\n" " ofXml::getPocoElement(std::string const &)\n" + " ofXml::getPocoElement() const\n" " ofXml::getPocoElement(std::string const &) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoDocument__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + Poco::XML::Document *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getPocoDocument",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getPocoDocument" "', argument " "1"" of type '" "ofXml *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (Poco::XML::Document *)(arg1)->getPocoDocument(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Document, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoDocument__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofXml *arg1 = (ofXml *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + Poco::XML::Document *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofXml_getPocoDocument",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofXml, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofXml_getPocoDocument" "', argument " "1"" of type '" "ofXml const *""'"); } + arg1 = reinterpret_cast< ofXml * >(argp1); result = (Poco::XML::Document *)((ofXml const *)arg1)->getPocoDocument(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Poco__XML__Document, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofXml_getPocoDocument(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getPocoDocument__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofXml, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofXml_getPocoDocument__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofXml_getPocoDocument'.\n" + " Possible C/C++ prototypes are:\n" " ofXml::getPocoDocument()\n" " ofXml::getPocoDocument() const\n"); return 0; } +SWIGINTERN PyObject *ofXml_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofXml, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofMatrixStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofAppBaseWindow *arg1 = (ofAppBaseWindow *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrixStack *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ofMatrixStack",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofAppBaseWindow, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ofMatrixStack" "', argument " "1"" of type '" "ofAppBaseWindow const *""'"); } + arg1 = reinterpret_cast< ofAppBaseWindow * >(argp1); + result = (ofMatrixStack *)new ofMatrixStack((ofAppBaseWindow const *)arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrixStack, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_setRenderSurface__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofFbo *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_setRenderSurface",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_setRenderSurface" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofFbo, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_setRenderSurface" "', argument " "2"" of type '" "ofFbo const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_setRenderSurface" "', argument " "2"" of type '" "ofFbo const &""'"); } + arg2 = reinterpret_cast< ofFbo * >(argp2); (arg1)->setRenderSurface((ofFbo const &)*arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_setRenderSurface__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofAppBaseWindow *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_setRenderSurface",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_setRenderSurface" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofAppBaseWindow, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_setRenderSurface" "', argument " "2"" of type '" "ofAppBaseWindow const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_setRenderSurface" "', argument " "2"" of type '" "ofAppBaseWindow const &""'"); } + arg2 = reinterpret_cast< ofAppBaseWindow * >(argp2); (arg1)->setRenderSurface((ofAppBaseWindow const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_setRenderSurface(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[3] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofFbo, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrixStack_setRenderSurface__SWIG_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofAppBaseWindow, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofMatrixStack_setRenderSurface__SWIG_1(self, args);} } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrixStack_setRenderSurface'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrixStack::setRenderSurface(ofFbo const &)\n" + " ofMatrixStack::setRenderSurface(ofAppBaseWindow const &)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_setOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofOrientation arg2 ; bool arg3 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrixStack_setOrientation",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_setOrientation" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_setOrientation" "', argument " "2"" of type '" "ofOrientation""'"); } + arg2 = static_cast< ofOrientation >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_setOrientation" "', argument " "3"" of type '" "bool""'"); } + arg3 = static_cast< bool >(val3); (arg1)->setOrientation(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofOrientation result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getOrientation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getOrientation" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (ofOrientation)((ofMatrixStack const *)arg1)->getOrientation(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_viewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; bool arg6 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ofMatrixStack_viewport",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_viewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_viewport" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_viewport" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrixStack_viewport" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrixStack_viewport" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ofMatrixStack_viewport" "', argument " "6"" of type '" "bool""'"); } + arg6 = static_cast< bool >(val6); (arg1)->viewport(arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_nativeViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofRectangle arg2 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_nativeViewport",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_nativeViewport" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_nativeViewport" "', argument " "2"" of type '" "ofRectangle""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_nativeViewport" "', argument " "2"" of type '" "ofRectangle""'"); } + else { ofRectangle * temp = reinterpret_cast< ofRectangle * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } + } (arg1)->nativeViewport(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getCurrentViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getCurrentViewport",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getCurrentViewport" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = ((ofMatrixStack const *)arg1)->getCurrentViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getNativeViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getNativeViewport",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getNativeViewport" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = ((ofMatrixStack const *)arg1)->getNativeViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getFullSurfaceViewport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofRectangle result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getFullSurfaceViewport",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getFullSurfaceViewport" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = ((ofMatrixStack const *)arg1)->getFullSurfaceViewport(); + resultobj = SWIG_NewPointerObj((new ofRectangle(static_cast< const ofRectangle& >(result))), SWIGTYPE_p_ofRectangle, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getProjectionMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getProjectionMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getProjectionMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getProjectionMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getViewMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getViewMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getModelViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getModelViewMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getModelViewMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getModelViewMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getModelViewProjectionMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getModelViewProjectionMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getModelViewProjectionMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getModelViewProjectionMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getTextureMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getTextureMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getTextureMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getTextureMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getCurrentMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getCurrentMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getCurrentMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getCurrentMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getProjectionMatrixNoOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getProjectionMatrixNoOrientation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getProjectionMatrixNoOrientation" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getProjectionMatrixNoOrientation(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getOrientationMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getOrientationMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getOrientationMatrix" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getOrientationMatrix(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getOrientationMatrixInverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrix4x4 *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getOrientationMatrixInverse",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getOrientationMatrixInverse" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrix4x4 *) &((ofMatrixStack const *)arg1)->getOrientationMatrixInverse(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofMatrix4x4, 0 | 0 ); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getCurrentMatrixMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofMatrixMode result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getCurrentMatrixMode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getCurrentMatrixMode" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); + result = (ofMatrixMode)((ofMatrixStack const *)arg1)->getCurrentMatrixMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_getHandedness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofHandednessType result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_getHandedness",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_getHandedness" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (ofHandednessType)((ofMatrixStack const *)arg1)->getHandedness(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_isVFlipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_isVFlipped",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_isVFlipped" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (bool)((ofMatrixStack const *)arg1)->isVFlipped(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_customMatrixNeedsFlip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_customMatrixNeedsFlip",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_customMatrixNeedsFlip" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (bool)((ofMatrixStack const *)arg1)->customMatrixNeedsFlip(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_pushView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_pushView",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_pushView" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->pushView(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_popView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_popView",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_popView" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->popView(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_pushMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_pushMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_pushMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->pushMatrix(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_popMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_popMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_popMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->popMatrix(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_translate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrixStack_translate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_translate" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_translate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_translate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrixStack_translate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->translate(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_translate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrixStack_translate",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_translate" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_translate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_translate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->translate(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_translate(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrixStack_translate__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrixStack_translate__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrixStack_translate'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrixStack::translate(float,float,float)\n" + " ofMatrixStack::translate(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofMatrixStack_scale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_scale" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_scale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrixStack_scale" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); (arg1)->scale(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofMatrixStack_scale",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_scale" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_scale" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_scale" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->scale(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_scale(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { + { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrixStack_scale__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofMatrixStack, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofMatrixStack_scale__SWIG_0(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofMatrixStack_scale'.\n" + " Possible C/C++ prototypes are:\n" " ofMatrixStack::scale(float,float,float)\n" + " ofMatrixStack::scale(float,float)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofMatrixStack_rotate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_rotate" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_rotate" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofMatrixStack_rotate" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofMatrixStack_rotate" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofMatrixStack_rotate" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); (arg1)->rotate(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_matrixMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofMatrixMode arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_matrixMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_matrixMode" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofMatrixStack_matrixMode" "', argument " "2"" of type '" "ofMatrixMode""'"); } + arg2 = static_cast< ofMatrixMode >(val2); (arg1)->matrixMode(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_loadIdentityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_loadIdentityMatrix",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_loadIdentityMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->loadIdentityMatrix(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_loadMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float *arg2 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_loadMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_loadMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_loadMatrix" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); (arg1)->loadMatrix((float const *)arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_multMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; float *arg2 = (float *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_multMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_multMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_multMatrix" "', argument " "2"" of type '" "float const *""'"); } + arg2 = reinterpret_cast< float * >(argp2); (arg1)->multMatrix((float const *)arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_loadViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_loadViewMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_loadViewMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_loadViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_loadViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->loadViewMatrix((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_multViewMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; ofMatrix4x4 *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofMatrixStack_multViewMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_multViewMatrix" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofMatrix4x4, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofMatrixStack_multViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofMatrixStack_multViewMatrix" "', argument " "2"" of type '" "ofMatrix4x4 const &""'"); } + arg2 = reinterpret_cast< ofMatrix4x4 * >(argp2); (arg1)->multViewMatrix((ofMatrix4x4 const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_clearStacks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_clearStacks",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_clearStacks" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); (arg1)->clearStacks(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofMatrixStack_doesHardwareOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofMatrixStack_doesHardwareOrientation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofMatrixStack_doesHardwareOrientation" "', argument " "1"" of type '" "ofMatrixStack const *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); result = (bool)((ofMatrixStack const *)arg1)->doesHardwareOrientation(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofMatrixStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofMatrixStack *arg1 = (ofMatrixStack *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofMatrixStack",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofMatrixStack, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofMatrixStack" "', argument " "1"" of type '" "ofMatrixStack *""'"); } + arg1 = reinterpret_cast< ofMatrixStack * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofMatrixStack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofMatrixStack, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofVideoGrabber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVideoGrabber")) SWIG_fail; + result = (ofVideoGrabber *)new ofVideoGrabber(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVideoGrabber, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofVideoGrabber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVideoGrabber",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVideoGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_listDevices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< std::vector< ofVideoDevice > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_listDevices",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_listDevices" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = ((ofVideoGrabber const *)arg1)->listDevices(); + resultobj = SWIG_NewPointerObj((new std::vector< ofVideoDevice >(static_cast< const std::vector< ofVideoDevice >& >(result))), SWIGTYPE_p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_isFrameNew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_isFrameNew",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isFrameNew" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)((ofVideoGrabber const *)arg1)->isFrameNew(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_update" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_close" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoGrabber_setup",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setup" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->setup(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVideoGrabber_setup",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setup" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setup" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_setup" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_setup" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = (bool)(arg1)->setup(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setup(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_setup__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_setup__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_setup'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::setup(int,int)\n" " ofVideoGrabber::setup(int,int,bool)\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_initGrabber__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoGrabber_initGrabber",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_initGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_initGrabber" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_initGrabber" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); result = (bool)(arg1)->initGrabber(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_initGrabber__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; + int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVideoGrabber_initGrabber",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_initGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_initGrabber" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_initGrabber" "', argument " "3"" of type '" "int""'"); } + arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_initGrabber" "', argument " "4"" of type '" "bool""'"); } + arg4 = static_cast< bool >(val4); result = (bool)(arg1)->initGrabber(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_initGrabber(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_initGrabber__SWIG_0(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_initGrabber__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_initGrabber'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::initGrabber(int,int)\n" + " ofVideoGrabber::initGrabber(int,int,bool)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; ofPixelFormat arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setPixelFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setPixelFormat" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setPixelFormat" "', argument " "2"" of type '" "ofPixelFormat""'"); } + arg2 = static_cast< ofPixelFormat >(val2); result = (bool)(arg1)->setPixelFormat(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixelFormat result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixelFormat" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixelFormat)((ofVideoGrabber const *)arg1)->getPixelFormat(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_videoSettings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_videoSettings",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_videoSettings" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); (arg1)->videoSettings(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixels" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixels" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &((ofVideoGrabber const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getPixels()\n" " ofVideoGrabber::getPixels() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixelsRef" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getPixelsRef" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofPixels *) &((ofVideoGrabber const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { + 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getPixelsRef()\n" " ofVideoGrabber::getPixelsRef() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexture" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexture" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofTexture *) &((ofVideoGrabber const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getTexture()\n" " ofVideoGrabber::getTexture() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTextureReference" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTextureReference" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); + result = (ofTexture *) &((ofVideoGrabber const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getTextureReference()\n" + " ofVideoGrabber::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexturePlanes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexturePlanes" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (std::vector< ofTexture > *) &(arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexturePlanes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getTexturePlanes" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); + result = (std::vector< ofTexture > *) &((ofVideoGrabber const *)arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getTexturePlanes(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getTexturePlanes__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getTexturePlanes__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getTexturePlanes'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getTexturePlanes()\n" + " ofVideoGrabber::getTexturePlanes() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setVerbose",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setVerbose" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setVerbose" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setVerbose(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setDeviceID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setDeviceID",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setDeviceID" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setDeviceID" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setDeviceID(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setDesiredFrameRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setDesiredFrameRate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setDesiredFrameRate" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setDesiredFrameRate" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setDesiredFrameRate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setUseTexture" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isUsingTexture" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)((ofVideoGrabber const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; + void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + float val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVideoGrabber_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVideoGrabber_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofVideoGrabber const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoGrabber_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofVideoGrabber const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_2_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofVideoGrabber const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_2_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofVideoGrabber const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw__SWIG_2_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVideoGrabber_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_draw" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoGrabber_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofVideoGrabber const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_draw__SWIG_2_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_draw__SWIG_2_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_draw__SWIG_2_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoGrabber_draw__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_draw'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::draw(float,float,float,float) const\n" + " ofVideoGrabber::draw(float,float) const\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_bind" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ((ofVideoGrabber const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_unbind" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ((ofVideoGrabber const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoGrabber_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setAnchorPercent" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoGrabber_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setAnchorPoint" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoGrabber_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoGrabber_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_resetAnchor" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getHeight" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (float)((ofVideoGrabber const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getWidth" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (float)((ofVideoGrabber const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_isInitialized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_isInitialized" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (bool)((ofVideoGrabber const *)arg1)->isInitialized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_setGrabber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; SwigValueWrapper< shared_ptr< ofBaseVideoGrabber > > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoGrabber_setGrabber",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_setGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoGrabber_setGrabber" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoGrabber >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoGrabber_setGrabber" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoGrabber >""'"); } + else { shared_ptr< ofBaseVideoGrabber > * temp = reinterpret_cast< shared_ptr< ofBaseVideoGrabber > * >(argp2); + arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setGrabber(arg2); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getGrabber__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoGrabber > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getGrabber",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getGrabber" "', argument " "1"" of type '" "ofVideoGrabber *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = (arg1)->getGrabber(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoGrabber >(static_cast< const shared_ptr< ofBaseVideoGrabber >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getGrabber__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoGrabber *arg1 = (ofVideoGrabber *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoGrabber > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoGrabber_getGrabber",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoGrabber, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoGrabber_getGrabber" "', argument " "1"" of type '" "ofVideoGrabber const *""'"); } + arg1 = reinterpret_cast< ofVideoGrabber * >(argp1); result = ((ofVideoGrabber const *)arg1)->getGrabber(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoGrabber >(static_cast< const shared_ptr< ofBaseVideoGrabber >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoGrabber_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoGrabber_getGrabber(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); + if (_v) { return _wrap_ofVideoGrabber_getGrabber__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoGrabber, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoGrabber_getGrabber__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoGrabber_getGrabber'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoGrabber::getGrabber()\n" " ofVideoGrabber::getGrabber() const\n"); + return 0; } +SWIGINTERN PyObject *ofVideoGrabber_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofVideoGrabber, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofVideoPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofVideoPlayer")) SWIG_fail; + result = (ofVideoPlayer *)new ofVideoPlayer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVideoPlayer, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_load",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_load" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofVideoPlayer_load" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->load(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_loadAsync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_loadAsync",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_loadAsync" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofVideoPlayer_loadAsync" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->loadAsync(arg2); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_loadMovie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_loadMovie",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_loadMovie" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofVideoPlayer_loadMovie" "', argument " "2"" of type '" "std::string""'"); } + arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->loadMovie(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getMoviePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getMoviePath",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getMoviePath" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = ((ofVideoPlayer const *)arg1)->getMoviePath(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofPixelFormat arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setPixelFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setPixelFormat" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setPixelFormat" "', argument " "2"" of type '" "ofPixelFormat""'"); } + arg2 = static_cast< ofPixelFormat >(val2); result = (bool)(arg1)->setPixelFormat(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixelFormat result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixelFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixelFormat" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixelFormat)((ofVideoPlayer const *)arg1)->getPixelFormat(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_closeMovie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_closeMovie",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_closeMovie" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->closeMovie(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_close",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_close" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_update",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_update" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->update(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_play(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_play",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_play" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->play(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_stop" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isFrameNew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isFrameNew",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isFrameNew" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isFrameNew(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixels" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &(arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixels" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &((ofVideoPlayer const *)arg1)->getPixels(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixels(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixels__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixels__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getPixels'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getPixels()\n" " ofVideoPlayer::getPixels() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelsRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixelsRef" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &(arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelsRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofPixels *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPixelsRef",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPixelsRef" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofPixels *) &((ofVideoPlayer const *)arg1)->getPixelsRef(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofPixels_T_unsigned_char_t, 0 | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPixelsRef(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixelsRef__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPixelsRef__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getPixelsRef'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getPixelsRef()\n" " ofVideoPlayer::getPixelsRef() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPosition",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPosition" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getPosition(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getSpeed",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getSpeed" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getSpeed(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getDuration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getDuration",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getDuration" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getDuration(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getIsMovieDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getIsMovieDone",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getIsMovieDone" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->getIsMovieDone(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setPosition",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setPosition" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setPosition" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setPosition(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setVolume",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setVolume" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setVolume" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setVolume(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setLoopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofLoopType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setLoopState",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setLoopState" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setLoopState" "', argument " "2"" of type '" "ofLoopType""'"); } + arg2 = static_cast< ofLoopType >(val2); (arg1)->setLoopState(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getLoopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofLoopType result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getLoopState",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getLoopState" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofLoopType)((ofVideoPlayer const *)arg1)->getLoopState(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setSpeed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setSpeed" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setSpeed" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); (arg1)->setSpeed(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setFrame",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setFrame" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setFrame" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); (arg1)->setFrame(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setUseTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setUseTexture",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setUseTexture" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setUseTexture" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setUseTexture(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isUsingTexture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isUsingTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isUsingTexture" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isUsingTexture(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexture__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexture" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofTexture *) &(arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexture__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexture",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexture" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofTexture *) &((ofVideoPlayer const *)arg1)->getTexture(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexture(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} + ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexture__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexture__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getTexture'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getTexture()\n" " ofVideoPlayer::getTexture() const\n"); + return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTextureReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTextureReference" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (ofTexture *) &(arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTextureReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTexture *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTextureReference",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTextureReference" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); + result = (ofTexture *) &((ofVideoPlayer const *)arg1)->getTextureReference(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTexture, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTextureReference(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTextureReference__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTextureReference__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getTextureReference'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getTextureReference()\n" + " ofVideoPlayer::getTextureReference() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexturePlanes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexturePlanes" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (std::vector< ofTexture > *) &(arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexturePlanes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< ofTexture > *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTexturePlanes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTexturePlanes" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); + result = (std::vector< ofTexture > *) &((ofVideoPlayer const *)arg1)->getTexturePlanes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTexturePlanes(PyObject *self, PyObject *args) { Py_ssize_t argc; + PyObject *argv[2] = { 0} ; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexturePlanes__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getTexturePlanes__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getTexturePlanes'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getTexturePlanes()\n" + " ofVideoPlayer::getTexturePlanes() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; + int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOOO:ofVideoPlayer_draw",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoPlayer_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoPlayer_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ecode5 = SWIG_AsVal_float(obj4, &val5); if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ofVideoPlayer_draw" "', argument " "5"" of type '" "float""'"); } + arg5 = static_cast< float >(val5); ((ofVideoPlayer const *)arg1)->draw(arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; + int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoPlayer_draw",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoPlayer_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ((ofVideoPlayer const *)arg1)->draw(arg2,arg3); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_2_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofPoint *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ((ofVideoPlayer const *)arg1)->draw((ofPoint const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_2_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofRectangle *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_draw",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofRectangle, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofRectangle const &""'"); } + arg2 = reinterpret_cast< ofRectangle * >(argp2); ((ofVideoPlayer const *)arg1)->draw((ofRectangle const &)*arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw__SWIG_2_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; ofPoint *arg2 = 0 ; float arg3 ; float arg4 ; + void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:ofVideoPlayer_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_draw" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ofVec3f, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_draw" "', argument " "2"" of type '" "ofPoint const &""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoPlayer_draw" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_float(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ofVideoPlayer_draw" "', argument " "4"" of type '" "float""'"); } + arg4 = static_cast< float >(val4); ((ofVideoPlayer const *)arg1)->draw((ofPoint const &)*arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_draw(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[6] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_draw__SWIG_2_0(self, args);} } } if (argc == 2) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofRectangle, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_draw__SWIG_2_1(self, args);} } } if (argc == 3) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoPlayer_draw__SWIG_1(self, args);} } } } if (argc == 4) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ofVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoPlayer_draw__SWIG_2_2(self, args);} } } } } if (argc == 5) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { { + int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_ofVideoPlayer_draw__SWIG_0(self, args);} } } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_draw'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::draw(float,float,float,float) const\n" + " ofVideoPlayer::draw(float,float) const\n" " draw(ofPoint const &) const\n" " draw(ofRectangle const &) const\n" + " draw(ofPoint const &,float,float) const\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_bind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_bind" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ((ofVideoPlayer const *)arg1)->bind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_unbind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_unbind",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_unbind" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ((ofVideoPlayer const *)arg1)->unbind(); resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setAnchorPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoPlayer_setAnchorPercent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setAnchorPercent" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setAnchorPercent" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoPlayer_setAnchorPercent" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPercent(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setAnchorPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; float arg2 ; float arg3 ; void *argp1 = 0 ; + int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ofVideoPlayer_setAnchorPoint",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setAnchorPoint" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setAnchorPoint" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ofVideoPlayer_setAnchorPoint" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); (arg1)->setAnchorPoint(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_resetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_resetAnchor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_resetAnchor" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->resetAnchor(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setPaused",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setPaused" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofVideoPlayer_setPaused" "', argument " "2"" of type '" "bool""'"); } + arg2 = static_cast< bool >(val2); (arg1)->setPaused(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getCurrentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getCurrentFrame",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getCurrentFrame" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int)((ofVideoPlayer const *)arg1)->getCurrentFrame(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getTotalNumFrames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + int result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getTotalNumFrames",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getTotalNumFrames" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (int)((ofVideoPlayer const *)arg1)->getTotalNumFrames(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_firstFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_firstFrame",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_firstFrame" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->firstFrame(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_nextFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_nextFrame",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_nextFrame" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->nextFrame(); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_previousFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_previousFrame",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_previousFrame" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); (arg1)->previousFrame(); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getHeight" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getHeight(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getWidth" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (float)((ofVideoPlayer const *)arg1)->getWidth(); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isPaused",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isPaused" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isPaused(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isLoaded",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isLoaded" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isLoaded(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isPlaying(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isPlaying",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isPlaying" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isPlaying(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + bool result; if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_isInitialized",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_isInitialized" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (bool)((ofVideoPlayer const *)arg1)->isInitialized(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_setPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; SwigValueWrapper< shared_ptr< ofBaseVideoPlayer > > arg2 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofVideoPlayer_setPlayer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_setPlayer" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t, 0 | 0); if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofVideoPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoPlayer >""'"); } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofVideoPlayer_setPlayer" "', argument " "2"" of type '" "shared_ptr< ofBaseVideoPlayer >""'"); } + else { shared_ptr< ofBaseVideoPlayer > * temp = reinterpret_cast< shared_ptr< ofBaseVideoPlayer > * >(argp2); arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->setPlayer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPlayer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoPlayer > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPlayer" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = (arg1)->getPlayer(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoPlayer >(static_cast< const shared_ptr< ofBaseVideoPlayer >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPlayer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + SwigValueWrapper< shared_ptr< ofBaseVideoPlayer > > result; + if (!PyArg_ParseTuple(args,(char *)"O:ofVideoPlayer_getPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofVideoPlayer_getPlayer" "', argument " "1"" of type '" "ofVideoPlayer const *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); result = ((ofVideoPlayer const *)arg1)->getPlayer(); + resultobj = SWIG_NewPointerObj((new shared_ptr< ofBaseVideoPlayer >(static_cast< const shared_ptr< ofBaseVideoPlayer >& >(result))), SWIGTYPE_p_shared_ptrT_ofBaseVideoPlayer_t, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofVideoPlayer_getPlayer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPlayer__SWIG_0(self, args);} } if (argc == 1) { int _v; void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ofVideoPlayer, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofVideoPlayer_getPlayer__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofVideoPlayer_getPlayer'.\n" + " Possible C/C++ prototypes are:\n" " ofVideoPlayer::getPlayer()\n" " ofVideoPlayer::getPlayer() const\n"); return 0; } +SWIGINTERN PyObject *_wrap_delete_ofVideoPlayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofVideoPlayer *arg1 = (ofVideoPlayer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofVideoPlayer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofVideoPlayer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofVideoPlayer" "', argument " "1"" of type '" "ofVideoPlayer *""'"); } + arg1 = reinterpret_cast< ofVideoPlayer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofVideoPlayer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofVideoPlayer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofGetMousePressed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetMousePressed",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetMousePressed" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = (bool)ofGetMousePressed(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetMousePressed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetMousePressed")) SWIG_fail; result = (bool)ofGetMousePressed(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetMousePressed(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofGetMousePressed__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofGetMousePressed__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofGetMousePressed'.\n" + " Possible C/C++ prototypes are:\n" " ofGetMousePressed(int)\n" " ofGetMousePressed()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetKeyPressed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; bool result; + if (!PyArg_ParseTuple(args,(char *)"O:ofGetKeyPressed",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ofGetKeyPressed" "', argument " "1"" of type '" "int""'"); } + arg1 = static_cast< int >(val1); result = (bool)ofGetKeyPressed(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetKeyPressed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + bool result; if (!PyArg_ParseTuple(args,(char *)":ofGetKeyPressed")) SWIG_fail; result = (bool)ofGetKeyPressed(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetKeyPressed(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_ofGetKeyPressed__SWIG_1(self, args);} if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { return _wrap_ofGetKeyPressed__SWIG_0(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofGetKeyPressed'.\n" + " Possible C/C++ prototypes are:\n" " ofGetKeyPressed(int)\n" " ofGetKeyPressed()\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofGetMouseX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetMouseX")) SWIG_fail; result = (int)ofGetMouseX(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetMouseY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; + if (!PyArg_ParseTuple(args,(char *)":ofGetMouseY")) SWIG_fail; result = (int)ofGetMouseY(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetPreviousMouseX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetPreviousMouseX")) SWIG_fail; result = (int)ofGetPreviousMouseX(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofGetPreviousMouseY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + int result; if (!PyArg_ParseTuple(args,(char *)":ofGetPreviousMouseY")) SWIG_fail; result = (int)ofGetPreviousMouseY(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDragInfo_files_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDragInfo *arg1 = (ofDragInfo *) 0 ; std::vector< std::string > *arg2 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; + int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofDragInfo_files_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDragInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDragInfo_files_set" "', argument " "1"" of type '" "ofDragInfo *""'"); } + arg1 = reinterpret_cast< ofDragInfo * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDragInfo_files_set" "', argument " "2"" of type '" "std::vector< std::string > *""'"); } + arg2 = reinterpret_cast< std::vector< std::string > * >(argp2); if (arg1) (arg1)->files = *arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDragInfo_files_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDragInfo *arg1 = (ofDragInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofDragInfo_files_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDragInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDragInfo_files_get" "', argument " "1"" of type '" "ofDragInfo *""'"); } + arg1 = reinterpret_cast< ofDragInfo * >(argp1); result = (std::vector< std::string > *)& ((arg1)->files); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDragInfo_position_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDragInfo *arg1 = (ofDragInfo *) 0 ; ofPoint *arg2 = (ofPoint *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; + int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofDragInfo_position_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDragInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDragInfo_position_set" "', argument " "1"" of type '" "ofDragInfo *""'"); } + arg1 = reinterpret_cast< ofDragInfo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ofVec3f, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ofDragInfo_position_set" "', argument " "2"" of type '" "ofPoint *""'"); } + arg2 = reinterpret_cast< ofPoint * >(argp2); if (arg1) (arg1)->position = *arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofDragInfo_position_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDragInfo *arg1 = (ofDragInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ofPoint *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofDragInfo_position_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDragInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofDragInfo_position_get" "', argument " "1"" of type '" "ofDragInfo *""'"); } + arg1 = reinterpret_cast< ofDragInfo * >(argp1); result = (ofPoint *)& ((arg1)->position); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofVec3f, 0 | 0 ); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofDragInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDragInfo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ofDragInfo")) SWIG_fail; + result = (ofDragInfo *)new ofDragInfo(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofDragInfo, SWIG_POINTER_NEW | 0 ); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofDragInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofDragInfo *arg1 = (ofDragInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofDragInfo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofDragInfo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofDragInfo" "', argument " "1"" of type '" "ofDragInfo *""'"); } + arg1 = reinterpret_cast< ofDragInfo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofDragInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofDragInfo, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ofTouchEventArgs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)":new_ofTouchEventArgs")) SWIG_fail; result = (ofTouchEventArgs *)new ofTouchEventArgs(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTouchEventArgs, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTouchEventArgs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs::Type arg1 ; float arg2 ; float arg3 ; int arg4 ; int val1 ; int ecode1 = 0 ; + float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ofTouchEventArgs *result = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_ofTouchEventArgs",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ofTouchEventArgs" "', argument " "1"" of type '" "ofTouchEventArgs::Type""'"); } + arg1 = static_cast< ofTouchEventArgs::Type >(val1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ofTouchEventArgs" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ofTouchEventArgs" "', argument " "3"" of type '" "float""'"); } + arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ofTouchEventArgs" "', argument " "4"" of type '" "int""'"); } + arg4 = static_cast< int >(val4); result = (ofTouchEventArgs *)new ofTouchEventArgs(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ofTouchEventArgs, SWIG_POINTER_NEW | 0 ); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_new_ofTouchEventArgs(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { + return _wrap_new_ofTouchEventArgs__SWIG_0(self, args);} if (argc == 4) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } + if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { + int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { + return _wrap_new_ofTouchEventArgs__SWIG_1(self, args);} } } } } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ofTouchEventArgs'.\n" + " Possible C/C++ prototypes are:\n" " ofTouchEventArgs::ofTouchEventArgs()\n" + " ofTouchEventArgs::ofTouchEventArgs(ofTouchEventArgs::Type,float,float,int)\n"); return 0; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; ofTouchEventArgs::Type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; + int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_type_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_type_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_type_set" "', argument " "2"" of type '" "ofTouchEventArgs::Type""'"); } + arg2 = static_cast< ofTouchEventArgs::Type >(val2); if (arg1) (arg1)->type = arg2; resultobj = SWIG_Py_Void(); + return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + ofTouchEventArgs::Type result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_type_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_type_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (ofTouchEventArgs::Type) ((arg1)->type); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_id_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_id_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_id_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_id_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->id = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_id_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_id_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_id_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (int) ((arg1)->id); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_time_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_time_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_time_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->time = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_time_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_time_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (int) ((arg1)->time); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_numTouches_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_numTouches_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_numTouches_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_numTouches_set" "', argument " "2"" of type '" "int""'"); } + arg2 = static_cast< int >(val2); if (arg1) (arg1)->numTouches = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_numTouches_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_numTouches_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_numTouches_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (int) ((arg1)->numTouches); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_width_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_width_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_width_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->width = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_width_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_width_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->width); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_height_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_height_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_height_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->height = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_height_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_height_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->height); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_angle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; + PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_angle_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_angle_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_angle_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->angle = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_angle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float result; + if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_angle_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_angle_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->angle); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_minoraxis_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_minoraxis_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_minoraxis_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_minoraxis_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->minoraxis = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_minoraxis_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_minoraxis_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_minoraxis_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->minoraxis); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_majoraxis_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_majoraxis_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_majoraxis_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_majoraxis_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->majoraxis = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_majoraxis_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_majoraxis_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_majoraxis_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->majoraxis); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_pressure_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_pressure_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_pressure_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_pressure_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->pressure = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_pressure_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_pressure_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_pressure_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->pressure); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_xspeed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_xspeed_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_xspeed_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_xspeed_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->xspeed = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_xspeed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_xspeed_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_xspeed_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->xspeed); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_yspeed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_yspeed_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_yspeed_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_yspeed_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->yspeed = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_yspeed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_yspeed_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_yspeed_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->yspeed); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_xaccel_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_xaccel_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_xaccel_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_xaccel_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->xaccel = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_xaccel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_xaccel_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_xaccel_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->xaccel); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_yaccel_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; + float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"OO:ofTouchEventArgs_yaccel_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_yaccel_set" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ofTouchEventArgs_yaccel_set" "', argument " "2"" of type '" "float""'"); } + arg2 = static_cast< float >(val2); if (arg1) (arg1)->yaccel = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *_wrap_ofTouchEventArgs_yaccel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + PyObject * obj0 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"O:ofTouchEventArgs_yaccel_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, 0 | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofTouchEventArgs_yaccel_get" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); result = (float) ((arg1)->yaccel); + resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_delete_ofTouchEventArgs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + ofTouchEventArgs *arg1 = (ofTouchEventArgs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:delete_ofTouchEventArgs",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ofTouchEventArgs, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ofTouchEventArgs" "', argument " "1"" of type '" "ofTouchEventArgs *""'"); } + arg1 = reinterpret_cast< ofTouchEventArgs * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: + return NULL; } +SWIGINTERN PyObject *ofTouchEventArgs_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ofTouchEventArgs, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_ofSendMessage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + SwigValueWrapper< ofMessage > arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; + if (!PyArg_ParseTuple(args,(char *)"O:ofSendMessage",&obj0)) SWIG_fail; { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ofMessage, 0 | 0); if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ofSendMessage" "', argument " "1"" of type '" "ofMessage""'"); } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ofSendMessage" "', argument " "1"" of type '" "ofMessage""'"); } + else { ofMessage * temp = reinterpret_cast< ofMessage * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } + ofSendMessage(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSendMessage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; + std::string arg1 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ofSendMessage",&obj0)) SWIG_fail; { + std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ofSendMessage" "', argument " "1"" of type '" "std::string""'"); } + arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ofSendMessage(arg1); resultobj = SWIG_Py_Void(); return resultobj; + fail: return NULL; } +SWIGINTERN PyObject *_wrap_ofSendMessage(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0} ; + Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ofMessage, 0); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSendMessage__SWIG_0(self, args);} } if (argc == 1) { int _v; + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { + return _wrap_ofSendMessage__SWIG_1(self, args);} } fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ofSendMessage'.\n" + " Possible C/C++ prototypes are:\n" " ofSendMessage(ofMessage)\n" " ofSendMessage(std::string)\n"); return 0; } +static PyMethodDef SwigMethods[] = { + { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, + { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL}, + { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL}, + { (char *)"IntVector_iterator", _wrap_IntVector_iterator, METH_VARARGS, NULL}, + { (char *)"IntVector___nonzero__", _wrap_IntVector___nonzero__, METH_VARARGS, NULL}, + { (char *)"IntVector___bool__", _wrap_IntVector___bool__, METH_VARARGS, NULL}, + { (char *)"IntVector___len__", _wrap_IntVector___len__, METH_VARARGS, NULL}, + { (char *)"IntVector___getslice__", _wrap_IntVector___getslice__, METH_VARARGS, NULL}, + { (char *)"IntVector___setslice__", _wrap_IntVector___setslice__, METH_VARARGS, NULL}, + { (char *)"IntVector___delslice__", _wrap_IntVector___delslice__, METH_VARARGS, NULL}, + { (char *)"IntVector___delitem__", _wrap_IntVector___delitem__, METH_VARARGS, NULL}, + { (char *)"IntVector___getitem__", _wrap_IntVector___getitem__, METH_VARARGS, NULL}, + { (char *)"IntVector___setitem__", _wrap_IntVector___setitem__, METH_VARARGS, NULL}, + { (char *)"IntVector_pop", _wrap_IntVector_pop, METH_VARARGS, NULL}, + { (char *)"IntVector_append", _wrap_IntVector_append, METH_VARARGS, NULL}, + { (char *)"IntVector_empty", _wrap_IntVector_empty, METH_VARARGS, NULL}, + { (char *)"IntVector_size", _wrap_IntVector_size, METH_VARARGS, NULL}, + { (char *)"IntVector_swap", _wrap_IntVector_swap, METH_VARARGS, NULL}, + { (char *)"IntVector_begin", _wrap_IntVector_begin, METH_VARARGS, NULL}, + { (char *)"IntVector_end", _wrap_IntVector_end, METH_VARARGS, NULL}, + { (char *)"IntVector_rbegin", _wrap_IntVector_rbegin, METH_VARARGS, NULL}, + { (char *)"IntVector_rend", _wrap_IntVector_rend, METH_VARARGS, NULL}, + { (char *)"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL}, + { (char *)"IntVector_get_allocator", _wrap_IntVector_get_allocator, METH_VARARGS, NULL}, + { (char *)"IntVector_pop_back", _wrap_IntVector_pop_back, METH_VARARGS, NULL}, + { (char *)"IntVector_erase", _wrap_IntVector_erase, METH_VARARGS, NULL}, + { (char *)"new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL}, + { (char *)"IntVector_push_back", _wrap_IntVector_push_back, METH_VARARGS, NULL}, + { (char *)"IntVector_front", _wrap_IntVector_front, METH_VARARGS, NULL}, + { (char *)"IntVector_back", _wrap_IntVector_back, METH_VARARGS, NULL}, + { (char *)"IntVector_assign", _wrap_IntVector_assign, METH_VARARGS, NULL}, + { (char *)"IntVector_resize", _wrap_IntVector_resize, METH_VARARGS, NULL}, + { (char *)"IntVector_insert", _wrap_IntVector_insert, METH_VARARGS, NULL}, + { (char *)"IntVector_reserve", _wrap_IntVector_reserve, METH_VARARGS, NULL}, + { (char *)"IntVector_capacity", _wrap_IntVector_capacity, METH_VARARGS, NULL}, + { (char *)"delete_IntVector", _wrap_delete_IntVector, METH_VARARGS, NULL}, + { (char *)"IntVector_swigregister", IntVector_swigregister, METH_VARARGS, NULL}, + { (char *)"FloatVector_iterator", _wrap_FloatVector_iterator, METH_VARARGS, NULL}, + { (char *)"FloatVector___nonzero__", _wrap_FloatVector___nonzero__, METH_VARARGS, NULL}, + { (char *)"FloatVector___bool__", _wrap_FloatVector___bool__, METH_VARARGS, NULL}, + { (char *)"FloatVector___len__", _wrap_FloatVector___len__, METH_VARARGS, NULL}, + { (char *)"FloatVector___getslice__", _wrap_FloatVector___getslice__, METH_VARARGS, NULL}, + { (char *)"FloatVector___setslice__", _wrap_FloatVector___setslice__, METH_VARARGS, NULL}, + { (char *)"FloatVector___delslice__", _wrap_FloatVector___delslice__, METH_VARARGS, NULL}, + { (char *)"FloatVector___delitem__", _wrap_FloatVector___delitem__, METH_VARARGS, NULL}, + { (char *)"FloatVector___getitem__", _wrap_FloatVector___getitem__, METH_VARARGS, NULL}, + { (char *)"FloatVector___setitem__", _wrap_FloatVector___setitem__, METH_VARARGS, NULL}, + { (char *)"FloatVector_pop", _wrap_FloatVector_pop, METH_VARARGS, NULL}, + { (char *)"FloatVector_append", _wrap_FloatVector_append, METH_VARARGS, NULL}, + { (char *)"FloatVector_empty", _wrap_FloatVector_empty, METH_VARARGS, NULL}, + { (char *)"FloatVector_size", _wrap_FloatVector_size, METH_VARARGS, NULL}, + { (char *)"FloatVector_swap", _wrap_FloatVector_swap, METH_VARARGS, NULL}, + { (char *)"FloatVector_begin", _wrap_FloatVector_begin, METH_VARARGS, NULL}, + { (char *)"FloatVector_end", _wrap_FloatVector_end, METH_VARARGS, NULL}, + { (char *)"FloatVector_rbegin", _wrap_FloatVector_rbegin, METH_VARARGS, NULL}, + { (char *)"FloatVector_rend", _wrap_FloatVector_rend, METH_VARARGS, NULL}, + { (char *)"FloatVector_clear", _wrap_FloatVector_clear, METH_VARARGS, NULL}, + { (char *)"FloatVector_get_allocator", _wrap_FloatVector_get_allocator, METH_VARARGS, NULL}, + { (char *)"FloatVector_pop_back", _wrap_FloatVector_pop_back, METH_VARARGS, NULL}, + { (char *)"FloatVector_erase", _wrap_FloatVector_erase, METH_VARARGS, NULL}, + { (char *)"new_FloatVector", _wrap_new_FloatVector, METH_VARARGS, NULL}, + { (char *)"FloatVector_push_back", _wrap_FloatVector_push_back, METH_VARARGS, NULL}, + { (char *)"FloatVector_front", _wrap_FloatVector_front, METH_VARARGS, NULL}, + { (char *)"FloatVector_back", _wrap_FloatVector_back, METH_VARARGS, NULL}, + { (char *)"FloatVector_assign", _wrap_FloatVector_assign, METH_VARARGS, NULL}, + { (char *)"FloatVector_resize", _wrap_FloatVector_resize, METH_VARARGS, NULL}, + { (char *)"FloatVector_insert", _wrap_FloatVector_insert, METH_VARARGS, NULL}, + { (char *)"FloatVector_reserve", _wrap_FloatVector_reserve, METH_VARARGS, NULL}, + { (char *)"FloatVector_capacity", _wrap_FloatVector_capacity, METH_VARARGS, NULL}, + { (char *)"delete_FloatVector", _wrap_delete_FloatVector, METH_VARARGS, NULL}, + { (char *)"FloatVector_swigregister", FloatVector_swigregister, METH_VARARGS, NULL}, + { (char *)"StringVector_iterator", _wrap_StringVector_iterator, METH_VARARGS, NULL}, + { (char *)"StringVector___nonzero__", _wrap_StringVector___nonzero__, METH_VARARGS, NULL}, + { (char *)"StringVector___bool__", _wrap_StringVector___bool__, METH_VARARGS, NULL}, + { (char *)"StringVector___len__", _wrap_StringVector___len__, METH_VARARGS, NULL}, + { (char *)"StringVector___getslice__", _wrap_StringVector___getslice__, METH_VARARGS, NULL}, + { (char *)"StringVector___setslice__", _wrap_StringVector___setslice__, METH_VARARGS, NULL}, + { (char *)"StringVector___delslice__", _wrap_StringVector___delslice__, METH_VARARGS, NULL}, + { (char *)"StringVector___delitem__", _wrap_StringVector___delitem__, METH_VARARGS, NULL}, + { (char *)"StringVector___getitem__", _wrap_StringVector___getitem__, METH_VARARGS, NULL}, + { (char *)"StringVector___setitem__", _wrap_StringVector___setitem__, METH_VARARGS, NULL}, + { (char *)"StringVector_pop", _wrap_StringVector_pop, METH_VARARGS, NULL}, + { (char *)"StringVector_append", _wrap_StringVector_append, METH_VARARGS, NULL}, + { (char *)"StringVector_empty", _wrap_StringVector_empty, METH_VARARGS, NULL}, + { (char *)"StringVector_size", _wrap_StringVector_size, METH_VARARGS, NULL}, + { (char *)"StringVector_swap", _wrap_StringVector_swap, METH_VARARGS, NULL}, + { (char *)"StringVector_begin", _wrap_StringVector_begin, METH_VARARGS, NULL}, + { (char *)"StringVector_end", _wrap_StringVector_end, METH_VARARGS, NULL}, + { (char *)"StringVector_rbegin", _wrap_StringVector_rbegin, METH_VARARGS, NULL}, + { (char *)"StringVector_rend", _wrap_StringVector_rend, METH_VARARGS, NULL}, + { (char *)"StringVector_clear", _wrap_StringVector_clear, METH_VARARGS, NULL}, + { (char *)"StringVector_get_allocator", _wrap_StringVector_get_allocator, METH_VARARGS, NULL}, + { (char *)"StringVector_pop_back", _wrap_StringVector_pop_back, METH_VARARGS, NULL}, + { (char *)"StringVector_erase", _wrap_StringVector_erase, METH_VARARGS, NULL}, + { (char *)"new_StringVector", _wrap_new_StringVector, METH_VARARGS, NULL}, + { (char *)"StringVector_push_back", _wrap_StringVector_push_back, METH_VARARGS, NULL}, + { (char *)"StringVector_front", _wrap_StringVector_front, METH_VARARGS, NULL}, + { (char *)"StringVector_back", _wrap_StringVector_back, METH_VARARGS, NULL}, + { (char *)"StringVector_assign", _wrap_StringVector_assign, METH_VARARGS, NULL}, + { (char *)"StringVector_resize", _wrap_StringVector_resize, METH_VARARGS, NULL}, + { (char *)"StringVector_insert", _wrap_StringVector_insert, METH_VARARGS, NULL}, + { (char *)"StringVector_reserve", _wrap_StringVector_reserve, METH_VARARGS, NULL}, + { (char *)"StringVector_capacity", _wrap_StringVector_capacity, METH_VARARGS, NULL}, + { (char *)"delete_StringVector", _wrap_delete_StringVector, METH_VARARGS, NULL}, + { (char *)"StringVector_swigregister", StringVector_swigregister, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_MAJOR_swigconstant", OF_VERSION_MAJOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_MINOR_swigconstant", OF_VERSION_MINOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_PATCH_swigconstant", OF_VERSION_PATCH_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_VERSION_PRE_RELEASE_swigconstant", OF_VERSION_PRE_RELEASE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOOP_NONE_swigconstant", OF_LOOP_NONE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOOP_PALINDROME_swigconstant", OF_LOOP_PALINDROME_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOOP_NORMAL_swigconstant", OF_LOOP_NORMAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_OSX_swigconstant", OF_TARGET_OSX_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_MINGW_swigconstant", OF_TARGET_MINGW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_WINVS_swigconstant", OF_TARGET_WINVS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_IOS_swigconstant", OF_TARGET_IOS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_ANDROID_swigconstant", OF_TARGET_ANDROID_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUX_swigconstant", OF_TARGET_LINUX_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUX64_swigconstant", OF_TARGET_LINUX64_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUXARMV6L_swigconstant", OF_TARGET_LINUXARMV6L_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_LINUXARMV7L_swigconstant", OF_TARGET_LINUXARMV7L_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_TARGET_EMSCRIPTEN_swigconstant", OF_TARGET_EMSCRIPTEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"B14400_swigconstant", B14400_swigconstant, METH_VARARGS, NULL}, + { (char *)"B28800_swigconstant", B28800_swigconstant, METH_VARARGS, NULL}, + { (char *)"HAS_TLS_swigconstant", HAS_TLS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SERIAL_NO_DATA_swigconstant", OF_SERIAL_NO_DATA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SERIAL_ERROR_swigconstant", OF_SERIAL_ERROR_swigconstant, METH_VARARGS, NULL}, + { (char *)"PI_swigconstant", PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"TWO_PI_swigconstant", TWO_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"M_TWO_PI_swigconstant", M_TWO_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"FOUR_PI_swigconstant", FOUR_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"HALF_PI_swigconstant", HALF_PI_swigconstant, METH_VARARGS, NULL}, + { (char *)"DEG_TO_RAD_swigconstant", DEG_TO_RAD_swigconstant, METH_VARARGS, NULL}, + { (char *)"RAD_TO_DEG_swigconstant", RAD_TO_DEG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_OUTLINE_swigconstant", OF_OUTLINE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_FILLED_swigconstant", OF_FILLED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_WINDOW_swigconstant", OF_WINDOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_FULLSCREEN_swigconstant", OF_FULLSCREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GAME_MODE_swigconstant", OF_GAME_MODE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ASPECT_RATIO_IGNORE_swigconstant", OF_ASPECT_RATIO_IGNORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ASPECT_RATIO_KEEP_swigconstant", OF_ASPECT_RATIO_KEEP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant", OF_ASPECT_RATIO_KEEP_BY_EXPANDING_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_IGNORE_swigconstant", OF_ALIGN_VERT_IGNORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_TOP_swigconstant", OF_ALIGN_VERT_TOP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_BOTTOM_swigconstant", OF_ALIGN_VERT_BOTTOM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_VERT_CENTER_swigconstant", OF_ALIGN_VERT_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_IGNORE_swigconstant", OF_ALIGN_HORZ_IGNORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_LEFT_swigconstant", OF_ALIGN_HORZ_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_RIGHT_swigconstant", OF_ALIGN_HORZ_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ALIGN_HORZ_CENTER_swigconstant", OF_ALIGN_HORZ_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_RECTMODE_CORNER_swigconstant", OF_RECTMODE_CORNER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_RECTMODE_CENTER_swigconstant", OF_RECTMODE_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_FIT_swigconstant", OF_SCALEMODE_FIT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_FILL_swigconstant", OF_SCALEMODE_FILL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_CENTER_swigconstant", OF_SCALEMODE_CENTER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_SCALEMODE_STRETCH_TO_FILL_swigconstant", OF_SCALEMODE_STRETCH_TO_FILL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_GRAYSCALE_swigconstant", OF_IMAGE_GRAYSCALE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_COLOR_swigconstant", OF_IMAGE_COLOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_COLOR_ALPHA_swigconstant", OF_IMAGE_COLOR_ALPHA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_UNDEFINED_swigconstant", OF_IMAGE_UNDEFINED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MAX_STYLE_HISTORY_swigconstant", OF_MAX_STYLE_HISTORY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MAX_VIEWPORT_HISTORY_swigconstant", OF_MAX_VIEWPORT_HISTORY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MAX_CIRCLE_PTS_swigconstant", OF_MAX_CIRCLE_PTS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_DISABLED_swigconstant", OF_BLENDMODE_DISABLED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_ALPHA_swigconstant", OF_BLENDMODE_ALPHA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_ADD_swigconstant", OF_BLENDMODE_ADD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_SUBTRACT_swigconstant", OF_BLENDMODE_SUBTRACT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_MULTIPLY_swigconstant", OF_BLENDMODE_MULTIPLY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BLENDMODE_SCREEN_swigconstant", OF_BLENDMODE_SCREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_DEFAULT_swigconstant", OF_ORIENTATION_DEFAULT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_180_swigconstant", OF_ORIENTATION_180_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_90_LEFT_swigconstant", OF_ORIENTATION_90_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_90_RIGHT_swigconstant", OF_ORIENTATION_90_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ORIENTATION_UNKNOWN_swigconstant", OF_ORIENTATION_UNKNOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GRADIENT_LINEAR_swigconstant", OF_GRADIENT_LINEAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GRADIENT_CIRCULAR_swigconstant", OF_GRADIENT_CIRCULAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_GRADIENT_BAR_swigconstant", OF_GRADIENT_BAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_ODD_swigconstant", OF_POLY_WINDING_ODD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_NONZERO_swigconstant", OF_POLY_WINDING_NONZERO_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_POSITIVE_swigconstant", OF_POLY_WINDING_POSITIVE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_NEGATIVE_swigconstant", OF_POLY_WINDING_NEGATIVE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant", OF_POLY_WINDING_ABS_GEQ_TWO_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CLOSE_swigconstant", OF_CLOSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LEFT_HANDED_swigconstant", OF_LEFT_HANDED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_RIGHT_HANDED_swigconstant", OF_RIGHT_HANDED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MATRIX_MODELVIEW_swigconstant", OF_MATRIX_MODELVIEW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MATRIX_PROJECTION_swigconstant", OF_MATRIX_PROJECTION_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MATRIX_TEXTURE_swigconstant", OF_MATRIX_TEXTURE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_MODIFIER_swigconstant", OF_KEY_MODIFIER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RETURN_swigconstant", OF_KEY_RETURN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_ESC_swigconstant", OF_KEY_ESC_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_TAB_swigconstant", OF_KEY_TAB_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_BACKSPACE_swigconstant", OF_KEY_BACKSPACE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_DEL_swigconstant", OF_KEY_DEL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F1_swigconstant", OF_KEY_F1_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F2_swigconstant", OF_KEY_F2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F3_swigconstant", OF_KEY_F3_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F4_swigconstant", OF_KEY_F4_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F5_swigconstant", OF_KEY_F5_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F6_swigconstant", OF_KEY_F6_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F7_swigconstant", OF_KEY_F7_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F8_swigconstant", OF_KEY_F8_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F9_swigconstant", OF_KEY_F9_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F10_swigconstant", OF_KEY_F10_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F11_swigconstant", OF_KEY_F11_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_F12_swigconstant", OF_KEY_F12_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_swigconstant", OF_KEY_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_UP_swigconstant", OF_KEY_UP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_swigconstant", OF_KEY_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_DOWN_swigconstant", OF_KEY_DOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_PAGE_UP_swigconstant", OF_KEY_PAGE_UP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_PAGE_DOWN_swigconstant", OF_KEY_PAGE_DOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_HOME_swigconstant", OF_KEY_HOME_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_END_swigconstant", OF_KEY_END_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_INSERT_swigconstant", OF_KEY_INSERT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_CONTROL_swigconstant", OF_KEY_CONTROL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_ALT_swigconstant", OF_KEY_ALT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_SHIFT_swigconstant", OF_KEY_SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_SUPER_swigconstant", OF_KEY_SUPER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_SHIFT_swigconstant", OF_KEY_LEFT_SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_SHIFT_swigconstant", OF_KEY_RIGHT_SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_CONTROL_swigconstant", OF_KEY_LEFT_CONTROL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_CONTROL_swigconstant", OF_KEY_RIGHT_CONTROL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_ALT_swigconstant", OF_KEY_LEFT_ALT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_ALT_swigconstant", OF_KEY_RIGHT_ALT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_SUPER_swigconstant", OF_KEY_LEFT_SUPER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_SUPER_swigconstant", OF_KEY_RIGHT_SUPER_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_LEFT_COMMAND_swigconstant", OF_KEY_LEFT_COMMAND_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_KEY_RIGHT_COMMAND_swigconstant", OF_KEY_RIGHT_COMMAND_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_1_swigconstant", OF_MOUSE_BUTTON_1_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_2_swigconstant", OF_MOUSE_BUTTON_2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_3_swigconstant", OF_MOUSE_BUTTON_3_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_4_swigconstant", OF_MOUSE_BUTTON_4_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_5_swigconstant", OF_MOUSE_BUTTON_5_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_6_swigconstant", OF_MOUSE_BUTTON_6_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_7_swigconstant", OF_MOUSE_BUTTON_7_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_8_swigconstant", OF_MOUSE_BUTTON_8_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_LAST_swigconstant", OF_MOUSE_BUTTON_LAST_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_LEFT_swigconstant", OF_MOUSE_BUTTON_LEFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_MIDDLE_swigconstant", OF_MOUSE_BUTTON_MIDDLE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_MOUSE_BUTTON_RIGHT_swigconstant", OF_MOUSE_BUTTON_RIGHT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_RESTORE_swigconstant", OF_CONSOLE_COLOR_RESTORE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_BLACK_swigconstant", OF_CONSOLE_COLOR_BLACK_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_RED_swigconstant", OF_CONSOLE_COLOR_RED_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_GREEN_swigconstant", OF_CONSOLE_COLOR_GREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_YELLOW_swigconstant", OF_CONSOLE_COLOR_YELLOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_BLUE_swigconstant", OF_CONSOLE_COLOR_BLUE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_PURPLE_swigconstant", OF_CONSOLE_COLOR_PURPLE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_CYAN_swigconstant", OF_CONSOLE_COLOR_CYAN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_CONSOLE_COLOR_WHITE_swigconstant", OF_CONSOLE_COLOR_WHITE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_GRAY_swigconstant", OF_PIXELS_GRAY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_GRAY_ALPHA_swigconstant", OF_PIXELS_GRAY_ALPHA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_RGB_swigconstant", OF_PIXELS_RGB_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_BGR_swigconstant", OF_PIXELS_BGR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_RGBA_swigconstant", OF_PIXELS_RGBA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_BGRA_swigconstant", OF_PIXELS_BGRA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_RGB565_swigconstant", OF_PIXELS_RGB565_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NV12_swigconstant", OF_PIXELS_NV12_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NV21_swigconstant", OF_PIXELS_NV21_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_YV12_swigconstant", OF_PIXELS_YV12_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_I420_swigconstant", OF_PIXELS_I420_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_YUY2_swigconstant", OF_PIXELS_YUY2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_UYVY_swigconstant", OF_PIXELS_UYVY_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_Y_swigconstant", OF_PIXELS_Y_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_U_swigconstant", OF_PIXELS_U_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_V_swigconstant", OF_PIXELS_V_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_UV_swigconstant", OF_PIXELS_UV_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_VU_swigconstant", OF_PIXELS_VU_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NUM_FORMATS_swigconstant", OF_PIXELS_NUM_FORMATS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_UNKNOWN_swigconstant", OF_PIXELS_UNKNOWN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_PIXELS_NATIVE_swigconstant", OF_PIXELS_NATIVE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_SIMPLE_swigconstant", OF_BITMAPMODE_SIMPLE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_SCREEN_swigconstant", OF_BITMAPMODE_SCREEN_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_VIEWPORT_swigconstant", OF_BITMAPMODE_VIEWPORT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_MODEL_swigconstant", OF_BITMAPMODE_MODEL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant", OF_BITMAPMODE_MODEL_BILLBOARD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ENCODING_UTF8_swigconstant", OF_ENCODING_UTF8_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ENCODING_ISO_8859_15_swigconstant", OF_ENCODING_ISO_8859_15_swigconstant, METH_VARARGS, NULL}, + { (char *)"new_ofFbo", _wrap_new_ofFbo, METH_VARARGS, NULL}, + { (char *)"delete_ofFbo", _wrap_delete_ofFbo, METH_VARARGS, NULL}, + { (char *)"ofFbo_allocate", _wrap_ofFbo_allocate, METH_VARARGS, NULL}, + { (char *)"ofFbo_isAllocated", _wrap_ofFbo_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofFbo_destroy", _wrap_ofFbo_destroy, METH_VARARGS, NULL}, + { (char *)"ofFbo_clear", _wrap_ofFbo_clear, METH_VARARGS, NULL}, + { (char *)"ofFbo_draw", _wrap_ofFbo_draw, METH_VARARGS, NULL}, + { (char *)"ofFbo_setAnchorPercent", _wrap_ofFbo_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofFbo_setAnchorPoint", _wrap_ofFbo_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofFbo_resetAnchor", _wrap_ofFbo_resetAnchor, METH_VARARGS, NULL}, + { (char *)"ofFbo_setDefaultTextureIndex", _wrap_ofFbo_setDefaultTextureIndex, METH_VARARGS, NULL}, + { (char *)"ofFbo_getDefaultTextureIndex", _wrap_ofFbo_getDefaultTextureIndex, METH_VARARGS, NULL}, + { (char *)"ofFbo_getTextureReference", _wrap_ofFbo_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofFbo_getTexture", _wrap_ofFbo_getTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_getDepthTexture", _wrap_ofFbo_getDepthTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_setUseTexture", _wrap_ofFbo_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_isUsingTexture", _wrap_ofFbo_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_begin", _wrap_ofFbo_begin, METH_VARARGS, NULL}, + { (char *)"ofFbo_end", _wrap_ofFbo_end, METH_VARARGS, NULL}, + { (char *)"ofFbo_readToPixels", _wrap_ofFbo_readToPixels, METH_VARARGS, NULL}, + { (char *)"ofFbo_getWidth", _wrap_ofFbo_getWidth, METH_VARARGS, NULL}, + { (char *)"ofFbo_getHeight", _wrap_ofFbo_getHeight, METH_VARARGS, NULL}, + { (char *)"ofFbo_bind", _wrap_ofFbo_bind, METH_VARARGS, NULL}, + { (char *)"ofFbo_unbind", _wrap_ofFbo_unbind, METH_VARARGS, NULL}, + { (char *)"ofFbo_flagDirty", _wrap_ofFbo_flagDirty, METH_VARARGS, NULL}, + { (char *)"ofFbo_updateTexture", _wrap_ofFbo_updateTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_checkStatus", _wrap_ofFbo_checkStatus, METH_VARARGS, NULL}, + { (char *)"ofFbo_createAndAttachTexture", _wrap_ofFbo_createAndAttachTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_attachTexture", _wrap_ofFbo_attachTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_createAndAttachRenderbuffer", _wrap_ofFbo_createAndAttachRenderbuffer, METH_VARARGS, NULL}, + { (char *)"ofFbo_createAndAttachDepthStencilTexture", _wrap_ofFbo_createAndAttachDepthStencilTexture, METH_VARARGS, NULL}, + { (char *)"ofFbo_getNumTextures", _wrap_ofFbo_getNumTextures, METH_VARARGS, NULL}, + { (char *)"ofFbo_setActiveDrawBuffer", _wrap_ofFbo_setActiveDrawBuffer, METH_VARARGS, NULL}, + { (char *)"ofFbo_setActiveDrawBuffers", _wrap_ofFbo_setActiveDrawBuffers, METH_VARARGS, NULL}, + { (char *)"ofFbo_activateAllDrawBuffers", _wrap_ofFbo_activateAllDrawBuffers, METH_VARARGS, NULL}, + { (char *)"ofFbo_getFbo", _wrap_ofFbo_getFbo, METH_VARARGS, NULL}, + { (char *)"ofFbo_getId", _wrap_ofFbo_getId, METH_VARARGS, NULL}, + { (char *)"ofFbo_getIdDrawBuffer", _wrap_ofFbo_getIdDrawBuffer, METH_VARARGS, NULL}, + { (char *)"ofFbo_checkGLSupport", _wrap_ofFbo_checkGLSupport, METH_VARARGS, NULL}, + { (char *)"ofFbo_maxColorAttachments", _wrap_ofFbo_maxColorAttachments, METH_VARARGS, NULL}, + { (char *)"ofFbo_maxDrawBuffers", _wrap_ofFbo_maxDrawBuffers, METH_VARARGS, NULL}, + { (char *)"ofFbo_maxSamples", _wrap_ofFbo_maxSamples, METH_VARARGS, NULL}, + { (char *)"ofFbo_getDepthBuffer", _wrap_ofFbo_getDepthBuffer, METH_VARARGS, NULL}, + { (char *)"ofFbo_getStencilBuffer", _wrap_ofFbo_getStencilBuffer, METH_VARARGS, NULL}, + { (char *)"ofFbo_swigregister", ofFbo_swigregister, METH_VARARGS, NULL}, + { (char *)"ofGetUsingArbTex", _wrap_ofGetUsingArbTex, METH_VARARGS, NULL}, + { (char *)"ofEnableArbTex", _wrap_ofEnableArbTex, METH_VARARGS, NULL}, + { (char *)"ofDisableArbTex", _wrap_ofDisableArbTex, METH_VARARGS, NULL}, + { (char *)"ofGetUsingNormalizedTexCoords", _wrap_ofGetUsingNormalizedTexCoords, METH_VARARGS, NULL}, + { (char *)"ofEnableNormalizedTexCoords", _wrap_ofEnableNormalizedTexCoords, METH_VARARGS, NULL}, + { (char *)"ofDisableNormalizedTexCoords", _wrap_ofDisableNormalizedTexCoords, METH_VARARGS, NULL}, + { (char *)"OF_COMPRESS_NONE_swigconstant", OF_COMPRESS_NONE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_COMPRESS_SRGB_swigconstant", OF_COMPRESS_SRGB_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_COMPRESS_ARB_swigconstant", OF_COMPRESS_ARB_swigconstant, METH_VARARGS, NULL}, + { (char *)"new_ofTextureData", _wrap_new_ofTextureData, METH_VARARGS, NULL}, + { (char *)"ofTextureData_textureID_set", _wrap_ofTextureData_textureID_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_textureID_get", _wrap_ofTextureData_textureID_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_textureTarget_set", _wrap_ofTextureData_textureTarget_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_textureTarget_get", _wrap_ofTextureData_textureTarget_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_glInternalFormat_set", _wrap_ofTextureData_glInternalFormat_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_glInternalFormat_get", _wrap_ofTextureData_glInternalFormat_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_t_set", _wrap_ofTextureData_tex_t_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_t_get", _wrap_ofTextureData_tex_t_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_u_set", _wrap_ofTextureData_tex_u_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_u_get", _wrap_ofTextureData_tex_u_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_w_set", _wrap_ofTextureData_tex_w_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_w_get", _wrap_ofTextureData_tex_w_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_h_set", _wrap_ofTextureData_tex_h_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_tex_h_get", _wrap_ofTextureData_tex_h_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_width_set", _wrap_ofTextureData_width_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_width_get", _wrap_ofTextureData_width_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_height_set", _wrap_ofTextureData_height_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_height_get", _wrap_ofTextureData_height_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bFlipTexture_set", _wrap_ofTextureData_bFlipTexture_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bFlipTexture_get", _wrap_ofTextureData_bFlipTexture_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_compressionType_set", _wrap_ofTextureData_compressionType_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_compressionType_get", _wrap_ofTextureData_compressionType_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bAllocated_set", _wrap_ofTextureData_bAllocated_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bAllocated_get", _wrap_ofTextureData_bAllocated_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_minFilter_set", _wrap_ofTextureData_minFilter_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_minFilter_get", _wrap_ofTextureData_minFilter_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_magFilter_set", _wrap_ofTextureData_magFilter_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_magFilter_get", _wrap_ofTextureData_magFilter_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeHorizontal_set", _wrap_ofTextureData_wrapModeHorizontal_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeHorizontal_get", _wrap_ofTextureData_wrapModeHorizontal_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeVertical_set", _wrap_ofTextureData_wrapModeVertical_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_wrapModeVertical_get", _wrap_ofTextureData_wrapModeVertical_get, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bufferId_set", _wrap_ofTextureData_bufferId_set, METH_VARARGS, NULL}, + { (char *)"ofTextureData_bufferId_get", _wrap_ofTextureData_bufferId_get, METH_VARARGS, NULL}, + { (char *)"delete_ofTextureData", _wrap_delete_ofTextureData, METH_VARARGS, NULL}, + { (char *)"ofTextureData_swigregister", ofTextureData_swigregister, METH_VARARGS, NULL}, + { (char *)"ofEnableTextureEdgeHack", _wrap_ofEnableTextureEdgeHack, METH_VARARGS, NULL}, + { (char *)"ofDisableTextureEdgeHack", _wrap_ofDisableTextureEdgeHack, METH_VARARGS, NULL}, + { (char *)"ofIsTextureEdgeHackEnabled", _wrap_ofIsTextureEdgeHackEnabled, METH_VARARGS, NULL}, + { (char *)"new_ofTexture", _wrap_new_ofTexture, METH_VARARGS, NULL}, + { (char *)"ofTexture_allocate", _wrap_ofTexture_allocate, METH_VARARGS, NULL}, + { (char *)"ofTexture_isAllocated", _wrap_ofTexture_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofTexture_bAllocated", _wrap_ofTexture_bAllocated, METH_VARARGS, NULL}, + { (char *)"delete_ofTexture", _wrap_delete_ofTexture, METH_VARARGS, NULL}, + { (char *)"ofTexture_clear", _wrap_ofTexture_clear, METH_VARARGS, NULL}, + { (char *)"ofTexture_setUseExternalTextureID", _wrap_ofTexture_setUseExternalTextureID, METH_VARARGS, NULL}, + { (char *)"ofTexture_loadData", _wrap_ofTexture_loadData, METH_VARARGS, NULL}, + { (char *)"ofTexture_loadScreenData", _wrap_ofTexture_loadScreenData, METH_VARARGS, NULL}, + { (char *)"ofTexture_draw", _wrap_ofTexture_draw, METH_VARARGS, NULL}, + { (char *)"ofTexture_drawSubsection", _wrap_ofTexture_drawSubsection, METH_VARARGS, NULL}, + { (char *)"ofTexture_getQuad", _wrap_ofTexture_getQuad, METH_VARARGS, NULL}, + { (char *)"ofTexture_getMeshForSubsection", _wrap_ofTexture_getMeshForSubsection, METH_VARARGS, NULL}, + { (char *)"ofTexture_bind", _wrap_ofTexture_bind, METH_VARARGS, NULL}, + { (char *)"ofTexture_unbind", _wrap_ofTexture_unbind, METH_VARARGS, NULL}, + { (char *)"ofTexture_getAlphaMask", _wrap_ofTexture_getAlphaMask, METH_VARARGS, NULL}, + { (char *)"ofTexture_getHeight", _wrap_ofTexture_getHeight, METH_VARARGS, NULL}, + { (char *)"ofTexture_getWidth", _wrap_ofTexture_getWidth, METH_VARARGS, NULL}, + { (char *)"ofTexture_setAnchorPercent", _wrap_ofTexture_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofTexture_setAnchorPoint", _wrap_ofTexture_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofTexture_resetAnchor", _wrap_ofTexture_resetAnchor, METH_VARARGS, NULL}, + { (char *)"ofTexture_getCoordFromPoint", _wrap_ofTexture_getCoordFromPoint, METH_VARARGS, NULL}, + { (char *)"ofTexture_getCoordFromPercent", _wrap_ofTexture_getCoordFromPercent, METH_VARARGS, NULL}, + { (char *)"ofTexture_setAlphaMask", _wrap_ofTexture_setAlphaMask, METH_VARARGS, NULL}, + { (char *)"ofTexture_disableAlphaMask", _wrap_ofTexture_disableAlphaMask, METH_VARARGS, NULL}, + { (char *)"ofTexture_setTextureWrap", _wrap_ofTexture_setTextureWrap, METH_VARARGS, NULL}, + { (char *)"ofTexture_setTextureMinMagFilter", _wrap_ofTexture_setTextureMinMagFilter, METH_VARARGS, NULL}, + { (char *)"ofTexture_setTextureMatrix", _wrap_ofTexture_setTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofTexture_getTextureMatrix", _wrap_ofTexture_getTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofTexture_isUsingTextureMatrix", _wrap_ofTexture_isUsingTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofTexture_disableTextureMatrix", _wrap_ofTexture_disableTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofTexture_setCompression", _wrap_ofTexture_setCompression, METH_VARARGS, NULL}, + { (char *)"ofTexture_setRGToRGBASwizzles", _wrap_ofTexture_setRGToRGBASwizzles, METH_VARARGS, NULL}, + { (char *)"ofTexture_setSwizzle", _wrap_ofTexture_setSwizzle, METH_VARARGS, NULL}, + { (char *)"ofTexture_readToPixels", _wrap_ofTexture_readToPixels, METH_VARARGS, NULL}, + { (char *)"ofTexture_getTextureData", _wrap_ofTexture_getTextureData, METH_VARARGS, NULL}, + { (char *)"ofTexture_enableMipmap", _wrap_ofTexture_enableMipmap, METH_VARARGS, NULL}, + { (char *)"ofTexture_disableMipmap", _wrap_ofTexture_disableMipmap, METH_VARARGS, NULL}, + { (char *)"ofTexture_generateMipmap", _wrap_ofTexture_generateMipmap, METH_VARARGS, NULL}, + { (char *)"ofTexture_hasMipmap", _wrap_ofTexture_hasMipmap, METH_VARARGS, NULL}, + { (char *)"ofTexture_texData_set", _wrap_ofTexture_texData_set, METH_VARARGS, NULL}, + { (char *)"ofTexture_texData_get", _wrap_ofTexture_texData_get, METH_VARARGS, NULL}, + { (char *)"ofTexture_swigregister", ofTexture_swigregister, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_BEST_swigconstant", OF_IMAGE_QUALITY_BEST_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_HIGH_swigconstant", OF_IMAGE_QUALITY_HIGH_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_MEDIUM_swigconstant", OF_IMAGE_QUALITY_MEDIUM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_LOW_swigconstant", OF_IMAGE_QUALITY_LOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_QUALITY_WORST_swigconstant", OF_IMAGE_QUALITY_WORST_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_BMP_swigconstant", OF_IMAGE_FORMAT_BMP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_ICO_swigconstant", OF_IMAGE_FORMAT_ICO_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_JPEG_swigconstant", OF_IMAGE_FORMAT_JPEG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_JNG_swigconstant", OF_IMAGE_FORMAT_JNG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_KOALA_swigconstant", OF_IMAGE_FORMAT_KOALA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_LBM_swigconstant", OF_IMAGE_FORMAT_LBM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_IFF_swigconstant", OF_IMAGE_FORMAT_IFF_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_MNG_swigconstant", OF_IMAGE_FORMAT_MNG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PBM_swigconstant", OF_IMAGE_FORMAT_PBM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PBMRAW_swigconstant", OF_IMAGE_FORMAT_PBMRAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PCD_swigconstant", OF_IMAGE_FORMAT_PCD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PCX_swigconstant", OF_IMAGE_FORMAT_PCX_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PGM_swigconstant", OF_IMAGE_FORMAT_PGM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PGMRAW_swigconstant", OF_IMAGE_FORMAT_PGMRAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PNG_swigconstant", OF_IMAGE_FORMAT_PNG_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PPM_swigconstant", OF_IMAGE_FORMAT_PPM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PPMRAW_swigconstant", OF_IMAGE_FORMAT_PPMRAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_RAS_swigconstant", OF_IMAGE_FORMAT_RAS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_TARGA_swigconstant", OF_IMAGE_FORMAT_TARGA_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_TIFF_swigconstant", OF_IMAGE_FORMAT_TIFF_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_WBMP_swigconstant", OF_IMAGE_FORMAT_WBMP_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PSD_swigconstant", OF_IMAGE_FORMAT_PSD_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_CUT_swigconstant", OF_IMAGE_FORMAT_CUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_XBM_swigconstant", OF_IMAGE_FORMAT_XBM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_XPM_swigconstant", OF_IMAGE_FORMAT_XPM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_DDS_swigconstant", OF_IMAGE_FORMAT_DDS_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_GIF_swigconstant", OF_IMAGE_FORMAT_GIF_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_HDR_swigconstant", OF_IMAGE_FORMAT_HDR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_FAXG3_swigconstant", OF_IMAGE_FORMAT_FAXG3_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_SGI_swigconstant", OF_IMAGE_FORMAT_SGI_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_EXR_swigconstant", OF_IMAGE_FORMAT_EXR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_J2K_swigconstant", OF_IMAGE_FORMAT_J2K_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_JP2_swigconstant", OF_IMAGE_FORMAT_JP2_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PFM_swigconstant", OF_IMAGE_FORMAT_PFM_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_PICT_swigconstant", OF_IMAGE_FORMAT_PICT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_IMAGE_FORMAT_RAW_swigconstant", OF_IMAGE_FORMAT_RAW_swigconstant, METH_VARARGS, NULL}, + { (char *)"new_ofImage", _wrap_new_ofImage, METH_VARARGS, NULL}, + { (char *)"ofImage_allocate", _wrap_ofImage_allocate, METH_VARARGS, NULL}, + { (char *)"ofImage_isAllocated", _wrap_ofImage_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofImage_bAllocated", _wrap_ofImage_bAllocated, METH_VARARGS, NULL}, + { (char *)"ofImage_clear", _wrap_ofImage_clear, METH_VARARGS, NULL}, + { (char *)"ofImage_load", _wrap_ofImage_load, METH_VARARGS, NULL}, + { (char *)"ofImage_loadImage", _wrap_ofImage_loadImage, METH_VARARGS, NULL}, + { (char *)"delete_ofImage", _wrap_delete_ofImage, METH_VARARGS, NULL}, + { (char *)"ofImage_draw", _wrap_ofImage_draw, METH_VARARGS, NULL}, + { (char *)"ofImage_drawSubsection", _wrap_ofImage_drawSubsection, METH_VARARGS, NULL}, + { (char *)"ofImage_update", _wrap_ofImage_update, METH_VARARGS, NULL}, + { (char *)"ofImage_setUseTexture", _wrap_ofImage_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofImage_isUsingTexture", _wrap_ofImage_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofImage_getTexture", _wrap_ofImage_getTexture, METH_VARARGS, NULL}, + { (char *)"ofImage_getTextureReference", _wrap_ofImage_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofImage_bind", _wrap_ofImage_bind, METH_VARARGS, NULL}, + { (char *)"ofImage_unbind", _wrap_ofImage_unbind, METH_VARARGS, NULL}, + { (char *)"ofImage_setCompression", _wrap_ofImage_setCompression, METH_VARARGS, NULL}, + { (char *)"ofImage_getPixels", _wrap_ofImage_getPixels, METH_VARARGS, NULL}, + { (char *)"ofImage_getPixelsRef", _wrap_ofImage_getPixelsRef, METH_VARARGS, NULL}, + { (char *)"ofImage_getColor", _wrap_ofImage_getColor, METH_VARARGS, NULL}, + { (char *)"ofImage_getHeight", _wrap_ofImage_getHeight, METH_VARARGS, NULL}, + { (char *)"ofImage_getWidth", _wrap_ofImage_getWidth, METH_VARARGS, NULL}, + { (char *)"ofImage_setColor", _wrap_ofImage_setColor, METH_VARARGS, NULL}, + { (char *)"ofImage_setFromPixels", _wrap_ofImage_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofImage_grabScreen", _wrap_ofImage_grabScreen, METH_VARARGS, NULL}, + { (char *)"ofImage_setImageType", _wrap_ofImage_setImageType, METH_VARARGS, NULL}, + { (char *)"ofImage_getImageType", _wrap_ofImage_getImageType, METH_VARARGS, NULL}, + { (char *)"ofImage_resize", _wrap_ofImage_resize, METH_VARARGS, NULL}, + { (char *)"ofImage_crop", _wrap_ofImage_crop, METH_VARARGS, NULL}, + { (char *)"ofImage_cropFrom", _wrap_ofImage_cropFrom, METH_VARARGS, NULL}, + { (char *)"ofImage_rotate90", _wrap_ofImage_rotate90, METH_VARARGS, NULL}, + { (char *)"ofImage_mirror", _wrap_ofImage_mirror, METH_VARARGS, NULL}, + { (char *)"ofImage_setAnchorPercent", _wrap_ofImage_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofImage_setAnchorPoint", _wrap_ofImage_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofImage_resetAnchor", _wrap_ofImage_resetAnchor, METH_VARARGS, NULL}, + { (char *)"ofImage_save", _wrap_ofImage_save, METH_VARARGS, NULL}, + { (char *)"ofImage_saveImage", _wrap_ofImage_saveImage, METH_VARARGS, NULL}, + { (char *)"ofImage_swigregister", ofImage_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofFloatImage", _wrap_new_ofFloatImage, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_allocate", _wrap_ofFloatImage_allocate, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_isAllocated", _wrap_ofFloatImage_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_bAllocated", _wrap_ofFloatImage_bAllocated, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_clear", _wrap_ofFloatImage_clear, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_load", _wrap_ofFloatImage_load, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_loadImage", _wrap_ofFloatImage_loadImage, METH_VARARGS, NULL}, + { (char *)"delete_ofFloatImage", _wrap_delete_ofFloatImage, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_draw", _wrap_ofFloatImage_draw, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_drawSubsection", _wrap_ofFloatImage_drawSubsection, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_update", _wrap_ofFloatImage_update, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_setUseTexture", _wrap_ofFloatImage_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_isUsingTexture", _wrap_ofFloatImage_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getTexture", _wrap_ofFloatImage_getTexture, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getTextureReference", _wrap_ofFloatImage_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_bind", _wrap_ofFloatImage_bind, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_unbind", _wrap_ofFloatImage_unbind, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_setCompression", _wrap_ofFloatImage_setCompression, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getPixels", _wrap_ofFloatImage_getPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getPixelsRef", _wrap_ofFloatImage_getPixelsRef, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getColor", _wrap_ofFloatImage_getColor, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getHeight", _wrap_ofFloatImage_getHeight, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getWidth", _wrap_ofFloatImage_getWidth, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_setColor", _wrap_ofFloatImage_setColor, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_setFromPixels", _wrap_ofFloatImage_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_grabScreen", _wrap_ofFloatImage_grabScreen, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_setImageType", _wrap_ofFloatImage_setImageType, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_getImageType", _wrap_ofFloatImage_getImageType, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_resize", _wrap_ofFloatImage_resize, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_crop", _wrap_ofFloatImage_crop, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_cropFrom", _wrap_ofFloatImage_cropFrom, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_rotate90", _wrap_ofFloatImage_rotate90, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_mirror", _wrap_ofFloatImage_mirror, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_setAnchorPercent", _wrap_ofFloatImage_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_setAnchorPoint", _wrap_ofFloatImage_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_resetAnchor", _wrap_ofFloatImage_resetAnchor, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_save", _wrap_ofFloatImage_save, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_saveImage", _wrap_ofFloatImage_saveImage, METH_VARARGS, NULL}, + { (char *)"ofFloatImage_swigregister", ofFloatImage_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofShortImage", _wrap_new_ofShortImage, METH_VARARGS, NULL}, + { (char *)"ofShortImage_allocate", _wrap_ofShortImage_allocate, METH_VARARGS, NULL}, + { (char *)"ofShortImage_isAllocated", _wrap_ofShortImage_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofShortImage_bAllocated", _wrap_ofShortImage_bAllocated, METH_VARARGS, NULL}, + { (char *)"ofShortImage_clear", _wrap_ofShortImage_clear, METH_VARARGS, NULL}, + { (char *)"ofShortImage_load", _wrap_ofShortImage_load, METH_VARARGS, NULL}, + { (char *)"ofShortImage_loadImage", _wrap_ofShortImage_loadImage, METH_VARARGS, NULL}, + { (char *)"delete_ofShortImage", _wrap_delete_ofShortImage, METH_VARARGS, NULL}, + { (char *)"ofShortImage_draw", _wrap_ofShortImage_draw, METH_VARARGS, NULL}, + { (char *)"ofShortImage_drawSubsection", _wrap_ofShortImage_drawSubsection, METH_VARARGS, NULL}, + { (char *)"ofShortImage_update", _wrap_ofShortImage_update, METH_VARARGS, NULL}, + { (char *)"ofShortImage_setUseTexture", _wrap_ofShortImage_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofShortImage_isUsingTexture", _wrap_ofShortImage_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getTexture", _wrap_ofShortImage_getTexture, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getTextureReference", _wrap_ofShortImage_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofShortImage_bind", _wrap_ofShortImage_bind, METH_VARARGS, NULL}, + { (char *)"ofShortImage_unbind", _wrap_ofShortImage_unbind, METH_VARARGS, NULL}, + { (char *)"ofShortImage_setCompression", _wrap_ofShortImage_setCompression, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getPixels", _wrap_ofShortImage_getPixels, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getPixelsRef", _wrap_ofShortImage_getPixelsRef, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getColor", _wrap_ofShortImage_getColor, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getHeight", _wrap_ofShortImage_getHeight, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getWidth", _wrap_ofShortImage_getWidth, METH_VARARGS, NULL}, + { (char *)"ofShortImage_setColor", _wrap_ofShortImage_setColor, METH_VARARGS, NULL}, + { (char *)"ofShortImage_setFromPixels", _wrap_ofShortImage_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofShortImage_grabScreen", _wrap_ofShortImage_grabScreen, METH_VARARGS, NULL}, + { (char *)"ofShortImage_setImageType", _wrap_ofShortImage_setImageType, METH_VARARGS, NULL}, + { (char *)"ofShortImage_getImageType", _wrap_ofShortImage_getImageType, METH_VARARGS, NULL}, + { (char *)"ofShortImage_resize", _wrap_ofShortImage_resize, METH_VARARGS, NULL}, + { (char *)"ofShortImage_crop", _wrap_ofShortImage_crop, METH_VARARGS, NULL}, + { (char *)"ofShortImage_cropFrom", _wrap_ofShortImage_cropFrom, METH_VARARGS, NULL}, + { (char *)"ofShortImage_rotate90", _wrap_ofShortImage_rotate90, METH_VARARGS, NULL}, + { (char *)"ofShortImage_mirror", _wrap_ofShortImage_mirror, METH_VARARGS, NULL}, + { (char *)"ofShortImage_setAnchorPercent", _wrap_ofShortImage_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofShortImage_setAnchorPoint", _wrap_ofShortImage_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofShortImage_resetAnchor", _wrap_ofShortImage_resetAnchor, METH_VARARGS, NULL}, + { (char *)"ofShortImage_save", _wrap_ofShortImage_save, METH_VARARGS, NULL}, + { (char *)"ofShortImage_saveImage", _wrap_ofShortImage_saveImage, METH_VARARGS, NULL}, + { (char *)"ofShortImage_swigregister", ofShortImage_swigregister, METH_VARARGS, NULL}, + { (char *)"ofSoundStreamSetup", _wrap_ofSoundStreamSetup, METH_VARARGS, NULL}, + { (char *)"ofSoundStreamStop", _wrap_ofSoundStreamStop, METH_VARARGS, NULL}, + { (char *)"ofSoundStreamStart", _wrap_ofSoundStreamStart, METH_VARARGS, NULL}, + { (char *)"ofSoundStreamClose", _wrap_ofSoundStreamClose, METH_VARARGS, NULL}, + { (char *)"ofSoundStreamListDevices", _wrap_ofSoundStreamListDevices, METH_VARARGS, NULL}, + { (char *)"new_ofSoundStream", _wrap_new_ofSoundStream, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_setSoundStream", _wrap_ofSoundStream_setSoundStream, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getSoundStream", _wrap_ofSoundStream_getSoundStream, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_printDeviceList", _wrap_ofSoundStream_printDeviceList, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getDeviceList", _wrap_ofSoundStream_getDeviceList, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getMatchingDevices", _wrap_ofSoundStream_getMatchingDevices, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_setDeviceID", _wrap_ofSoundStream_setDeviceID, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_setDevice", _wrap_ofSoundStream_setDevice, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_setup", _wrap_ofSoundStream_setup, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_setInput", _wrap_ofSoundStream_setInput, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_setOutput", _wrap_ofSoundStream_setOutput, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_start", _wrap_ofSoundStream_start, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_stop", _wrap_ofSoundStream_stop, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_close", _wrap_ofSoundStream_close, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getTickCount", _wrap_ofSoundStream_getTickCount, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getNumInputChannels", _wrap_ofSoundStream_getNumInputChannels, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getNumOutputChannels", _wrap_ofSoundStream_getNumOutputChannels, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getSampleRate", _wrap_ofSoundStream_getSampleRate, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_getBufferSize", _wrap_ofSoundStream_getBufferSize, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_listDevices", _wrap_ofSoundStream_listDevices, METH_VARARGS, NULL}, + { (char *)"delete_ofSoundStream", _wrap_delete_ofSoundStream, METH_VARARGS, NULL}, + { (char *)"ofSoundStream_swigregister", ofSoundStream_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofSoundPlayer", _wrap_new_ofSoundPlayer, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setPlayer", _wrap_ofSoundPlayer_setPlayer, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_getPlayer", _wrap_ofSoundPlayer_getPlayer, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_load", _wrap_ofSoundPlayer_load, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_loadSound", _wrap_ofSoundPlayer_loadSound, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_unload", _wrap_ofSoundPlayer_unload, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_unloadSound", _wrap_ofSoundPlayer_unloadSound, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_play", _wrap_ofSoundPlayer_play, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_stop", _wrap_ofSoundPlayer_stop, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setVolume", _wrap_ofSoundPlayer_setVolume, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setPan", _wrap_ofSoundPlayer_setPan, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setSpeed", _wrap_ofSoundPlayer_setSpeed, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setPaused", _wrap_ofSoundPlayer_setPaused, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setLoop", _wrap_ofSoundPlayer_setLoop, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setMultiPlay", _wrap_ofSoundPlayer_setMultiPlay, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setPosition", _wrap_ofSoundPlayer_setPosition, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_setPositionMS", _wrap_ofSoundPlayer_setPositionMS, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_getPositionMS", _wrap_ofSoundPlayer_getPositionMS, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_getPosition", _wrap_ofSoundPlayer_getPosition, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_isPlaying", _wrap_ofSoundPlayer_isPlaying, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_getIsPlaying", _wrap_ofSoundPlayer_getIsPlaying, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_getSpeed", _wrap_ofSoundPlayer_getSpeed, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_getPan", _wrap_ofSoundPlayer_getPan, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_getVolume", _wrap_ofSoundPlayer_getVolume, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_isLoaded", _wrap_ofSoundPlayer_isLoaded, METH_VARARGS, NULL}, + { (char *)"delete_ofSoundPlayer", _wrap_delete_ofSoundPlayer, METH_VARARGS, NULL}, + { (char *)"ofSoundPlayer_swigregister", ofSoundPlayer_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofColor", _wrap_new_ofColor, METH_VARARGS, NULL}, + { (char *)"ofColor_fromHsb", _wrap_ofColor_fromHsb, METH_VARARGS, NULL}, + { (char *)"ofColor_fromHex", _wrap_ofColor_fromHex, METH_VARARGS, NULL}, + { (char *)"ofColor_set", _wrap_ofColor_set, METH_VARARGS, NULL}, + { (char *)"ofColor_setHex", _wrap_ofColor_setHex, METH_VARARGS, NULL}, + { (char *)"ofColor_setHue", _wrap_ofColor_setHue, METH_VARARGS, NULL}, + { (char *)"ofColor_setHueAngle", _wrap_ofColor_setHueAngle, METH_VARARGS, NULL}, + { (char *)"ofColor_setSaturation", _wrap_ofColor_setSaturation, METH_VARARGS, NULL}, + { (char *)"ofColor_setBrightness", _wrap_ofColor_setBrightness, METH_VARARGS, NULL}, + { (char *)"ofColor_setHsb", _wrap_ofColor_setHsb, METH_VARARGS, NULL}, + { (char *)"ofColor_clamp", _wrap_ofColor_clamp, METH_VARARGS, NULL}, + { (char *)"ofColor_invert", _wrap_ofColor_invert, METH_VARARGS, NULL}, + { (char *)"ofColor_normalize", _wrap_ofColor_normalize, METH_VARARGS, NULL}, + { (char *)"ofColor_lerp", _wrap_ofColor_lerp, METH_VARARGS, NULL}, + { (char *)"ofColor_getClamped", _wrap_ofColor_getClamped, METH_VARARGS, NULL}, + { (char *)"ofColor_getInverted", _wrap_ofColor_getInverted, METH_VARARGS, NULL}, + { (char *)"ofColor_getNormalized", _wrap_ofColor_getNormalized, METH_VARARGS, NULL}, + { (char *)"ofColor_getLerped", _wrap_ofColor_getLerped, METH_VARARGS, NULL}, + { (char *)"ofColor_getHex", _wrap_ofColor_getHex, METH_VARARGS, NULL}, + { (char *)"ofColor_getHue", _wrap_ofColor_getHue, METH_VARARGS, NULL}, + { (char *)"ofColor_getHueAngle", _wrap_ofColor_getHueAngle, METH_VARARGS, NULL}, + { (char *)"ofColor_getSaturation", _wrap_ofColor_getSaturation, METH_VARARGS, NULL}, + { (char *)"ofColor_getBrightness", _wrap_ofColor_getBrightness, METH_VARARGS, NULL}, + { (char *)"ofColor_getLightness", _wrap_ofColor_getLightness, METH_VARARGS, NULL}, + { (char *)"ofColor_getHsb", _wrap_ofColor_getHsb, METH_VARARGS, NULL}, + { (char *)"ofColor_limit", _wrap_ofColor_limit, METH_VARARGS, NULL}, + { (char *)"ofColor___eq__", _wrap_ofColor___eq__, METH_VARARGS, NULL}, + { (char *)"ofColor___ne__", _wrap_ofColor___ne__, METH_VARARGS, NULL}, + { (char *)"ofColor___add__", _wrap_ofColor___add__, METH_VARARGS, NULL}, + { (char *)"ofColor___iadd__", _wrap_ofColor___iadd__, METH_VARARGS, NULL}, + { (char *)"ofColor___sub__", _wrap_ofColor___sub__, METH_VARARGS, NULL}, + { (char *)"ofColor___isub__", _wrap_ofColor___isub__, METH_VARARGS, NULL}, + { (char *)"ofColor___mul__", _wrap_ofColor___mul__, METH_VARARGS, NULL}, + { (char *)"ofColor___imul__", _wrap_ofColor___imul__, METH_VARARGS, NULL}, + { (char *)"ofColor___div__", _wrap_ofColor___div__, METH_VARARGS, NULL}, + { (char *)"ofColor___idiv__", _wrap_ofColor___idiv__, METH_VARARGS, NULL}, + { (char *)"ofColor___getitem__", _wrap_ofColor___getitem__, METH_VARARGS, NULL}, + { (char *)"ofColor_getR", _wrap_ofColor_getR, METH_VARARGS, NULL}, + { (char *)"ofColor_getG", _wrap_ofColor_getG, METH_VARARGS, NULL}, + { (char *)"ofColor_getB", _wrap_ofColor_getB, METH_VARARGS, NULL}, + { (char *)"ofColor_getA", _wrap_ofColor_getA, METH_VARARGS, NULL}, + { (char *)"ofColor_setR", _wrap_ofColor_setR, METH_VARARGS, NULL}, + { (char *)"ofColor_setG", _wrap_ofColor_setG, METH_VARARGS, NULL}, + { (char *)"ofColor_setB", _wrap_ofColor_setB, METH_VARARGS, NULL}, + { (char *)"ofColor_setA", _wrap_ofColor_setA, METH_VARARGS, NULL}, + { (char *)"ofColor___str__", _wrap_ofColor___str__, METH_VARARGS, NULL}, + { (char *)"ofColor_r_set", _wrap_ofColor_r_set, METH_VARARGS, NULL}, + { (char *)"ofColor_r_get", _wrap_ofColor_r_get, METH_VARARGS, NULL}, + { (char *)"ofColor_g_set", _wrap_ofColor_g_set, METH_VARARGS, NULL}, + { (char *)"ofColor_g_get", _wrap_ofColor_g_get, METH_VARARGS, NULL}, + { (char *)"ofColor_b_set", _wrap_ofColor_b_set, METH_VARARGS, NULL}, + { (char *)"ofColor_b_get", _wrap_ofColor_b_get, METH_VARARGS, NULL}, + { (char *)"ofColor_a_set", _wrap_ofColor_a_set, METH_VARARGS, NULL}, + { (char *)"ofColor_a_get", _wrap_ofColor_a_get, METH_VARARGS, NULL}, + { (char *)"delete_ofColor", _wrap_delete_ofColor, METH_VARARGS, NULL}, + { (char *)"ofColor_swigregister", ofColor_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofFloatColor", _wrap_new_ofFloatColor, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_fromHsb", _wrap_ofFloatColor_fromHsb, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_fromHex", _wrap_ofFloatColor_fromHex, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_set", _wrap_ofFloatColor_set, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setHex", _wrap_ofFloatColor_setHex, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setHue", _wrap_ofFloatColor_setHue, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setHueAngle", _wrap_ofFloatColor_setHueAngle, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setSaturation", _wrap_ofFloatColor_setSaturation, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setBrightness", _wrap_ofFloatColor_setBrightness, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setHsb", _wrap_ofFloatColor_setHsb, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_clamp", _wrap_ofFloatColor_clamp, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_invert", _wrap_ofFloatColor_invert, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_normalize", _wrap_ofFloatColor_normalize, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_lerp", _wrap_ofFloatColor_lerp, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getClamped", _wrap_ofFloatColor_getClamped, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getInverted", _wrap_ofFloatColor_getInverted, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getNormalized", _wrap_ofFloatColor_getNormalized, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getLerped", _wrap_ofFloatColor_getLerped, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getHex", _wrap_ofFloatColor_getHex, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getHue", _wrap_ofFloatColor_getHue, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getHueAngle", _wrap_ofFloatColor_getHueAngle, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getSaturation", _wrap_ofFloatColor_getSaturation, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getBrightness", _wrap_ofFloatColor_getBrightness, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getLightness", _wrap_ofFloatColor_getLightness, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getHsb", _wrap_ofFloatColor_getHsb, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_limit", _wrap_ofFloatColor_limit, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___eq__", _wrap_ofFloatColor___eq__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___ne__", _wrap_ofFloatColor___ne__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___add__", _wrap_ofFloatColor___add__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___iadd__", _wrap_ofFloatColor___iadd__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___sub__", _wrap_ofFloatColor___sub__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___isub__", _wrap_ofFloatColor___isub__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___mul__", _wrap_ofFloatColor___mul__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___imul__", _wrap_ofFloatColor___imul__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___div__", _wrap_ofFloatColor___div__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___idiv__", _wrap_ofFloatColor___idiv__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___getitem__", _wrap_ofFloatColor___getitem__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getR", _wrap_ofFloatColor_getR, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getG", _wrap_ofFloatColor_getG, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getB", _wrap_ofFloatColor_getB, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_getA", _wrap_ofFloatColor_getA, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setR", _wrap_ofFloatColor_setR, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setG", _wrap_ofFloatColor_setG, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setB", _wrap_ofFloatColor_setB, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_setA", _wrap_ofFloatColor_setA, METH_VARARGS, NULL}, + { (char *)"ofFloatColor___str__", _wrap_ofFloatColor___str__, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_r_set", _wrap_ofFloatColor_r_set, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_r_get", _wrap_ofFloatColor_r_get, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_g_set", _wrap_ofFloatColor_g_set, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_g_get", _wrap_ofFloatColor_g_get, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_b_set", _wrap_ofFloatColor_b_set, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_b_get", _wrap_ofFloatColor_b_get, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_a_set", _wrap_ofFloatColor_a_set, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_a_get", _wrap_ofFloatColor_a_get, METH_VARARGS, NULL}, + { (char *)"delete_ofFloatColor", _wrap_delete_ofFloatColor, METH_VARARGS, NULL}, + { (char *)"ofFloatColor_swigregister", ofFloatColor_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofShortColor", _wrap_new_ofShortColor, METH_VARARGS, NULL}, + { (char *)"ofShortColor_fromHsb", _wrap_ofShortColor_fromHsb, METH_VARARGS, NULL}, + { (char *)"ofShortColor_fromHex", _wrap_ofShortColor_fromHex, METH_VARARGS, NULL}, + { (char *)"ofShortColor_set", _wrap_ofShortColor_set, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setHex", _wrap_ofShortColor_setHex, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setHue", _wrap_ofShortColor_setHue, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setHueAngle", _wrap_ofShortColor_setHueAngle, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setSaturation", _wrap_ofShortColor_setSaturation, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setBrightness", _wrap_ofShortColor_setBrightness, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setHsb", _wrap_ofShortColor_setHsb, METH_VARARGS, NULL}, + { (char *)"ofShortColor_clamp", _wrap_ofShortColor_clamp, METH_VARARGS, NULL}, + { (char *)"ofShortColor_invert", _wrap_ofShortColor_invert, METH_VARARGS, NULL}, + { (char *)"ofShortColor_normalize", _wrap_ofShortColor_normalize, METH_VARARGS, NULL}, + { (char *)"ofShortColor_lerp", _wrap_ofShortColor_lerp, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getClamped", _wrap_ofShortColor_getClamped, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getInverted", _wrap_ofShortColor_getInverted, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getNormalized", _wrap_ofShortColor_getNormalized, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getLerped", _wrap_ofShortColor_getLerped, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getHex", _wrap_ofShortColor_getHex, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getHue", _wrap_ofShortColor_getHue, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getHueAngle", _wrap_ofShortColor_getHueAngle, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getSaturation", _wrap_ofShortColor_getSaturation, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getBrightness", _wrap_ofShortColor_getBrightness, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getLightness", _wrap_ofShortColor_getLightness, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getHsb", _wrap_ofShortColor_getHsb, METH_VARARGS, NULL}, + { (char *)"ofShortColor_limit", _wrap_ofShortColor_limit, METH_VARARGS, NULL}, + { (char *)"ofShortColor___eq__", _wrap_ofShortColor___eq__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___ne__", _wrap_ofShortColor___ne__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___add__", _wrap_ofShortColor___add__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___iadd__", _wrap_ofShortColor___iadd__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___sub__", _wrap_ofShortColor___sub__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___isub__", _wrap_ofShortColor___isub__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___mul__", _wrap_ofShortColor___mul__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___imul__", _wrap_ofShortColor___imul__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___div__", _wrap_ofShortColor___div__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___idiv__", _wrap_ofShortColor___idiv__, METH_VARARGS, NULL}, + { (char *)"ofShortColor___getitem__", _wrap_ofShortColor___getitem__, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getR", _wrap_ofShortColor_getR, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getG", _wrap_ofShortColor_getG, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getB", _wrap_ofShortColor_getB, METH_VARARGS, NULL}, + { (char *)"ofShortColor_getA", _wrap_ofShortColor_getA, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setR", _wrap_ofShortColor_setR, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setG", _wrap_ofShortColor_setG, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setB", _wrap_ofShortColor_setB, METH_VARARGS, NULL}, + { (char *)"ofShortColor_setA", _wrap_ofShortColor_setA, METH_VARARGS, NULL}, + { (char *)"ofShortColor___str__", _wrap_ofShortColor___str__, METH_VARARGS, NULL}, + { (char *)"ofShortColor_r_set", _wrap_ofShortColor_r_set, METH_VARARGS, NULL}, + { (char *)"ofShortColor_r_get", _wrap_ofShortColor_r_get, METH_VARARGS, NULL}, + { (char *)"ofShortColor_g_set", _wrap_ofShortColor_g_set, METH_VARARGS, NULL}, + { (char *)"ofShortColor_g_get", _wrap_ofShortColor_g_get, METH_VARARGS, NULL}, + { (char *)"ofShortColor_b_set", _wrap_ofShortColor_b_set, METH_VARARGS, NULL}, + { (char *)"ofShortColor_b_get", _wrap_ofShortColor_b_get, METH_VARARGS, NULL}, + { (char *)"ofShortColor_a_set", _wrap_ofShortColor_a_set, METH_VARARGS, NULL}, + { (char *)"ofShortColor_a_get", _wrap_ofShortColor_a_get, METH_VARARGS, NULL}, + { (char *)"delete_ofShortColor", _wrap_delete_ofShortColor, METH_VARARGS, NULL}, + { (char *)"ofShortColor_swigregister", ofShortColor_swigregister, METH_VARARGS, NULL}, + { (char *)"ofIsVFlipped", _wrap_ofIsVFlipped, METH_VARARGS, NULL}, + { (char *)"delete_ofBaseHasTexturePlanes", _wrap_delete_ofBaseHasTexturePlanes, METH_VARARGS, NULL}, + { (char *)"ofBaseHasTexturePlanes_getTexturePlanes", _wrap_ofBaseHasTexturePlanes_getTexturePlanes, METH_VARARGS, NULL}, + { (char *)"ofBaseHasTexturePlanes_swigregister", ofBaseHasTexturePlanes_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofBaseURLFileLoader", _wrap_delete_ofBaseURLFileLoader, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_get", _wrap_ofBaseURLFileLoader_get, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_getAsync", _wrap_ofBaseURLFileLoader_getAsync, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_saveTo", _wrap_ofBaseURLFileLoader_saveTo, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_saveAsync", _wrap_ofBaseURLFileLoader_saveAsync, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_remove", _wrap_ofBaseURLFileLoader_remove, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_clear", _wrap_ofBaseURLFileLoader_clear, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_stop", _wrap_ofBaseURLFileLoader_stop, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_handleRequest", _wrap_ofBaseURLFileLoader_handleRequest, METH_VARARGS, NULL}, + { (char *)"ofBaseURLFileLoader_swigregister", ofBaseURLFileLoader_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofBaseMaterial", _wrap_delete_ofBaseMaterial, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getDiffuseColor", _wrap_ofBaseMaterial_getDiffuseColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getAmbientColor", _wrap_ofBaseMaterial_getAmbientColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getSpecularColor", _wrap_ofBaseMaterial_getSpecularColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getEmissiveColor", _wrap_ofBaseMaterial_getEmissiveColor, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getShininess", _wrap_ofBaseMaterial_getShininess, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_begin", _wrap_ofBaseMaterial_begin, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_end", _wrap_ofBaseMaterial_end, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_getShader", _wrap_ofBaseMaterial_getShader, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_uploadMatrices", _wrap_ofBaseMaterial_uploadMatrices, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_updateMaterial", _wrap_ofBaseMaterial_updateMaterial, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_updateLights", _wrap_ofBaseMaterial_updateLights, METH_VARARGS, NULL}, + { (char *)"ofBaseMaterial_swigregister", ofBaseMaterial_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofSerialDeviceInfo", _wrap_new_ofSerialDeviceInfo, METH_VARARGS, NULL}, + { (char *)"ofSerialDeviceInfo_getDevicePath", _wrap_ofSerialDeviceInfo_getDevicePath, METH_VARARGS, NULL}, + { (char *)"ofSerialDeviceInfo_getDeviceName", _wrap_ofSerialDeviceInfo_getDeviceName, METH_VARARGS, NULL}, + { (char *)"ofSerialDeviceInfo_getDeviceID", _wrap_ofSerialDeviceInfo_getDeviceID, METH_VARARGS, NULL}, + { (char *)"delete_ofSerialDeviceInfo", _wrap_delete_ofSerialDeviceInfo, METH_VARARGS, NULL}, + { (char *)"ofSerialDeviceInfo_swigregister", ofSerialDeviceInfo_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofStyle", _wrap_new_ofStyle, METH_VARARGS, NULL}, + { (char *)"delete_ofStyle", _wrap_delete_ofStyle, METH_VARARGS, NULL}, + { (char *)"ofStyle_color_set", _wrap_ofStyle_color_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_color_get", _wrap_ofStyle_color_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_bgColor_set", _wrap_ofStyle_bgColor_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_bgColor_get", _wrap_ofStyle_bgColor_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_polyMode_set", _wrap_ofStyle_polyMode_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_polyMode_get", _wrap_ofStyle_polyMode_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_rectMode_set", _wrap_ofStyle_rectMode_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_rectMode_get", _wrap_ofStyle_rectMode_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_bFill_set", _wrap_ofStyle_bFill_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_bFill_get", _wrap_ofStyle_bFill_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_drawBitmapMode_set", _wrap_ofStyle_drawBitmapMode_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_drawBitmapMode_get", _wrap_ofStyle_drawBitmapMode_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_blendingMode_set", _wrap_ofStyle_blendingMode_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_blendingMode_get", _wrap_ofStyle_blendingMode_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_smoothing_set", _wrap_ofStyle_smoothing_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_smoothing_get", _wrap_ofStyle_smoothing_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_circleResolution_set", _wrap_ofStyle_circleResolution_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_circleResolution_get", _wrap_ofStyle_circleResolution_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_sphereResolution_set", _wrap_ofStyle_sphereResolution_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_sphereResolution_get", _wrap_ofStyle_sphereResolution_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_curveResolution_set", _wrap_ofStyle_curveResolution_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_curveResolution_get", _wrap_ofStyle_curveResolution_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_lineWidth_set", _wrap_ofStyle_lineWidth_set, METH_VARARGS, NULL}, + { (char *)"ofStyle_lineWidth_get", _wrap_ofStyle_lineWidth_get, METH_VARARGS, NULL}, + { (char *)"ofStyle_swigregister", ofStyle_swigregister, METH_VARARGS, NULL}, + { (char *)"ofResetElapsedTimeCounter", _wrap_ofResetElapsedTimeCounter, METH_VARARGS, NULL}, + { (char *)"ofGetElapsedTimef", _wrap_ofGetElapsedTimef, METH_VARARGS, NULL}, + { (char *)"ofGetElapsedTimeMillis", _wrap_ofGetElapsedTimeMillis, METH_VARARGS, NULL}, + { (char *)"ofGetElapsedTimeMicros", _wrap_ofGetElapsedTimeMicros, METH_VARARGS, NULL}, + { (char *)"ofGetFrameNum", _wrap_ofGetFrameNum, METH_VARARGS, NULL}, + { (char *)"ofGetSeconds", _wrap_ofGetSeconds, METH_VARARGS, NULL}, + { (char *)"ofGetMinutes", _wrap_ofGetMinutes, METH_VARARGS, NULL}, + { (char *)"ofGetHours", _wrap_ofGetHours, METH_VARARGS, NULL}, + { (char *)"ofGetUnixTime", _wrap_ofGetUnixTime, METH_VARARGS, NULL}, + { (char *)"ofGetSystemTime", _wrap_ofGetSystemTime, METH_VARARGS, NULL}, + { (char *)"ofGetSystemTimeMicros", _wrap_ofGetSystemTimeMicros, METH_VARARGS, NULL}, + { (char *)"ofSleepMillis", _wrap_ofSleepMillis, METH_VARARGS, NULL}, + { (char *)"ofGetTimestampString", _wrap_ofGetTimestampString, METH_VARARGS, NULL}, + { (char *)"ofGetYear", _wrap_ofGetYear, METH_VARARGS, NULL}, + { (char *)"ofGetMonth", _wrap_ofGetMonth, METH_VARARGS, NULL}, + { (char *)"ofGetDay", _wrap_ofGetDay, METH_VARARGS, NULL}, + { (char *)"ofGetWeekday", _wrap_ofGetWeekday, METH_VARARGS, NULL}, + { (char *)"ofEnableDataPath", _wrap_ofEnableDataPath, METH_VARARGS, NULL}, + { (char *)"ofDisableDataPath", _wrap_ofDisableDataPath, METH_VARARGS, NULL}, + { (char *)"ofToDataPath", _wrap_ofToDataPath, METH_VARARGS, NULL}, + { (char *)"ofRestoreWorkingDirectoryToDefault", _wrap_ofRestoreWorkingDirectoryToDefault, METH_VARARGS, NULL}, + { (char *)"ofSetDataPathRoot", _wrap_ofSetDataPathRoot, METH_VARARGS, NULL}, + { (char *)"ofSplitString", _wrap_ofSplitString, METH_VARARGS, NULL}, + { (char *)"ofJoinString", _wrap_ofJoinString, METH_VARARGS, NULL}, + { (char *)"ofStringReplace", _wrap_ofStringReplace, METH_VARARGS, NULL}, + { (char *)"ofIsStringInString", _wrap_ofIsStringInString, METH_VARARGS, NULL}, + { (char *)"ofStringTimesInString", _wrap_ofStringTimesInString, METH_VARARGS, NULL}, + { (char *)"ofToLower", _wrap_ofToLower, METH_VARARGS, NULL}, + { (char *)"ofToUpper", _wrap_ofToUpper, METH_VARARGS, NULL}, + { (char *)"ofTrimFront", _wrap_ofTrimFront, METH_VARARGS, NULL}, + { (char *)"ofTrimBack", _wrap_ofTrimBack, METH_VARARGS, NULL}, + { (char *)"ofTrim", _wrap_ofTrim, METH_VARARGS, NULL}, + { (char *)"ofAppendUTF8", _wrap_ofAppendUTF8, METH_VARARGS, NULL}, + { (char *)"ofToInt", _wrap_ofToInt, METH_VARARGS, NULL}, + { (char *)"ofToInt64", _wrap_ofToInt64, METH_VARARGS, NULL}, + { (char *)"ofToFloat", _wrap_ofToFloat, METH_VARARGS, NULL}, + { (char *)"ofToDouble", _wrap_ofToDouble, METH_VARARGS, NULL}, + { (char *)"ofToBool", _wrap_ofToBool, METH_VARARGS, NULL}, + { (char *)"ofToHex", _wrap_ofToHex, METH_VARARGS, NULL}, + { (char *)"ofHexToInt", _wrap_ofHexToInt, METH_VARARGS, NULL}, + { (char *)"ofHexToChar", _wrap_ofHexToChar, METH_VARARGS, NULL}, + { (char *)"ofHexToFloat", _wrap_ofHexToFloat, METH_VARARGS, NULL}, + { (char *)"ofHexToString", _wrap_ofHexToString, METH_VARARGS, NULL}, + { (char *)"ofToChar", _wrap_ofToChar, METH_VARARGS, NULL}, + { (char *)"ofToBinary", _wrap_ofToBinary, METH_VARARGS, NULL}, + { (char *)"ofBinaryToInt", _wrap_ofBinaryToInt, METH_VARARGS, NULL}, + { (char *)"ofBinaryToChar", _wrap_ofBinaryToChar, METH_VARARGS, NULL}, + { (char *)"ofBinaryToFloat", _wrap_ofBinaryToFloat, METH_VARARGS, NULL}, + { (char *)"ofBinaryToString", _wrap_ofBinaryToString, METH_VARARGS, NULL}, + { (char *)"ofGetVersionInfo", _wrap_ofGetVersionInfo, METH_VARARGS, NULL}, + { (char *)"ofGetVersionMajor", _wrap_ofGetVersionMajor, METH_VARARGS, NULL}, + { (char *)"ofGetVersionMinor", _wrap_ofGetVersionMinor, METH_VARARGS, NULL}, + { (char *)"ofGetVersionPatch", _wrap_ofGetVersionPatch, METH_VARARGS, NULL}, + { (char *)"ofGetVersionPreRelease", _wrap_ofGetVersionPreRelease, METH_VARARGS, NULL}, + { (char *)"ofSaveScreen", _wrap_ofSaveScreen, METH_VARARGS, NULL}, + { (char *)"ofSaveFrame", _wrap_ofSaveFrame, METH_VARARGS, NULL}, + { (char *)"ofSaveViewport", _wrap_ofSaveViewport, METH_VARARGS, NULL}, + { (char *)"ofLaunchBrowser", _wrap_ofLaunchBrowser, METH_VARARGS, NULL}, + { (char *)"ofSystem", _wrap_ofSystem, METH_VARARGS, NULL}, + { (char *)"ofGetTargetPlatform", _wrap_ofGetTargetPlatform, METH_VARARGS, NULL}, + { (char *)"ofGetEnv", _wrap_ofGetEnv, METH_VARARGS, NULL}, + { (char *)"new_ofUTF8Iterator", _wrap_new_ofUTF8Iterator, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_begin", _wrap_ofUTF8Iterator_begin, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_end", _wrap_ofUTF8Iterator_end, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_rbegin", _wrap_ofUTF8Iterator_rbegin, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_rend", _wrap_ofUTF8Iterator_rend, METH_VARARGS, NULL}, + { (char *)"delete_ofUTF8Iterator", _wrap_delete_ofUTF8Iterator, METH_VARARGS, NULL}, + { (char *)"ofUTF8Iterator_swigregister", ofUTF8Iterator_swigregister, METH_VARARGS, NULL}, + { (char *)"setWorkingDirectoryToDefault", _wrap_setWorkingDirectoryToDefault, METH_VARARGS, NULL}, + { (char *)"initutils", _wrap_initutils, METH_VARARGS, NULL}, + { (char *)"endutils", _wrap_endutils, METH_VARARGS, NULL}, + { (char *)"log", _wrap_log, METH_VARARGS, NULL}, + { (char *)"OF_LOG_VERBOSE_swigconstant", OF_LOG_VERBOSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_NOTICE_swigconstant", OF_LOG_NOTICE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_WARNING_swigconstant", OF_LOG_WARNING_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_ERROR_swigconstant", OF_LOG_ERROR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_FATAL_ERROR_swigconstant", OF_LOG_FATAL_ERROR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LOG_SILENT_swigconstant", OF_LOG_SILENT_swigconstant, METH_VARARGS, NULL}, + { (char *)"ofSetLogLevel", _wrap_ofSetLogLevel, METH_VARARGS, NULL}, + { (char *)"ofGetLogLevel", _wrap_ofGetLogLevel, METH_VARARGS, NULL}, + { (char *)"ofGetLogLevelName", _wrap_ofGetLogLevelName, METH_VARARGS, NULL}, + { (char *)"ofLogToFile", _wrap_ofLogToFile, METH_VARARGS, NULL}, + { (char *)"ofLogToConsole", _wrap_ofLogToConsole, METH_VARARGS, NULL}, + { (char *)"new_ofFileDialogResult", _wrap_new_ofFileDialogResult, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_getName", _wrap_ofFileDialogResult_getName, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_getPath", _wrap_ofFileDialogResult_getPath, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_filePath_set", _wrap_ofFileDialogResult_filePath_set, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_filePath_get", _wrap_ofFileDialogResult_filePath_get, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_fileName_set", _wrap_ofFileDialogResult_fileName_set, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_fileName_get", _wrap_ofFileDialogResult_fileName_get, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_bSuccess_set", _wrap_ofFileDialogResult_bSuccess_set, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_bSuccess_get", _wrap_ofFileDialogResult_bSuccess_get, METH_VARARGS, NULL}, + { (char *)"delete_ofFileDialogResult", _wrap_delete_ofFileDialogResult, METH_VARARGS, NULL}, + { (char *)"ofFileDialogResult_swigregister", ofFileDialogResult_swigregister, METH_VARARGS, NULL}, + { (char *)"ofSystemAlertDialog", _wrap_ofSystemAlertDialog, METH_VARARGS, NULL}, + { (char *)"ofSystemLoadDialog", _wrap_ofSystemLoadDialog, METH_VARARGS, NULL}, + { (char *)"ofSystemSaveDialog", _wrap_ofSystemSaveDialog, METH_VARARGS, NULL}, + { (char *)"ofSystemTextBoxDialog", _wrap_ofSystemTextBoxDialog, METH_VARARGS, NULL}, + { (char *)"new_ofHttpRequest", _wrap_new_ofHttpRequest, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_url_set", _wrap_ofHttpRequest_url_set, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_url_get", _wrap_ofHttpRequest_url_get, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_name_set", _wrap_ofHttpRequest_name_set, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_name_get", _wrap_ofHttpRequest_name_get, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_saveTo_set", _wrap_ofHttpRequest_saveTo_set, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_saveTo_get", _wrap_ofHttpRequest_saveTo_get, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_headers_set", _wrap_ofHttpRequest_headers_set, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_headers_get", _wrap_ofHttpRequest_headers_get, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_getId", _wrap_ofHttpRequest_getId, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_getID", _wrap_ofHttpRequest_getID, METH_VARARGS, NULL}, + { (char *)"delete_ofHttpRequest", _wrap_delete_ofHttpRequest, METH_VARARGS, NULL}, + { (char *)"ofHttpRequest_swigregister", ofHttpRequest_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofHttpResponse", _wrap_new_ofHttpResponse, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_request_set", _wrap_ofHttpResponse_request_set, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_request_get", _wrap_ofHttpResponse_request_get, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_data_set", _wrap_ofHttpResponse_data_set, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_data_get", _wrap_ofHttpResponse_data_get, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_status_set", _wrap_ofHttpResponse_status_set, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_status_get", _wrap_ofHttpResponse_status_get, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_error_set", _wrap_ofHttpResponse_error_set, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_error_get", _wrap_ofHttpResponse_error_get, METH_VARARGS, NULL}, + { (char *)"delete_ofHttpResponse", _wrap_delete_ofHttpResponse, METH_VARARGS, NULL}, + { (char *)"ofHttpResponse_swigregister", ofHttpResponse_swigregister, METH_VARARGS, NULL}, + { (char *)"ofLoadURL", _wrap_ofLoadURL, METH_VARARGS, NULL}, + { (char *)"ofLoadURLAsync", _wrap_ofLoadURLAsync, METH_VARARGS, NULL}, + { (char *)"ofSaveURLTo", _wrap_ofSaveURLTo, METH_VARARGS, NULL}, + { (char *)"ofSaveURLAsync", _wrap_ofSaveURLAsync, METH_VARARGS, NULL}, + { (char *)"ofRemoveURLRequest", _wrap_ofRemoveURLRequest, METH_VARARGS, NULL}, + { (char *)"ofRemoveAllURLRequests", _wrap_ofRemoveAllURLRequests, METH_VARARGS, NULL}, + { (char *)"ofStopURLLoader", _wrap_ofStopURLLoader, METH_VARARGS, NULL}, + { (char *)"ofURLResponseEvent", _wrap_ofURLResponseEvent, METH_VARARGS, NULL}, + { (char *)"new_ofURLFileLoader", _wrap_new_ofURLFileLoader, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_get", _wrap_ofURLFileLoader_get, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_getAsync", _wrap_ofURLFileLoader_getAsync, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_saveTo", _wrap_ofURLFileLoader_saveTo, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_saveAsync", _wrap_ofURLFileLoader_saveAsync, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_remove", _wrap_ofURLFileLoader_remove, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_clear", _wrap_ofURLFileLoader_clear, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_stop", _wrap_ofURLFileLoader_stop, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_handleRequest", _wrap_ofURLFileLoader_handleRequest, METH_VARARGS, NULL}, + { (char *)"delete_ofURLFileLoader", _wrap_delete_ofURLFileLoader, METH_VARARGS, NULL}, + { (char *)"ofURLFileLoader_swigregister", ofURLFileLoader_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofRectangle", _wrap_new_ofRectangle, METH_VARARGS, NULL}, + { (char *)"delete_ofRectangle", _wrap_delete_ofRectangle, METH_VARARGS, NULL}, + { (char *)"ofRectangle_set", _wrap_ofRectangle_set, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setX", _wrap_ofRectangle_setX, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setY", _wrap_ofRectangle_setY, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setWidth", _wrap_ofRectangle_setWidth, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setHeight", _wrap_ofRectangle_setHeight, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setPosition", _wrap_ofRectangle_setPosition, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setSize", _wrap_ofRectangle_setSize, METH_VARARGS, NULL}, + { (char *)"ofRectangle_setFromCenter", _wrap_ofRectangle_setFromCenter, METH_VARARGS, NULL}, + { (char *)"ofRectangle_translate", _wrap_ofRectangle_translate, METH_VARARGS, NULL}, + { (char *)"ofRectangle_translateX", _wrap_ofRectangle_translateX, METH_VARARGS, NULL}, + { (char *)"ofRectangle_translateY", _wrap_ofRectangle_translateY, METH_VARARGS, NULL}, + { (char *)"ofRectangle_scale", _wrap_ofRectangle_scale, METH_VARARGS, NULL}, + { (char *)"ofRectangle_scaleWidth", _wrap_ofRectangle_scaleWidth, METH_VARARGS, NULL}, + { (char *)"ofRectangle_scaleHeight", _wrap_ofRectangle_scaleHeight, METH_VARARGS, NULL}, + { (char *)"ofRectangle_scaleFromCenter", _wrap_ofRectangle_scaleFromCenter, METH_VARARGS, NULL}, + { (char *)"ofRectangle_scaleToScaleMode", _wrap_ofRectangle_scaleToScaleMode, METH_VARARGS, NULL}, + { (char *)"ofRectangle_scaleToAspectRatio", _wrap_ofRectangle_scaleToAspectRatio, METH_VARARGS, NULL}, + { (char *)"ofRectangle_scaleTo", _wrap_ofRectangle_scaleTo, METH_VARARGS, NULL}, + { (char *)"ofRectangle_alignToHorz", _wrap_ofRectangle_alignToHorz, METH_VARARGS, NULL}, + { (char *)"ofRectangle_alignToVert", _wrap_ofRectangle_alignToVert, METH_VARARGS, NULL}, + { (char *)"ofRectangle_alignTo", _wrap_ofRectangle_alignTo, METH_VARARGS, NULL}, + { (char *)"ofRectangle_inside", _wrap_ofRectangle_inside, METH_VARARGS, NULL}, + { (char *)"ofRectangle_intersects", _wrap_ofRectangle_intersects, METH_VARARGS, NULL}, + { (char *)"ofRectangle_growToInclude", _wrap_ofRectangle_growToInclude, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getIntersection", _wrap_ofRectangle_getIntersection, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getUnion", _wrap_ofRectangle_getUnion, METH_VARARGS, NULL}, + { (char *)"ofRectangle_standardize", _wrap_ofRectangle_standardize, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getStandardized", _wrap_ofRectangle_getStandardized, METH_VARARGS, NULL}, + { (char *)"ofRectangle_isStandardized", _wrap_ofRectangle_isStandardized, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getArea", _wrap_ofRectangle_getArea, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getPerimeter", _wrap_ofRectangle_getPerimeter, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getAspectRatio", _wrap_ofRectangle_getAspectRatio, METH_VARARGS, NULL}, + { (char *)"ofRectangle_isEmpty", _wrap_ofRectangle_isEmpty, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getMin", _wrap_ofRectangle_getMin, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getMax", _wrap_ofRectangle_getMax, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getMinX", _wrap_ofRectangle_getMinX, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getMaxX", _wrap_ofRectangle_getMaxX, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getMinY", _wrap_ofRectangle_getMinY, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getMaxY", _wrap_ofRectangle_getMaxY, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getLeft", _wrap_ofRectangle_getLeft, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getRight", _wrap_ofRectangle_getRight, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getTop", _wrap_ofRectangle_getTop, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getBottom", _wrap_ofRectangle_getBottom, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getTopLeft", _wrap_ofRectangle_getTopLeft, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getTopRight", _wrap_ofRectangle_getTopRight, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getBottomLeft", _wrap_ofRectangle_getBottomLeft, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getBottomRight", _wrap_ofRectangle_getBottomRight, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getHorzAnchor", _wrap_ofRectangle_getHorzAnchor, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getVertAnchor", _wrap_ofRectangle_getVertAnchor, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getPosition", _wrap_ofRectangle_getPosition, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getPositionRef", _wrap_ofRectangle_getPositionRef, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getCenter", _wrap_ofRectangle_getCenter, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getX", _wrap_ofRectangle_getX, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getY", _wrap_ofRectangle_getY, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getWidth", _wrap_ofRectangle_getWidth, METH_VARARGS, NULL}, + { (char *)"ofRectangle_getHeight", _wrap_ofRectangle_getHeight, METH_VARARGS, NULL}, + { (char *)"ofRectangle___add__", _wrap_ofRectangle___add__, METH_VARARGS, NULL}, + { (char *)"ofRectangle___sub__", _wrap_ofRectangle___sub__, METH_VARARGS, NULL}, + { (char *)"ofRectangle___eq__", _wrap_ofRectangle___eq__, METH_VARARGS, NULL}, + { (char *)"ofRectangle___ne__", _wrap_ofRectangle___ne__, METH_VARARGS, NULL}, + { (char *)"ofRectangle_isZero", _wrap_ofRectangle_isZero, METH_VARARGS, NULL}, + { (char *)"ofRectangle_position_set", _wrap_ofRectangle_position_set, METH_VARARGS, NULL}, + { (char *)"ofRectangle_position_get", _wrap_ofRectangle_position_get, METH_VARARGS, NULL}, + { (char *)"ofRectangle_width_set", _wrap_ofRectangle_width_set, METH_VARARGS, NULL}, + { (char *)"ofRectangle_width_get", _wrap_ofRectangle_width_get, METH_VARARGS, NULL}, + { (char *)"ofRectangle_height_set", _wrap_ofRectangle_height_set, METH_VARARGS, NULL}, + { (char *)"ofRectangle_height_get", _wrap_ofRectangle_height_get, METH_VARARGS, NULL}, + { (char *)"ofRectangle_x_set", _wrap_ofRectangle_x_set, METH_VARARGS, NULL}, + { (char *)"ofRectangle_x_get", _wrap_ofRectangle_x_get, METH_VARARGS, NULL}, + { (char *)"ofRectangle_y_set", _wrap_ofRectangle_y_set, METH_VARARGS, NULL}, + { (char *)"ofRectangle_y_get", _wrap_ofRectangle_y_get, METH_VARARGS, NULL}, + { (char *)"ofRectangle___str__", _wrap_ofRectangle___str__, METH_VARARGS, NULL}, + { (char *)"ofRectangle_swigregister", ofRectangle_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofNode", _wrap_delete_ofNode, METH_VARARGS, NULL}, + { (char *)"new_ofNode", _wrap_new_ofNode, METH_VARARGS, NULL}, + { (char *)"ofNode_setParent", _wrap_ofNode_setParent, METH_VARARGS, NULL}, + { (char *)"ofNode_clearParent", _wrap_ofNode_clearParent, METH_VARARGS, NULL}, + { (char *)"ofNode_getParent", _wrap_ofNode_getParent, METH_VARARGS, NULL}, + { (char *)"ofNode_getPosition", _wrap_ofNode_getPosition, METH_VARARGS, NULL}, + { (char *)"ofNode_getX", _wrap_ofNode_getX, METH_VARARGS, NULL}, + { (char *)"ofNode_getY", _wrap_ofNode_getY, METH_VARARGS, NULL}, + { (char *)"ofNode_getZ", _wrap_ofNode_getZ, METH_VARARGS, NULL}, + { (char *)"ofNode_getXAxis", _wrap_ofNode_getXAxis, METH_VARARGS, NULL}, + { (char *)"ofNode_getYAxis", _wrap_ofNode_getYAxis, METH_VARARGS, NULL}, + { (char *)"ofNode_getZAxis", _wrap_ofNode_getZAxis, METH_VARARGS, NULL}, + { (char *)"ofNode_getSideDir", _wrap_ofNode_getSideDir, METH_VARARGS, NULL}, + { (char *)"ofNode_getLookAtDir", _wrap_ofNode_getLookAtDir, METH_VARARGS, NULL}, + { (char *)"ofNode_getUpDir", _wrap_ofNode_getUpDir, METH_VARARGS, NULL}, + { (char *)"ofNode_getPitch", _wrap_ofNode_getPitch, METH_VARARGS, NULL}, + { (char *)"ofNode_getHeading", _wrap_ofNode_getHeading, METH_VARARGS, NULL}, + { (char *)"ofNode_getRoll", _wrap_ofNode_getRoll, METH_VARARGS, NULL}, + { (char *)"ofNode_getOrientationQuat", _wrap_ofNode_getOrientationQuat, METH_VARARGS, NULL}, + { (char *)"ofNode_getOrientationEuler", _wrap_ofNode_getOrientationEuler, METH_VARARGS, NULL}, + { (char *)"ofNode_getScale", _wrap_ofNode_getScale, METH_VARARGS, NULL}, + { (char *)"ofNode_getLocalTransformMatrix", _wrap_ofNode_getLocalTransformMatrix, METH_VARARGS, NULL}, + { (char *)"ofNode_getGlobalTransformMatrix", _wrap_ofNode_getGlobalTransformMatrix, METH_VARARGS, NULL}, + { (char *)"ofNode_getGlobalPosition", _wrap_ofNode_getGlobalPosition, METH_VARARGS, NULL}, + { (char *)"ofNode_getGlobalOrientation", _wrap_ofNode_getGlobalOrientation, METH_VARARGS, NULL}, + { (char *)"ofNode_getGlobalScale", _wrap_ofNode_getGlobalScale, METH_VARARGS, NULL}, + { (char *)"ofNode_setTransformMatrix", _wrap_ofNode_setTransformMatrix, METH_VARARGS, NULL}, + { (char *)"ofNode_setPosition", _wrap_ofNode_setPosition, METH_VARARGS, NULL}, + { (char *)"ofNode_setGlobalPosition", _wrap_ofNode_setGlobalPosition, METH_VARARGS, NULL}, + { (char *)"ofNode_setOrientation", _wrap_ofNode_setOrientation, METH_VARARGS, NULL}, + { (char *)"ofNode_setGlobalOrientation", _wrap_ofNode_setGlobalOrientation, METH_VARARGS, NULL}, + { (char *)"ofNode_setScale", _wrap_ofNode_setScale, METH_VARARGS, NULL}, + { (char *)"ofNode_move", _wrap_ofNode_move, METH_VARARGS, NULL}, + { (char *)"ofNode_truck", _wrap_ofNode_truck, METH_VARARGS, NULL}, + { (char *)"ofNode_boom", _wrap_ofNode_boom, METH_VARARGS, NULL}, + { (char *)"ofNode_dolly", _wrap_ofNode_dolly, METH_VARARGS, NULL}, + { (char *)"ofNode_tilt", _wrap_ofNode_tilt, METH_VARARGS, NULL}, + { (char *)"ofNode_pan", _wrap_ofNode_pan, METH_VARARGS, NULL}, + { (char *)"ofNode_roll", _wrap_ofNode_roll, METH_VARARGS, NULL}, + { (char *)"ofNode_rotate", _wrap_ofNode_rotate, METH_VARARGS, NULL}, + { (char *)"ofNode_rotateAround", _wrap_ofNode_rotateAround, METH_VARARGS, NULL}, + { (char *)"ofNode_lookAt", _wrap_ofNode_lookAt, METH_VARARGS, NULL}, + { (char *)"ofNode_orbit", _wrap_ofNode_orbit, METH_VARARGS, NULL}, + { (char *)"ofNode_transformGL", _wrap_ofNode_transformGL, METH_VARARGS, NULL}, + { (char *)"ofNode_restoreTransformGL", _wrap_ofNode_restoreTransformGL, METH_VARARGS, NULL}, + { (char *)"ofNode_resetTransform", _wrap_ofNode_resetTransform, METH_VARARGS, NULL}, + { (char *)"ofNode_customDraw", _wrap_ofNode_customDraw, METH_VARARGS, NULL}, + { (char *)"ofNode_draw", _wrap_ofNode_draw, METH_VARARGS, NULL}, + { (char *)"ofNode_swigregister", ofNode_swigregister, METH_VARARGS, NULL}, + { (char *)"ofDrawAxis", _wrap_ofDrawAxis, METH_VARARGS, NULL}, + { (char *)"ofDrawGrid", _wrap_ofDrawGrid, METH_VARARGS, NULL}, + { (char *)"ofDrawGridPlane", _wrap_ofDrawGridPlane, METH_VARARGS, NULL}, + { (char *)"ofDrawArrow", _wrap_ofDrawArrow, METH_VARARGS, NULL}, + { (char *)"ofDrawRotationAxes", _wrap_ofDrawRotationAxes, METH_VARARGS, NULL}, + { (char *)"new_ofCamera", _wrap_new_ofCamera, METH_VARARGS, NULL}, + { (char *)"delete_ofCamera", _wrap_delete_ofCamera, METH_VARARGS, NULL}, + { (char *)"ofCamera_setFov", _wrap_ofCamera_setFov, METH_VARARGS, NULL}, + { (char *)"ofCamera_setNearClip", _wrap_ofCamera_setNearClip, METH_VARARGS, NULL}, + { (char *)"ofCamera_setFarClip", _wrap_ofCamera_setFarClip, METH_VARARGS, NULL}, + { (char *)"ofCamera_setLensOffset", _wrap_ofCamera_setLensOffset, METH_VARARGS, NULL}, + { (char *)"ofCamera_setAspectRatio", _wrap_ofCamera_setAspectRatio, METH_VARARGS, NULL}, + { (char *)"ofCamera_setForceAspectRatio", _wrap_ofCamera_setForceAspectRatio, METH_VARARGS, NULL}, + { (char *)"ofCamera_getFov", _wrap_ofCamera_getFov, METH_VARARGS, NULL}, + { (char *)"ofCamera_getNearClip", _wrap_ofCamera_getNearClip, METH_VARARGS, NULL}, + { (char *)"ofCamera_getFarClip", _wrap_ofCamera_getFarClip, METH_VARARGS, NULL}, + { (char *)"ofCamera_getLensOffset", _wrap_ofCamera_getLensOffset, METH_VARARGS, NULL}, + { (char *)"ofCamera_getForceAspectRatio", _wrap_ofCamera_getForceAspectRatio, METH_VARARGS, NULL}, + { (char *)"ofCamera_getAspectRatio", _wrap_ofCamera_getAspectRatio, METH_VARARGS, NULL}, + { (char *)"ofCamera_setupPerspective", _wrap_ofCamera_setupPerspective, METH_VARARGS, NULL}, + { (char *)"ofCamera_setupOffAxisViewPortal", _wrap_ofCamera_setupOffAxisViewPortal, METH_VARARGS, NULL}, + { (char *)"ofCamera_setVFlip", _wrap_ofCamera_setVFlip, METH_VARARGS, NULL}, + { (char *)"ofCamera_isVFlipped", _wrap_ofCamera_isVFlipped, METH_VARARGS, NULL}, + { (char *)"ofCamera_enableOrtho", _wrap_ofCamera_enableOrtho, METH_VARARGS, NULL}, + { (char *)"ofCamera_disableOrtho", _wrap_ofCamera_disableOrtho, METH_VARARGS, NULL}, + { (char *)"ofCamera_getOrtho", _wrap_ofCamera_getOrtho, METH_VARARGS, NULL}, + { (char *)"ofCamera_getImagePlaneDistance", _wrap_ofCamera_getImagePlaneDistance, METH_VARARGS, NULL}, + { (char *)"ofCamera_begin", _wrap_ofCamera_begin, METH_VARARGS, NULL}, + { (char *)"ofCamera_end", _wrap_ofCamera_end, METH_VARARGS, NULL}, + { (char *)"ofCamera_getProjectionMatrix", _wrap_ofCamera_getProjectionMatrix, METH_VARARGS, NULL}, + { (char *)"ofCamera_getModelViewMatrix", _wrap_ofCamera_getModelViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofCamera_getModelViewProjectionMatrix", _wrap_ofCamera_getModelViewProjectionMatrix, METH_VARARGS, NULL}, + { (char *)"ofCamera_worldToScreen", _wrap_ofCamera_worldToScreen, METH_VARARGS, NULL}, + { (char *)"ofCamera_screenToWorld", _wrap_ofCamera_screenToWorld, METH_VARARGS, NULL}, + { (char *)"ofCamera_worldToCamera", _wrap_ofCamera_worldToCamera, METH_VARARGS, NULL}, + { (char *)"ofCamera_cameraToWorld", _wrap_ofCamera_cameraToWorld, METH_VARARGS, NULL}, + { (char *)"ofCamera_setRenderer", _wrap_ofCamera_setRenderer, METH_VARARGS, NULL}, + { (char *)"ofCamera_swigregister", ofCamera_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofEasyCam", _wrap_new_ofEasyCam, METH_VARARGS, NULL}, + { (char *)"delete_ofEasyCam", _wrap_delete_ofEasyCam, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_begin", _wrap_ofEasyCam_begin, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_reset", _wrap_ofEasyCam_reset, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setTarget", _wrap_ofEasyCam_setTarget, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_getTarget", _wrap_ofEasyCam_getTarget, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setDistance", _wrap_ofEasyCam_setDistance, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_getDistance", _wrap_ofEasyCam_getDistance, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setDrag", _wrap_ofEasyCam_setDrag, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_getDrag", _wrap_ofEasyCam_getDrag, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setAutoDistance", _wrap_ofEasyCam_setAutoDistance, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setEvents", _wrap_ofEasyCam_setEvents, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_setTranslationKey", _wrap_ofEasyCam_setTranslationKey, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_getTranslationKey", _wrap_ofEasyCam_getTranslationKey, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_enableMouseInput", _wrap_ofEasyCam_enableMouseInput, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_disableMouseInput", _wrap_ofEasyCam_disableMouseInput, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_getMouseInputEnabled", _wrap_ofEasyCam_getMouseInputEnabled, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_enableMouseMiddleButton", _wrap_ofEasyCam_enableMouseMiddleButton, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_disableMouseMiddleButton", _wrap_ofEasyCam_disableMouseMiddleButton, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_getMouseMiddleButtonEnabled", _wrap_ofEasyCam_getMouseMiddleButtonEnabled, METH_VARARGS, NULL}, + { (char *)"ofEasyCam_swigregister", ofEasyCam_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofMesh", _wrap_new_ofMesh, METH_VARARGS, NULL}, + { (char *)"ofMesh_setFromTriangles", _wrap_ofMesh_setFromTriangles, METH_VARARGS, NULL}, + { (char *)"ofMesh_setMode", _wrap_ofMesh_setMode, METH_VARARGS, NULL}, + { (char *)"ofMesh_getMode", _wrap_ofMesh_getMode, METH_VARARGS, NULL}, + { (char *)"ofMesh_plane", _wrap_ofMesh_plane, METH_VARARGS, NULL}, + { (char *)"ofMesh_sphere", _wrap_ofMesh_sphere, METH_VARARGS, NULL}, + { (char *)"ofMesh_icosahedron", _wrap_ofMesh_icosahedron, METH_VARARGS, NULL}, + { (char *)"ofMesh_icosphere", _wrap_ofMesh_icosphere, METH_VARARGS, NULL}, + { (char *)"ofMesh_cylinder", _wrap_ofMesh_cylinder, METH_VARARGS, NULL}, + { (char *)"ofMesh_cone", _wrap_ofMesh_cone, METH_VARARGS, NULL}, + { (char *)"ofMesh_box", _wrap_ofMesh_box, METH_VARARGS, NULL}, + { (char *)"ofMesh_axis", _wrap_ofMesh_axis, METH_VARARGS, NULL}, + { (char *)"ofMesh_addVertex", _wrap_ofMesh_addVertex, METH_VARARGS, NULL}, + { (char *)"ofMesh_addVertices", _wrap_ofMesh_addVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_removeVertex", _wrap_ofMesh_removeVertex, METH_VARARGS, NULL}, + { (char *)"ofMesh_setVertex", _wrap_ofMesh_setVertex, METH_VARARGS, NULL}, + { (char *)"ofMesh_clearVertices", _wrap_ofMesh_clearVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_clear", _wrap_ofMesh_clear, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumVertices", _wrap_ofMesh_getNumVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_getVerticesPointer", _wrap_ofMesh_getVerticesPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getVertex", _wrap_ofMesh_getVertex, METH_VARARGS, NULL}, + { (char *)"ofMesh_getVertices", _wrap_ofMesh_getVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveVertsChanged", _wrap_ofMesh_haveVertsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasVertices", _wrap_ofMesh_hasVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_append", _wrap_ofMesh_append, METH_VARARGS, NULL}, + { (char *)"ofMesh_mergeDuplicateVertices", _wrap_ofMesh_mergeDuplicateVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_getCentroid", _wrap_ofMesh_getCentroid, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNormal", _wrap_ofMesh_getNormal, METH_VARARGS, NULL}, + { (char *)"ofMesh_addNormal", _wrap_ofMesh_addNormal, METH_VARARGS, NULL}, + { (char *)"ofMesh_addNormals", _wrap_ofMesh_addNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_removeNormal", _wrap_ofMesh_removeNormal, METH_VARARGS, NULL}, + { (char *)"ofMesh_setNormal", _wrap_ofMesh_setNormal, METH_VARARGS, NULL}, + { (char *)"ofMesh_clearNormals", _wrap_ofMesh_clearNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumNormals", _wrap_ofMesh_getNumNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNormalsPointer", _wrap_ofMesh_getNormalsPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNormals", _wrap_ofMesh_getNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveNormalsChanged", _wrap_ofMesh_haveNormalsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasNormals", _wrap_ofMesh_hasNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_enableNormals", _wrap_ofMesh_enableNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_disableNormals", _wrap_ofMesh_disableNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_usingNormals", _wrap_ofMesh_usingNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_smoothNormals", _wrap_ofMesh_smoothNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getFace", _wrap_ofMesh_getFace, METH_VARARGS, NULL}, + { (char *)"ofMesh_getFaceNormals", _wrap_ofMesh_getFaceNormals, METH_VARARGS, NULL}, + { (char *)"ofMesh_getUniqueFaces", _wrap_ofMesh_getUniqueFaces, METH_VARARGS, NULL}, + { (char *)"ofMesh_getColor", _wrap_ofMesh_getColor, METH_VARARGS, NULL}, + { (char *)"ofMesh_addColor", _wrap_ofMesh_addColor, METH_VARARGS, NULL}, + { (char *)"ofMesh_addColors", _wrap_ofMesh_addColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_removeColor", _wrap_ofMesh_removeColor, METH_VARARGS, NULL}, + { (char *)"ofMesh_setColor", _wrap_ofMesh_setColor, METH_VARARGS, NULL}, + { (char *)"ofMesh_clearColors", _wrap_ofMesh_clearColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumColors", _wrap_ofMesh_getNumColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_getColorsPointer", _wrap_ofMesh_getColorsPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getColors", _wrap_ofMesh_getColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveColorsChanged", _wrap_ofMesh_haveColorsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasColors", _wrap_ofMesh_hasColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_enableColors", _wrap_ofMesh_enableColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_disableColors", _wrap_ofMesh_disableColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_usingColors", _wrap_ofMesh_usingColors, METH_VARARGS, NULL}, + { (char *)"ofMesh_getTexCoord", _wrap_ofMesh_getTexCoord, METH_VARARGS, NULL}, + { (char *)"ofMesh_addTexCoord", _wrap_ofMesh_addTexCoord, METH_VARARGS, NULL}, + { (char *)"ofMesh_addTexCoords", _wrap_ofMesh_addTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_removeTexCoord", _wrap_ofMesh_removeTexCoord, METH_VARARGS, NULL}, + { (char *)"ofMesh_setTexCoord", _wrap_ofMesh_setTexCoord, METH_VARARGS, NULL}, + { (char *)"ofMesh_clearTexCoords", _wrap_ofMesh_clearTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumTexCoords", _wrap_ofMesh_getNumTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_getTexCoordsPointer", _wrap_ofMesh_getTexCoordsPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getTexCoords", _wrap_ofMesh_getTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveTexCoordsChanged", _wrap_ofMesh_haveTexCoordsChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasTexCoords", _wrap_ofMesh_hasTexCoords, METH_VARARGS, NULL}, + { (char *)"ofMesh_enableTextures", _wrap_ofMesh_enableTextures, METH_VARARGS, NULL}, + { (char *)"ofMesh_disableTextures", _wrap_ofMesh_disableTextures, METH_VARARGS, NULL}, + { (char *)"ofMesh_usingTextures", _wrap_ofMesh_usingTextures, METH_VARARGS, NULL}, + { (char *)"ofMesh_setupIndicesAuto", _wrap_ofMesh_setupIndicesAuto, METH_VARARGS, NULL}, + { (char *)"ofMesh_getIndex", _wrap_ofMesh_getIndex, METH_VARARGS, NULL}, + { (char *)"ofMesh_addIndex", _wrap_ofMesh_addIndex, METH_VARARGS, NULL}, + { (char *)"ofMesh_addIndices", _wrap_ofMesh_addIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_removeIndex", _wrap_ofMesh_removeIndex, METH_VARARGS, NULL}, + { (char *)"ofMesh_setIndex", _wrap_ofMesh_setIndex, METH_VARARGS, NULL}, + { (char *)"ofMesh_clearIndices", _wrap_ofMesh_clearIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_getNumIndices", _wrap_ofMesh_getNumIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_getIndexPointer", _wrap_ofMesh_getIndexPointer, METH_VARARGS, NULL}, + { (char *)"ofMesh_getIndices", _wrap_ofMesh_getIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_haveIndicesChanged", _wrap_ofMesh_haveIndicesChanged, METH_VARARGS, NULL}, + { (char *)"ofMesh_hasIndices", _wrap_ofMesh_hasIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_addTriangle", _wrap_ofMesh_addTriangle, METH_VARARGS, NULL}, + { (char *)"ofMesh_enableIndices", _wrap_ofMesh_enableIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_disableIndices", _wrap_ofMesh_disableIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_usingIndices", _wrap_ofMesh_usingIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_setColorForIndices", _wrap_ofMesh_setColorForIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_getMeshForIndices", _wrap_ofMesh_getMeshForIndices, METH_VARARGS, NULL}, + { (char *)"ofMesh_drawVertices", _wrap_ofMesh_drawVertices, METH_VARARGS, NULL}, + { (char *)"ofMesh_drawWireframe", _wrap_ofMesh_drawWireframe, METH_VARARGS, NULL}, + { (char *)"ofMesh_drawFaces", _wrap_ofMesh_drawFaces, METH_VARARGS, NULL}, + { (char *)"ofMesh_draw", _wrap_ofMesh_draw, METH_VARARGS, NULL}, + { (char *)"ofMesh_load", _wrap_ofMesh_load, METH_VARARGS, NULL}, + { (char *)"ofMesh_save", _wrap_ofMesh_save, METH_VARARGS, NULL}, + { (char *)"delete_ofMesh", _wrap_delete_ofMesh, METH_VARARGS, NULL}, + { (char *)"ofMesh_swigregister", ofMesh_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofMeshFace", _wrap_new_ofMeshFace, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_getFaceNormal", _wrap_ofMeshFace_getFaceNormal, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_setVertex", _wrap_ofMeshFace_setVertex, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_getVertex", _wrap_ofMeshFace_getVertex, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_setNormal", _wrap_ofMeshFace_setNormal, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_getNormal", _wrap_ofMeshFace_getNormal, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_setColor", _wrap_ofMeshFace_setColor, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_getColor", _wrap_ofMeshFace_getColor, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_setTexCoord", _wrap_ofMeshFace_setTexCoord, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_getTexCoord", _wrap_ofMeshFace_getTexCoord, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_setHasColors", _wrap_ofMeshFace_setHasColors, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_setHasNormals", _wrap_ofMeshFace_setHasNormals, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_setHasTexcoords", _wrap_ofMeshFace_setHasTexcoords, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_hasColors", _wrap_ofMeshFace_hasColors, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_hasNormals", _wrap_ofMeshFace_hasNormals, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_hasTexcoords", _wrap_ofMeshFace_hasTexcoords, METH_VARARGS, NULL}, + { (char *)"delete_ofMeshFace", _wrap_delete_ofMeshFace, METH_VARARGS, NULL}, + { (char *)"ofMeshFace_swigregister", ofMeshFace_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofPlanePrimitive", _wrap_new_ofPlanePrimitive, METH_VARARGS, NULL}, + { (char *)"delete_ofPlanePrimitive", _wrap_delete_ofPlanePrimitive, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_set", _wrap_ofPlanePrimitive_set, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_resizeToTexture", _wrap_ofPlanePrimitive_resizeToTexture, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_setWidth", _wrap_ofPlanePrimitive_setWidth, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_setHeight", _wrap_ofPlanePrimitive_setHeight, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_setColumns", _wrap_ofPlanePrimitive_setColumns, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_setRows", _wrap_ofPlanePrimitive_setRows, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_setResolution", _wrap_ofPlanePrimitive_setResolution, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_setMode", _wrap_ofPlanePrimitive_setMode, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_getNumColumns", _wrap_ofPlanePrimitive_getNumColumns, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_getNumRows", _wrap_ofPlanePrimitive_getNumRows, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_getResolution", _wrap_ofPlanePrimitive_getResolution, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_getWidth", _wrap_ofPlanePrimitive_getWidth, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_getHeight", _wrap_ofPlanePrimitive_getHeight, METH_VARARGS, NULL}, + { (char *)"ofPlanePrimitive_swigregister", ofPlanePrimitive_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofSpherePrimitive", _wrap_new_ofSpherePrimitive, METH_VARARGS, NULL}, + { (char *)"delete_ofSpherePrimitive", _wrap_delete_ofSpherePrimitive, METH_VARARGS, NULL}, + { (char *)"ofSpherePrimitive_set", _wrap_ofSpherePrimitive_set, METH_VARARGS, NULL}, + { (char *)"ofSpherePrimitive_setResolution", _wrap_ofSpherePrimitive_setResolution, METH_VARARGS, NULL}, + { (char *)"ofSpherePrimitive_setRadius", _wrap_ofSpherePrimitive_setRadius, METH_VARARGS, NULL}, + { (char *)"ofSpherePrimitive_setMode", _wrap_ofSpherePrimitive_setMode, METH_VARARGS, NULL}, + { (char *)"ofSpherePrimitive_getRadius", _wrap_ofSpherePrimitive_getRadius, METH_VARARGS, NULL}, + { (char *)"ofSpherePrimitive_getResolution", _wrap_ofSpherePrimitive_getResolution, METH_VARARGS, NULL}, + { (char *)"ofSpherePrimitive_swigregister", ofSpherePrimitive_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofIcoSpherePrimitive", _wrap_new_ofIcoSpherePrimitive, METH_VARARGS, NULL}, + { (char *)"delete_ofIcoSpherePrimitive", _wrap_delete_ofIcoSpherePrimitive, METH_VARARGS, NULL}, + { (char *)"ofIcoSpherePrimitive_set", _wrap_ofIcoSpherePrimitive_set, METH_VARARGS, NULL}, + { (char *)"ofIcoSpherePrimitive_setResolution", _wrap_ofIcoSpherePrimitive_setResolution, METH_VARARGS, NULL}, + { (char *)"ofIcoSpherePrimitive_setRadius", _wrap_ofIcoSpherePrimitive_setRadius, METH_VARARGS, NULL}, + { (char *)"ofIcoSpherePrimitive_setMode", _wrap_ofIcoSpherePrimitive_setMode, METH_VARARGS, NULL}, + { (char *)"ofIcoSpherePrimitive_getRadius", _wrap_ofIcoSpherePrimitive_getRadius, METH_VARARGS, NULL}, + { (char *)"ofIcoSpherePrimitive_getResolution", _wrap_ofIcoSpherePrimitive_getResolution, METH_VARARGS, NULL}, + { (char *)"ofIcoSpherePrimitive_swigregister", ofIcoSpherePrimitive_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofCylinderPrimitive", _wrap_new_ofCylinderPrimitive, METH_VARARGS, NULL}, + { (char *)"delete_ofCylinderPrimitive", _wrap_delete_ofCylinderPrimitive, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_set", _wrap_ofCylinderPrimitive_set, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setRadius", _wrap_ofCylinderPrimitive_setRadius, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setHeight", _wrap_ofCylinderPrimitive_setHeight, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setCapped", _wrap_ofCylinderPrimitive_setCapped, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setResolutionRadius", _wrap_ofCylinderPrimitive_setResolutionRadius, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setResolutionHeight", _wrap_ofCylinderPrimitive_setResolutionHeight, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setResolutionCap", _wrap_ofCylinderPrimitive_setResolutionCap, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setResolution", _wrap_ofCylinderPrimitive_setResolution, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setMode", _wrap_ofCylinderPrimitive_setMode, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setTopCapColor", _wrap_ofCylinderPrimitive_setTopCapColor, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setCylinderColor", _wrap_ofCylinderPrimitive_setCylinderColor, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_setBottomCapColor", _wrap_ofCylinderPrimitive_setBottomCapColor, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getTopCapIndices", _wrap_ofCylinderPrimitive_getTopCapIndices, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getTopCapMesh", _wrap_ofCylinderPrimitive_getTopCapMesh, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getCylinderIndices", _wrap_ofCylinderPrimitive_getCylinderIndices, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getCylinderMesh", _wrap_ofCylinderPrimitive_getCylinderMesh, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getBottomCapIndices", _wrap_ofCylinderPrimitive_getBottomCapIndices, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getBottomCapMesh", _wrap_ofCylinderPrimitive_getBottomCapMesh, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getResolutionRadius", _wrap_ofCylinderPrimitive_getResolutionRadius, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getResolutionHeight", _wrap_ofCylinderPrimitive_getResolutionHeight, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getResolutionCap", _wrap_ofCylinderPrimitive_getResolutionCap, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getResolution", _wrap_ofCylinderPrimitive_getResolution, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getHeight", _wrap_ofCylinderPrimitive_getHeight, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getRadius", _wrap_ofCylinderPrimitive_getRadius, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_getCapped", _wrap_ofCylinderPrimitive_getCapped, METH_VARARGS, NULL}, + { (char *)"ofCylinderPrimitive_swigregister", ofCylinderPrimitive_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofConePrimitive", _wrap_new_ofConePrimitive, METH_VARARGS, NULL}, + { (char *)"delete_ofConePrimitive", _wrap_delete_ofConePrimitive, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_set", _wrap_ofConePrimitive_set, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setResolutionRadius", _wrap_ofConePrimitive_setResolutionRadius, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setResolutionHeight", _wrap_ofConePrimitive_setResolutionHeight, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setResolutionCap", _wrap_ofConePrimitive_setResolutionCap, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setResolution", _wrap_ofConePrimitive_setResolution, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setMode", _wrap_ofConePrimitive_setMode, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setRadius", _wrap_ofConePrimitive_setRadius, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setHeight", _wrap_ofConePrimitive_setHeight, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setTopColor", _wrap_ofConePrimitive_setTopColor, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_setCapColor", _wrap_ofConePrimitive_setCapColor, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getConeIndices", _wrap_ofConePrimitive_getConeIndices, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getConeMesh", _wrap_ofConePrimitive_getConeMesh, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getCapIndices", _wrap_ofConePrimitive_getCapIndices, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getCapMesh", _wrap_ofConePrimitive_getCapMesh, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getResolutionRadius", _wrap_ofConePrimitive_getResolutionRadius, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getResolutionHeight", _wrap_ofConePrimitive_getResolutionHeight, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getResolutionCap", _wrap_ofConePrimitive_getResolutionCap, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getResolution", _wrap_ofConePrimitive_getResolution, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getRadius", _wrap_ofConePrimitive_getRadius, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_getHeight", _wrap_ofConePrimitive_getHeight, METH_VARARGS, NULL}, + { (char *)"ofConePrimitive_swigregister", ofConePrimitive_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofBoxPrimitive", _wrap_new_ofBoxPrimitive, METH_VARARGS, NULL}, + { (char *)"delete_ofBoxPrimitive", _wrap_delete_ofBoxPrimitive, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_set", _wrap_ofBoxPrimitive_set, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setWidth", _wrap_ofBoxPrimitive_setWidth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setHeight", _wrap_ofBoxPrimitive_setHeight, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setDepth", _wrap_ofBoxPrimitive_setDepth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_resizeToTexture", _wrap_ofBoxPrimitive_resizeToTexture, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getSideIndices", _wrap_ofBoxPrimitive_getSideIndices, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getSideMesh", _wrap_ofBoxPrimitive_getSideMesh, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setResolutionWidth", _wrap_ofBoxPrimitive_setResolutionWidth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setResolutionHeight", _wrap_ofBoxPrimitive_setResolutionHeight, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setResolutionDepth", _wrap_ofBoxPrimitive_setResolutionDepth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setResolution", _wrap_ofBoxPrimitive_setResolution, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setMode", _wrap_ofBoxPrimitive_setMode, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_setSideColor", _wrap_ofBoxPrimitive_setSideColor, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getResolutionWidth", _wrap_ofBoxPrimitive_getResolutionWidth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getResolutionHeight", _wrap_ofBoxPrimitive_getResolutionHeight, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getResolutionDepth", _wrap_ofBoxPrimitive_getResolutionDepth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getResolution", _wrap_ofBoxPrimitive_getResolution, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getWidth", _wrap_ofBoxPrimitive_getWidth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getHeight", _wrap_ofBoxPrimitive_getHeight, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getDepth", _wrap_ofBoxPrimitive_getDepth, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_getSize", _wrap_ofBoxPrimitive_getSize, METH_VARARGS, NULL}, + { (char *)"ofBoxPrimitive_swigregister", ofBoxPrimitive_swigregister, METH_VARARGS, NULL}, + { (char *)"ofInit", _wrap_ofInit, METH_VARARGS, NULL}, + { (char *)"ofCreateWindow", _wrap_ofCreateWindow, METH_VARARGS, NULL}, + { (char *)"ofGetMainLoop", _wrap_ofGetMainLoop, METH_VARARGS, NULL}, + { (char *)"ofSetMainLoop", _wrap_ofSetMainLoop, METH_VARARGS, NULL}, + { (char *)"ofSetupOpenGL", _wrap_ofSetupOpenGL, METH_VARARGS, NULL}, + { (char *)"ofRunApp", _wrap_ofRunApp, METH_VARARGS, NULL}, + { (char *)"ofRunMainLoop", _wrap_ofRunMainLoop, METH_VARARGS, NULL}, + { (char *)"ofGetAppPtr", _wrap_ofGetAppPtr, METH_VARARGS, NULL}, + { (char *)"ofExit", _wrap_ofExit, METH_VARARGS, NULL}, + { (char *)"ofGetFrameRate", _wrap_ofGetFrameRate, METH_VARARGS, NULL}, + { (char *)"ofGetTargetFrameRate", _wrap_ofGetTargetFrameRate, METH_VARARGS, NULL}, + { (char *)"ofSetFrameRate", _wrap_ofSetFrameRate, METH_VARARGS, NULL}, + { (char *)"ofGetLastFrameTime", _wrap_ofGetLastFrameTime, METH_VARARGS, NULL}, + { (char *)"ofSetOrientation", _wrap_ofSetOrientation, METH_VARARGS, NULL}, + { (char *)"ofGetOrientation", _wrap_ofGetOrientation, METH_VARARGS, NULL}, + { (char *)"ofHideCursor", _wrap_ofHideCursor, METH_VARARGS, NULL}, + { (char *)"ofShowCursor", _wrap_ofShowCursor, METH_VARARGS, NULL}, + { (char *)"ofGetWindowPositionX", _wrap_ofGetWindowPositionX, METH_VARARGS, NULL}, + { (char *)"ofGetWindowPositionY", _wrap_ofGetWindowPositionY, METH_VARARGS, NULL}, + { (char *)"ofGetScreenWidth", _wrap_ofGetScreenWidth, METH_VARARGS, NULL}, + { (char *)"ofGetScreenHeight", _wrap_ofGetScreenHeight, METH_VARARGS, NULL}, + { (char *)"ofGetWindowMode", _wrap_ofGetWindowMode, METH_VARARGS, NULL}, + { (char *)"ofGetWidth", _wrap_ofGetWidth, METH_VARARGS, NULL}, + { (char *)"ofGetHeight", _wrap_ofGetHeight, METH_VARARGS, NULL}, + { (char *)"ofGetWindowWidth", _wrap_ofGetWindowWidth, METH_VARARGS, NULL}, + { (char *)"ofGetWindowHeight", _wrap_ofGetWindowHeight, METH_VARARGS, NULL}, + { (char *)"ofRandomWidth", _wrap_ofRandomWidth, METH_VARARGS, NULL}, + { (char *)"ofRandomHeight", _wrap_ofRandomHeight, METH_VARARGS, NULL}, + { (char *)"ofDoesHWOrientation", _wrap_ofDoesHWOrientation, METH_VARARGS, NULL}, + { (char *)"ofGetWindowSize", _wrap_ofGetWindowSize, METH_VARARGS, NULL}, + { (char *)"ofGetWindowRect", _wrap_ofGetWindowRect, METH_VARARGS, NULL}, + { (char *)"ofGetWindowPtr", _wrap_ofGetWindowPtr, METH_VARARGS, NULL}, + { (char *)"ofSetWindowPosition", _wrap_ofSetWindowPosition, METH_VARARGS, NULL}, + { (char *)"ofSetWindowShape", _wrap_ofSetWindowShape, METH_VARARGS, NULL}, + { (char *)"ofSetWindowTitle", _wrap_ofSetWindowTitle, METH_VARARGS, NULL}, + { (char *)"ofEnableSetupScreen", _wrap_ofEnableSetupScreen, METH_VARARGS, NULL}, + { (char *)"ofDisableSetupScreen", _wrap_ofDisableSetupScreen, METH_VARARGS, NULL}, + { (char *)"ofSetFullscreen", _wrap_ofSetFullscreen, METH_VARARGS, NULL}, + { (char *)"ofToggleFullscreen", _wrap_ofToggleFullscreen, METH_VARARGS, NULL}, + { (char *)"ofSetVerticalSync", _wrap_ofSetVerticalSync, METH_VARARGS, NULL}, + { (char *)"ofEvents", _wrap_ofEvents, METH_VARARGS, NULL}, + { (char *)"ofSetCurrentRenderer", _wrap_ofSetCurrentRenderer, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentRenderer", _wrap_ofGetCurrentRenderer, METH_VARARGS, NULL}, + { (char *)"ofSetEscapeQuitsApp", _wrap_ofSetEscapeQuitsApp, METH_VARARGS, NULL}, + { (char *)"FIRMATA_MAJOR_VERSION_swigconstant", FIRMATA_MAJOR_VERSION_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_MINOR_VERSION_swigconstant", FIRMATA_MINOR_VERSION_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_MAX_DATA_BYTES_swigconstant", FIRMATA_MAX_DATA_BYTES_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_DIGITAL_MESSAGE_swigconstant", FIRMATA_DIGITAL_MESSAGE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_ANALOG_MESSAGE_swigconstant", FIRMATA_ANALOG_MESSAGE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_REPORT_ANALOG_swigconstant", FIRMATA_REPORT_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_REPORT_DIGITAL_swigconstant", FIRMATA_REPORT_DIGITAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SET_PIN_MODE_swigconstant", FIRMATA_SET_PIN_MODE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_REPORT_VERSION_swigconstant", FIRMATA_REPORT_VERSION_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSTEM_RESET_swigconstant", FIRMATA_SYSTEM_RESET_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_START_SYSEX_swigconstant", FIRMATA_START_SYSEX_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_END_SYSEX_swigconstant", FIRMATA_END_SYSEX_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_INPUT_swigconstant", FIRMATA_INPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_OUTPUT_swigconstant", FIRMATA_OUTPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_ANALOG_swigconstant", FIRMATA_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_PWM_swigconstant", FIRMATA_PWM_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SERVO_swigconstant", FIRMATA_SERVO_swigconstant, METH_VARARGS, NULL}, + { (char *)"SHIFT_swigconstant", SHIFT_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_swigconstant", I2C_swigconstant, METH_VARARGS, NULL}, + { (char *)"TOTAL_PIN_MODES_swigconstant", TOTAL_PIN_MODES_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_SERVO_CONFIG_swigconstant", FIRMATA_SYSEX_SERVO_CONFIG_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_FIRMATA_STRING_swigconstant", FIRMATA_SYSEX_FIRMATA_STRING_swigconstant, METH_VARARGS, NULL}, + { (char *)"SHIFT_DATA_swigconstant", SHIFT_DATA_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_REQUEST_swigconstant", I2C_REQUEST_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_REPLY_swigconstant", I2C_REPLY_swigconstant, METH_VARARGS, NULL}, + { (char *)"I2C_CONFIG_swigconstant", I2C_CONFIG_swigconstant, METH_VARARGS, NULL}, + { (char *)"EXTENDED_ANALOG_swigconstant", EXTENDED_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"PIN_STATE_QUERY_swigconstant", PIN_STATE_QUERY_swigconstant, METH_VARARGS, NULL}, + { (char *)"PIN_STATE_RESPONSE_swigconstant", PIN_STATE_RESPONSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"CAPABILITY_QUERY_swigconstant", CAPABILITY_QUERY_swigconstant, METH_VARARGS, NULL}, + { (char *)"CAPABILITY_RESPONSE_swigconstant", CAPABILITY_RESPONSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"ANALOG_MAPPING_QUERY_swigconstant", ANALOG_MAPPING_QUERY_swigconstant, METH_VARARGS, NULL}, + { (char *)"ANALOG_MAPPING_RESPONSE_swigconstant", ANALOG_MAPPING_RESPONSE_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant", FIRMATA_SYSEX_REPORT_FIRMWARE_swigconstant, METH_VARARGS, NULL}, + { (char *)"SAMPLING_INTERVAL_swigconstant", SAMPLING_INTERVAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_NON_REALTIME_swigconstant", FIRMATA_SYSEX_NON_REALTIME_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMATA_SYSEX_REALTIME_swigconstant", FIRMATA_SYSEX_REALTIME_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_TOTAL_DIGITAL_PINS_swigconstant", ARD_TOTAL_DIGITAL_PINS_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_TOTAL_ANALOG_PINS_swigconstant", ARD_TOTAL_ANALOG_PINS_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_TOTAL_PORTS_swigconstant", ARD_TOTAL_PORTS_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_INPUT_swigconstant", ARD_INPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_OUTPUT_swigconstant", ARD_OUTPUT_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_ANALOG_swigconstant", ARD_ANALOG_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_PWM_swigconstant", ARD_PWM_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_SERVO_swigconstant", ARD_SERVO_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_HIGH_swigconstant", ARD_HIGH_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_LOW_swigconstant", ARD_LOW_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_ON_swigconstant", ARD_ON_swigconstant, METH_VARARGS, NULL}, + { (char *)"ARD_OFF_swigconstant", ARD_OFF_swigconstant, METH_VARARGS, NULL}, + { (char *)"SYSEX_SERVO_ATTACH_swigconstant", SYSEX_SERVO_ATTACH_swigconstant, METH_VARARGS, NULL}, + { (char *)"SYSEX_SERVO_DETACH_swigconstant", SYSEX_SERVO_DETACH_swigconstant, METH_VARARGS, NULL}, + { (char *)"SYSEX_SERVO_WRITE_swigconstant", SYSEX_SERVO_WRITE_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_ARDUINO_DELAY_LENGTH_swigconstant", OF_ARDUINO_DELAY_LENGTH_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMWARE2_2_swigconstant", FIRMWARE2_2_swigconstant, METH_VARARGS, NULL}, + { (char *)"FIRMWARE2_3_swigconstant", FIRMWARE2_3_swigconstant, METH_VARARGS, NULL}, + { (char *)"new_ofArduino", _wrap_new_ofArduino, METH_VARARGS, NULL}, + { (char *)"delete_ofArduino", _wrap_delete_ofArduino, METH_VARARGS, NULL}, + { (char *)"ofArduino_connect", _wrap_ofArduino_connect, METH_VARARGS, NULL}, + { (char *)"ofArduino_isInitialized", _wrap_ofArduino_isInitialized, METH_VARARGS, NULL}, + { (char *)"ofArduino_isArduinoReady", _wrap_ofArduino_isArduinoReady, METH_VARARGS, NULL}, + { (char *)"ofArduino_disconnect", _wrap_ofArduino_disconnect, METH_VARARGS, NULL}, + { (char *)"ofArduino_update", _wrap_ofArduino_update, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendDigitalPinMode", _wrap_ofArduino_sendDigitalPinMode, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendAnalogPinReporting", _wrap_ofArduino_sendAnalogPinReporting, METH_VARARGS, NULL}, + { (char *)"ofArduino_setUseDelay", _wrap_ofArduino_setUseDelay, METH_VARARGS, NULL}, + { (char *)"ofArduino_setDigitalHistoryLength", _wrap_ofArduino_setDigitalHistoryLength, METH_VARARGS, NULL}, + { (char *)"ofArduino_setAnalogHistoryLength", _wrap_ofArduino_setAnalogHistoryLength, METH_VARARGS, NULL}, + { (char *)"ofArduino_setStringHistoryLength", _wrap_ofArduino_setStringHistoryLength, METH_VARARGS, NULL}, + { (char *)"ofArduino_setSysExHistoryLength", _wrap_ofArduino_setSysExHistoryLength, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendDigital", _wrap_ofArduino_sendDigital, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendPwm", _wrap_ofArduino_sendPwm, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendSysEx", _wrap_ofArduino_sendSysEx, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendString", _wrap_ofArduino_sendString, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendProtocolVersionRequest", _wrap_ofArduino_sendProtocolVersionRequest, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendFirmwareVersionRequest", _wrap_ofArduino_sendFirmwareVersionRequest, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendReset", _wrap_ofArduino_sendReset, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendSysExBegin", _wrap_ofArduino_sendSysExBegin, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendSysExEnd", _wrap_ofArduino_sendSysExEnd, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendByte", _wrap_ofArduino_sendByte, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendValueAsTwo7bitBytes", _wrap_ofArduino_sendValueAsTwo7bitBytes, METH_VARARGS, NULL}, + { (char *)"ofArduino_getPwm", _wrap_ofArduino_getPwm, METH_VARARGS, NULL}, + { (char *)"ofArduino_getDigital", _wrap_ofArduino_getDigital, METH_VARARGS, NULL}, + { (char *)"ofArduino_getAnalog", _wrap_ofArduino_getAnalog, METH_VARARGS, NULL}, + { (char *)"ofArduino_getSysEx", _wrap_ofArduino_getSysEx, METH_VARARGS, NULL}, + { (char *)"ofArduino_getString", _wrap_ofArduino_getString, METH_VARARGS, NULL}, + { (char *)"ofArduino_getMajorProtocolVersion", _wrap_ofArduino_getMajorProtocolVersion, METH_VARARGS, NULL}, + { (char *)"ofArduino_getMinorProtocolVersion", _wrap_ofArduino_getMinorProtocolVersion, METH_VARARGS, NULL}, + { (char *)"ofArduino_getMajorFirmwareVersion", _wrap_ofArduino_getMajorFirmwareVersion, METH_VARARGS, NULL}, + { (char *)"ofArduino_getMinorFirmwareVersion", _wrap_ofArduino_getMinorFirmwareVersion, METH_VARARGS, NULL}, + { (char *)"ofArduino_getFirmwareName", _wrap_ofArduino_getFirmwareName, METH_VARARGS, NULL}, + { (char *)"ofArduino_getDigitalHistory", _wrap_ofArduino_getDigitalHistory, METH_VARARGS, NULL}, + { (char *)"ofArduino_getAnalogHistory", _wrap_ofArduino_getAnalogHistory, METH_VARARGS, NULL}, + { (char *)"ofArduino_getSysExHistory", _wrap_ofArduino_getSysExHistory, METH_VARARGS, NULL}, + { (char *)"ofArduino_getStringHistory", _wrap_ofArduino_getStringHistory, METH_VARARGS, NULL}, + { (char *)"ofArduino_getDigitalPinMode", _wrap_ofArduino_getDigitalPinMode, METH_VARARGS, NULL}, + { (char *)"ofArduino_getAnalogPinReporting", _wrap_ofArduino_getAnalogPinReporting, METH_VARARGS, NULL}, + { (char *)"ofArduino_getValueFromTwo7bitBytes", _wrap_ofArduino_getValueFromTwo7bitBytes, METH_VARARGS, NULL}, + { (char *)"ofArduino_EDigitalPinChanged_set", _wrap_ofArduino_EDigitalPinChanged_set, METH_VARARGS, NULL}, + { (char *)"ofArduino_EDigitalPinChanged_get", _wrap_ofArduino_EDigitalPinChanged_get, METH_VARARGS, NULL}, + { (char *)"ofArduino_EAnalogPinChanged_set", _wrap_ofArduino_EAnalogPinChanged_set, METH_VARARGS, NULL}, + { (char *)"ofArduino_EAnalogPinChanged_get", _wrap_ofArduino_EAnalogPinChanged_get, METH_VARARGS, NULL}, + { (char *)"ofArduino_ESysExReceived_set", _wrap_ofArduino_ESysExReceived_set, METH_VARARGS, NULL}, + { (char *)"ofArduino_ESysExReceived_get", _wrap_ofArduino_ESysExReceived_get, METH_VARARGS, NULL}, + { (char *)"ofArduino_EProtocolVersionReceived_set", _wrap_ofArduino_EProtocolVersionReceived_set, METH_VARARGS, NULL}, + { (char *)"ofArduino_EProtocolVersionReceived_get", _wrap_ofArduino_EProtocolVersionReceived_get, METH_VARARGS, NULL}, + { (char *)"ofArduino_EFirmwareVersionReceived_set", _wrap_ofArduino_EFirmwareVersionReceived_set, METH_VARARGS, NULL}, + { (char *)"ofArduino_EFirmwareVersionReceived_get", _wrap_ofArduino_EFirmwareVersionReceived_get, METH_VARARGS, NULL}, + { (char *)"ofArduino_EInitialized_set", _wrap_ofArduino_EInitialized_set, METH_VARARGS, NULL}, + { (char *)"ofArduino_EInitialized_get", _wrap_ofArduino_EInitialized_get, METH_VARARGS, NULL}, + { (char *)"ofArduino_EStringReceived_set", _wrap_ofArduino_EStringReceived_set, METH_VARARGS, NULL}, + { (char *)"ofArduino_EStringReceived_get", _wrap_ofArduino_EStringReceived_get, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendServo", _wrap_ofArduino_sendServo, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendServoAttach", _wrap_ofArduino_sendServoAttach, METH_VARARGS, NULL}, + { (char *)"ofArduino_sendServoDetach", _wrap_ofArduino_sendServoDetach, METH_VARARGS, NULL}, + { (char *)"ofArduino_getServo", _wrap_ofArduino_getServo, METH_VARARGS, NULL}, + { (char *)"ofArduino_swigregister", ofArduino_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofSerial", _wrap_new_ofSerial, METH_VARARGS, NULL}, + { (char *)"delete_ofSerial", _wrap_delete_ofSerial, METH_VARARGS, NULL}, + { (char *)"ofSerial_listDevices", _wrap_ofSerial_listDevices, METH_VARARGS, NULL}, + { (char *)"ofSerial_enumerateDevices", _wrap_ofSerial_enumerateDevices, METH_VARARGS, NULL}, + { (char *)"ofSerial_getDeviceList", _wrap_ofSerial_getDeviceList, METH_VARARGS, NULL}, + { (char *)"ofSerial_setup", _wrap_ofSerial_setup, METH_VARARGS, NULL}, + { (char *)"ofSerial_isInitialized", _wrap_ofSerial_isInitialized, METH_VARARGS, NULL}, + { (char *)"ofSerial_close", _wrap_ofSerial_close, METH_VARARGS, NULL}, + { (char *)"ofSerial_available", _wrap_ofSerial_available, METH_VARARGS, NULL}, + { (char *)"ofSerial_readBytes", _wrap_ofSerial_readBytes, METH_VARARGS, NULL}, + { (char *)"ofSerial_readByte", _wrap_ofSerial_readByte, METH_VARARGS, NULL}, + { (char *)"ofSerial_writeBytes", _wrap_ofSerial_writeBytes, METH_VARARGS, NULL}, + { (char *)"ofSerial_writeByte", _wrap_ofSerial_writeByte, METH_VARARGS, NULL}, + { (char *)"ofSerial_flush", _wrap_ofSerial_flush, METH_VARARGS, NULL}, + { (char *)"ofSerial_drain", _wrap_ofSerial_drain, METH_VARARGS, NULL}, + { (char *)"ofSerial_swigregister", ofSerial_swigregister, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_POINT_swigconstant", OF_LIGHT_POINT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_DIRECTIONAL_swigconstant", OF_LIGHT_DIRECTIONAL_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_SPOT_swigconstant", OF_LIGHT_SPOT_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_LIGHT_AREA_swigconstant", OF_LIGHT_AREA_swigconstant, METH_VARARGS, NULL}, + { (char *)"ofEnableLighting", _wrap_ofEnableLighting, METH_VARARGS, NULL}, + { (char *)"ofDisableLighting", _wrap_ofDisableLighting, METH_VARARGS, NULL}, + { (char *)"ofEnableSeparateSpecularLight", _wrap_ofEnableSeparateSpecularLight, METH_VARARGS, NULL}, + { (char *)"ofDisableSeparateSpecularLight", _wrap_ofDisableSeparateSpecularLight, METH_VARARGS, NULL}, + { (char *)"ofGetLightingEnabled", _wrap_ofGetLightingEnabled, METH_VARARGS, NULL}, + { (char *)"ofSetSmoothLighting", _wrap_ofSetSmoothLighting, METH_VARARGS, NULL}, + { (char *)"ofSetGlobalAmbientColor", _wrap_ofSetGlobalAmbientColor, METH_VARARGS, NULL}, + { (char *)"ofGetGlobalAmbientColor", _wrap_ofGetGlobalAmbientColor, METH_VARARGS, NULL}, + { (char *)"new_ofLight", _wrap_new_ofLight, METH_VARARGS, NULL}, + { (char *)"ofLight_setup", _wrap_ofLight_setup, METH_VARARGS, NULL}, + { (char *)"ofLight_enable", _wrap_ofLight_enable, METH_VARARGS, NULL}, + { (char *)"ofLight_disable", _wrap_ofLight_disable, METH_VARARGS, NULL}, + { (char *)"ofLight_getIsEnabled", _wrap_ofLight_getIsEnabled, METH_VARARGS, NULL}, + { (char *)"ofLight_setDirectional", _wrap_ofLight_setDirectional, METH_VARARGS, NULL}, + { (char *)"ofLight_getIsDirectional", _wrap_ofLight_getIsDirectional, METH_VARARGS, NULL}, + { (char *)"ofLight_setSpotlight", _wrap_ofLight_setSpotlight, METH_VARARGS, NULL}, + { (char *)"ofLight_getIsSpotlight", _wrap_ofLight_getIsSpotlight, METH_VARARGS, NULL}, + { (char *)"ofLight_setSpotlightCutOff", _wrap_ofLight_setSpotlightCutOff, METH_VARARGS, NULL}, + { (char *)"ofLight_getSpotlightCutOff", _wrap_ofLight_getSpotlightCutOff, METH_VARARGS, NULL}, + { (char *)"ofLight_setSpotConcentration", _wrap_ofLight_setSpotConcentration, METH_VARARGS, NULL}, + { (char *)"ofLight_getSpotConcentration", _wrap_ofLight_getSpotConcentration, METH_VARARGS, NULL}, + { (char *)"ofLight_setPointLight", _wrap_ofLight_setPointLight, METH_VARARGS, NULL}, + { (char *)"ofLight_getIsPointLight", _wrap_ofLight_getIsPointLight, METH_VARARGS, NULL}, + { (char *)"ofLight_setAttenuation", _wrap_ofLight_setAttenuation, METH_VARARGS, NULL}, + { (char *)"ofLight_getAttenuationConstant", _wrap_ofLight_getAttenuationConstant, METH_VARARGS, NULL}, + { (char *)"ofLight_getAttenuationLinear", _wrap_ofLight_getAttenuationLinear, METH_VARARGS, NULL}, + { (char *)"ofLight_getAttenuationQuadratic", _wrap_ofLight_getAttenuationQuadratic, METH_VARARGS, NULL}, + { (char *)"ofLight_setAreaLight", _wrap_ofLight_setAreaLight, METH_VARARGS, NULL}, + { (char *)"ofLight_getIsAreaLight", _wrap_ofLight_getIsAreaLight, METH_VARARGS, NULL}, + { (char *)"ofLight_getType", _wrap_ofLight_getType, METH_VARARGS, NULL}, + { (char *)"ofLight_setAmbientColor", _wrap_ofLight_setAmbientColor, METH_VARARGS, NULL}, + { (char *)"ofLight_setDiffuseColor", _wrap_ofLight_setDiffuseColor, METH_VARARGS, NULL}, + { (char *)"ofLight_setSpecularColor", _wrap_ofLight_setSpecularColor, METH_VARARGS, NULL}, + { (char *)"ofLight_getAmbientColor", _wrap_ofLight_getAmbientColor, METH_VARARGS, NULL}, + { (char *)"ofLight_getDiffuseColor", _wrap_ofLight_getDiffuseColor, METH_VARARGS, NULL}, + { (char *)"ofLight_getSpecularColor", _wrap_ofLight_getSpecularColor, METH_VARARGS, NULL}, + { (char *)"ofLight_getLightID", _wrap_ofLight_getLightID, METH_VARARGS, NULL}, + { (char *)"delete_ofLight", _wrap_delete_ofLight, METH_VARARGS, NULL}, + { (char *)"ofLight_swigregister", ofLight_swigregister, METH_VARARGS, NULL}, + { (char *)"ofLightsData", _wrap_ofLightsData, METH_VARARGS, NULL}, + { (char *)"new_ofMaterial", _wrap_new_ofMaterial, METH_VARARGS, NULL}, + { (char *)"delete_ofMaterial", _wrap_delete_ofMaterial, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setColors", _wrap_ofMaterial_setColors, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setDiffuseColor", _wrap_ofMaterial_setDiffuseColor, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setAmbientColor", _wrap_ofMaterial_setAmbientColor, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setSpecularColor", _wrap_ofMaterial_setSpecularColor, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setEmissiveColor", _wrap_ofMaterial_setEmissiveColor, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setShininess", _wrap_ofMaterial_setShininess, METH_VARARGS, NULL}, + { (char *)"ofMaterial_getData", _wrap_ofMaterial_getData, METH_VARARGS, NULL}, + { (char *)"ofMaterial_setData", _wrap_ofMaterial_setData, METH_VARARGS, NULL}, + { (char *)"ofMaterial_swigregister", ofMaterial_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofShader", _wrap_delete_ofShader, METH_VARARGS, NULL}, + { (char *)"new_ofShader", _wrap_new_ofShader, METH_VARARGS, NULL}, + { (char *)"ofShader_load", _wrap_ofShader_load, METH_VARARGS, NULL}, + { (char *)"ofShader_setGeometryInputType", _wrap_ofShader_setGeometryInputType, METH_VARARGS, NULL}, + { (char *)"ofShader_setGeometryOutputType", _wrap_ofShader_setGeometryOutputType, METH_VARARGS, NULL}, + { (char *)"ofShader_setGeometryOutputCount", _wrap_ofShader_setGeometryOutputCount, METH_VARARGS, NULL}, + { (char *)"ofShader_getGeometryMaxOutputCount", _wrap_ofShader_getGeometryMaxOutputCount, METH_VARARGS, NULL}, + { (char *)"ofShader_unload", _wrap_ofShader_unload, METH_VARARGS, NULL}, + { (char *)"ofShader_isLoaded", _wrap_ofShader_isLoaded, METH_VARARGS, NULL}, + { (char *)"ofShader_begin", _wrap_ofShader_begin, METH_VARARGS, NULL}, + { (char *)"ofShader_end", _wrap_ofShader_end, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniformTexture", _wrap_ofShader_setUniformTexture, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform1i", _wrap_ofShader_setUniform1i, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform2i", _wrap_ofShader_setUniform2i, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform3i", _wrap_ofShader_setUniform3i, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform4i", _wrap_ofShader_setUniform4i, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform1f", _wrap_ofShader_setUniform1f, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform2f", _wrap_ofShader_setUniform2f, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform3f", _wrap_ofShader_setUniform3f, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform4f", _wrap_ofShader_setUniform4f, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform1iv", _wrap_ofShader_setUniform1iv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform2iv", _wrap_ofShader_setUniform2iv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform3iv", _wrap_ofShader_setUniform3iv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform4iv", _wrap_ofShader_setUniform4iv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform1fv", _wrap_ofShader_setUniform1fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform2fv", _wrap_ofShader_setUniform2fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform3fv", _wrap_ofShader_setUniform3fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniform4fv", _wrap_ofShader_setUniform4fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniforms", _wrap_ofShader_setUniforms, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniformMatrix3f", _wrap_ofShader_setUniformMatrix3f, METH_VARARGS, NULL}, + { (char *)"ofShader_setUniformMatrix4f", _wrap_ofShader_setUniformMatrix4f, METH_VARARGS, NULL}, + { (char *)"ofShader_getUniformLocation", _wrap_ofShader_getUniformLocation, METH_VARARGS, NULL}, + { (char *)"ofShader_getAttributeLocation", _wrap_ofShader_getAttributeLocation, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute1f", _wrap_ofShader_setAttribute1f, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute2f", _wrap_ofShader_setAttribute2f, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute3f", _wrap_ofShader_setAttribute3f, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute4f", _wrap_ofShader_setAttribute4f, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute1fv", _wrap_ofShader_setAttribute1fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute2fv", _wrap_ofShader_setAttribute2fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute3fv", _wrap_ofShader_setAttribute3fv, METH_VARARGS, NULL}, + { (char *)"ofShader_setAttribute4fv", _wrap_ofShader_setAttribute4fv, METH_VARARGS, NULL}, + { (char *)"ofShader_bindAttribute", _wrap_ofShader_bindAttribute, METH_VARARGS, NULL}, + { (char *)"ofShader_printActiveUniforms", _wrap_ofShader_printActiveUniforms, METH_VARARGS, NULL}, + { (char *)"ofShader_printActiveAttributes", _wrap_ofShader_printActiveAttributes, METH_VARARGS, NULL}, + { (char *)"ofShader_setupShaderFromSource", _wrap_ofShader_setupShaderFromSource, METH_VARARGS, NULL}, + { (char *)"ofShader_setupShaderFromFile", _wrap_ofShader_setupShaderFromFile, METH_VARARGS, NULL}, + { (char *)"ofShader_linkProgram", _wrap_ofShader_linkProgram, METH_VARARGS, NULL}, + { (char *)"ofShader_bindDefaults", _wrap_ofShader_bindDefaults, METH_VARARGS, NULL}, + { (char *)"ofShader_getProgram", _wrap_ofShader_getProgram, METH_VARARGS, NULL}, + { (char *)"ofShader_getShader", _wrap_ofShader_getShader, METH_VARARGS, NULL}, + { (char *)"ofShader___eq__", _wrap_ofShader___eq__, METH_VARARGS, NULL}, + { (char *)"ofShader___ne__", _wrap_ofShader___ne__, METH_VARARGS, NULL}, + { (char *)"ofShader_getShaderSource", _wrap_ofShader_getShaderSource, METH_VARARGS, NULL}, + { (char *)"ofShader_swigregister", ofShader_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofVbo", _wrap_new_ofVbo, METH_VARARGS, NULL}, + { (char *)"delete_ofVbo", _wrap_delete_ofVbo, METH_VARARGS, NULL}, + { (char *)"ofVbo_setMesh", _wrap_ofVbo_setMesh, METH_VARARGS, NULL}, + { (char *)"ofVbo_setIndexData", _wrap_ofVbo_setIndexData, METH_VARARGS, NULL}, + { (char *)"ofVbo_setVertexData", _wrap_ofVbo_setVertexData, METH_VARARGS, NULL}, + { (char *)"ofVbo_setColorData", _wrap_ofVbo_setColorData, METH_VARARGS, NULL}, + { (char *)"ofVbo_setNormalData", _wrap_ofVbo_setNormalData, METH_VARARGS, NULL}, + { (char *)"ofVbo_setTexCoordData", _wrap_ofVbo_setTexCoordData, METH_VARARGS, NULL}, + { (char *)"ofVbo_setAttributeData", _wrap_ofVbo_setAttributeData, METH_VARARGS, NULL}, + { (char *)"ofVbo_setVertexBuffer", _wrap_ofVbo_setVertexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setColorBuffer", _wrap_ofVbo_setColorBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setNormalBuffer", _wrap_ofVbo_setNormalBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setTexCoordBuffer", _wrap_ofVbo_setTexCoordBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setIndexBuffer", _wrap_ofVbo_setIndexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_setAttributeBuffer", _wrap_ofVbo_setAttributeBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getVertexBuffer", _wrap_ofVbo_getVertexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getColorBuffer", _wrap_ofVbo_getColorBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getNormalBuffer", _wrap_ofVbo_getNormalBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getTexCoordBuffer", _wrap_ofVbo_getTexCoordBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getIndexBuffer", _wrap_ofVbo_getIndexBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_getAttributeBuffer", _wrap_ofVbo_getAttributeBuffer, METH_VARARGS, NULL}, + { (char *)"ofVbo_updateMesh", _wrap_ofVbo_updateMesh, METH_VARARGS, NULL}, + { (char *)"ofVbo_updateIndexData", _wrap_ofVbo_updateIndexData, METH_VARARGS, NULL}, + { (char *)"ofVbo_updateVertexData", _wrap_ofVbo_updateVertexData, METH_VARARGS, NULL}, + { (char *)"ofVbo_updateColorData", _wrap_ofVbo_updateColorData, METH_VARARGS, NULL}, + { (char *)"ofVbo_updateNormalData", _wrap_ofVbo_updateNormalData, METH_VARARGS, NULL}, + { (char *)"ofVbo_updateTexCoordData", _wrap_ofVbo_updateTexCoordData, METH_VARARGS, NULL}, + { (char *)"ofVbo_updateAttributeData", _wrap_ofVbo_updateAttributeData, METH_VARARGS, NULL}, + { (char *)"ofVbo_enableColors", _wrap_ofVbo_enableColors, METH_VARARGS, NULL}, + { (char *)"ofVbo_enableNormals", _wrap_ofVbo_enableNormals, METH_VARARGS, NULL}, + { (char *)"ofVbo_enableTexCoords", _wrap_ofVbo_enableTexCoords, METH_VARARGS, NULL}, + { (char *)"ofVbo_enableIndices", _wrap_ofVbo_enableIndices, METH_VARARGS, NULL}, + { (char *)"ofVbo_disableColors", _wrap_ofVbo_disableColors, METH_VARARGS, NULL}, + { (char *)"ofVbo_disableNormals", _wrap_ofVbo_disableNormals, METH_VARARGS, NULL}, + { (char *)"ofVbo_disableTexCoords", _wrap_ofVbo_disableTexCoords, METH_VARARGS, NULL}, + { (char *)"ofVbo_disableIndices", _wrap_ofVbo_disableIndices, METH_VARARGS, NULL}, + { (char *)"ofVbo_getVaoId", _wrap_ofVbo_getVaoId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getVertId", _wrap_ofVbo_getVertId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getColorId", _wrap_ofVbo_getColorId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getNormalId", _wrap_ofVbo_getNormalId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getTexCoordId", _wrap_ofVbo_getTexCoordId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getIndexId", _wrap_ofVbo_getIndexId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getAttributeId", _wrap_ofVbo_getAttributeId, METH_VARARGS, NULL}, + { (char *)"ofVbo_getIsAllocated", _wrap_ofVbo_getIsAllocated, METH_VARARGS, NULL}, + { (char *)"ofVbo_getUsingVerts", _wrap_ofVbo_getUsingVerts, METH_VARARGS, NULL}, + { (char *)"ofVbo_getUsingColors", _wrap_ofVbo_getUsingColors, METH_VARARGS, NULL}, + { (char *)"ofVbo_getUsingNormals", _wrap_ofVbo_getUsingNormals, METH_VARARGS, NULL}, + { (char *)"ofVbo_getUsingTexCoords", _wrap_ofVbo_getUsingTexCoords, METH_VARARGS, NULL}, + { (char *)"ofVbo_getUsingIndices", _wrap_ofVbo_getUsingIndices, METH_VARARGS, NULL}, + { (char *)"ofVbo_draw", _wrap_ofVbo_draw, METH_VARARGS, NULL}, + { (char *)"ofVbo_drawElements", _wrap_ofVbo_drawElements, METH_VARARGS, NULL}, + { (char *)"ofVbo_drawInstanced", _wrap_ofVbo_drawInstanced, METH_VARARGS, NULL}, + { (char *)"ofVbo_drawElementsInstanced", _wrap_ofVbo_drawElementsInstanced, METH_VARARGS, NULL}, + { (char *)"ofVbo_bind", _wrap_ofVbo_bind, METH_VARARGS, NULL}, + { (char *)"ofVbo_unbind", _wrap_ofVbo_unbind, METH_VARARGS, NULL}, + { (char *)"ofVbo_clear", _wrap_ofVbo_clear, METH_VARARGS, NULL}, + { (char *)"ofVbo_clearVertices", _wrap_ofVbo_clearVertices, METH_VARARGS, NULL}, + { (char *)"ofVbo_clearNormals", _wrap_ofVbo_clearNormals, METH_VARARGS, NULL}, + { (char *)"ofVbo_clearColors", _wrap_ofVbo_clearColors, METH_VARARGS, NULL}, + { (char *)"ofVbo_clearTexCoords", _wrap_ofVbo_clearTexCoords, METH_VARARGS, NULL}, + { (char *)"ofVbo_clearIndices", _wrap_ofVbo_clearIndices, METH_VARARGS, NULL}, + { (char *)"ofVbo_clearAttribute", _wrap_ofVbo_clearAttribute, METH_VARARGS, NULL}, + { (char *)"ofVbo_getNumVertices", _wrap_ofVbo_getNumVertices, METH_VARARGS, NULL}, + { (char *)"ofVbo_getNumIndices", _wrap_ofVbo_getNumIndices, METH_VARARGS, NULL}, + { (char *)"ofVbo_hasAttribute", _wrap_ofVbo_hasAttribute, METH_VARARGS, NULL}, + { (char *)"ofVbo_swigregister", ofVbo_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofVboMesh", _wrap_new_ofVboMesh, METH_VARARGS, NULL}, + { (char *)"delete_ofVboMesh", _wrap_delete_ofVboMesh, METH_VARARGS, NULL}, + { (char *)"ofVboMesh_setUsage", _wrap_ofVboMesh_setUsage, METH_VARARGS, NULL}, + { (char *)"ofVboMesh_draw", _wrap_ofVboMesh_draw, METH_VARARGS, NULL}, + { (char *)"ofVboMesh_drawInstanced", _wrap_ofVboMesh_drawInstanced, METH_VARARGS, NULL}, + { (char *)"ofVboMesh_getVbo", _wrap_ofVboMesh_getVbo, METH_VARARGS, NULL}, + { (char *)"ofVboMesh_swigregister", ofVboMesh_swigregister, METH_VARARGS, NULL}, + { (char *)"OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant", OF_INTERPOLATE_NEAREST_NEIGHBOR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_INTERPOLATE_BILINEAR_swigconstant", OF_INTERPOLATE_BILINEAR_swigconstant, METH_VARARGS, NULL}, + { (char *)"OF_INTERPOLATE_BICUBIC_swigconstant", OF_INTERPOLATE_BICUBIC_swigconstant, METH_VARARGS, NULL}, + { (char *)"delete_ofPixels", _wrap_delete_ofPixels, METH_VARARGS, NULL}, + { (char *)"new_ofPixels", _wrap_new_ofPixels, METH_VARARGS, NULL}, + { (char *)"ofPixels_allocate", _wrap_ofPixels_allocate, METH_VARARGS, NULL}, + { (char *)"ofPixels_isAllocated", _wrap_ofPixels_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofPixels_clear", _wrap_ofPixels_clear, METH_VARARGS, NULL}, + { (char *)"ofPixels_set", _wrap_ofPixels_set, METH_VARARGS, NULL}, + { (char *)"ofPixels_setFromPixels", _wrap_ofPixels_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofPixels_setFromExternalPixels", _wrap_ofPixels_setFromExternalPixels, METH_VARARGS, NULL}, + { (char *)"ofPixels_setFromAlignedPixels", _wrap_ofPixels_setFromAlignedPixels, METH_VARARGS, NULL}, + { (char *)"ofPixels_swap", _wrap_ofPixels_swap, METH_VARARGS, NULL}, + { (char *)"ofPixels_crop", _wrap_ofPixels_crop, METH_VARARGS, NULL}, + { (char *)"ofPixels_cropTo", _wrap_ofPixels_cropTo, METH_VARARGS, NULL}, + { (char *)"ofPixels_rotate90", _wrap_ofPixels_rotate90, METH_VARARGS, NULL}, + { (char *)"ofPixels_rotate90To", _wrap_ofPixels_rotate90To, METH_VARARGS, NULL}, + { (char *)"ofPixels_mirrorTo", _wrap_ofPixels_mirrorTo, METH_VARARGS, NULL}, + { (char *)"ofPixels_mirror", _wrap_ofPixels_mirror, METH_VARARGS, NULL}, + { (char *)"ofPixels_resize", _wrap_ofPixels_resize, METH_VARARGS, NULL}, + { (char *)"ofPixels_resizeTo", _wrap_ofPixels_resizeTo, METH_VARARGS, NULL}, + { (char *)"ofPixels_pasteInto", _wrap_ofPixels_pasteInto, METH_VARARGS, NULL}, + { (char *)"ofPixels_blendInto", _wrap_ofPixels_blendInto, METH_VARARGS, NULL}, + { (char *)"ofPixels_swapRgb", _wrap_ofPixels_swapRgb, METH_VARARGS, NULL}, + { (char *)"ofPixels_getData", _wrap_ofPixels_getData, METH_VARARGS, NULL}, + { (char *)"ofPixels_getPixels", _wrap_ofPixels_getPixels, METH_VARARGS, NULL}, + { (char *)"ofPixels_getPixelIndex", _wrap_ofPixels_getPixelIndex, METH_VARARGS, NULL}, + { (char *)"ofPixels_getColor", _wrap_ofPixels_getColor, METH_VARARGS, NULL}, + { (char *)"ofPixels_setColor", _wrap_ofPixels_setColor, METH_VARARGS, NULL}, + { (char *)"ofPixels___getitem__", _wrap_ofPixels___getitem__, METH_VARARGS, NULL}, + { (char *)"ofPixels_getWidth", _wrap_ofPixels_getWidth, METH_VARARGS, NULL}, + { (char *)"ofPixels_getHeight", _wrap_ofPixels_getHeight, METH_VARARGS, NULL}, + { (char *)"ofPixels_getBytesPerPixel", _wrap_ofPixels_getBytesPerPixel, METH_VARARGS, NULL}, + { (char *)"ofPixels_getBitsPerPixel", _wrap_ofPixels_getBitsPerPixel, METH_VARARGS, NULL}, + { (char *)"ofPixels_getBytesPerChannel", _wrap_ofPixels_getBytesPerChannel, METH_VARARGS, NULL}, + { (char *)"ofPixels_getBitsPerChannel", _wrap_ofPixels_getBitsPerChannel, METH_VARARGS, NULL}, + { (char *)"ofPixels_getBytesStride", _wrap_ofPixels_getBytesStride, METH_VARARGS, NULL}, + { (char *)"ofPixels_getNumChannels", _wrap_ofPixels_getNumChannels, METH_VARARGS, NULL}, + { (char *)"ofPixels_getTotalBytes", _wrap_ofPixels_getTotalBytes, METH_VARARGS, NULL}, + { (char *)"ofPixels_getNumPlanes", _wrap_ofPixels_getNumPlanes, METH_VARARGS, NULL}, + { (char *)"ofPixels_getPlane", _wrap_ofPixels_getPlane, METH_VARARGS, NULL}, + { (char *)"ofPixels_getChannel", _wrap_ofPixels_getChannel, METH_VARARGS, NULL}, + { (char *)"ofPixels_getPixelFormat", _wrap_ofPixels_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofPixels_size", _wrap_ofPixels_size, METH_VARARGS, NULL}, + { (char *)"ofPixels_getImageType", _wrap_ofPixels_getImageType, METH_VARARGS, NULL}, + { (char *)"ofPixels_setChannel", _wrap_ofPixels_setChannel, METH_VARARGS, NULL}, + { (char *)"ofPixels_setImageType", _wrap_ofPixels_setImageType, METH_VARARGS, NULL}, + { (char *)"ofPixels_setNumChannels", _wrap_ofPixels_setNumChannels, METH_VARARGS, NULL}, + { (char *)"ofPixels_pixelBitsFromPixelFormat", _wrap_ofPixels_pixelBitsFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofPixels_bytesFromPixelFormat", _wrap_ofPixels_bytesFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofPixels_begin", _wrap_ofPixels_begin, METH_VARARGS, NULL}, + { (char *)"ofPixels_end", _wrap_ofPixels_end, METH_VARARGS, NULL}, + { (char *)"ofPixels_rbegin", _wrap_ofPixels_rbegin, METH_VARARGS, NULL}, + { (char *)"ofPixels_rend", _wrap_ofPixels_rend, METH_VARARGS, NULL}, + { (char *)"ofPixels_getLine", _wrap_ofPixels_getLine, METH_VARARGS, NULL}, + { (char *)"ofPixels_getLines", _wrap_ofPixels_getLines, METH_VARARGS, NULL}, + { (char *)"ofPixels_getConstLine", _wrap_ofPixels_getConstLine, METH_VARARGS, NULL}, + { (char *)"ofPixels_getConstLines", _wrap_ofPixels_getConstLines, METH_VARARGS, NULL}, + { (char *)"ofPixels_swigregister", ofPixels_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofFloatPixels", _wrap_delete_ofFloatPixels, METH_VARARGS, NULL}, + { (char *)"new_ofFloatPixels", _wrap_new_ofFloatPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_allocate", _wrap_ofFloatPixels_allocate, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_isAllocated", _wrap_ofFloatPixels_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_clear", _wrap_ofFloatPixels_clear, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_set", _wrap_ofFloatPixels_set, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setFromPixels", _wrap_ofFloatPixels_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setFromExternalPixels", _wrap_ofFloatPixels_setFromExternalPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setFromAlignedPixels", _wrap_ofFloatPixels_setFromAlignedPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_swap", _wrap_ofFloatPixels_swap, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_crop", _wrap_ofFloatPixels_crop, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_cropTo", _wrap_ofFloatPixels_cropTo, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_rotate90", _wrap_ofFloatPixels_rotate90, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_rotate90To", _wrap_ofFloatPixels_rotate90To, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_mirrorTo", _wrap_ofFloatPixels_mirrorTo, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_mirror", _wrap_ofFloatPixels_mirror, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_resize", _wrap_ofFloatPixels_resize, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_resizeTo", _wrap_ofFloatPixels_resizeTo, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_pasteInto", _wrap_ofFloatPixels_pasteInto, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_blendInto", _wrap_ofFloatPixels_blendInto, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_swapRgb", _wrap_ofFloatPixels_swapRgb, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getData", _wrap_ofFloatPixels_getData, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getPixels", _wrap_ofFloatPixels_getPixels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getPixelIndex", _wrap_ofFloatPixels_getPixelIndex, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getColor", _wrap_ofFloatPixels_getColor, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setColor", _wrap_ofFloatPixels_setColor, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels___getitem__", _wrap_ofFloatPixels___getitem__, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getWidth", _wrap_ofFloatPixels_getWidth, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getHeight", _wrap_ofFloatPixels_getHeight, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getBytesPerPixel", _wrap_ofFloatPixels_getBytesPerPixel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getBitsPerPixel", _wrap_ofFloatPixels_getBitsPerPixel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getBytesPerChannel", _wrap_ofFloatPixels_getBytesPerChannel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getBitsPerChannel", _wrap_ofFloatPixels_getBitsPerChannel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getBytesStride", _wrap_ofFloatPixels_getBytesStride, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getNumChannels", _wrap_ofFloatPixels_getNumChannels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getTotalBytes", _wrap_ofFloatPixels_getTotalBytes, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getNumPlanes", _wrap_ofFloatPixels_getNumPlanes, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getPlane", _wrap_ofFloatPixels_getPlane, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getChannel", _wrap_ofFloatPixels_getChannel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getPixelFormat", _wrap_ofFloatPixels_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_size", _wrap_ofFloatPixels_size, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getImageType", _wrap_ofFloatPixels_getImageType, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setChannel", _wrap_ofFloatPixels_setChannel, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setImageType", _wrap_ofFloatPixels_setImageType, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_setNumChannels", _wrap_ofFloatPixels_setNumChannels, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_pixelBitsFromPixelFormat", _wrap_ofFloatPixels_pixelBitsFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_bytesFromPixelFormat", _wrap_ofFloatPixels_bytesFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_begin", _wrap_ofFloatPixels_begin, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_end", _wrap_ofFloatPixels_end, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_rbegin", _wrap_ofFloatPixels_rbegin, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_rend", _wrap_ofFloatPixels_rend, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getLine", _wrap_ofFloatPixels_getLine, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getLines", _wrap_ofFloatPixels_getLines, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getConstLine", _wrap_ofFloatPixels_getConstLine, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_getConstLines", _wrap_ofFloatPixels_getConstLines, METH_VARARGS, NULL}, + { (char *)"ofFloatPixels_swigregister", ofFloatPixels_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ofShortPixels", _wrap_delete_ofShortPixels, METH_VARARGS, NULL}, + { (char *)"new_ofShortPixels", _wrap_new_ofShortPixels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_allocate", _wrap_ofShortPixels_allocate, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_isAllocated", _wrap_ofShortPixels_isAllocated, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_clear", _wrap_ofShortPixels_clear, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_set", _wrap_ofShortPixels_set, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setFromPixels", _wrap_ofShortPixels_setFromPixels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setFromExternalPixels", _wrap_ofShortPixels_setFromExternalPixels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setFromAlignedPixels", _wrap_ofShortPixels_setFromAlignedPixels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_swap", _wrap_ofShortPixels_swap, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_crop", _wrap_ofShortPixels_crop, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_cropTo", _wrap_ofShortPixels_cropTo, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_rotate90", _wrap_ofShortPixels_rotate90, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_rotate90To", _wrap_ofShortPixels_rotate90To, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_mirrorTo", _wrap_ofShortPixels_mirrorTo, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_mirror", _wrap_ofShortPixels_mirror, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_resize", _wrap_ofShortPixels_resize, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_resizeTo", _wrap_ofShortPixels_resizeTo, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_pasteInto", _wrap_ofShortPixels_pasteInto, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_blendInto", _wrap_ofShortPixels_blendInto, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_swapRgb", _wrap_ofShortPixels_swapRgb, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getData", _wrap_ofShortPixels_getData, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getPixels", _wrap_ofShortPixels_getPixels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getPixelIndex", _wrap_ofShortPixels_getPixelIndex, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getColor", _wrap_ofShortPixels_getColor, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setColor", _wrap_ofShortPixels_setColor, METH_VARARGS, NULL}, + { (char *)"ofShortPixels___getitem__", _wrap_ofShortPixels___getitem__, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getWidth", _wrap_ofShortPixels_getWidth, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getHeight", _wrap_ofShortPixels_getHeight, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getBytesPerPixel", _wrap_ofShortPixels_getBytesPerPixel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getBitsPerPixel", _wrap_ofShortPixels_getBitsPerPixel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getBytesPerChannel", _wrap_ofShortPixels_getBytesPerChannel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getBitsPerChannel", _wrap_ofShortPixels_getBitsPerChannel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getBytesStride", _wrap_ofShortPixels_getBytesStride, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getNumChannels", _wrap_ofShortPixels_getNumChannels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getTotalBytes", _wrap_ofShortPixels_getTotalBytes, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getNumPlanes", _wrap_ofShortPixels_getNumPlanes, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getPlane", _wrap_ofShortPixels_getPlane, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getChannel", _wrap_ofShortPixels_getChannel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getPixelFormat", _wrap_ofShortPixels_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_size", _wrap_ofShortPixels_size, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getImageType", _wrap_ofShortPixels_getImageType, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setChannel", _wrap_ofShortPixels_setChannel, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setImageType", _wrap_ofShortPixels_setImageType, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_setNumChannels", _wrap_ofShortPixels_setNumChannels, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_pixelBitsFromPixelFormat", _wrap_ofShortPixels_pixelBitsFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_bytesFromPixelFormat", _wrap_ofShortPixels_bytesFromPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_begin", _wrap_ofShortPixels_begin, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_end", _wrap_ofShortPixels_end, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_rbegin", _wrap_ofShortPixels_rbegin, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_rend", _wrap_ofShortPixels_rend, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getLine", _wrap_ofShortPixels_getLine, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getLines", _wrap_ofShortPixels_getLines, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getConstLine", _wrap_ofShortPixels_getConstLine, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_getConstLines", _wrap_ofShortPixels_getConstLines, METH_VARARGS, NULL}, + { (char *)"ofShortPixels_swigregister", ofShortPixels_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofPath", _wrap_new_ofPath, METH_VARARGS, NULL}, + { (char *)"ofPath_clear", _wrap_ofPath_clear, METH_VARARGS, NULL}, + { (char *)"ofPath_newSubPath", _wrap_ofPath_newSubPath, METH_VARARGS, NULL}, + { (char *)"ofPath_close", _wrap_ofPath_close, METH_VARARGS, NULL}, + { (char *)"ofPath_lineTo", _wrap_ofPath_lineTo, METH_VARARGS, NULL}, + { (char *)"ofPath_moveTo", _wrap_ofPath_moveTo, METH_VARARGS, NULL}, + { (char *)"ofPath_curveTo", _wrap_ofPath_curveTo, METH_VARARGS, NULL}, + { (char *)"ofPath_bezierTo", _wrap_ofPath_bezierTo, METH_VARARGS, NULL}, + { (char *)"ofPath_quadBezierTo", _wrap_ofPath_quadBezierTo, METH_VARARGS, NULL}, + { (char *)"ofPath_arc", _wrap_ofPath_arc, METH_VARARGS, NULL}, + { (char *)"ofPath_arcNegative", _wrap_ofPath_arcNegative, METH_VARARGS, NULL}, + { (char *)"ofPath_triangle", _wrap_ofPath_triangle, METH_VARARGS, NULL}, + { (char *)"ofPath_circle", _wrap_ofPath_circle, METH_VARARGS, NULL}, + { (char *)"ofPath_ellipse", _wrap_ofPath_ellipse, METH_VARARGS, NULL}, + { (char *)"ofPath_rectangle", _wrap_ofPath_rectangle, METH_VARARGS, NULL}, + { (char *)"ofPath_rectRounded", _wrap_ofPath_rectRounded, METH_VARARGS, NULL}, + { (char *)"ofPath_setPolyWindingMode", _wrap_ofPath_setPolyWindingMode, METH_VARARGS, NULL}, + { (char *)"ofPath_getWindingMode", _wrap_ofPath_getWindingMode, METH_VARARGS, NULL}, + { (char *)"ofPath_setFilled", _wrap_ofPath_setFilled, METH_VARARGS, NULL}, + { (char *)"ofPath_setStrokeWidth", _wrap_ofPath_setStrokeWidth, METH_VARARGS, NULL}, + { (char *)"ofPath_setColor", _wrap_ofPath_setColor, METH_VARARGS, NULL}, + { (char *)"ofPath_setHexColor", _wrap_ofPath_setHexColor, METH_VARARGS, NULL}, + { (char *)"ofPath_setFillColor", _wrap_ofPath_setFillColor, METH_VARARGS, NULL}, + { (char *)"ofPath_setFillHexColor", _wrap_ofPath_setFillHexColor, METH_VARARGS, NULL}, + { (char *)"ofPath_setStrokeColor", _wrap_ofPath_setStrokeColor, METH_VARARGS, NULL}, + { (char *)"ofPath_setStrokeHexColor", _wrap_ofPath_setStrokeHexColor, METH_VARARGS, NULL}, + { (char *)"ofPath_isFilled", _wrap_ofPath_isFilled, METH_VARARGS, NULL}, + { (char *)"ofPath_getFillColor", _wrap_ofPath_getFillColor, METH_VARARGS, NULL}, + { (char *)"ofPath_getStrokeColor", _wrap_ofPath_getStrokeColor, METH_VARARGS, NULL}, + { (char *)"ofPath_getStrokeWidth", _wrap_ofPath_getStrokeWidth, METH_VARARGS, NULL}, + { (char *)"ofPath_hasOutline", _wrap_ofPath_hasOutline, METH_VARARGS, NULL}, + { (char *)"ofPath_setCurveResolution", _wrap_ofPath_setCurveResolution, METH_VARARGS, NULL}, + { (char *)"ofPath_setCircleResolution", _wrap_ofPath_setCircleResolution, METH_VARARGS, NULL}, + { (char *)"ofPath_getCircleResolution", _wrap_ofPath_getCircleResolution, METH_VARARGS, NULL}, + { (char *)"ofPath_setUseShapeColor", _wrap_ofPath_setUseShapeColor, METH_VARARGS, NULL}, + { (char *)"ofPath_getUseShapeColor", _wrap_ofPath_getUseShapeColor, METH_VARARGS, NULL}, + { (char *)"ofPath_draw", _wrap_ofPath_draw, METH_VARARGS, NULL}, + { (char *)"ofPath_getOutline", _wrap_ofPath_getOutline, METH_VARARGS, NULL}, + { (char *)"ofPath_tessellate", _wrap_ofPath_tessellate, METH_VARARGS, NULL}, + { (char *)"ofPath_getTessellation", _wrap_ofPath_getTessellation, METH_VARARGS, NULL}, + { (char *)"ofPath_simplify", _wrap_ofPath_simplify, METH_VARARGS, NULL}, + { (char *)"ofPath_translate", _wrap_ofPath_translate, METH_VARARGS, NULL}, + { (char *)"ofPath_rotate", _wrap_ofPath_rotate, METH_VARARGS, NULL}, + { (char *)"ofPath_scale", _wrap_ofPath_scale, METH_VARARGS, NULL}, + { (char *)"ofPath_append", _wrap_ofPath_append, METH_VARARGS, NULL}, + { (char *)"ofPath_setMode", _wrap_ofPath_setMode, METH_VARARGS, NULL}, + { (char *)"ofPath_getMode", _wrap_ofPath_getMode, METH_VARARGS, NULL}, + { (char *)"ofPath_getCommands", _wrap_ofPath_getCommands, METH_VARARGS, NULL}, + { (char *)"delete_ofPath", _wrap_delete_ofPath, METH_VARARGS, NULL}, + { (char *)"ofPath_swigregister", ofPath_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofPolyline", _wrap_new_ofPolyline, METH_VARARGS, NULL}, + { (char *)"ofPolyline_fromRectangle", _wrap_ofPolyline_fromRectangle, METH_VARARGS, NULL}, + { (char *)"ofPolyline_clear", _wrap_ofPolyline_clear, METH_VARARGS, NULL}, + { (char *)"ofPolyline_addVertex", _wrap_ofPolyline_addVertex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_addVertices", _wrap_ofPolyline_addVertices, METH_VARARGS, NULL}, + { (char *)"ofPolyline_insertVertex", _wrap_ofPolyline_insertVertex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_resize", _wrap_ofPolyline_resize, METH_VARARGS, NULL}, + { (char *)"ofPolyline_size", _wrap_ofPolyline_size, METH_VARARGS, NULL}, + { (char *)"ofPolyline___getitem__", _wrap_ofPolyline___getitem__, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getVertices", _wrap_ofPolyline_getVertices, METH_VARARGS, NULL}, + { (char *)"ofPolyline_begin", _wrap_ofPolyline_begin, METH_VARARGS, NULL}, + { (char *)"ofPolyline_rbegin", _wrap_ofPolyline_rbegin, METH_VARARGS, NULL}, + { (char *)"ofPolyline_end", _wrap_ofPolyline_end, METH_VARARGS, NULL}, + { (char *)"ofPolyline_rend", _wrap_ofPolyline_rend, METH_VARARGS, NULL}, + { (char *)"ofPolyline_lineTo", _wrap_ofPolyline_lineTo, METH_VARARGS, NULL}, + { (char *)"ofPolyline_arc", _wrap_ofPolyline_arc, METH_VARARGS, NULL}, + { (char *)"ofPolyline_arcNegative", _wrap_ofPolyline_arcNegative, METH_VARARGS, NULL}, + { (char *)"ofPolyline_curveTo", _wrap_ofPolyline_curveTo, METH_VARARGS, NULL}, + { (char *)"ofPolyline_bezierTo", _wrap_ofPolyline_bezierTo, METH_VARARGS, NULL}, + { (char *)"ofPolyline_quadBezierTo", _wrap_ofPolyline_quadBezierTo, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getSmoothed", _wrap_ofPolyline_getSmoothed, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getResampledBySpacing", _wrap_ofPolyline_getResampledBySpacing, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getResampledByCount", _wrap_ofPolyline_getResampledByCount, METH_VARARGS, NULL}, + { (char *)"ofPolyline_simplify", _wrap_ofPolyline_simplify, METH_VARARGS, NULL}, + { (char *)"ofPolyline_close", _wrap_ofPolyline_close, METH_VARARGS, NULL}, + { (char *)"ofPolyline_setClosed", _wrap_ofPolyline_setClosed, METH_VARARGS, NULL}, + { (char *)"ofPolyline_isClosed", _wrap_ofPolyline_isClosed, METH_VARARGS, NULL}, + { (char *)"ofPolyline_hasChanged", _wrap_ofPolyline_hasChanged, METH_VARARGS, NULL}, + { (char *)"ofPolyline_flagHasChanged", _wrap_ofPolyline_flagHasChanged, METH_VARARGS, NULL}, + { (char *)"ofPolyline_inside", _wrap_ofPolyline_inside, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getBoundingBox", _wrap_ofPolyline_getBoundingBox, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getPerimeter", _wrap_ofPolyline_getPerimeter, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getArea", _wrap_ofPolyline_getArea, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getCentroid2D", _wrap_ofPolyline_getCentroid2D, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getClosestPoint", _wrap_ofPolyline_getClosestPoint, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getIndexAtLength", _wrap_ofPolyline_getIndexAtLength, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getIndexAtPercent", _wrap_ofPolyline_getIndexAtPercent, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getLengthAtIndex", _wrap_ofPolyline_getLengthAtIndex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getLengthAtIndexInterpolated", _wrap_ofPolyline_getLengthAtIndexInterpolated, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getPointAtLength", _wrap_ofPolyline_getPointAtLength, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getPointAtPercent", _wrap_ofPolyline_getPointAtPercent, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getPointAtIndexInterpolated", _wrap_ofPolyline_getPointAtIndexInterpolated, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getAngleAtIndex", _wrap_ofPolyline_getAngleAtIndex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getAngleAtIndexInterpolated", _wrap_ofPolyline_getAngleAtIndexInterpolated, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getRotationAtIndex", _wrap_ofPolyline_getRotationAtIndex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getRotationAtIndexInterpolated", _wrap_ofPolyline_getRotationAtIndexInterpolated, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getTangentAtIndex", _wrap_ofPolyline_getTangentAtIndex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getTangentAtIndexInterpolated", _wrap_ofPolyline_getTangentAtIndexInterpolated, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getNormalAtIndex", _wrap_ofPolyline_getNormalAtIndex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getNormalAtIndexInterpolated", _wrap_ofPolyline_getNormalAtIndexInterpolated, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getWrappedIndex", _wrap_ofPolyline_getWrappedIndex, METH_VARARGS, NULL}, + { (char *)"ofPolyline_setRightVector", _wrap_ofPolyline_setRightVector, METH_VARARGS, NULL}, + { (char *)"ofPolyline_getRightVector", _wrap_ofPolyline_getRightVector, METH_VARARGS, NULL}, + { (char *)"ofPolyline_draw", _wrap_ofPolyline_draw, METH_VARARGS, NULL}, + { (char *)"delete_ofPolyline", _wrap_delete_ofPolyline, METH_VARARGS, NULL}, + { (char *)"ofPolyline_swigregister", ofPolyline_swigregister, METH_VARARGS, NULL}, + { (char *)"CIRC_RESOLUTION_swigconstant", CIRC_RESOLUTION_swigconstant, METH_VARARGS, NULL}, + { (char *)"ofSetColor", _wrap_ofSetColor, METH_VARARGS, NULL}, + { (char *)"ofSetHexColor", _wrap_ofSetHexColor, METH_VARARGS, NULL}, + { (char *)"ofNoFill", _wrap_ofNoFill, METH_VARARGS, NULL}, + { (char *)"ofFill", _wrap_ofFill, METH_VARARGS, NULL}, + { (char *)"ofGetFill", _wrap_ofGetFill, METH_VARARGS, NULL}, + { (char *)"ofGetBackgroundColor", _wrap_ofGetBackgroundColor, METH_VARARGS, NULL}, + { (char *)"ofGetBackground", _wrap_ofGetBackground, METH_VARARGS, NULL}, + { (char *)"ofBackground", _wrap_ofBackground, METH_VARARGS, NULL}, + { (char *)"ofBackgroundHex", _wrap_ofBackgroundHex, METH_VARARGS, NULL}, + { (char *)"ofBackgroundGradient", _wrap_ofBackgroundGradient, METH_VARARGS, NULL}, + { (char *)"ofSetBackgroundColor", _wrap_ofSetBackgroundColor, METH_VARARGS, NULL}, + { (char *)"ofSetBackgroundColorHex", _wrap_ofSetBackgroundColorHex, METH_VARARGS, NULL}, + { (char *)"ofSetBackgroundAuto", _wrap_ofSetBackgroundAuto, METH_VARARGS, NULL}, + { (char *)"ofGetBackgroundAuto", _wrap_ofGetBackgroundAuto, METH_VARARGS, NULL}, + { (char *)"ofClear", _wrap_ofClear, METH_VARARGS, NULL}, + { (char *)"ofClearAlpha", _wrap_ofClearAlpha, METH_VARARGS, NULL}, + { (char *)"ofDrawTriangle", _wrap_ofDrawTriangle, METH_VARARGS, NULL}, + { (char *)"ofDrawCircle", _wrap_ofDrawCircle, METH_VARARGS, NULL}, + { (char *)"ofDrawEllipse", _wrap_ofDrawEllipse, METH_VARARGS, NULL}, + { (char *)"ofDrawLine", _wrap_ofDrawLine, METH_VARARGS, NULL}, + { (char *)"ofDrawRectangle", _wrap_ofDrawRectangle, METH_VARARGS, NULL}, + { (char *)"ofDrawRectRounded", _wrap_ofDrawRectRounded, METH_VARARGS, NULL}, + { (char *)"ofDrawCurve", _wrap_ofDrawCurve, METH_VARARGS, NULL}, + { (char *)"ofDrawBezier", _wrap_ofDrawBezier, METH_VARARGS, NULL}, + { (char *)"ofTriangle", _wrap_ofTriangle, METH_VARARGS, NULL}, + { (char *)"ofCircle", _wrap_ofCircle, METH_VARARGS, NULL}, + { (char *)"ofEllipse", _wrap_ofEllipse, METH_VARARGS, NULL}, + { (char *)"ofLine", _wrap_ofLine, METH_VARARGS, NULL}, + { (char *)"ofRect", _wrap_ofRect, METH_VARARGS, NULL}, + { (char *)"ofRectRounded", _wrap_ofRectRounded, METH_VARARGS, NULL}, + { (char *)"ofCurve", _wrap_ofCurve, METH_VARARGS, NULL}, + { (char *)"ofBezier", _wrap_ofBezier, METH_VARARGS, NULL}, + { (char *)"ofBeginShape", _wrap_ofBeginShape, METH_VARARGS, NULL}, + { (char *)"ofVertex", _wrap_ofVertex, METH_VARARGS, NULL}, + { (char *)"ofVertices", _wrap_ofVertices, METH_VARARGS, NULL}, + { (char *)"ofCurveVertex", _wrap_ofCurveVertex, METH_VARARGS, NULL}, + { (char *)"ofCurveVertices", _wrap_ofCurveVertices, METH_VARARGS, NULL}, + { (char *)"ofBezierVertex", _wrap_ofBezierVertex, METH_VARARGS, NULL}, + { (char *)"ofEndShape", _wrap_ofEndShape, METH_VARARGS, NULL}, + { (char *)"ofNextContour", _wrap_ofNextContour, METH_VARARGS, NULL}, + { (char *)"ofSetDrawBitmapMode", _wrap_ofSetDrawBitmapMode, METH_VARARGS, NULL}, + { (char *)"ofDrawBitmapStringHighlight", _wrap_ofDrawBitmapStringHighlight, METH_VARARGS, NULL}, + { (char *)"ofSetupGraphicDefaults", _wrap_ofSetupGraphicDefaults, METH_VARARGS, NULL}, + { (char *)"ofSetupScreen", _wrap_ofSetupScreen, METH_VARARGS, NULL}, + { (char *)"ofGetRectMode", _wrap_ofGetRectMode, METH_VARARGS, NULL}, + { (char *)"ofSetCircleResolution", _wrap_ofSetCircleResolution, METH_VARARGS, NULL}, + { (char *)"ofSetCurveResolution", _wrap_ofSetCurveResolution, METH_VARARGS, NULL}, + { (char *)"ofSetLineWidth", _wrap_ofSetLineWidth, METH_VARARGS, NULL}, + { (char *)"ofSetDepthTest", _wrap_ofSetDepthTest, METH_VARARGS, NULL}, + { (char *)"ofEnableDepthTest", _wrap_ofEnableDepthTest, METH_VARARGS, NULL}, + { (char *)"ofDisableDepthTest", _wrap_ofDisableDepthTest, METH_VARARGS, NULL}, + { (char *)"ofEnableBlendMode", _wrap_ofEnableBlendMode, METH_VARARGS, NULL}, + { (char *)"ofDisableBlendMode", _wrap_ofDisableBlendMode, METH_VARARGS, NULL}, + { (char *)"ofEnablePointSprites", _wrap_ofEnablePointSprites, METH_VARARGS, NULL}, + { (char *)"ofDisablePointSprites", _wrap_ofDisablePointSprites, METH_VARARGS, NULL}, + { (char *)"ofEnableAlphaBlending", _wrap_ofEnableAlphaBlending, METH_VARARGS, NULL}, + { (char *)"ofDisableAlphaBlending", _wrap_ofDisableAlphaBlending, METH_VARARGS, NULL}, + { (char *)"ofEnableSmoothing", _wrap_ofEnableSmoothing, METH_VARARGS, NULL}, + { (char *)"ofDisableSmoothing", _wrap_ofDisableSmoothing, METH_VARARGS, NULL}, + { (char *)"ofEnableAntiAliasing", _wrap_ofEnableAntiAliasing, METH_VARARGS, NULL}, + { (char *)"ofDisableAntiAliasing", _wrap_ofDisableAntiAliasing, METH_VARARGS, NULL}, + { (char *)"ofGetStyle", _wrap_ofGetStyle, METH_VARARGS, NULL}, + { (char *)"ofSetStyle", _wrap_ofSetStyle, METH_VARARGS, NULL}, + { (char *)"ofPushStyle", _wrap_ofPushStyle, METH_VARARGS, NULL}, + { (char *)"ofPopStyle", _wrap_ofPopStyle, METH_VARARGS, NULL}, + { (char *)"ofSetPolyMode", _wrap_ofSetPolyMode, METH_VARARGS, NULL}, + { (char *)"ofSetRectMode", _wrap_ofSetRectMode, METH_VARARGS, NULL}, + { (char *)"ofPushMatrix", _wrap_ofPushMatrix, METH_VARARGS, NULL}, + { (char *)"ofPopMatrix", _wrap_ofPopMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentMatrix", _wrap_ofGetCurrentMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentOrientationMatrix", _wrap_ofGetCurrentOrientationMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentNormalMatrix", _wrap_ofGetCurrentNormalMatrix, METH_VARARGS, NULL}, + { (char *)"ofTranslate", _wrap_ofTranslate, METH_VARARGS, NULL}, + { (char *)"ofScale", _wrap_ofScale, METH_VARARGS, NULL}, + { (char *)"ofRotate", _wrap_ofRotate, METH_VARARGS, NULL}, + { (char *)"ofRotateX", _wrap_ofRotateX, METH_VARARGS, NULL}, + { (char *)"ofRotateY", _wrap_ofRotateY, METH_VARARGS, NULL}, + { (char *)"ofRotateZ", _wrap_ofRotateZ, METH_VARARGS, NULL}, + { (char *)"ofLoadIdentityMatrix", _wrap_ofLoadIdentityMatrix, METH_VARARGS, NULL}, + { (char *)"ofLoadMatrix", _wrap_ofLoadMatrix, METH_VARARGS, NULL}, + { (char *)"ofMultMatrix", _wrap_ofMultMatrix, METH_VARARGS, NULL}, + { (char *)"ofSetMatrixMode", _wrap_ofSetMatrixMode, METH_VARARGS, NULL}, + { (char *)"ofLoadViewMatrix", _wrap_ofLoadViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMultViewMatrix", _wrap_ofMultViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentViewMatrix", _wrap_ofGetCurrentViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofPushView", _wrap_ofPushView, METH_VARARGS, NULL}, + { (char *)"ofPopView", _wrap_ofPopView, METH_VARARGS, NULL}, + { (char *)"ofViewport", _wrap_ofViewport, METH_VARARGS, NULL}, + { (char *)"ofGetCurrentViewport", _wrap_ofGetCurrentViewport, METH_VARARGS, NULL}, + { (char *)"ofGetNativeViewport", _wrap_ofGetNativeViewport, METH_VARARGS, NULL}, + { (char *)"ofGetViewportWidth", _wrap_ofGetViewportWidth, METH_VARARGS, NULL}, + { (char *)"ofGetViewportHeight", _wrap_ofGetViewportHeight, METH_VARARGS, NULL}, + { (char *)"ofSetupScreenPerspective", _wrap_ofSetupScreenPerspective, METH_VARARGS, NULL}, + { (char *)"ofSetupScreenOrtho", _wrap_ofSetupScreenOrtho, METH_VARARGS, NULL}, + { (char *)"ofOrientationToDegrees", _wrap_ofOrientationToDegrees, METH_VARARGS, NULL}, + { (char *)"ofSetCoordHandedness", _wrap_ofSetCoordHandedness, METH_VARARGS, NULL}, + { (char *)"ofGetCoordHandedness", _wrap_ofGetCoordHandedness, METH_VARARGS, NULL}, + { (char *)"ofBeginSaveScreenAsPDF", _wrap_ofBeginSaveScreenAsPDF, METH_VARARGS, NULL}, + { (char *)"ofEndSaveScreenAsPDF", _wrap_ofEndSaveScreenAsPDF, METH_VARARGS, NULL}, + { (char *)"ofBeginSaveScreenAsSVG", _wrap_ofBeginSaveScreenAsSVG, METH_VARARGS, NULL}, + { (char *)"ofEndSaveScreenAsSVG", _wrap_ofEndSaveScreenAsSVG, METH_VARARGS, NULL}, + { (char *)"ofSetPlaneResolution", _wrap_ofSetPlaneResolution, METH_VARARGS, NULL}, + { (char *)"ofGetPlaneResolution", _wrap_ofGetPlaneResolution, METH_VARARGS, NULL}, + { (char *)"ofDrawPlane", _wrap_ofDrawPlane, METH_VARARGS, NULL}, + { (char *)"ofSetSphereResolution", _wrap_ofSetSphereResolution, METH_VARARGS, NULL}, + { (char *)"ofGetSphereResolution", _wrap_ofGetSphereResolution, METH_VARARGS, NULL}, + { (char *)"ofDrawSphere", _wrap_ofDrawSphere, METH_VARARGS, NULL}, + { (char *)"ofSetIcoSphereResolution", _wrap_ofSetIcoSphereResolution, METH_VARARGS, NULL}, + { (char *)"ofGetIcoSphereResolution", _wrap_ofGetIcoSphereResolution, METH_VARARGS, NULL}, + { (char *)"ofDrawIcoSphere", _wrap_ofDrawIcoSphere, METH_VARARGS, NULL}, + { (char *)"ofSetCylinderResolution", _wrap_ofSetCylinderResolution, METH_VARARGS, NULL}, + { (char *)"ofGetCylinderResolution", _wrap_ofGetCylinderResolution, METH_VARARGS, NULL}, + { (char *)"ofDrawCylinder", _wrap_ofDrawCylinder, METH_VARARGS, NULL}, + { (char *)"ofSetConeResolution", _wrap_ofSetConeResolution, METH_VARARGS, NULL}, + { (char *)"ofGetConeResolution", _wrap_ofGetConeResolution, METH_VARARGS, NULL}, + { (char *)"ofDrawCone", _wrap_ofDrawCone, METH_VARARGS, NULL}, + { (char *)"ofSetBoxResolution", _wrap_ofSetBoxResolution, METH_VARARGS, NULL}, + { (char *)"ofGetBoxResolution", _wrap_ofGetBoxResolution, METH_VARARGS, NULL}, + { (char *)"ofDrawBox", _wrap_ofDrawBox, METH_VARARGS, NULL}, + { (char *)"new_of3dGraphics", _wrap_new_of3dGraphics, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setPlaneResolution", _wrap_of3dGraphics_setPlaneResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getPlaneResolution", _wrap_of3dGraphics_getPlaneResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawPlane", _wrap_of3dGraphics_drawPlane, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setSphereResolution", _wrap_of3dGraphics_setSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getSphereResolution", _wrap_of3dGraphics_getSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawSphere", _wrap_of3dGraphics_drawSphere, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setIcoSphereResolution", _wrap_of3dGraphics_setIcoSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getIcoSphereResolution", _wrap_of3dGraphics_getIcoSphereResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawIcoSphere", _wrap_of3dGraphics_drawIcoSphere, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setCylinderResolution", _wrap_of3dGraphics_setCylinderResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getCylinderResolution", _wrap_of3dGraphics_getCylinderResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawCylinder", _wrap_of3dGraphics_drawCylinder, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setConeResolution", _wrap_of3dGraphics_setConeResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getConeResolution", _wrap_of3dGraphics_getConeResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawCone", _wrap_of3dGraphics_drawCone, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_setBoxResolution", _wrap_of3dGraphics_setBoxResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_getBoxResolution", _wrap_of3dGraphics_getBoxResolution, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawBox", _wrap_of3dGraphics_drawBox, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawAxis", _wrap_of3dGraphics_drawAxis, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawGrid", _wrap_of3dGraphics_drawGrid, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawGridPlane", _wrap_of3dGraphics_drawGridPlane, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawArrow", _wrap_of3dGraphics_drawArrow, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_drawRotationAxes", _wrap_of3dGraphics_drawRotationAxes, METH_VARARGS, NULL}, + { (char *)"delete_of3dGraphics", _wrap_delete_of3dGraphics, METH_VARARGS, NULL}, + { (char *)"of3dGraphics_swigregister", of3dGraphics_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofTrueTypeFont", _wrap_new_ofTrueTypeFont, METH_VARARGS, NULL}, + { (char *)"delete_ofTrueTypeFont", _wrap_delete_ofTrueTypeFont, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_load", _wrap_ofTrueTypeFont_load, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_isLoaded", _wrap_ofTrueTypeFont_isLoaded, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_setGlobalDpi", _wrap_ofTrueTypeFont_setGlobalDpi, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_isAntiAliased", _wrap_ofTrueTypeFont_isAntiAliased, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_hasFullCharacterSet", _wrap_ofTrueTypeFont_hasFullCharacterSet, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getNumCharacters", _wrap_ofTrueTypeFont_getNumCharacters, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getSize", _wrap_ofTrueTypeFont_getSize, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getLineHeight", _wrap_ofTrueTypeFont_getLineHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_setLineHeight", _wrap_ofTrueTypeFont_setLineHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getAscenderHeight", _wrap_ofTrueTypeFont_getAscenderHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getDescenderHeight", _wrap_ofTrueTypeFont_getDescenderHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getGlyphBBox", _wrap_ofTrueTypeFont_getGlyphBBox, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getLetterSpacing", _wrap_ofTrueTypeFont_getLetterSpacing, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_setLetterSpacing", _wrap_ofTrueTypeFont_setLetterSpacing, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getSpaceSize", _wrap_ofTrueTypeFont_getSpaceSize, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_setSpaceSize", _wrap_ofTrueTypeFont_setSpaceSize, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_stringWidth", _wrap_ofTrueTypeFont_stringWidth, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_stringHeight", _wrap_ofTrueTypeFont_stringHeight, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getStringBoundingBox", _wrap_ofTrueTypeFont_getStringBoundingBox, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_drawString", _wrap_ofTrueTypeFont_drawString, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_drawStringAsShapes", _wrap_ofTrueTypeFont_drawStringAsShapes, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getCharacterAsPoints", _wrap_ofTrueTypeFont_getCharacterAsPoints, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getStringAsPoints", _wrap_ofTrueTypeFont_getStringAsPoints, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getStringMesh", _wrap_ofTrueTypeFont_getStringMesh, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_getFontTexture", _wrap_ofTrueTypeFont_getFontTexture, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_lineHeight_set", _wrap_ofTrueTypeFont_lineHeight_set, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_lineHeight_get", _wrap_ofTrueTypeFont_lineHeight_get, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_letterSpacing_set", _wrap_ofTrueTypeFont_letterSpacing_set, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_letterSpacing_get", _wrap_ofTrueTypeFont_letterSpacing_get, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_spaceSize_set", _wrap_ofTrueTypeFont_spaceSize_set, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_spaceSize_get", _wrap_ofTrueTypeFont_spaceSize_get, METH_VARARGS, NULL}, + { (char *)"ofTrueTypeFont_swigregister", ofTrueTypeFont_swigregister, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_a_set", _wrap_ofMatrix3x3_a_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_a_get", _wrap_ofMatrix3x3_a_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_b_set", _wrap_ofMatrix3x3_b_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_b_get", _wrap_ofMatrix3x3_b_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_c_set", _wrap_ofMatrix3x3_c_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_c_get", _wrap_ofMatrix3x3_c_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_d_set", _wrap_ofMatrix3x3_d_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_d_get", _wrap_ofMatrix3x3_d_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_e_set", _wrap_ofMatrix3x3_e_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_e_get", _wrap_ofMatrix3x3_e_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_f_set", _wrap_ofMatrix3x3_f_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_f_get", _wrap_ofMatrix3x3_f_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_g_set", _wrap_ofMatrix3x3_g_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_g_get", _wrap_ofMatrix3x3_g_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_h_set", _wrap_ofMatrix3x3_h_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_h_get", _wrap_ofMatrix3x3_h_get, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_i_set", _wrap_ofMatrix3x3_i_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_i_get", _wrap_ofMatrix3x3_i_get, METH_VARARGS, NULL}, + { (char *)"new_ofMatrix3x3", _wrap_new_ofMatrix3x3, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_set", _wrap_ofMatrix3x3_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___getitem__", _wrap_ofMatrix3x3___getitem__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_transpose", _wrap_ofMatrix3x3_transpose, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_determinant", _wrap_ofMatrix3x3_determinant, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_inverse", _wrap_ofMatrix3x3_inverse, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_invert", _wrap_ofMatrix3x3_invert, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_entrywiseTimes", _wrap_ofMatrix3x3_entrywiseTimes, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___add__", _wrap_ofMatrix3x3___add__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___iadd__", _wrap_ofMatrix3x3___iadd__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___sub__", _wrap_ofMatrix3x3___sub__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___isub__", _wrap_ofMatrix3x3___isub__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___imul__", _wrap_ofMatrix3x3___imul__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___mul__", _wrap_ofMatrix3x3___mul__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___div__", _wrap_ofMatrix3x3___div__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___idiv__", _wrap_ofMatrix3x3___idiv__, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3___str__", _wrap_ofMatrix3x3___str__, METH_VARARGS, NULL}, + { (char *)"delete_ofMatrix3x3", _wrap_delete_ofMatrix3x3, METH_VARARGS, NULL}, + { (char *)"ofMatrix3x3_swigregister", ofMatrix3x3_swigregister, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4__mat_set", _wrap_ofMatrix4x4__mat_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4__mat_get", _wrap_ofMatrix4x4__mat_get, METH_VARARGS, NULL}, + { (char *)"new_ofMatrix4x4", _wrap_new_ofMatrix4x4, METH_VARARGS, NULL}, + { (char *)"delete_ofMatrix4x4", _wrap_delete_ofMatrix4x4, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeIdentityMatrix", _wrap_ofMatrix4x4_makeIdentityMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeScaleMatrix", _wrap_ofMatrix4x4_makeScaleMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeTranslationMatrix", _wrap_ofMatrix4x4_makeTranslationMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeRotationMatrix", _wrap_ofMatrix4x4_makeRotationMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeInvertOf", _wrap_ofMatrix4x4_makeInvertOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeOrthoNormalOf", _wrap_ofMatrix4x4_makeOrthoNormalOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeFromMultiplicationOf", _wrap_ofMatrix4x4_makeFromMultiplicationOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeOrthoMatrix", _wrap_ofMatrix4x4_makeOrthoMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeOrtho2DMatrix", _wrap_ofMatrix4x4_makeOrtho2DMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeFrustumMatrix", _wrap_ofMatrix4x4_makeFrustumMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makePerspectiveMatrix", _wrap_ofMatrix4x4_makePerspectiveMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeLookAtMatrix", _wrap_ofMatrix4x4_makeLookAtMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_makeLookAtViewMatrix", _wrap_ofMatrix4x4_makeLookAtViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newIdentityMatrix", _wrap_ofMatrix4x4_newIdentityMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newScaleMatrix", _wrap_ofMatrix4x4_newScaleMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newTranslationMatrix", _wrap_ofMatrix4x4_newTranslationMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newRotationMatrix", _wrap_ofMatrix4x4_newRotationMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newOrthoMatrix", _wrap_ofMatrix4x4_newOrthoMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newOrtho2DMatrix", _wrap_ofMatrix4x4_newOrtho2DMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newFrustumMatrix", _wrap_ofMatrix4x4_newFrustumMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newPerspectiveMatrix", _wrap_ofMatrix4x4_newPerspectiveMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_newLookAtMatrix", _wrap_ofMatrix4x4_newLookAtMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4___call__", _wrap_ofMatrix4x4___call__, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getRowAsVec3f", _wrap_ofMatrix4x4_getRowAsVec3f, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getRowAsVec4f", _wrap_ofMatrix4x4_getRowAsVec4f, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getPtr", _wrap_ofMatrix4x4_getPtr, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_isValid", _wrap_ofMatrix4x4_isValid, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_isNaN", _wrap_ofMatrix4x4_isNaN, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_isIdentity", _wrap_ofMatrix4x4_isIdentity, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_set", _wrap_ofMatrix4x4_set, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getInverse", _wrap_ofMatrix4x4_getInverse, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getOrtho", _wrap_ofMatrix4x4_getOrtho, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getFrustum", _wrap_ofMatrix4x4_getFrustum, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getPerspective", _wrap_ofMatrix4x4_getPerspective, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getLookAt", _wrap_ofMatrix4x4_getLookAt, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_decompose", _wrap_ofMatrix4x4_decompose, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getInverseOf", _wrap_ofMatrix4x4_getInverseOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getTransposedOf", _wrap_ofMatrix4x4_getTransposedOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getOrthoNormalOf", _wrap_ofMatrix4x4_getOrthoNormalOf, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMult", _wrap_ofMatrix4x4_postMult, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMult", _wrap_ofMatrix4x4_preMult, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4___imul__", _wrap_ofMatrix4x4___imul__, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4___mul__", _wrap_ofMatrix4x4___mul__, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMultTranslate", _wrap_ofMatrix4x4_postMultTranslate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMultRotate", _wrap_ofMatrix4x4_postMultRotate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_postMultScale", _wrap_ofMatrix4x4_postMultScale, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMultScale", _wrap_ofMatrix4x4_preMultScale, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMultTranslate", _wrap_ofMatrix4x4_preMultTranslate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_preMultRotate", _wrap_ofMatrix4x4_preMultRotate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_setRotate", _wrap_ofMatrix4x4_setRotate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_setTranslation", _wrap_ofMatrix4x4_setTranslation, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_rotateRad", _wrap_ofMatrix4x4_rotateRad, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_rotate", _wrap_ofMatrix4x4_rotate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_translate", _wrap_ofMatrix4x4_translate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_scale", _wrap_ofMatrix4x4_scale, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_glRotateRad", _wrap_ofMatrix4x4_glRotateRad, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_glRotate", _wrap_ofMatrix4x4_glRotate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_glTranslate", _wrap_ofMatrix4x4_glTranslate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_glScale", _wrap_ofMatrix4x4_glScale, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getRotate", _wrap_ofMatrix4x4_getRotate, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getTranslation", _wrap_ofMatrix4x4_getTranslation, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_getScale", _wrap_ofMatrix4x4_getScale, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_transform3x3", _wrap_ofMatrix4x4_transform3x3, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4___str__", _wrap_ofMatrix4x4___str__, METH_VARARGS, NULL}, + { (char *)"ofMatrix4x4_swigregister", ofMatrix4x4_swigregister, METH_VARARGS, NULL}, + { (char *)"ofQuaternion__v_set", _wrap_ofQuaternion__v_set, METH_VARARGS, NULL}, + { (char *)"ofQuaternion__v_get", _wrap_ofQuaternion__v_get, METH_VARARGS, NULL}, + { (char *)"new_ofQuaternion", _wrap_new_ofQuaternion, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_set", _wrap_ofQuaternion_set, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___getitem__", _wrap_ofQuaternion___getitem__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_get", _wrap_ofQuaternion_get, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_x", _wrap_ofQuaternion_x, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_y", _wrap_ofQuaternion_y, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_z", _wrap_ofQuaternion_z, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_w", _wrap_ofQuaternion_w, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_asVec4", _wrap_ofQuaternion_asVec4, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_asVec3", _wrap_ofQuaternion_asVec3, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_zeroRotation", _wrap_ofQuaternion_zeroRotation, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_length", _wrap_ofQuaternion_length, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_length2", _wrap_ofQuaternion_length2, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_conj", _wrap_ofQuaternion_conj, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_inverse", _wrap_ofQuaternion_inverse, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_makeRotate", _wrap_ofQuaternion_makeRotate, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_makeRotate_original", _wrap_ofQuaternion_makeRotate_original, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_getRotate", _wrap_ofQuaternion_getRotate, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_getEuler", _wrap_ofQuaternion_getEuler, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_slerp", _wrap_ofQuaternion_slerp, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_normalize", _wrap_ofQuaternion_normalize, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___eq__", _wrap_ofQuaternion___eq__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___ne__", _wrap_ofQuaternion___ne__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___mul__", _wrap_ofQuaternion___mul__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___imul__", _wrap_ofQuaternion___imul__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___div__", _wrap_ofQuaternion___div__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___idiv__", _wrap_ofQuaternion___idiv__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___add__", _wrap_ofQuaternion___add__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___iadd__", _wrap_ofQuaternion___iadd__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___isub__", _wrap_ofQuaternion___isub__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___sub__", _wrap_ofQuaternion___sub__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___neg__", _wrap_ofQuaternion___neg__, METH_VARARGS, NULL}, + { (char *)"ofQuaternion___str__", _wrap_ofQuaternion___str__, METH_VARARGS, NULL}, + { (char *)"delete_ofQuaternion", _wrap_delete_ofQuaternion, METH_VARARGS, NULL}, + { (char *)"ofQuaternion_swigregister", ofQuaternion_swigregister, METH_VARARGS, NULL}, + { (char *)"ofVec2f_x_set", _wrap_ofVec2f_x_set, METH_VARARGS, NULL}, + { (char *)"ofVec2f_x_get", _wrap_ofVec2f_x_get, METH_VARARGS, NULL}, + { (char *)"ofVec2f_y_set", _wrap_ofVec2f_y_set, METH_VARARGS, NULL}, + { (char *)"ofVec2f_y_get", _wrap_ofVec2f_y_get, METH_VARARGS, NULL}, + { (char *)"new_ofVec2f", _wrap_new_ofVec2f, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getPtr", _wrap_ofVec2f_getPtr, METH_VARARGS, NULL}, + { (char *)"ofVec2f___getitem__", _wrap_ofVec2f___getitem__, METH_VARARGS, NULL}, + { (char *)"ofVec2f_set", _wrap_ofVec2f_set, METH_VARARGS, NULL}, + { (char *)"ofVec2f___eq__", _wrap_ofVec2f___eq__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___ne__", _wrap_ofVec2f___ne__, METH_VARARGS, NULL}, + { (char *)"ofVec2f_match", _wrap_ofVec2f_match, METH_VARARGS, NULL}, + { (char *)"ofVec2f_isAligned", _wrap_ofVec2f_isAligned, METH_VARARGS, NULL}, + { (char *)"ofVec2f_isAlignedRad", _wrap_ofVec2f_isAlignedRad, METH_VARARGS, NULL}, + { (char *)"ofVec2f_align", _wrap_ofVec2f_align, METH_VARARGS, NULL}, + { (char *)"ofVec2f_alignRad", _wrap_ofVec2f_alignRad, METH_VARARGS, NULL}, + { (char *)"ofVec2f___add__", _wrap_ofVec2f___add__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___iadd__", _wrap_ofVec2f___iadd__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___sub__", _wrap_ofVec2f___sub__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___neg__", _wrap_ofVec2f___neg__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___isub__", _wrap_ofVec2f___isub__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___mul__", _wrap_ofVec2f___mul__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___imul__", _wrap_ofVec2f___imul__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___div__", _wrap_ofVec2f___div__, METH_VARARGS, NULL}, + { (char *)"ofVec2f___idiv__", _wrap_ofVec2f___idiv__, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getScaled", _wrap_ofVec2f_getScaled, METH_VARARGS, NULL}, + { (char *)"ofVec2f_scale", _wrap_ofVec2f_scale, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getRotated", _wrap_ofVec2f_getRotated, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getRotatedRad", _wrap_ofVec2f_getRotatedRad, METH_VARARGS, NULL}, + { (char *)"ofVec2f_rotate", _wrap_ofVec2f_rotate, METH_VARARGS, NULL}, + { (char *)"ofVec2f_rotateRad", _wrap_ofVec2f_rotateRad, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getMapped", _wrap_ofVec2f_getMapped, METH_VARARGS, NULL}, + { (char *)"ofVec2f_map", _wrap_ofVec2f_map, METH_VARARGS, NULL}, + { (char *)"ofVec2f_distance", _wrap_ofVec2f_distance, METH_VARARGS, NULL}, + { (char *)"ofVec2f_squareDistance", _wrap_ofVec2f_squareDistance, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getInterpolated", _wrap_ofVec2f_getInterpolated, METH_VARARGS, NULL}, + { (char *)"ofVec2f_interpolate", _wrap_ofVec2f_interpolate, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getMiddle", _wrap_ofVec2f_getMiddle, METH_VARARGS, NULL}, + { (char *)"ofVec2f_middle", _wrap_ofVec2f_middle, METH_VARARGS, NULL}, + { (char *)"ofVec2f_average", _wrap_ofVec2f_average, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getNormalized", _wrap_ofVec2f_getNormalized, METH_VARARGS, NULL}, + { (char *)"ofVec2f_normalize", _wrap_ofVec2f_normalize, METH_VARARGS, NULL}, + { (char *)"ofVec2f_limit", _wrap_ofVec2f_limit, METH_VARARGS, NULL}, + { (char *)"ofVec2f_length", _wrap_ofVec2f_length, METH_VARARGS, NULL}, + { (char *)"ofVec2f_lengthSquared", _wrap_ofVec2f_lengthSquared, METH_VARARGS, NULL}, + { (char *)"ofVec2f_angle", _wrap_ofVec2f_angle, METH_VARARGS, NULL}, + { (char *)"ofVec2f_angleRad", _wrap_ofVec2f_angleRad, METH_VARARGS, NULL}, + { (char *)"ofVec2f_getPerpendicular", _wrap_ofVec2f_getPerpendicular, METH_VARARGS, NULL}, + { (char *)"ofVec2f_perpendicular", _wrap_ofVec2f_perpendicular, METH_VARARGS, NULL}, + { (char *)"ofVec2f_dot", _wrap_ofVec2f_dot, METH_VARARGS, NULL}, + { (char *)"ofVec2f_rescaled", _wrap_ofVec2f_rescaled, METH_VARARGS, NULL}, + { (char *)"ofVec2f_rescale", _wrap_ofVec2f_rescale, METH_VARARGS, NULL}, + { (char *)"ofVec2f_normalized", _wrap_ofVec2f_normalized, METH_VARARGS, NULL}, + { (char *)"ofVec2f_limited", _wrap_ofVec2f_limited, METH_VARARGS, NULL}, + { (char *)"ofVec2f_perpendiculared", _wrap_ofVec2f_perpendiculared, METH_VARARGS, NULL}, + { (char *)"ofVec2f_interpolated", _wrap_ofVec2f_interpolated, METH_VARARGS, NULL}, + { (char *)"ofVec2f_middled", _wrap_ofVec2f_middled, METH_VARARGS, NULL}, + { (char *)"ofVec2f_mapped", _wrap_ofVec2f_mapped, METH_VARARGS, NULL}, + { (char *)"ofVec2f_distanceSquared", _wrap_ofVec2f_distanceSquared, METH_VARARGS, NULL}, + { (char *)"ofVec2f_rotated", _wrap_ofVec2f_rotated, METH_VARARGS, NULL}, + { (char *)"ofVec2f_zero", _wrap_ofVec2f_zero, METH_VARARGS, NULL}, + { (char *)"ofVec2f_one", _wrap_ofVec2f_one, METH_VARARGS, NULL}, + { (char *)"ofVec2f___str__", _wrap_ofVec2f___str__, METH_VARARGS, NULL}, + { (char *)"delete_ofVec2f", _wrap_delete_ofVec2f, METH_VARARGS, NULL}, + { (char *)"ofVec2f_swigregister", ofVec2f_swigregister, METH_VARARGS, NULL}, + { (char *)"ofVec3f_x_set", _wrap_ofVec3f_x_set, METH_VARARGS, NULL}, + { (char *)"ofVec3f_x_get", _wrap_ofVec3f_x_get, METH_VARARGS, NULL}, + { (char *)"ofVec3f_y_set", _wrap_ofVec3f_y_set, METH_VARARGS, NULL}, + { (char *)"ofVec3f_y_get", _wrap_ofVec3f_y_get, METH_VARARGS, NULL}, + { (char *)"ofVec3f_z_set", _wrap_ofVec3f_z_set, METH_VARARGS, NULL}, + { (char *)"ofVec3f_z_get", _wrap_ofVec3f_z_get, METH_VARARGS, NULL}, + { (char *)"new_ofVec3f", _wrap_new_ofVec3f, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getPtr", _wrap_ofVec3f_getPtr, METH_VARARGS, NULL}, + { (char *)"ofVec3f___getitem__", _wrap_ofVec3f___getitem__, METH_VARARGS, NULL}, + { (char *)"ofVec3f_set", _wrap_ofVec3f_set, METH_VARARGS, NULL}, + { (char *)"ofVec3f___eq__", _wrap_ofVec3f___eq__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___ne__", _wrap_ofVec3f___ne__, METH_VARARGS, NULL}, + { (char *)"ofVec3f_match", _wrap_ofVec3f_match, METH_VARARGS, NULL}, + { (char *)"ofVec3f_isAligned", _wrap_ofVec3f_isAligned, METH_VARARGS, NULL}, + { (char *)"ofVec3f_isAlignedRad", _wrap_ofVec3f_isAlignedRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f_align", _wrap_ofVec3f_align, METH_VARARGS, NULL}, + { (char *)"ofVec3f_alignRad", _wrap_ofVec3f_alignRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f___add__", _wrap_ofVec3f___add__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___iadd__", _wrap_ofVec3f___iadd__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___sub__", _wrap_ofVec3f___sub__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___neg__", _wrap_ofVec3f___neg__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___isub__", _wrap_ofVec3f___isub__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___mul__", _wrap_ofVec3f___mul__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___imul__", _wrap_ofVec3f___imul__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___div__", _wrap_ofVec3f___div__, METH_VARARGS, NULL}, + { (char *)"ofVec3f___idiv__", _wrap_ofVec3f___idiv__, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getScaled", _wrap_ofVec3f_getScaled, METH_VARARGS, NULL}, + { (char *)"ofVec3f_scale", _wrap_ofVec3f_scale, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getRotated", _wrap_ofVec3f_getRotated, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getRotatedRad", _wrap_ofVec3f_getRotatedRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f_rotate", _wrap_ofVec3f_rotate, METH_VARARGS, NULL}, + { (char *)"ofVec3f_rotateRad", _wrap_ofVec3f_rotateRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getMapped", _wrap_ofVec3f_getMapped, METH_VARARGS, NULL}, + { (char *)"ofVec3f_map", _wrap_ofVec3f_map, METH_VARARGS, NULL}, + { (char *)"ofVec3f_distance", _wrap_ofVec3f_distance, METH_VARARGS, NULL}, + { (char *)"ofVec3f_squareDistance", _wrap_ofVec3f_squareDistance, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getInterpolated", _wrap_ofVec3f_getInterpolated, METH_VARARGS, NULL}, + { (char *)"ofVec3f_interpolate", _wrap_ofVec3f_interpolate, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getMiddle", _wrap_ofVec3f_getMiddle, METH_VARARGS, NULL}, + { (char *)"ofVec3f_middle", _wrap_ofVec3f_middle, METH_VARARGS, NULL}, + { (char *)"ofVec3f_average", _wrap_ofVec3f_average, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getNormalized", _wrap_ofVec3f_getNormalized, METH_VARARGS, NULL}, + { (char *)"ofVec3f_normalize", _wrap_ofVec3f_normalize, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getLimited", _wrap_ofVec3f_getLimited, METH_VARARGS, NULL}, + { (char *)"ofVec3f_limit", _wrap_ofVec3f_limit, METH_VARARGS, NULL}, + { (char *)"ofVec3f_length", _wrap_ofVec3f_length, METH_VARARGS, NULL}, + { (char *)"ofVec3f_lengthSquared", _wrap_ofVec3f_lengthSquared, METH_VARARGS, NULL}, + { (char *)"ofVec3f_angle", _wrap_ofVec3f_angle, METH_VARARGS, NULL}, + { (char *)"ofVec3f_angleRad", _wrap_ofVec3f_angleRad, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getPerpendicular", _wrap_ofVec3f_getPerpendicular, METH_VARARGS, NULL}, + { (char *)"ofVec3f_perpendicular", _wrap_ofVec3f_perpendicular, METH_VARARGS, NULL}, + { (char *)"ofVec3f_getCrossed", _wrap_ofVec3f_getCrossed, METH_VARARGS, NULL}, + { (char *)"ofVec3f_cross", _wrap_ofVec3f_cross, METH_VARARGS, NULL}, + { (char *)"ofVec3f_dot", _wrap_ofVec3f_dot, METH_VARARGS, NULL}, + { (char *)"ofVec3f_rescaled", _wrap_ofVec3f_rescaled, METH_VARARGS, NULL}, + { (char *)"ofVec3f_rescale", _wrap_ofVec3f_rescale, METH_VARARGS, NULL}, + { (char *)"ofVec3f_normalized", _wrap_ofVec3f_normalized, METH_VARARGS, NULL}, + { (char *)"ofVec3f_limited", _wrap_ofVec3f_limited, METH_VARARGS, NULL}, + { (char *)"ofVec3f_crossed", _wrap_ofVec3f_crossed, METH_VARARGS, NULL}, + { (char *)"ofVec3f_perpendiculared", _wrap_ofVec3f_perpendiculared, METH_VARARGS, NULL}, + { (char *)"ofVec3f_mapped", _wrap_ofVec3f_mapped, METH_VARARGS, NULL}, + { (char *)"ofVec3f_distanceSquared", _wrap_ofVec3f_distanceSquared, METH_VARARGS, NULL}, + { (char *)"ofVec3f_interpolated", _wrap_ofVec3f_interpolated, METH_VARARGS, NULL}, + { (char *)"ofVec3f_middled", _wrap_ofVec3f_middled, METH_VARARGS, NULL}, + { (char *)"ofVec3f_rotated", _wrap_ofVec3f_rotated, METH_VARARGS, NULL}, + { (char *)"ofVec3f_zero", _wrap_ofVec3f_zero, METH_VARARGS, NULL}, + { (char *)"ofVec3f_one", _wrap_ofVec3f_one, METH_VARARGS, NULL}, + { (char *)"ofVec3f___str__", _wrap_ofVec3f___str__, METH_VARARGS, NULL}, + { (char *)"delete_ofVec3f", _wrap_delete_ofVec3f, METH_VARARGS, NULL}, + { (char *)"ofVec3f_swigregister", ofVec3f_swigregister, METH_VARARGS, NULL}, + { (char *)"ofVec4f_x_set", _wrap_ofVec4f_x_set, METH_VARARGS, NULL}, + { (char *)"ofVec4f_x_get", _wrap_ofVec4f_x_get, METH_VARARGS, NULL}, + { (char *)"ofVec4f_y_set", _wrap_ofVec4f_y_set, METH_VARARGS, NULL}, + { (char *)"ofVec4f_y_get", _wrap_ofVec4f_y_get, METH_VARARGS, NULL}, + { (char *)"ofVec4f_z_set", _wrap_ofVec4f_z_set, METH_VARARGS, NULL}, + { (char *)"ofVec4f_z_get", _wrap_ofVec4f_z_get, METH_VARARGS, NULL}, + { (char *)"ofVec4f_w_set", _wrap_ofVec4f_w_set, METH_VARARGS, NULL}, + { (char *)"ofVec4f_w_get", _wrap_ofVec4f_w_get, METH_VARARGS, NULL}, + { (char *)"new_ofVec4f", _wrap_new_ofVec4f, METH_VARARGS, NULL}, + { (char *)"ofVec4f_getPtr", _wrap_ofVec4f_getPtr, METH_VARARGS, NULL}, + { (char *)"ofVec4f___getitem__", _wrap_ofVec4f___getitem__, METH_VARARGS, NULL}, + { (char *)"ofVec4f_set", _wrap_ofVec4f_set, METH_VARARGS, NULL}, + { (char *)"ofVec4f___eq__", _wrap_ofVec4f___eq__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___ne__", _wrap_ofVec4f___ne__, METH_VARARGS, NULL}, + { (char *)"ofVec4f_match", _wrap_ofVec4f_match, METH_VARARGS, NULL}, + { (char *)"ofVec4f___add__", _wrap_ofVec4f___add__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___iadd__", _wrap_ofVec4f___iadd__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___sub__", _wrap_ofVec4f___sub__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___neg__", _wrap_ofVec4f___neg__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___isub__", _wrap_ofVec4f___isub__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___mul__", _wrap_ofVec4f___mul__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___imul__", _wrap_ofVec4f___imul__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___div__", _wrap_ofVec4f___div__, METH_VARARGS, NULL}, + { (char *)"ofVec4f___idiv__", _wrap_ofVec4f___idiv__, METH_VARARGS, NULL}, + { (char *)"ofVec4f_getScaled", _wrap_ofVec4f_getScaled, METH_VARARGS, NULL}, + { (char *)"ofVec4f_scale", _wrap_ofVec4f_scale, METH_VARARGS, NULL}, + { (char *)"ofVec4f_distance", _wrap_ofVec4f_distance, METH_VARARGS, NULL}, + { (char *)"ofVec4f_squareDistance", _wrap_ofVec4f_squareDistance, METH_VARARGS, NULL}, + { (char *)"ofVec4f_getInterpolated", _wrap_ofVec4f_getInterpolated, METH_VARARGS, NULL}, + { (char *)"ofVec4f_interpolate", _wrap_ofVec4f_interpolate, METH_VARARGS, NULL}, + { (char *)"ofVec4f_getMiddle", _wrap_ofVec4f_getMiddle, METH_VARARGS, NULL}, + { (char *)"ofVec4f_middle", _wrap_ofVec4f_middle, METH_VARARGS, NULL}, + { (char *)"ofVec4f_average", _wrap_ofVec4f_average, METH_VARARGS, NULL}, + { (char *)"ofVec4f_getNormalized", _wrap_ofVec4f_getNormalized, METH_VARARGS, NULL}, + { (char *)"ofVec4f_normalize", _wrap_ofVec4f_normalize, METH_VARARGS, NULL}, + { (char *)"ofVec4f_getLimited", _wrap_ofVec4f_getLimited, METH_VARARGS, NULL}, + { (char *)"ofVec4f_limit", _wrap_ofVec4f_limit, METH_VARARGS, NULL}, + { (char *)"ofVec4f_length", _wrap_ofVec4f_length, METH_VARARGS, NULL}, + { (char *)"ofVec4f_lengthSquared", _wrap_ofVec4f_lengthSquared, METH_VARARGS, NULL}, + { (char *)"ofVec4f_dot", _wrap_ofVec4f_dot, METH_VARARGS, NULL}, + { (char *)"ofVec4f_rescaled", _wrap_ofVec4f_rescaled, METH_VARARGS, NULL}, + { (char *)"ofVec4f_rescale", _wrap_ofVec4f_rescale, METH_VARARGS, NULL}, + { (char *)"ofVec4f_normalized", _wrap_ofVec4f_normalized, METH_VARARGS, NULL}, + { (char *)"ofVec4f_limited", _wrap_ofVec4f_limited, METH_VARARGS, NULL}, + { (char *)"ofVec4f_distanceSquared", _wrap_ofVec4f_distanceSquared, METH_VARARGS, NULL}, + { (char *)"ofVec4f_interpolated", _wrap_ofVec4f_interpolated, METH_VARARGS, NULL}, + { (char *)"ofVec4f_middled", _wrap_ofVec4f_middled, METH_VARARGS, NULL}, + { (char *)"ofVec4f_zero", _wrap_ofVec4f_zero, METH_VARARGS, NULL}, + { (char *)"ofVec4f_one", _wrap_ofVec4f_one, METH_VARARGS, NULL}, + { (char *)"ofVec4f___str__", _wrap_ofVec4f___str__, METH_VARARGS, NULL}, + { (char *)"delete_ofVec4f", _wrap_delete_ofVec4f, METH_VARARGS, NULL}, + { (char *)"ofVec4f_swigregister", ofVec4f_swigregister, METH_VARARGS, NULL}, + { (char *)"ofRandom", _wrap_ofRandom, METH_VARARGS, NULL}, + { (char *)"ofRandomf", _wrap_ofRandomf, METH_VARARGS, NULL}, + { (char *)"ofRandomuf", _wrap_ofRandomuf, METH_VARARGS, NULL}, + { (char *)"ofSeedRandom", _wrap_ofSeedRandom, METH_VARARGS, NULL}, + { (char *)"ofNormalize", _wrap_ofNormalize, METH_VARARGS, NULL}, + { (char *)"ofMap", _wrap_ofMap, METH_VARARGS, NULL}, + { (char *)"ofClamp", _wrap_ofClamp, METH_VARARGS, NULL}, + { (char *)"ofInRange", _wrap_ofInRange, METH_VARARGS, NULL}, + { (char *)"ofLerp", _wrap_ofLerp, METH_VARARGS, NULL}, + { (char *)"ofDist", _wrap_ofDist, METH_VARARGS, NULL}, + { (char *)"ofDistSquared", _wrap_ofDistSquared, METH_VARARGS, NULL}, + { (char *)"ofRadToDeg", _wrap_ofRadToDeg, METH_VARARGS, NULL}, + { (char *)"ofDegToRad", _wrap_ofDegToRad, METH_VARARGS, NULL}, + { (char *)"ofLerpDegrees", _wrap_ofLerpDegrees, METH_VARARGS, NULL}, + { (char *)"ofLerpRadians", _wrap_ofLerpRadians, METH_VARARGS, NULL}, + { (char *)"ofAngleDifferenceDegrees", _wrap_ofAngleDifferenceDegrees, METH_VARARGS, NULL}, + { (char *)"ofAngleDifferenceRadians", _wrap_ofAngleDifferenceRadians, METH_VARARGS, NULL}, + { (char *)"ofWrap", _wrap_ofWrap, METH_VARARGS, NULL}, + { (char *)"ofWrapRadians", _wrap_ofWrapRadians, METH_VARARGS, NULL}, + { (char *)"ofWrapDegrees", _wrap_ofWrapDegrees, METH_VARARGS, NULL}, + { (char *)"ofNoise", _wrap_ofNoise, METH_VARARGS, NULL}, + { (char *)"ofSignedNoise", _wrap_ofSignedNoise, METH_VARARGS, NULL}, + { (char *)"ofInsidePoly", _wrap_ofInsidePoly, METH_VARARGS, NULL}, + { (char *)"ofLineSegmentIntersection", _wrap_ofLineSegmentIntersection, METH_VARARGS, NULL}, + { (char *)"ofBezierPoint", _wrap_ofBezierPoint, METH_VARARGS, NULL}, + { (char *)"ofCurvePoint", _wrap_ofCurvePoint, METH_VARARGS, NULL}, + { (char *)"ofBezierTangent", _wrap_ofBezierTangent, METH_VARARGS, NULL}, + { (char *)"ofCurveTangent", _wrap_ofCurveTangent, METH_VARARGS, NULL}, + { (char *)"ofNextPow2", _wrap_ofNextPow2, METH_VARARGS, NULL}, + { (char *)"ofSign", _wrap_ofSign, METH_VARARGS, NULL}, + { (char *)"delete_ofXml", _wrap_delete_ofXml, METH_VARARGS, NULL}, + { (char *)"new_ofXml", _wrap_new_ofXml, METH_VARARGS, NULL}, + { (char *)"ofXml_load", _wrap_ofXml_load, METH_VARARGS, NULL}, + { (char *)"ofXml_save", _wrap_ofXml_save, METH_VARARGS, NULL}, + { (char *)"ofXml_addChild", _wrap_ofXml_addChild, METH_VARARGS, NULL}, + { (char *)"ofXml_addXml", _wrap_ofXml_addXml, METH_VARARGS, NULL}, + { (char *)"ofXml_getValue", _wrap_ofXml_getValue, METH_VARARGS, NULL}, + { (char *)"ofXml_getIntValue", _wrap_ofXml_getIntValue, METH_VARARGS, NULL}, + { (char *)"ofXml_getInt64Value", _wrap_ofXml_getInt64Value, METH_VARARGS, NULL}, + { (char *)"ofXml_getFloatValue", _wrap_ofXml_getFloatValue, METH_VARARGS, NULL}, + { (char *)"ofXml_getBoolValue", _wrap_ofXml_getBoolValue, METH_VARARGS, NULL}, + { (char *)"ofXml_setValue", _wrap_ofXml_setValue, METH_VARARGS, NULL}, + { (char *)"ofXml_getAttribute", _wrap_ofXml_getAttribute, METH_VARARGS, NULL}, + { (char *)"ofXml_setAttribute", _wrap_ofXml_setAttribute, METH_VARARGS, NULL}, + { (char *)"ofXml_getAttributes", _wrap_ofXml_getAttributes, METH_VARARGS, NULL}, + { (char *)"ofXml_getNumChildren", _wrap_ofXml_getNumChildren, METH_VARARGS, NULL}, + { (char *)"ofXml_removeAttribute", _wrap_ofXml_removeAttribute, METH_VARARGS, NULL}, + { (char *)"ofXml_removeAttributes", _wrap_ofXml_removeAttributes, METH_VARARGS, NULL}, + { (char *)"ofXml_removeContents", _wrap_ofXml_removeContents, METH_VARARGS, NULL}, + { (char *)"ofXml_remove", _wrap_ofXml_remove, METH_VARARGS, NULL}, + { (char *)"ofXml_exists", _wrap_ofXml_exists, METH_VARARGS, NULL}, + { (char *)"ofXml_clear", _wrap_ofXml_clear, METH_VARARGS, NULL}, + { (char *)"ofXml_getName", _wrap_ofXml_getName, METH_VARARGS, NULL}, + { (char *)"ofXml_reset", _wrap_ofXml_reset, METH_VARARGS, NULL}, + { (char *)"ofXml_setToChild", _wrap_ofXml_setToChild, METH_VARARGS, NULL}, + { (char *)"ofXml_setTo", _wrap_ofXml_setTo, METH_VARARGS, NULL}, + { (char *)"ofXml_setToParent", _wrap_ofXml_setToParent, METH_VARARGS, NULL}, + { (char *)"ofXml_setToSibling", _wrap_ofXml_setToSibling, METH_VARARGS, NULL}, + { (char *)"ofXml_setToPrevSibling", _wrap_ofXml_setToPrevSibling, METH_VARARGS, NULL}, + { (char *)"ofXml_loadFromBuffer", _wrap_ofXml_loadFromBuffer, METH_VARARGS, NULL}, + { (char *)"ofXml_toString", _wrap_ofXml_toString, METH_VARARGS, NULL}, + { (char *)"ofXml_serialize", _wrap_ofXml_serialize, METH_VARARGS, NULL}, + { (char *)"ofXml_deserialize", _wrap_ofXml_deserialize, METH_VARARGS, NULL}, + { (char *)"ofXml_tokenize", _wrap_ofXml_tokenize, METH_VARARGS, NULL}, + { (char *)"ofXml_getPocoElement", _wrap_ofXml_getPocoElement, METH_VARARGS, NULL}, + { (char *)"ofXml_getPocoDocument", _wrap_ofXml_getPocoDocument, METH_VARARGS, NULL}, + { (char *)"ofXml_swigregister", ofXml_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofMatrixStack", _wrap_new_ofMatrixStack, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_setRenderSurface", _wrap_ofMatrixStack_setRenderSurface, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_setOrientation", _wrap_ofMatrixStack_setOrientation, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getOrientation", _wrap_ofMatrixStack_getOrientation, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_viewport", _wrap_ofMatrixStack_viewport, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_nativeViewport", _wrap_ofMatrixStack_nativeViewport, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getCurrentViewport", _wrap_ofMatrixStack_getCurrentViewport, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getNativeViewport", _wrap_ofMatrixStack_getNativeViewport, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getFullSurfaceViewport", _wrap_ofMatrixStack_getFullSurfaceViewport, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getProjectionMatrix", _wrap_ofMatrixStack_getProjectionMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getViewMatrix", _wrap_ofMatrixStack_getViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getModelViewMatrix", _wrap_ofMatrixStack_getModelViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getModelViewProjectionMatrix", _wrap_ofMatrixStack_getModelViewProjectionMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getTextureMatrix", _wrap_ofMatrixStack_getTextureMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getCurrentMatrix", _wrap_ofMatrixStack_getCurrentMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getProjectionMatrixNoOrientation", _wrap_ofMatrixStack_getProjectionMatrixNoOrientation, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getOrientationMatrix", _wrap_ofMatrixStack_getOrientationMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getOrientationMatrixInverse", _wrap_ofMatrixStack_getOrientationMatrixInverse, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getCurrentMatrixMode", _wrap_ofMatrixStack_getCurrentMatrixMode, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_getHandedness", _wrap_ofMatrixStack_getHandedness, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_isVFlipped", _wrap_ofMatrixStack_isVFlipped, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_customMatrixNeedsFlip", _wrap_ofMatrixStack_customMatrixNeedsFlip, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_pushView", _wrap_ofMatrixStack_pushView, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_popView", _wrap_ofMatrixStack_popView, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_pushMatrix", _wrap_ofMatrixStack_pushMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_popMatrix", _wrap_ofMatrixStack_popMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_translate", _wrap_ofMatrixStack_translate, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_scale", _wrap_ofMatrixStack_scale, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_rotate", _wrap_ofMatrixStack_rotate, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_matrixMode", _wrap_ofMatrixStack_matrixMode, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_loadIdentityMatrix", _wrap_ofMatrixStack_loadIdentityMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_loadMatrix", _wrap_ofMatrixStack_loadMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_multMatrix", _wrap_ofMatrixStack_multMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_loadViewMatrix", _wrap_ofMatrixStack_loadViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_multViewMatrix", _wrap_ofMatrixStack_multViewMatrix, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_clearStacks", _wrap_ofMatrixStack_clearStacks, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_doesHardwareOrientation", _wrap_ofMatrixStack_doesHardwareOrientation, METH_VARARGS, NULL}, + { (char *)"delete_ofMatrixStack", _wrap_delete_ofMatrixStack, METH_VARARGS, NULL}, + { (char *)"ofMatrixStack_swigregister", ofMatrixStack_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofVideoGrabber", _wrap_new_ofVideoGrabber, METH_VARARGS, NULL}, + { (char *)"delete_ofVideoGrabber", _wrap_delete_ofVideoGrabber, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_listDevices", _wrap_ofVideoGrabber_listDevices, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_isFrameNew", _wrap_ofVideoGrabber_isFrameNew, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_update", _wrap_ofVideoGrabber_update, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_close", _wrap_ofVideoGrabber_close, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setup", _wrap_ofVideoGrabber_setup, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_initGrabber", _wrap_ofVideoGrabber_initGrabber, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setPixelFormat", _wrap_ofVideoGrabber_setPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getPixelFormat", _wrap_ofVideoGrabber_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_videoSettings", _wrap_ofVideoGrabber_videoSettings, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getPixels", _wrap_ofVideoGrabber_getPixels, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getPixelsRef", _wrap_ofVideoGrabber_getPixelsRef, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getTexture", _wrap_ofVideoGrabber_getTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getTextureReference", _wrap_ofVideoGrabber_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getTexturePlanes", _wrap_ofVideoGrabber_getTexturePlanes, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setVerbose", _wrap_ofVideoGrabber_setVerbose, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setDeviceID", _wrap_ofVideoGrabber_setDeviceID, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setDesiredFrameRate", _wrap_ofVideoGrabber_setDesiredFrameRate, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setUseTexture", _wrap_ofVideoGrabber_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_isUsingTexture", _wrap_ofVideoGrabber_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_draw", _wrap_ofVideoGrabber_draw, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_bind", _wrap_ofVideoGrabber_bind, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_unbind", _wrap_ofVideoGrabber_unbind, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setAnchorPercent", _wrap_ofVideoGrabber_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setAnchorPoint", _wrap_ofVideoGrabber_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_resetAnchor", _wrap_ofVideoGrabber_resetAnchor, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getHeight", _wrap_ofVideoGrabber_getHeight, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getWidth", _wrap_ofVideoGrabber_getWidth, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_isInitialized", _wrap_ofVideoGrabber_isInitialized, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_setGrabber", _wrap_ofVideoGrabber_setGrabber, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_getGrabber", _wrap_ofVideoGrabber_getGrabber, METH_VARARGS, NULL}, + { (char *)"ofVideoGrabber_swigregister", ofVideoGrabber_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofVideoPlayer", _wrap_new_ofVideoPlayer, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_load", _wrap_ofVideoPlayer_load, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_loadAsync", _wrap_ofVideoPlayer_loadAsync, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_loadMovie", _wrap_ofVideoPlayer_loadMovie, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getMoviePath", _wrap_ofVideoPlayer_getMoviePath, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setPixelFormat", _wrap_ofVideoPlayer_setPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getPixelFormat", _wrap_ofVideoPlayer_getPixelFormat, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_closeMovie", _wrap_ofVideoPlayer_closeMovie, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_close", _wrap_ofVideoPlayer_close, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_update", _wrap_ofVideoPlayer_update, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_play", _wrap_ofVideoPlayer_play, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_stop", _wrap_ofVideoPlayer_stop, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isFrameNew", _wrap_ofVideoPlayer_isFrameNew, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getPixels", _wrap_ofVideoPlayer_getPixels, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getPixelsRef", _wrap_ofVideoPlayer_getPixelsRef, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getPosition", _wrap_ofVideoPlayer_getPosition, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getSpeed", _wrap_ofVideoPlayer_getSpeed, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getDuration", _wrap_ofVideoPlayer_getDuration, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getIsMovieDone", _wrap_ofVideoPlayer_getIsMovieDone, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setPosition", _wrap_ofVideoPlayer_setPosition, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setVolume", _wrap_ofVideoPlayer_setVolume, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setLoopState", _wrap_ofVideoPlayer_setLoopState, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getLoopState", _wrap_ofVideoPlayer_getLoopState, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setSpeed", _wrap_ofVideoPlayer_setSpeed, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setFrame", _wrap_ofVideoPlayer_setFrame, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setUseTexture", _wrap_ofVideoPlayer_setUseTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isUsingTexture", _wrap_ofVideoPlayer_isUsingTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getTexture", _wrap_ofVideoPlayer_getTexture, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getTextureReference", _wrap_ofVideoPlayer_getTextureReference, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getTexturePlanes", _wrap_ofVideoPlayer_getTexturePlanes, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_draw", _wrap_ofVideoPlayer_draw, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_bind", _wrap_ofVideoPlayer_bind, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_unbind", _wrap_ofVideoPlayer_unbind, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setAnchorPercent", _wrap_ofVideoPlayer_setAnchorPercent, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setAnchorPoint", _wrap_ofVideoPlayer_setAnchorPoint, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_resetAnchor", _wrap_ofVideoPlayer_resetAnchor, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setPaused", _wrap_ofVideoPlayer_setPaused, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getCurrentFrame", _wrap_ofVideoPlayer_getCurrentFrame, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getTotalNumFrames", _wrap_ofVideoPlayer_getTotalNumFrames, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_firstFrame", _wrap_ofVideoPlayer_firstFrame, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_nextFrame", _wrap_ofVideoPlayer_nextFrame, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_previousFrame", _wrap_ofVideoPlayer_previousFrame, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getHeight", _wrap_ofVideoPlayer_getHeight, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getWidth", _wrap_ofVideoPlayer_getWidth, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isPaused", _wrap_ofVideoPlayer_isPaused, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isLoaded", _wrap_ofVideoPlayer_isLoaded, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isPlaying", _wrap_ofVideoPlayer_isPlaying, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_isInitialized", _wrap_ofVideoPlayer_isInitialized, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_setPlayer", _wrap_ofVideoPlayer_setPlayer, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_getPlayer", _wrap_ofVideoPlayer_getPlayer, METH_VARARGS, NULL}, + { (char *)"delete_ofVideoPlayer", _wrap_delete_ofVideoPlayer, METH_VARARGS, NULL}, + { (char *)"ofVideoPlayer_swigregister", ofVideoPlayer_swigregister, METH_VARARGS, NULL}, + { (char *)"ofGetMousePressed", _wrap_ofGetMousePressed, METH_VARARGS, NULL}, + { (char *)"ofGetKeyPressed", _wrap_ofGetKeyPressed, METH_VARARGS, NULL}, + { (char *)"ofGetMouseX", _wrap_ofGetMouseX, METH_VARARGS, NULL}, + { (char *)"ofGetMouseY", _wrap_ofGetMouseY, METH_VARARGS, NULL}, + { (char *)"ofGetPreviousMouseX", _wrap_ofGetPreviousMouseX, METH_VARARGS, NULL}, + { (char *)"ofGetPreviousMouseY", _wrap_ofGetPreviousMouseY, METH_VARARGS, NULL}, + { (char *)"ofDragInfo_files_set", _wrap_ofDragInfo_files_set, METH_VARARGS, NULL}, + { (char *)"ofDragInfo_files_get", _wrap_ofDragInfo_files_get, METH_VARARGS, NULL}, + { (char *)"ofDragInfo_position_set", _wrap_ofDragInfo_position_set, METH_VARARGS, NULL}, + { (char *)"ofDragInfo_position_get", _wrap_ofDragInfo_position_get, METH_VARARGS, NULL}, + { (char *)"new_ofDragInfo", _wrap_new_ofDragInfo, METH_VARARGS, NULL}, + { (char *)"delete_ofDragInfo", _wrap_delete_ofDragInfo, METH_VARARGS, NULL}, + { (char *)"ofDragInfo_swigregister", ofDragInfo_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ofTouchEventArgs", _wrap_new_ofTouchEventArgs, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_type_set", _wrap_ofTouchEventArgs_type_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_type_get", _wrap_ofTouchEventArgs_type_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_id_set", _wrap_ofTouchEventArgs_id_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_id_get", _wrap_ofTouchEventArgs_id_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_time_set", _wrap_ofTouchEventArgs_time_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_time_get", _wrap_ofTouchEventArgs_time_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_numTouches_set", _wrap_ofTouchEventArgs_numTouches_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_numTouches_get", _wrap_ofTouchEventArgs_numTouches_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_width_set", _wrap_ofTouchEventArgs_width_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_width_get", _wrap_ofTouchEventArgs_width_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_height_set", _wrap_ofTouchEventArgs_height_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_height_get", _wrap_ofTouchEventArgs_height_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_angle_set", _wrap_ofTouchEventArgs_angle_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_angle_get", _wrap_ofTouchEventArgs_angle_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_minoraxis_set", _wrap_ofTouchEventArgs_minoraxis_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_minoraxis_get", _wrap_ofTouchEventArgs_minoraxis_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_majoraxis_set", _wrap_ofTouchEventArgs_majoraxis_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_majoraxis_get", _wrap_ofTouchEventArgs_majoraxis_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_pressure_set", _wrap_ofTouchEventArgs_pressure_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_pressure_get", _wrap_ofTouchEventArgs_pressure_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_xspeed_set", _wrap_ofTouchEventArgs_xspeed_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_xspeed_get", _wrap_ofTouchEventArgs_xspeed_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_yspeed_set", _wrap_ofTouchEventArgs_yspeed_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_yspeed_get", _wrap_ofTouchEventArgs_yspeed_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_xaccel_set", _wrap_ofTouchEventArgs_xaccel_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_xaccel_get", _wrap_ofTouchEventArgs_xaccel_get, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_yaccel_set", _wrap_ofTouchEventArgs_yaccel_set, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_yaccel_get", _wrap_ofTouchEventArgs_yaccel_get, METH_VARARGS, NULL}, + { (char *)"delete_ofTouchEventArgs", _wrap_delete_ofTouchEventArgs, METH_VARARGS, NULL}, + { (char *)"ofTouchEventArgs_swigregister", ofTouchEventArgs_swigregister, METH_VARARGS, NULL}, + { (char *)"ofSendMessage", _wrap_ofSendMessage, METH_VARARGS, NULL}, + { NULL, NULL, 0, NULL } +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static void *_p_ofImage_T_unsigned_char_tTo_p_ofBaseImage_T_unsigned_char_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseImage_< unsigned char > *) ((ofImage_< unsigned char > *) x)); +} +static void *_p_ofImage_T_float_tTo_p_ofBaseImage_T_float_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseImage_< float > *) ((ofImage_< float > *) x)); +} +static void *_p_ofMaterialTo_p_ofBaseMaterial(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseMaterial *) ((ofMaterial *) x)); +} +static void *_p_ofSoundPlayerTo_p_ofBaseSoundPlayer(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseSoundPlayer *) ((ofSoundPlayer *) x)); +} +static void *_p_ofEasyCamTo_p_ofCamera(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofCamera *) ((ofEasyCam *) x)); +} +static void *_p_ofBaseVideoDrawsTo_p_ofBaseHasTexturePlanes(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexturePlanes *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseHasTexturePlanes(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexturePlanes *) (ofBaseVideoDraws *) ((ofVideoGrabber *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseHasTexturePlanes(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexturePlanes *) (ofBaseVideoDraws *) ((ofVideoPlayer *) x)); +} +static void *_p_ofMouseEventArgsTo_p_ofVec2f(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofVec2f *) ((ofMouseEventArgs *) x)); +} +static void *_p_ofTouchEventArgsTo_p_ofVec2f(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofVec2f *) ((ofTouchEventArgs *) x)); +} +static void *_p_ofPlanePrimitiveTo_p_of3dPrimitive(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((of3dPrimitive *) ((ofPlanePrimitive *) x)); +} +static void *_p_ofSpherePrimitiveTo_p_of3dPrimitive(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((of3dPrimitive *) ((ofSpherePrimitive *) x)); +} +static void *_p_ofIcoSpherePrimitiveTo_p_of3dPrimitive(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((of3dPrimitive *) ((ofIcoSpherePrimitive *) x)); +} +static void *_p_ofCylinderPrimitiveTo_p_of3dPrimitive(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((of3dPrimitive *) ((ofCylinderPrimitive *) x)); +} +static void *_p_ofConePrimitiveTo_p_of3dPrimitive(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((of3dPrimitive *) ((ofConePrimitive *) x)); +} +static void *_p_ofBoxPrimitiveTo_p_of3dPrimitive(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((of3dPrimitive *) ((ofBoxPrimitive *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseVideoPlayer(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideoPlayer *) ((ofVideoPlayer *) x)); +} +static void *_p_of3dPrimitiveTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) ((of3dPrimitive *) x)); +} +static void *_p_ofPlanePrimitiveTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) (of3dPrimitive *) ((ofPlanePrimitive *) x)); +} +static void *_p_ofSpherePrimitiveTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) (of3dPrimitive *) ((ofSpherePrimitive *) x)); +} +static void *_p_ofIcoSpherePrimitiveTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) (of3dPrimitive *) ((ofIcoSpherePrimitive *) x)); +} +static void *_p_ofCylinderPrimitiveTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) (of3dPrimitive *) ((ofCylinderPrimitive *) x)); +} +static void *_p_ofConePrimitiveTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) (of3dPrimitive *) ((ofConePrimitive *) x)); +} +static void *_p_ofBoxPrimitiveTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) (of3dPrimitive *) ((ofBoxPrimitive *) x)); +} +static void *_p_ofEasyCamTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) (ofCamera *) ((ofEasyCam *) x)); +} +static void *_p_ofLightTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) ((ofLight *) x)); +} +static void *_p_ofCameraTo_p_ofNode(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofNode *) ((ofCamera *) x)); +} +static void *_p_ofConsoleLoggerChannelTo_p_ofBaseLoggerChannel(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseLoggerChannel *) ((ofConsoleLoggerChannel *) x)); +} +static void *_p_ofFileLoggerChannelTo_p_ofBaseLoggerChannel(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseLoggerChannel *) ((ofFileLoggerChannel *) x)); +} +static void *_p_ofBaseVideoDrawsTo_p_ofBaseVideo(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideo *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofBaseVideoGrabberTo_p_ofBaseVideo(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideo *) ((ofBaseVideoGrabber *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseVideo(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideo *) (ofBaseVideoGrabber *) ((ofVideoGrabber *) x)); +} +static void *_p_ofBaseVideoPlayerTo_p_ofBaseVideo(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideo *) ((ofBaseVideoPlayer *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseVideo(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideo *) (ofBaseVideoPlayer *) ((ofVideoPlayer *) x)); +} +static void *_p_ofVboMeshTo_p_ofMesh(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofMesh *) ((ofVboMesh *) x)); +} +static void *_p_ofAbstractImageTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) ((ofAbstractImage *) x)); +} +static void *_p_ofBaseVideoDrawsTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) (ofBaseHasTexturePlanes *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) (ofBaseHasTexturePlanes *)(ofBaseVideoDraws *) ((ofVideoGrabber *) x)); +} +static void *_p_ofFboTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) ((ofFbo *) x)); +} +static void *_p_ofBaseHasTexturePlanesTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) ((ofBaseHasTexturePlanes *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseHasTexture(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasTexture *) (ofBaseHasTexturePlanes *)(ofBaseVideoDraws *) ((ofVideoPlayer *) x)); +} +static void *_p_ofXmlTo_p_ofBaseFileSerializer(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseFileSerializer *) ((ofXml *) x)); +} +static void *_p_ofBaseFileSerializerTo_p_ofBaseSerializer(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseSerializer *) ((ofBaseFileSerializer *) x)); +} +static void *_p_ofXmlTo_p_ofBaseSerializer(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseSerializer *) (ofBaseFileSerializer *) ((ofXml *) x)); +} +static void *_p_ofBaseGLRendererTo_p_ofBaseRenderer(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseRenderer *) ((ofBaseGLRenderer *) x)); +} +static void *_p_ofKeyEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofEventArgs *) ((ofKeyEventArgs *) x)); +} +static void *_p_ofMouseEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofEventArgs *) ((ofMouseEventArgs *) x)); +} +static void *_p_ofTouchEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofEventArgs *) ((ofTouchEventArgs *) x)); +} +static void *_p_ofResizeEventArgsTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofEventArgs *) ((ofResizeEventArgs *) x)); +} +static void *_p_ofMessageTo_p_ofEventArgs(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofEventArgs *) ((ofMessage *) x)); +} +static void *_p_ofAbstractImageTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) ((ofAbstractImage *) x)); +} +static void *_p_ofBaseVideoDrawsTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) (ofBaseVideoDraws *) ((ofVideoGrabber *) x)); +} +static void *_p_ofTextureTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) ((ofTexture *) x)); +} +static void *_p_ofFboTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) ((ofFbo *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseDraws *) (ofBaseVideoDraws *) ((ofVideoPlayer *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseVideoGrabber(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideoGrabber *) ((ofVideoGrabber *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseVideoDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideoDraws *) ((ofVideoGrabber *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseVideoDraws(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseVideoDraws *) ((ofVideoPlayer *) x)); +} +static void *_p_ofLogErrorTo_p_ofLog(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofLog *) ((ofLogError *) x)); +} +static void *_p_ofLogNoticeTo_p_ofLog(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofLog *) ((ofLogNotice *) x)); +} +static void *_p_ofLogFatalErrorTo_p_ofLog(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofLog *) ((ofLogFatalError *) x)); +} +static void *_p_ofLogVerboseTo_p_ofLog(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofLog *) ((ofLogVerbose *) x)); +} +static void *_p_ofLogWarningTo_p_ofLog(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofLog *) ((ofLogWarning *) x)); +} +static void *_p_ofBaseVideoDrawsTo_p_ofBaseHasPixels(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasPixels *) (ofBaseVideo *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofBaseVideoGrabberTo_p_ofBaseHasPixels(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasPixels *) (ofBaseVideo *) ((ofBaseVideoGrabber *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseHasPixels(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasPixels *) (ofBaseVideo *)(ofBaseVideoGrabber *) ((ofVideoGrabber *) x)); +} +static void *_p_ofBaseVideoTo_p_ofBaseHasPixels(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasPixels *) ((ofBaseVideo *) x)); +} +static void *_p_ofBaseVideoPlayerTo_p_ofBaseHasPixels(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasPixels *) (ofBaseVideo *) ((ofBaseVideoPlayer *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseHasPixels(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseHasPixels *) (ofBaseVideo *)(ofBaseVideoPlayer *) ((ofVideoPlayer *) x)); +} +static void *_p_ofImage_T_unsigned_short_tTo_p_ofBaseImage_T_unsigned_short_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseImage_< unsigned short > *) ((ofImage_< unsigned short > *) x)); +} +static void *_p_ofBaseVideoDrawsTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseUpdates *) (ofBaseVideo *) ((ofBaseVideoDraws *) x)); +} +static void *_p_ofBaseVideoGrabberTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseUpdates *) (ofBaseVideo *) ((ofBaseVideoGrabber *) x)); +} +static void *_p_ofVideoGrabberTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseUpdates *) (ofBaseVideo *)(ofBaseVideoGrabber *) ((ofVideoGrabber *) x)); +} +static void *_p_ofBaseVideoTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseUpdates *) ((ofBaseVideo *) x)); +} +static void *_p_ofBaseVideoPlayerTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseUpdates *) (ofBaseVideo *) ((ofBaseVideoPlayer *) x)); +} +static void *_p_ofVideoPlayerTo_p_ofBaseUpdates(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ofBaseUpdates *) (ofBaseVideo *)(ofBaseVideoPlayer *) ((ofVideoPlayer *) x)); +} +static swig_type_info _swigt__p_GLenum = {"_p_GLenum", "GLenum *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GLsizei = {"_p_GLsizei", "GLsizei *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GLuint = {"_p_GLuint", "GLuint *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Poco__XML__Document = {"_p_Poco__XML__Document", "Poco::XML::Document *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Poco__XML__Element = {"_p_Poco__XML__Element", "Poco::XML::Element *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_float = {"_p_float", "float *|GLfloat *|ofPixels_< float >::iterator|ofPixels_< float >::const_iterator|ofPixels_< float >::reverse_iterator|ofPixels_< float >::const_reverse_iterator", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_int = {"_p_int", "int *|GLint *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_int64_t = {"_p_int64_t", "int64_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_listT_int_t = {"_p_listT_int_t", "list< int > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_listT_std__string_t = {"_p_listT_std__string_t", "list< std::string > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t = {"_p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t", "list< std::vector< unsigned char > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_of3dGraphics = {"_p_of3dGraphics", "of3dGraphics *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_of3dPrimitive = {"_p_of3dPrimitive", "of3dPrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofAbstractParameter = {"_p_ofAbstractParameter", "ofAbstractParameter *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofAppBaseWindow = {"_p_ofAppBaseWindow", "ofAppBaseWindow *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofArduino = {"_p_ofArduino", "ofArduino *|ofStandardFirmata *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseApp = {"_p_ofBaseApp", "ofSimpleApp *|ofBaseApp *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseDraws = {"_p_ofBaseDraws", "ofBaseDraws *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofAbstractImage = {"_p_ofAbstractImage", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofBaseFileSerializer = {"_p_ofBaseFileSerializer", "ofBaseFileSerializer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseHasPixels = {"_p_ofBaseHasPixels", "ofBaseHasPixels *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseHasTexture = {"_p_ofBaseHasTexture", "ofBaseHasTexture *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseHasTexturePlanes = {"_p_ofBaseHasTexturePlanes", "ofBaseHasTexturePlanes *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseImage_T_float_t = {"_p_ofBaseImage_T_float_t", "ofBaseImage_< float > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseImage_T_unsigned_char_t = {"_p_ofBaseImage_T_unsigned_char_t", "ofBaseImage_< unsigned char > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseImage_T_unsigned_short_t = {"_p_ofBaseImage_T_unsigned_short_t", "ofBaseImage_< unsigned short > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseLoggerChannel = {"_p_ofBaseLoggerChannel", "ofBaseLoggerChannel *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofConsoleLoggerChannel = {"_p_ofConsoleLoggerChannel", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofFileLoggerChannel = {"_p_ofFileLoggerChannel", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofBaseMaterial = {"_p_ofBaseMaterial", "ofBaseMaterial *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseRenderer = {"_p_ofBaseRenderer", "ofBaseRenderer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseGLRenderer = {"_p_ofBaseGLRenderer", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofBaseSerializer = {"_p_ofBaseSerializer", "ofBaseSerializer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseSoundInput = {"_p_ofBaseSoundInput", "ofBaseSoundInput *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseSoundOutput = {"_p_ofBaseSoundOutput", "ofBaseSoundOutput *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseSoundPlayer = {"_p_ofBaseSoundPlayer", "ofBaseSoundPlayer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseURLFileLoader = {"_p_ofBaseURLFileLoader", "ofBaseURLFileLoader *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseUpdates = {"_p_ofBaseUpdates", "ofBaseUpdates *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseVideo = {"_p_ofBaseVideo", "ofBaseVideo *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseVideoDraws = {"_p_ofBaseVideoDraws", "ofBaseVideoDraws *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseVideoGrabber = {"_p_ofBaseVideoGrabber", "ofBaseVideoGrabber *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBaseVideoPlayer = {"_p_ofBaseVideoPlayer", "ofBaseVideoPlayer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBoxPrimitive = {"_p_ofBoxPrimitive", "ofBoxPrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBuffer = {"_p_ofBuffer", "ofBuffer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofBufferObject = {"_p_ofBufferObject", "ofBufferObject *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofCamera = {"_p_ofCamera", "ofCamera *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofColor_T_float_t = {"_p_ofColor_T_float_t", "ofColor_< float > *|ofFloatColor *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofColor_T_unsigned_char_t = {"_p_ofColor_T_unsigned_char_t", "ofColor_< unsigned char > *|ofColor *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofColor_T_unsigned_short_t = {"_p_ofColor_T_unsigned_short_t", "ofColor_< unsigned short > *|ofShortColor *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofConePrimitive = {"_p_ofConePrimitive", "ofConePrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofCoreEvents = {"_p_ofCoreEvents", "ofCoreEvents *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofCylinderPrimitive = {"_p_ofCylinderPrimitive", "ofCylinderPrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofDragInfo = {"_p_ofDragInfo", "ofDragInfo *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofEasyCam = {"_p_ofEasyCam", "ofEasyCam *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofEventArgs = {"_p_ofEventArgs", "ofEventArgs *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofKeyEventArgs = {"_p_ofKeyEventArgs", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofMouseEventArgs = {"_p_ofMouseEventArgs", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofResizeEventArgs = {"_p_ofResizeEventArgs", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofEventT_int_const_t = {"_p_ofEventT_int_const_t", "ofEvent< int const > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofEventT_ofHttpResponse_t = {"_p_ofEventT_ofHttpResponse_t", "ofEvent< ofHttpResponse > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofEventT_std__string_const_t = {"_p_ofEventT_std__string_const_t", "ofEvent< std::string const > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t = {"_p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t", "ofEvent< std::vector< unsigned char > const > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofFbo = {"_p_ofFbo", "ofFbo *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofFbo__Settings = {"_p_ofFbo__Settings", "ofFbo::Settings *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofFile = {"_p_ofFile", "ofFile *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofFileDialogResult = {"_p_ofFileDialogResult", "ofFileDialogResult *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofGLProgrammableRenderer = {"_p_ofGLProgrammableRenderer", "ofGLProgrammableRenderer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofHttpRequest = {"_p_ofHttpRequest", "ofHttpRequest *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofHttpResponse = {"_p_ofHttpResponse", "ofHttpResponse *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofIcoSpherePrimitive = {"_p_ofIcoSpherePrimitive", "ofIcoSpherePrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofImage_T_float_t = {"_p_ofImage_T_float_t", "ofFloatImage *|ofImage_< float > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofImage_T_unsigned_char_t = {"_p_ofImage_T_unsigned_char_t", "ofImage *|ofImage_< unsigned char > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofImage_T_unsigned_short_t = {"_p_ofImage_T_unsigned_short_t", "ofImage_< unsigned short > *|ofShortImage *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofLight = {"_p_ofLight", "ofLight *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofLog = {"_p_ofLog", "ofLog *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofLogError = {"_p_ofLogError", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofLogNotice = {"_p_ofLogNotice", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofLogFatalError = {"_p_ofLogFatalError", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofLogVerbose = {"_p_ofLogVerbose", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofLogWarning = {"_p_ofLogWarning", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_ofMaterial = {"_p_ofMaterial", "ofMaterial *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMaterial__Data = {"_p_ofMaterial__Data", "ofMaterial::Data *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMatrix3x3 = {"_p_ofMatrix3x3", "ofMatrix3x3 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMatrix4x4 = {"_p_ofMatrix4x4", "ofMatrix4x4 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMatrixStack = {"_p_ofMatrixStack", "ofMatrixStack *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMesh = {"_p_ofMesh", "ofMesh *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMeshFace = {"_p_ofMeshFace", "ofMeshFace *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofMessage = {"_p_ofMessage", "ofMessage *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofNode = {"_p_ofNode", "ofNode *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofParameterGroup = {"_p_ofParameterGroup", "ofParameterGroup *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPath = {"_p_ofPath", "ofPath *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t = {"_p_ofPixels_T_float_t", "ofPixels_< float > *|ofFloatPixels *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__ConstLine = {"_p_ofPixels_T_float_t__ConstLine", "ofPixels_< float >::ConstLine *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__ConstLines = {"_p_ofPixels_T_float_t__ConstLines", "ofPixels_< float >::ConstLines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__Line = {"_p_ofPixels_T_float_t__Line", "ofPixels_< float >::Line *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_float_t__Lines = {"_p_ofPixels_T_float_t__Lines", "ofPixels_< float >::Lines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t = {"_p_ofPixels_T_unsigned_char_t", "ofPixels_< unsigned char > *|ofPixels *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__ConstLine = {"_p_ofPixels_T_unsigned_char_t__ConstLine", "ofPixels_< unsigned char >::ConstLine *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__ConstLines = {"_p_ofPixels_T_unsigned_char_t__ConstLines", "ofPixels_< unsigned char >::ConstLines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__Line = {"_p_ofPixels_T_unsigned_char_t__Line", "ofPixels_< unsigned char >::Line *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_char_t__Lines = {"_p_ofPixels_T_unsigned_char_t__Lines", "ofPixels_< unsigned char >::Lines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t = {"_p_ofPixels_T_unsigned_short_t", "ofPixels_< unsigned short > *|ofShortPixels *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__ConstLine = {"_p_ofPixels_T_unsigned_short_t__ConstLine", "ofPixels_< unsigned short >::ConstLine *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__ConstLines = {"_p_ofPixels_T_unsigned_short_t__ConstLines", "ofPixels_< unsigned short >::ConstLines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__Line = {"_p_ofPixels_T_unsigned_short_t__Line", "ofPixels_< unsigned short >::Line *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPixels_T_unsigned_short_t__Lines = {"_p_ofPixels_T_unsigned_short_t__Lines", "ofPixels_< unsigned short >::Lines *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPlanePrimitive = {"_p_ofPlanePrimitive", "ofPlanePrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPolyRenderMode = {"_p_ofPolyRenderMode", "ofPolyRenderMode *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPolyline = {"_p_ofPolyline", "ofPolyline *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofPrimitiveMode = {"_p_ofPrimitiveMode", "ofPrimitiveMode *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofQuaternion = {"_p_ofQuaternion", "ofQuaternion *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofRectangle = {"_p_ofRectangle", "ofRectangle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofSerial = {"_p_ofSerial", "ofSerial *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofSerialDeviceInfo = {"_p_ofSerialDeviceInfo", "ofSerialDeviceInfo *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofShader = {"_p_ofShader", "ofShader *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofSoundDevice = {"_p_ofSoundDevice", "ofSoundDevice *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofSoundPlayer = {"_p_ofSoundPlayer", "ofSoundPlayer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofSoundStream = {"_p_ofSoundStream", "ofSoundStream *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofSpherePrimitive = {"_p_ofSpherePrimitive", "ofSpherePrimitive *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofStyle = {"_p_ofStyle", "ofStyle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofTTFCharacter = {"_p_ofTTFCharacter", "ofTTFCharacter *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofTexture = {"_p_ofTexture", "ofTexture *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofTextureData = {"_p_ofTextureData", "ofTextureData *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofTouchEventArgs = {"_p_ofTouchEventArgs", "ofTouchEventArgs *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofTrueTypeFont = {"_p_ofTrueTypeFont", "ofTrueTypeFont *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofURLFileLoader = {"_p_ofURLFileLoader", "ofURLFileLoader *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofUTF8Iterator = {"_p_ofUTF8Iterator", "ofUTF8Iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofVbo = {"_p_ofVbo", "ofVbo *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofVboMesh = {"_p_ofVboMesh", "ofVboMesh *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofVec2f = {"_p_ofVec2f", "ofVec2f *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofVec3f = {"_p_ofVec3f", "ofPoint *|ofVec3f *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofVec4f = {"_p_ofVec4f", "ofVec4f *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofVideoGrabber = {"_p_ofVideoGrabber", "ofVideoGrabber *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofVideoPlayer = {"_p_ofVideoPlayer", "ofVideoPlayer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofWindowSettings = {"_p_ofWindowSettings", "ofWindowSettings *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ofXml = {"_p_ofXml", "ofXml *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofAppBaseWindow_t = {"_p_shared_ptrT_ofAppBaseWindow_t", "shared_ptr< ofAppBaseWindow > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofAppGLFWWindow_t = {"_p_shared_ptrT_ofAppGLFWWindow_t", "shared_ptr< ofAppGLFWWindow > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseApp_t = {"_p_shared_ptrT_ofBaseApp_t", "shared_ptr< ofBaseApp > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseRenderer_t = {"_p_shared_ptrT_ofBaseRenderer_t", "shared_ptr< ofBaseRenderer > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseSoundPlayer_t = {"_p_shared_ptrT_ofBaseSoundPlayer_t", "shared_ptr< ofBaseSoundPlayer > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseSoundStream_t = {"_p_shared_ptrT_ofBaseSoundStream_t", "shared_ptr< ofBaseSoundStream > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseVideoGrabber_t = {"_p_shared_ptrT_ofBaseVideoGrabber_t", "shared_ptr< ofBaseVideoGrabber > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofBaseVideoPlayer_t = {"_p_shared_ptrT_ofBaseVideoPlayer_t", "shared_ptr< ofBaseVideoPlayer > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_shared_ptrT_ofMainLoop_t = {"_p_shared_ptrT_ofMainLoop_t", "shared_ptr< ofMainLoop > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__allocatorT_float_t = {"_p_std__allocatorT_float_t", "std::vector< float >::allocator_type *|std::allocator< float > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__allocatorT_int_t = {"_p_std__allocatorT_int_t", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__allocatorT_std__string_t = {"_p_std__allocatorT_std__string_t", "std::vector< std::string >::allocator_type *|std::allocator< std::string > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t = {"_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t", "std::map< std::string,std::string > *|std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_float_std__allocatorT_float_t_t = {"_p_std__vectorT_float_std__allocatorT_float_t_t", "std::vector< float > *|std::vector< float,std::allocator< float > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t = {"_p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t", "std::vector< ofColor_< float > > *|std::vector< ofFloatColor > *|std::vector< ofColor_< float >,std::allocator< ofColor_< float > > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t = {"_p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t", "std::vector< ofMeshFace > *|std::vector< ofMeshFace,std::allocator< ofMeshFace > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t = {"_p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t", "std::vector< ofPath::Command,std::allocator< ofPath::Command > > *|std::vector< ofPath::Command > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t = {"_p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t", "std::vector< ofPolyline > *|std::vector< ofPolyline,std::allocator< ofPolyline > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t = {"_p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t", "std::vector< ofSerialDeviceInfo,std::allocator< ofSerialDeviceInfo > > *|std::vector< ofSerialDeviceInfo > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t = {"_p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t", "std::vector< ofSoundDevice,std::allocator< ofSoundDevice > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t = {"_p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t", "std::vector< ofTTFCharacter > *|std::vector< ofTTFCharacter,std::allocator< ofTTFCharacter > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t = {"_p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t", "std::vector< ofTexture,std::allocator< ofTexture > > *|std::vector< ofTexture > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t = {"_p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t", "std::vector< ofVec2f > *|std::vector< ofVec2f,std::allocator< ofVec2f > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t", "std::vector< ofVec3f,std::allocator< ofVec3f > > *|std::vector< ofPoint,std::allocator< ofPoint > > *|std::vector< ofVec3f > *|std::vector< ofPoint > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::const_iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::const_iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::const_reverse_iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::const_reverse_iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator = {"_p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator", "std::vector< ofVec3f,std::allocator< ofVec3f > >::reverse_iterator *|std::vector< ofPoint,std::allocator< ofPoint > >::reverse_iterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t = {"_p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t", "std::vector< ofVideoDevice,std::allocator< ofVideoDevice > > *|std::vector< ofVideoDevice > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_size_t_std__allocatorT_size_t_t_t = {"_p_std__vectorT_size_t_std__allocatorT_size_t_t_t", "std::vector< size_t,std::allocator< size_t > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t = {"_p_std__vectorT_std__string_std__allocatorT_std__string_t_t", "std::vector< std::string,std::allocator< std::string > > *|std::vector< std::string > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t = {"_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t", "std::vector< unsigned char > *|std::vector< unsigned char,std::allocator< unsigned char > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t = {"_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t", "std::vector< unsigned int,std::allocator< unsigned int > > *|std::vector< unsigned int > *|std::vector< ofIndexType > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t = {"_p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t", "std::vector< weak_ptr< ofLight::Data >,std::allocator< weak_ptr< ofLight::Data > > > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_uint64_t = {"_p_uint64_t", "uint64_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|ofPixels_< unsigned char >::iterator|ofPixels_< unsigned char >::const_iterator|ofPixels_< unsigned char >::reverse_iterator|ofPixels_< unsigned char >::const_reverse_iterator", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "ofIndexType *|unsigned int *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|ofPixels_< unsigned short >::iterator|ofPixels_< unsigned short >::const_iterator|ofPixels_< unsigned short >::reverse_iterator|ofPixels_< unsigned short >::const_reverse_iterator", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_utf8__iteratorT_std__string__const_iterator_t = {"_p_utf8__iteratorT_std__string__const_iterator_t", "utf8::iterator< std::string::const_iterator > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_utf8__iteratorT_std__string__const_reverse_iterator_t = {"_p_utf8__iteratorT_std__string__const_reverse_iterator_t", "utf8::iterator< std::string::const_reverse_iterator > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_GLenum, + &_swigt__p_GLsizei, + &_swigt__p_GLuint, + &_swigt__p_Poco__XML__Document, + &_swigt__p_Poco__XML__Element, + &_swigt__p_allocator_type, + &_swigt__p_char, + &_swigt__p_difference_type, + &_swigt__p_double, + &_swigt__p_float, + &_swigt__p_int, + &_swigt__p_int64_t, + &_swigt__p_listT_int_t, + &_swigt__p_listT_std__string_t, + &_swigt__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t, + &_swigt__p_of3dGraphics, + &_swigt__p_of3dPrimitive, + &_swigt__p_ofAbstractImage, + &_swigt__p_ofAbstractParameter, + &_swigt__p_ofAppBaseWindow, + &_swigt__p_ofArduino, + &_swigt__p_ofBaseApp, + &_swigt__p_ofBaseDraws, + &_swigt__p_ofBaseFileSerializer, + &_swigt__p_ofBaseGLRenderer, + &_swigt__p_ofBaseHasPixels, + &_swigt__p_ofBaseHasTexture, + &_swigt__p_ofBaseHasTexturePlanes, + &_swigt__p_ofBaseImage_T_float_t, + &_swigt__p_ofBaseImage_T_unsigned_char_t, + &_swigt__p_ofBaseImage_T_unsigned_short_t, + &_swigt__p_ofBaseLoggerChannel, + &_swigt__p_ofBaseMaterial, + &_swigt__p_ofBaseRenderer, + &_swigt__p_ofBaseSerializer, + &_swigt__p_ofBaseSoundInput, + &_swigt__p_ofBaseSoundOutput, + &_swigt__p_ofBaseSoundPlayer, + &_swigt__p_ofBaseURLFileLoader, + &_swigt__p_ofBaseUpdates, + &_swigt__p_ofBaseVideo, + &_swigt__p_ofBaseVideoDraws, + &_swigt__p_ofBaseVideoGrabber, + &_swigt__p_ofBaseVideoPlayer, + &_swigt__p_ofBoxPrimitive, + &_swigt__p_ofBuffer, + &_swigt__p_ofBufferObject, + &_swigt__p_ofCamera, + &_swigt__p_ofColor_T_float_t, + &_swigt__p_ofColor_T_unsigned_char_t, + &_swigt__p_ofColor_T_unsigned_short_t, + &_swigt__p_ofConePrimitive, + &_swigt__p_ofConsoleLoggerChannel, + &_swigt__p_ofCoreEvents, + &_swigt__p_ofCylinderPrimitive, + &_swigt__p_ofDragInfo, + &_swigt__p_ofEasyCam, + &_swigt__p_ofEventArgs, + &_swigt__p_ofEventT_int_const_t, + &_swigt__p_ofEventT_ofHttpResponse_t, + &_swigt__p_ofEventT_std__string_const_t, + &_swigt__p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t, + &_swigt__p_ofFbo, + &_swigt__p_ofFbo__Settings, + &_swigt__p_ofFile, + &_swigt__p_ofFileDialogResult, + &_swigt__p_ofFileLoggerChannel, + &_swigt__p_ofGLProgrammableRenderer, + &_swigt__p_ofHttpRequest, + &_swigt__p_ofHttpResponse, + &_swigt__p_ofIcoSpherePrimitive, + &_swigt__p_ofImage_T_float_t, + &_swigt__p_ofImage_T_unsigned_char_t, + &_swigt__p_ofImage_T_unsigned_short_t, + &_swigt__p_ofKeyEventArgs, + &_swigt__p_ofLight, + &_swigt__p_ofLog, + &_swigt__p_ofLogError, + &_swigt__p_ofLogFatalError, + &_swigt__p_ofLogNotice, + &_swigt__p_ofLogVerbose, + &_swigt__p_ofLogWarning, + &_swigt__p_ofMaterial, + &_swigt__p_ofMaterial__Data, + &_swigt__p_ofMatrix3x3, + &_swigt__p_ofMatrix4x4, + &_swigt__p_ofMatrixStack, + &_swigt__p_ofMesh, + &_swigt__p_ofMeshFace, + &_swigt__p_ofMessage, + &_swigt__p_ofMouseEventArgs, + &_swigt__p_ofNode, + &_swigt__p_ofParameterGroup, + &_swigt__p_ofPath, + &_swigt__p_ofPixels_T_float_t, + &_swigt__p_ofPixels_T_float_t__ConstLine, + &_swigt__p_ofPixels_T_float_t__ConstLines, + &_swigt__p_ofPixels_T_float_t__Line, + &_swigt__p_ofPixels_T_float_t__Lines, + &_swigt__p_ofPixels_T_unsigned_char_t, + &_swigt__p_ofPixels_T_unsigned_char_t__ConstLine, + &_swigt__p_ofPixels_T_unsigned_char_t__ConstLines, + &_swigt__p_ofPixels_T_unsigned_char_t__Line, + &_swigt__p_ofPixels_T_unsigned_char_t__Lines, + &_swigt__p_ofPixels_T_unsigned_short_t, + &_swigt__p_ofPixels_T_unsigned_short_t__ConstLine, + &_swigt__p_ofPixels_T_unsigned_short_t__ConstLines, + &_swigt__p_ofPixels_T_unsigned_short_t__Line, + &_swigt__p_ofPixels_T_unsigned_short_t__Lines, + &_swigt__p_ofPlanePrimitive, + &_swigt__p_ofPolyRenderMode, + &_swigt__p_ofPolyline, + &_swigt__p_ofPrimitiveMode, + &_swigt__p_ofQuaternion, + &_swigt__p_ofRectangle, + &_swigt__p_ofResizeEventArgs, + &_swigt__p_ofSerial, + &_swigt__p_ofSerialDeviceInfo, + &_swigt__p_ofShader, + &_swigt__p_ofSoundDevice, + &_swigt__p_ofSoundPlayer, + &_swigt__p_ofSoundStream, + &_swigt__p_ofSpherePrimitive, + &_swigt__p_ofStyle, + &_swigt__p_ofTTFCharacter, + &_swigt__p_ofTexture, + &_swigt__p_ofTextureData, + &_swigt__p_ofTouchEventArgs, + &_swigt__p_ofTrueTypeFont, + &_swigt__p_ofURLFileLoader, + &_swigt__p_ofUTF8Iterator, + &_swigt__p_ofVbo, + &_swigt__p_ofVboMesh, + &_swigt__p_ofVec2f, + &_swigt__p_ofVec3f, + &_swigt__p_ofVec4f, + &_swigt__p_ofVideoGrabber, + &_swigt__p_ofVideoPlayer, + &_swigt__p_ofWindowSettings, + &_swigt__p_ofXml, + &_swigt__p_p_PyObject, + &_swigt__p_shared_ptrT_ofAppBaseWindow_t, + &_swigt__p_shared_ptrT_ofAppGLFWWindow_t, + &_swigt__p_shared_ptrT_ofBaseApp_t, + &_swigt__p_shared_ptrT_ofBaseRenderer_t, + &_swigt__p_shared_ptrT_ofBaseSoundPlayer_t, + &_swigt__p_shared_ptrT_ofBaseSoundStream_t, + &_swigt__p_shared_ptrT_ofBaseVideoGrabber_t, + &_swigt__p_shared_ptrT_ofBaseVideoPlayer_t, + &_swigt__p_shared_ptrT_ofMainLoop_t, + &_swigt__p_size_type, + &_swigt__p_std__allocatorT_float_t, + &_swigt__p_std__allocatorT_int_t, + &_swigt__p_std__allocatorT_std__string_t, + &_swigt__p_std__invalid_argument, + &_swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, + &_swigt__p_std__string, + &_swigt__p_std__vectorT_float_std__allocatorT_float_t_t, + &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, + &_swigt__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, + &_swigt__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, + &_swigt__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, + &_swigt__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, + &_swigt__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, + &_swigt__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, + &_swigt__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, + &_swigt__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, + &_swigt__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, + &_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, + &_swigt__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, + &_swigt__p_std__vectorT_size_t_std__allocatorT_size_t_t_t, + &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, + &_swigt__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, + &_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, + &_swigt__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, + &_swigt__p_swig__SwigPyIterator, + &_swigt__p_uint64_t, + &_swigt__p_unsigned_char, + &_swigt__p_unsigned_int, + &_swigt__p_unsigned_short, + &_swigt__p_utf8__iteratorT_std__string__const_iterator_t, + &_swigt__p_utf8__iteratorT_std__string__const_reverse_iterator_t, + &_swigt__p_value_type, +}; + +static swig_cast_info _swigc__p_GLenum[] = { {&_swigt__p_GLenum, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GLsizei[] = { {&_swigt__p_GLsizei, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GLuint[] = { {&_swigt__p_GLuint, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Poco__XML__Document[] = { {&_swigt__p_Poco__XML__Document, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Poco__XML__Element[] = { {&_swigt__p_Poco__XML__Element, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int64_t[] = { {&_swigt__p_int64_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_listT_int_t[] = { {&_swigt__p_listT_int_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_listT_std__string_t[] = { {&_swigt__p_listT_std__string_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t[] = { {&_swigt__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_of3dGraphics[] = { {&_swigt__p_of3dGraphics, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_of3dPrimitive[] = { {&_swigt__p_of3dPrimitive, 0, 0, 0}, {&_swigt__p_ofPlanePrimitive, _p_ofPlanePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofSpherePrimitive, _p_ofSpherePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofIcoSpherePrimitive, _p_ofIcoSpherePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofCylinderPrimitive, _p_ofCylinderPrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofConePrimitive, _p_ofConePrimitiveTo_p_of3dPrimitive, 0, 0}, {&_swigt__p_ofBoxPrimitive, _p_ofBoxPrimitiveTo_p_of3dPrimitive, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofAbstractParameter[] = { {&_swigt__p_ofAbstractParameter, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofAppBaseWindow[] = { {&_swigt__p_ofAppBaseWindow, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofArduino[] = { {&_swigt__p_ofArduino, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseApp[] = { {&_swigt__p_ofBaseApp, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofAbstractImage[] = {{&_swigt__p_ofAbstractImage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseDraws[] = { {&_swigt__p_ofAbstractImage, _p_ofAbstractImageTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofBaseDraws, 0, 0, 0}, {&_swigt__p_ofTexture, _p_ofTextureTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofFbo, _p_ofFboTo_p_ofBaseDraws, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseDraws, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseFileSerializer[] = { {&_swigt__p_ofXml, _p_ofXmlTo_p_ofBaseFileSerializer, 0, 0}, {&_swigt__p_ofBaseFileSerializer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseHasPixels[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseVideoGrabber, _p_ofBaseVideoGrabberTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseVideo, _p_ofBaseVideoTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseHasPixels, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseHasPixels, 0, 0}, {&_swigt__p_ofBaseVideoPlayer, _p_ofBaseVideoPlayerTo_p_ofBaseHasPixels, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseHasTexture[] = { {&_swigt__p_ofAbstractImage, _p_ofAbstractImageTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofBaseHasTexture, 0, 0, 0}, {&_swigt__p_ofFbo, _p_ofFboTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseHasTexture, 0, 0}, {&_swigt__p_ofBaseHasTexturePlanes, _p_ofBaseHasTexturePlanesTo_p_ofBaseHasTexture, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseHasTexturePlanes[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseHasTexturePlanes, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseHasTexturePlanes, 0, 0}, {&_swigt__p_ofBaseHasTexturePlanes, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseHasTexturePlanes, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseImage_T_float_t[] = { {&_swigt__p_ofBaseImage_T_float_t, 0, 0, 0}, {&_swigt__p_ofImage_T_float_t, _p_ofImage_T_float_tTo_p_ofBaseImage_T_float_t, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseImage_T_unsigned_char_t[] = { {&_swigt__p_ofBaseImage_T_unsigned_char_t, 0, 0, 0}, {&_swigt__p_ofImage_T_unsigned_char_t, _p_ofImage_T_unsigned_char_tTo_p_ofBaseImage_T_unsigned_char_t, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseImage_T_unsigned_short_t[] = { {&_swigt__p_ofBaseImage_T_unsigned_short_t, 0, 0, 0}, {&_swigt__p_ofImage_T_unsigned_short_t, _p_ofImage_T_unsigned_short_tTo_p_ofBaseImage_T_unsigned_short_t, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofConsoleLoggerChannel[] = {{&_swigt__p_ofConsoleLoggerChannel, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofFileLoggerChannel[] = {{&_swigt__p_ofFileLoggerChannel, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseLoggerChannel[] = { {&_swigt__p_ofBaseLoggerChannel, 0, 0, 0}, {&_swigt__p_ofConsoleLoggerChannel, _p_ofConsoleLoggerChannelTo_p_ofBaseLoggerChannel, 0, 0}, {&_swigt__p_ofFileLoggerChannel, _p_ofFileLoggerChannelTo_p_ofBaseLoggerChannel, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseMaterial[] = { {&_swigt__p_ofBaseMaterial, 0, 0, 0}, {&_swigt__p_ofMaterial, _p_ofMaterialTo_p_ofBaseMaterial, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseGLRenderer[] = {{&_swigt__p_ofBaseGLRenderer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseRenderer[] = { {&_swigt__p_ofBaseRenderer, 0, 0, 0}, {&_swigt__p_ofBaseGLRenderer, _p_ofBaseGLRendererTo_p_ofBaseRenderer, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseSerializer[] = { {&_swigt__p_ofXml, _p_ofXmlTo_p_ofBaseSerializer, 0, 0}, {&_swigt__p_ofBaseSerializer, 0, 0, 0}, {&_swigt__p_ofBaseFileSerializer, _p_ofBaseFileSerializerTo_p_ofBaseSerializer, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseSoundInput[] = { {&_swigt__p_ofBaseSoundInput, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseSoundOutput[] = { {&_swigt__p_ofBaseSoundOutput, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseSoundPlayer[] = { {&_swigt__p_ofBaseSoundPlayer, 0, 0, 0}, {&_swigt__p_ofSoundPlayer, _p_ofSoundPlayerTo_p_ofBaseSoundPlayer, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseURLFileLoader[] = { {&_swigt__p_ofBaseURLFileLoader, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseUpdates[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseVideoGrabber, _p_ofBaseVideoGrabberTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseVideo, _p_ofBaseVideoTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseUpdates, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseUpdates, 0, 0}, {&_swigt__p_ofBaseVideoPlayer, _p_ofBaseVideoPlayerTo_p_ofBaseUpdates, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseVideo[] = { {&_swigt__p_ofBaseVideoDraws, _p_ofBaseVideoDrawsTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofBaseVideoGrabber, _p_ofBaseVideoGrabberTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofBaseVideo, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseVideo, 0, 0}, {&_swigt__p_ofBaseVideoPlayer, _p_ofBaseVideoPlayerTo_p_ofBaseVideo, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseVideoDraws[] = { {&_swigt__p_ofBaseVideoDraws, 0, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseVideoDraws, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseVideoDraws, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseVideoGrabber[] = { {&_swigt__p_ofBaseVideoGrabber, 0, 0, 0}, {&_swigt__p_ofVideoGrabber, _p_ofVideoGrabberTo_p_ofBaseVideoGrabber, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBaseVideoPlayer[] = { {&_swigt__p_ofBaseVideoPlayer, 0, 0, 0}, {&_swigt__p_ofVideoPlayer, _p_ofVideoPlayerTo_p_ofBaseVideoPlayer, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBoxPrimitive[] = { {&_swigt__p_ofBoxPrimitive, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBuffer[] = { {&_swigt__p_ofBuffer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofBufferObject[] = { {&_swigt__p_ofBufferObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofCamera[] = { {&_swigt__p_ofEasyCam, _p_ofEasyCamTo_p_ofCamera, 0, 0}, {&_swigt__p_ofCamera, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofColor_T_float_t[] = { {&_swigt__p_ofColor_T_float_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofColor_T_unsigned_char_t[] = { {&_swigt__p_ofColor_T_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofColor_T_unsigned_short_t[] = { {&_swigt__p_ofColor_T_unsigned_short_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofConePrimitive[] = { {&_swigt__p_ofConePrimitive, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofCoreEvents[] = { {&_swigt__p_ofCoreEvents, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofCylinderPrimitive[] = { {&_swigt__p_ofCylinderPrimitive, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofDragInfo[] = { {&_swigt__p_ofDragInfo, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofEasyCam[] = { {&_swigt__p_ofEasyCam, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofKeyEventArgs[] = {{&_swigt__p_ofKeyEventArgs, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMouseEventArgs[] = {{&_swigt__p_ofMouseEventArgs, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofResizeEventArgs[] = {{&_swigt__p_ofResizeEventArgs, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofEventArgs[] = { {&_swigt__p_ofEventArgs, 0, 0, 0}, {&_swigt__p_ofKeyEventArgs, _p_ofKeyEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofMouseEventArgs, _p_ofMouseEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofTouchEventArgs, _p_ofTouchEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofResizeEventArgs, _p_ofResizeEventArgsTo_p_ofEventArgs, 0, 0}, {&_swigt__p_ofMessage, _p_ofMessageTo_p_ofEventArgs, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofEventT_int_const_t[] = { {&_swigt__p_ofEventT_int_const_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofEventT_ofHttpResponse_t[] = { {&_swigt__p_ofEventT_ofHttpResponse_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofEventT_std__string_const_t[] = { {&_swigt__p_ofEventT_std__string_const_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t[] = { {&_swigt__p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofFbo[] = { {&_swigt__p_ofFbo, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofFbo__Settings[] = { {&_swigt__p_ofFbo__Settings, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofFile[] = { {&_swigt__p_ofFile, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofFileDialogResult[] = { {&_swigt__p_ofFileDialogResult, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofGLProgrammableRenderer[] = { {&_swigt__p_ofGLProgrammableRenderer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofHttpRequest[] = { {&_swigt__p_ofHttpRequest, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofHttpResponse[] = { {&_swigt__p_ofHttpResponse, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofIcoSpherePrimitive[] = { {&_swigt__p_ofIcoSpherePrimitive, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofImage_T_float_t[] = { {&_swigt__p_ofImage_T_float_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofImage_T_unsigned_char_t[] = { {&_swigt__p_ofImage_T_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofImage_T_unsigned_short_t[] = { {&_swigt__p_ofImage_T_unsigned_short_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofLight[] = { {&_swigt__p_ofLight, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofLogError[] = {{&_swigt__p_ofLogError, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofLogNotice[] = {{&_swigt__p_ofLogNotice, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofLogFatalError[] = {{&_swigt__p_ofLogFatalError, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofLogVerbose[] = {{&_swigt__p_ofLogVerbose, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofLogWarning[] = {{&_swigt__p_ofLogWarning, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofLog[] = { {&_swigt__p_ofLogError, _p_ofLogErrorTo_p_ofLog, 0, 0}, {&_swigt__p_ofLogNotice, _p_ofLogNoticeTo_p_ofLog, 0, 0}, {&_swigt__p_ofLogFatalError, _p_ofLogFatalErrorTo_p_ofLog, 0, 0}, {&_swigt__p_ofLogVerbose, _p_ofLogVerboseTo_p_ofLog, 0, 0}, {&_swigt__p_ofLog, 0, 0, 0}, {&_swigt__p_ofLogWarning, _p_ofLogWarningTo_p_ofLog, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMaterial[] = { {&_swigt__p_ofMaterial, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMaterial__Data[] = { {&_swigt__p_ofMaterial__Data, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMatrix3x3[] = { {&_swigt__p_ofMatrix3x3, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMatrix4x4[] = { {&_swigt__p_ofMatrix4x4, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMatrixStack[] = { {&_swigt__p_ofMatrixStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMesh[] = { {&_swigt__p_ofMesh, 0, 0, 0}, {&_swigt__p_ofVboMesh, _p_ofVboMeshTo_p_ofMesh, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMeshFace[] = { {&_swigt__p_ofMeshFace, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofMessage[] = { {&_swigt__p_ofMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofNode[] = { {&_swigt__p_ofNode, 0, 0, 0}, {&_swigt__p_of3dPrimitive, _p_of3dPrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofPlanePrimitive, _p_ofPlanePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofSpherePrimitive, _p_ofSpherePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofIcoSpherePrimitive, _p_ofIcoSpherePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofCylinderPrimitive, _p_ofCylinderPrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofConePrimitive, _p_ofConePrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofBoxPrimitive, _p_ofBoxPrimitiveTo_p_ofNode, 0, 0}, {&_swigt__p_ofEasyCam, _p_ofEasyCamTo_p_ofNode, 0, 0}, {&_swigt__p_ofLight, _p_ofLightTo_p_ofNode, 0, 0}, {&_swigt__p_ofCamera, _p_ofCameraTo_p_ofNode, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofParameterGroup[] = { {&_swigt__p_ofParameterGroup, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPath[] = { {&_swigt__p_ofPath, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t[] = { {&_swigt__p_ofPixels_T_float_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__ConstLine[] = { {&_swigt__p_ofPixels_T_float_t__ConstLine, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__ConstLines[] = { {&_swigt__p_ofPixels_T_float_t__ConstLines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__Line[] = { {&_swigt__p_ofPixels_T_float_t__Line, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_float_t__Lines[] = { {&_swigt__p_ofPixels_T_float_t__Lines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t[] = { {&_swigt__p_ofPixels_T_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__ConstLine[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__ConstLine, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__ConstLines[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__ConstLines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__Line[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__Line, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_char_t__Lines[] = { {&_swigt__p_ofPixels_T_unsigned_char_t__Lines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t[] = { {&_swigt__p_ofPixels_T_unsigned_short_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__ConstLine[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__ConstLine, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__ConstLines[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__ConstLines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__Line[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__Line, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPixels_T_unsigned_short_t__Lines[] = { {&_swigt__p_ofPixels_T_unsigned_short_t__Lines, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPlanePrimitive[] = { {&_swigt__p_ofPlanePrimitive, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPolyRenderMode[] = { {&_swigt__p_ofPolyRenderMode, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPolyline[] = { {&_swigt__p_ofPolyline, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofPrimitiveMode[] = { {&_swigt__p_ofPrimitiveMode, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofQuaternion[] = { {&_swigt__p_ofQuaternion, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofRectangle[] = { {&_swigt__p_ofRectangle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofSerial[] = { {&_swigt__p_ofSerial, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofSerialDeviceInfo[] = { {&_swigt__p_ofSerialDeviceInfo, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofShader[] = { {&_swigt__p_ofShader, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofSoundDevice[] = { {&_swigt__p_ofSoundDevice, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofSoundPlayer[] = { {&_swigt__p_ofSoundPlayer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofSoundStream[] = { {&_swigt__p_ofSoundStream, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofSpherePrimitive[] = { {&_swigt__p_ofSpherePrimitive, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofStyle[] = { {&_swigt__p_ofStyle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofTTFCharacter[] = { {&_swigt__p_ofTTFCharacter, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofTexture[] = { {&_swigt__p_ofTexture, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofTextureData[] = { {&_swigt__p_ofTextureData, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofTouchEventArgs[] = { {&_swigt__p_ofTouchEventArgs, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofTrueTypeFont[] = { {&_swigt__p_ofTrueTypeFont, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofURLFileLoader[] = { {&_swigt__p_ofURLFileLoader, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofUTF8Iterator[] = { {&_swigt__p_ofUTF8Iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofVbo[] = { {&_swigt__p_ofVbo, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofVboMesh[] = { {&_swigt__p_ofVboMesh, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofVec2f[] = { {&_swigt__p_ofMouseEventArgs, _p_ofMouseEventArgsTo_p_ofVec2f, 0, 0}, {&_swigt__p_ofTouchEventArgs, _p_ofTouchEventArgsTo_p_ofVec2f, 0, 0}, {&_swigt__p_ofVec2f, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofVec3f[] = { {&_swigt__p_ofVec3f, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofVec4f[] = { {&_swigt__p_ofVec4f, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofVideoGrabber[] = { {&_swigt__p_ofVideoGrabber, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofVideoPlayer[] = { {&_swigt__p_ofVideoPlayer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofWindowSettings[] = { {&_swigt__p_ofWindowSettings, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ofXml[] = { {&_swigt__p_ofXml, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofAppBaseWindow_t[] = { {&_swigt__p_shared_ptrT_ofAppBaseWindow_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofAppGLFWWindow_t[] = { {&_swigt__p_shared_ptrT_ofAppGLFWWindow_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseApp_t[] = { {&_swigt__p_shared_ptrT_ofBaseApp_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseRenderer_t[] = { {&_swigt__p_shared_ptrT_ofBaseRenderer_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseSoundPlayer_t[] = { {&_swigt__p_shared_ptrT_ofBaseSoundPlayer_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseSoundStream_t[] = { {&_swigt__p_shared_ptrT_ofBaseSoundStream_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseVideoGrabber_t[] = { {&_swigt__p_shared_ptrT_ofBaseVideoGrabber_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofBaseVideoPlayer_t[] = { {&_swigt__p_shared_ptrT_ofBaseVideoPlayer_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_shared_ptrT_ofMainLoop_t[] = { {&_swigt__p_shared_ptrT_ofMainLoop_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__allocatorT_float_t[] = { {&_swigt__p_std__allocatorT_float_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__allocatorT_int_t[] = { {&_swigt__p_std__allocatorT_int_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__allocatorT_std__string_t[] = { {&_swigt__p_std__allocatorT_std__string_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t[] = { {&_swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_float_std__allocatorT_float_t_t[] = { {&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t[] = { {&_swigt__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t[] = { {&_swigt__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t[] = { {&_swigt__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t[] = { {&_swigt__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t[] = { {&_swigt__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t[] = { {&_swigt__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t[] = { {&_swigt__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t[] = { {&_swigt__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t[] = { {&_swigt__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator[] = { {&_swigt__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t[] = { {&_swigt__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_size_t_std__allocatorT_size_t_t_t[] = { {&_swigt__p_std__vectorT_size_t_std__allocatorT_size_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t[] = { {&_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t[] = { {&_swigt__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t[] = { {&_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t[] = { {&_swigt__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_uint64_t[] = { {&_swigt__p_uint64_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_utf8__iteratorT_std__string__const_iterator_t[] = { {&_swigt__p_utf8__iteratorT_std__string__const_iterator_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_utf8__iteratorT_std__string__const_reverse_iterator_t[] = { {&_swigt__p_utf8__iteratorT_std__string__const_reverse_iterator_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_GLenum, + _swigc__p_GLsizei, + _swigc__p_GLuint, + _swigc__p_Poco__XML__Document, + _swigc__p_Poco__XML__Element, + _swigc__p_allocator_type, + _swigc__p_char, + _swigc__p_difference_type, + _swigc__p_double, + _swigc__p_float, + _swigc__p_int, + _swigc__p_int64_t, + _swigc__p_listT_int_t, + _swigc__p_listT_std__string_t, + _swigc__p_listT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_t, + _swigc__p_of3dGraphics, + _swigc__p_of3dPrimitive, + _swigc__p_ofAbstractImage, + _swigc__p_ofAbstractParameter, + _swigc__p_ofAppBaseWindow, + _swigc__p_ofArduino, + _swigc__p_ofBaseApp, + _swigc__p_ofBaseDraws, + _swigc__p_ofBaseFileSerializer, + _swigc__p_ofBaseGLRenderer, + _swigc__p_ofBaseHasPixels, + _swigc__p_ofBaseHasTexture, + _swigc__p_ofBaseHasTexturePlanes, + _swigc__p_ofBaseImage_T_float_t, + _swigc__p_ofBaseImage_T_unsigned_char_t, + _swigc__p_ofBaseImage_T_unsigned_short_t, + _swigc__p_ofBaseLoggerChannel, + _swigc__p_ofBaseMaterial, + _swigc__p_ofBaseRenderer, + _swigc__p_ofBaseSerializer, + _swigc__p_ofBaseSoundInput, + _swigc__p_ofBaseSoundOutput, + _swigc__p_ofBaseSoundPlayer, + _swigc__p_ofBaseURLFileLoader, + _swigc__p_ofBaseUpdates, + _swigc__p_ofBaseVideo, + _swigc__p_ofBaseVideoDraws, + _swigc__p_ofBaseVideoGrabber, + _swigc__p_ofBaseVideoPlayer, + _swigc__p_ofBoxPrimitive, + _swigc__p_ofBuffer, + _swigc__p_ofBufferObject, + _swigc__p_ofCamera, + _swigc__p_ofColor_T_float_t, + _swigc__p_ofColor_T_unsigned_char_t, + _swigc__p_ofColor_T_unsigned_short_t, + _swigc__p_ofConePrimitive, + _swigc__p_ofConsoleLoggerChannel, + _swigc__p_ofCoreEvents, + _swigc__p_ofCylinderPrimitive, + _swigc__p_ofDragInfo, + _swigc__p_ofEasyCam, + _swigc__p_ofEventArgs, + _swigc__p_ofEventT_int_const_t, + _swigc__p_ofEventT_ofHttpResponse_t, + _swigc__p_ofEventT_std__string_const_t, + _swigc__p_ofEventT_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t_const_t, + _swigc__p_ofFbo, + _swigc__p_ofFbo__Settings, + _swigc__p_ofFile, + _swigc__p_ofFileDialogResult, + _swigc__p_ofFileLoggerChannel, + _swigc__p_ofGLProgrammableRenderer, + _swigc__p_ofHttpRequest, + _swigc__p_ofHttpResponse, + _swigc__p_ofIcoSpherePrimitive, + _swigc__p_ofImage_T_float_t, + _swigc__p_ofImage_T_unsigned_char_t, + _swigc__p_ofImage_T_unsigned_short_t, + _swigc__p_ofKeyEventArgs, + _swigc__p_ofLight, + _swigc__p_ofLog, + _swigc__p_ofLogError, + _swigc__p_ofLogFatalError, + _swigc__p_ofLogNotice, + _swigc__p_ofLogVerbose, + _swigc__p_ofLogWarning, + _swigc__p_ofMaterial, + _swigc__p_ofMaterial__Data, + _swigc__p_ofMatrix3x3, + _swigc__p_ofMatrix4x4, + _swigc__p_ofMatrixStack, + _swigc__p_ofMesh, + _swigc__p_ofMeshFace, + _swigc__p_ofMessage, + _swigc__p_ofMouseEventArgs, + _swigc__p_ofNode, + _swigc__p_ofParameterGroup, + _swigc__p_ofPath, + _swigc__p_ofPixels_T_float_t, + _swigc__p_ofPixels_T_float_t__ConstLine, + _swigc__p_ofPixels_T_float_t__ConstLines, + _swigc__p_ofPixels_T_float_t__Line, + _swigc__p_ofPixels_T_float_t__Lines, + _swigc__p_ofPixels_T_unsigned_char_t, + _swigc__p_ofPixels_T_unsigned_char_t__ConstLine, + _swigc__p_ofPixels_T_unsigned_char_t__ConstLines, + _swigc__p_ofPixels_T_unsigned_char_t__Line, + _swigc__p_ofPixels_T_unsigned_char_t__Lines, + _swigc__p_ofPixels_T_unsigned_short_t, + _swigc__p_ofPixels_T_unsigned_short_t__ConstLine, + _swigc__p_ofPixels_T_unsigned_short_t__ConstLines, + _swigc__p_ofPixels_T_unsigned_short_t__Line, + _swigc__p_ofPixels_T_unsigned_short_t__Lines, + _swigc__p_ofPlanePrimitive, + _swigc__p_ofPolyRenderMode, + _swigc__p_ofPolyline, + _swigc__p_ofPrimitiveMode, + _swigc__p_ofQuaternion, + _swigc__p_ofRectangle, + _swigc__p_ofResizeEventArgs, + _swigc__p_ofSerial, + _swigc__p_ofSerialDeviceInfo, + _swigc__p_ofShader, + _swigc__p_ofSoundDevice, + _swigc__p_ofSoundPlayer, + _swigc__p_ofSoundStream, + _swigc__p_ofSpherePrimitive, + _swigc__p_ofStyle, + _swigc__p_ofTTFCharacter, + _swigc__p_ofTexture, + _swigc__p_ofTextureData, + _swigc__p_ofTouchEventArgs, + _swigc__p_ofTrueTypeFont, + _swigc__p_ofURLFileLoader, + _swigc__p_ofUTF8Iterator, + _swigc__p_ofVbo, + _swigc__p_ofVboMesh, + _swigc__p_ofVec2f, + _swigc__p_ofVec3f, + _swigc__p_ofVec4f, + _swigc__p_ofVideoGrabber, + _swigc__p_ofVideoPlayer, + _swigc__p_ofWindowSettings, + _swigc__p_ofXml, + _swigc__p_p_PyObject, + _swigc__p_shared_ptrT_ofAppBaseWindow_t, + _swigc__p_shared_ptrT_ofAppGLFWWindow_t, + _swigc__p_shared_ptrT_ofBaseApp_t, + _swigc__p_shared_ptrT_ofBaseRenderer_t, + _swigc__p_shared_ptrT_ofBaseSoundPlayer_t, + _swigc__p_shared_ptrT_ofBaseSoundStream_t, + _swigc__p_shared_ptrT_ofBaseVideoGrabber_t, + _swigc__p_shared_ptrT_ofBaseVideoPlayer_t, + _swigc__p_shared_ptrT_ofMainLoop_t, + _swigc__p_size_type, + _swigc__p_std__allocatorT_float_t, + _swigc__p_std__allocatorT_int_t, + _swigc__p_std__allocatorT_std__string_t, + _swigc__p_std__invalid_argument, + _swigc__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, + _swigc__p_std__string, + _swigc__p_std__vectorT_float_std__allocatorT_float_t_t, + _swigc__p_std__vectorT_int_std__allocatorT_int_t_t, + _swigc__p_std__vectorT_ofColor_T_float_t_std__allocatorT_ofColor_T_float_t_t_t, + _swigc__p_std__vectorT_ofMeshFace_std__allocatorT_ofMeshFace_t_t, + _swigc__p_std__vectorT_ofPath__Command_std__allocatorT_ofPath__Command_t_t, + _swigc__p_std__vectorT_ofPolyline_std__allocatorT_ofPolyline_t_t, + _swigc__p_std__vectorT_ofSerialDeviceInfo_std__allocatorT_ofSerialDeviceInfo_t_t, + _swigc__p_std__vectorT_ofSoundDevice_std__allocatorT_ofSoundDevice_t_t, + _swigc__p_std__vectorT_ofTTFCharacter_std__allocatorT_ofTTFCharacter_t_t, + _swigc__p_std__vectorT_ofTexture_std__allocatorT_ofTexture_t_t, + _swigc__p_std__vectorT_ofVec2f_std__allocatorT_ofVec2f_t_t, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_iterator, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__const_reverse_iterator, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__iterator, + _swigc__p_std__vectorT_ofVec3f_std__allocatorT_ofVec3f_t_t__reverse_iterator, + _swigc__p_std__vectorT_ofVideoDevice_std__allocatorT_ofVideoDevice_t_t, + _swigc__p_std__vectorT_size_t_std__allocatorT_size_t_t_t, + _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, + _swigc__p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, + _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, + _swigc__p_std__vectorT_weak_ptrT_ofLight__Data_t_std__allocatorT_weak_ptrT_ofLight__Data_t_t_t, + _swigc__p_swig__SwigPyIterator, + _swigc__p_uint64_t, + _swigc__p_unsigned_char, + _swigc__p_unsigned_int, + _swigc__p_unsigned_short, + _swigc__p_utf8__iteratorT_std__string__const_iterator_t, + _swigc__p_utf8__iteratorT_std__string__const_reverse_iterator_t, + _swigc__p_value_type, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_const_info swig_const_table[] = { +{0, 0, 0, 0.0, 0, 0}}; + +#ifdef __cplusplus +} +#endif +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned statically to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int init; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + iter=module_head; + do { + if (iter==&swig_module) { + /* Our module is already in the list, so there's nothing more to do. */ + return; + } + iter=iter->next; + } while (iter!= module_head); + + /* otherwise we must add our module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpreters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" { +#endif + + /* Python-specific SWIG API */ +#define SWIG_newvarlink() SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) + + /* ----------------------------------------------------------------------------- + * global variable support code. + * ----------------------------------------------------------------------------- */ + + typedef struct swig_globalvar { + char *name; /* Name of global variable */ + PyObject *(*get_attr)(void); /* Return the current value */ + int (*set_attr)(PyObject *); /* Set the value */ + struct swig_globalvar *next; + } swig_globalvar; + + typedef struct swig_varlinkobject { + PyObject_HEAD + swig_globalvar *vars; + } swig_varlinkobject; + + SWIGINTERN PyObject * + swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_InternFromString(""); +#else + return PyString_FromString(""); +#endif + } + + SWIGINTERN PyObject * + swig_varlink_str(swig_varlinkobject *v) { +#if PY_VERSION_HEX >= 0x03000000 + PyObject *str = PyUnicode_InternFromString("("); + PyObject *tail; + PyObject *joined; + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + tail = PyUnicode_FromString(var->name); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + if (var->next) { + tail = PyUnicode_InternFromString(", "); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + } + } + tail = PyUnicode_InternFromString(")"); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; +#else + PyObject *str = PyString_FromString("("); + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + PyString_ConcatAndDel(&str,PyString_FromString(var->name)); + if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); + } + PyString_ConcatAndDel(&str,PyString_FromString(")")); +#endif + return str; + } + + SWIGINTERN int + swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { + char *tmp; + PyObject *str = swig_varlink_str(v); + fprintf(fp,"Swig global variables "); + fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(str); + return 0; + } + + SWIGINTERN void + swig_varlink_dealloc(swig_varlinkobject *v) { + swig_globalvar *var = v->vars; + while (var) { + swig_globalvar *n = var->next; + free(var->name); + free(var); + var = n; + } + } + + SWIGINTERN PyObject * + swig_varlink_getattr(swig_varlinkobject *v, char *n) { + PyObject *res = NULL; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->get_attr)(); + break; + } + var = var->next; + } + if (res == NULL && !PyErr_Occurred()) { + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); + } + return res; + } + + SWIGINTERN int + swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { + int res = 1; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->set_attr)(p); + break; + } + var = var->next; + } + if (res == 1 && !PyErr_Occurred()) { + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); + } + return res; + } + + SWIGINTERN PyTypeObject* + swig_varlink_type(void) { + static char varlink__doc__[] = "Swig var link object"; + static PyTypeObject varlink_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"swigvarlink", /* tp_name */ + sizeof(swig_varlinkobject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor) swig_varlink_dealloc, /* tp_dealloc */ + (printfunc) swig_varlink_print, /* tp_print */ + (getattrfunc) swig_varlink_getattr, /* tp_getattr */ + (setattrfunc) swig_varlink_setattr, /* tp_setattr */ + 0, /* tp_compare */ + (reprfunc) swig_varlink_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + (reprfunc) swig_varlink_str, /* tp_str */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + 0, /* tp_flags */ + varlink__doc__, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif +#ifdef COUNT_ALLOCS + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ +#endif + }; + varlink_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + varlink_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&varlink_type) < 0) + return NULL; +#endif + } + return &varlink_type; + } + + /* Create a variable linking object for use later */ + SWIGINTERN PyObject * + SWIG_Python_newvarlink(void) { + swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); + if (result) { + result->vars = 0; + } + return ((PyObject*) result); + } + + SWIGINTERN void + SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { + swig_varlinkobject *v = (swig_varlinkobject *) p; + swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); + if (gv) { + size_t size = strlen(name)+1; + gv->name = (char *)malloc(size); + if (gv->name) { + strncpy(gv->name,name,size); + gv->get_attr = get_attr; + gv->set_attr = set_attr; + gv->next = v->vars; + } + } + v->vars = gv; + } + + SWIGINTERN PyObject * + SWIG_globals(void) { + static PyObject *_SWIG_globals = 0; + if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); + return _SWIG_globals; + } + + /* ----------------------------------------------------------------------------- + * constants/methods manipulation + * ----------------------------------------------------------------------------- */ + + /* Install Constants */ + SWIGINTERN void + SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { + PyObject *obj = 0; + size_t i; + for (i = 0; constants[i].type; ++i) { + switch(constants[i].type) { + case SWIG_PY_POINTER: + obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); + break; + case SWIG_PY_BINARY: + obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); + break; + default: + obj = 0; + break; + } + if (obj) { + PyDict_SetItemString(d, constants[i].name, obj); + Py_DECREF(obj); + } + } + } + + /* -----------------------------------------------------------------------------*/ + /* Fix SwigMethods to carry the callback ptrs when needed */ + /* -----------------------------------------------------------------------------*/ + + SWIGINTERN void + SWIG_Python_FixMethods(PyMethodDef *methods, + swig_const_info *const_table, + swig_type_info **types, + swig_type_info **types_initial) { + size_t i; + for (i = 0; methods[i].ml_name; ++i) { + const char *c = methods[i].ml_doc; + if (!c) continue; + c = strstr(c, "swig_ptr: "); + if (c) { + int j; + swig_const_info *ci = 0; + const char *name = c + 10; + for (j = 0; const_table[j].type; ++j) { + if (strncmp(const_table[j].name, name, + strlen(const_table[j].name)) == 0) { + ci = &(const_table[j]); + break; + } + } + if (ci) { + void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; + if (ptr) { + size_t shift = (ci->ptype) - types; + swig_type_info *ty = types_initial[shift]; + size_t ldoc = (c - methods[i].ml_doc); + size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; + char *ndoc = (char*)malloc(ldoc + lptr + 10); + if (ndoc) { + char *buff = ndoc; + strncpy(buff, methods[i].ml_doc, ldoc); + buff += ldoc; + strncpy(buff, "swig_ptr: ", 10); + buff += 10; + SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); + methods[i].ml_doc = ndoc; + } + } + } + } + } + } + +#ifdef __cplusplus +} +#endif + +/* -----------------------------------------------------------------------------* + * Partial Init method + * -----------------------------------------------------------------------------*/ + +#ifdef __cplusplus +extern "C" +#endif + +SWIGEXPORT +#if PY_VERSION_HEX >= 0x03000000 +PyObject* +#else +void +#endif +SWIG_init(void) { + PyObject *m, *d, *md; +#if PY_VERSION_HEX >= 0x03000000 + static struct PyModuleDef SWIG_module = { +# if PY_VERSION_HEX >= 0x03020000 + PyModuleDef_HEAD_INIT, +# else + { + PyObject_HEAD_INIT(NULL) + NULL, /* m_init */ + 0, /* m_index */ + NULL, /* m_copy */ + }, +# endif + (char *) SWIG_name, + NULL, + -1, + SwigMethods, + NULL, + NULL, + NULL, + NULL + }; +#endif + +#if defined(SWIGPYTHON_BUILTIN) + static SwigPyClientData SwigPyObject_clientdata = { + 0, 0, 0, 0, 0, 0, 0 + }; + static PyGetSetDef this_getset_def = { + (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL + }; + static SwigPyGetSet thisown_getset_closure = { + (PyCFunction) SwigPyObject_own, + (PyCFunction) SwigPyObject_own + }; + static PyGetSetDef thisown_getset_def = { + (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure + }; + PyObject *metatype_args; + PyTypeObject *builtin_pytype; + int builtin_base_count; + swig_type_info *builtin_basetype; + PyObject *tuple; + PyGetSetDescrObject *static_getset; + PyTypeObject *metatype; + SwigPyClientData *cd; + PyObject *public_interface, *public_symbol; + PyObject *this_descr; + PyObject *thisown_descr; + PyObject *self = 0; + int i; + + (void)builtin_pytype; + (void)builtin_base_count; + (void)builtin_basetype; + (void)tuple; + (void)static_getset; + (void)self; + + /* metatype is used to implement static member variables. */ + metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); + assert(metatype_args); + metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL); + assert(metatype); + Py_DECREF(metatype_args); + metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; + assert(PyType_Ready(metatype) >= 0); +#endif + + /* Fix SwigMethods to carry the callback ptrs when needed */ + SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); + +#if PY_VERSION_HEX >= 0x03000000 + m = PyModule_Create(&SWIG_module); +#else + m = Py_InitModule((char *) SWIG_name, SwigMethods); +#endif + + md = d = PyModule_GetDict(m); + (void)md; + + SWIG_InitializeModule(0); + +#ifdef SWIGPYTHON_BUILTIN + SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); + assert(SwigPyObject_stype); + cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; + if (!cd) { + SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; + SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); + } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { + PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); +# if PY_VERSION_HEX >= 0x03000000 + return NULL; +# else + return; +# endif + } + + /* All objects have a 'this' attribute */ + this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); + (void)this_descr; + + /* All objects have a 'thisown' attribute */ + thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); + (void)thisown_descr; + + public_interface = PyList_New(0); + public_symbol = 0; + (void)public_symbol; + + PyDict_SetItemString(md, "__all__", public_interface); + Py_DECREF(public_interface); + for (i = 0; SwigMethods[i].ml_name != NULL; ++i) + SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); + for (i = 0; swig_const_table[i].name != 0; ++i) + SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); +#endif + + SWIG_InstallConstants(d,swig_const_table); + + PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_white",Swig_var_ofColor_white_get, Swig_var_ofColor_white_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_gray",Swig_var_ofColor_gray_get, Swig_var_ofColor_gray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_black",Swig_var_ofColor_black_get, Swig_var_ofColor_black_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_red",Swig_var_ofColor_red_get, Swig_var_ofColor_red_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_green",Swig_var_ofColor_green_get, Swig_var_ofColor_green_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_blue",Swig_var_ofColor_blue_get, Swig_var_ofColor_blue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_cyan",Swig_var_ofColor_cyan_get, Swig_var_ofColor_cyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_magenta",Swig_var_ofColor_magenta_get, Swig_var_ofColor_magenta_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_yellow",Swig_var_ofColor_yellow_get, Swig_var_ofColor_yellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_aliceBlue",Swig_var_ofColor_aliceBlue_get, Swig_var_ofColor_aliceBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_antiqueWhite",Swig_var_ofColor_antiqueWhite_get, Swig_var_ofColor_antiqueWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_aqua",Swig_var_ofColor_aqua_get, Swig_var_ofColor_aqua_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_aquamarine",Swig_var_ofColor_aquamarine_get, Swig_var_ofColor_aquamarine_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_azure",Swig_var_ofColor_azure_get, Swig_var_ofColor_azure_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_beige",Swig_var_ofColor_beige_get, Swig_var_ofColor_beige_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_bisque",Swig_var_ofColor_bisque_get, Swig_var_ofColor_bisque_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_blanchedAlmond",Swig_var_ofColor_blanchedAlmond_get, Swig_var_ofColor_blanchedAlmond_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_blueViolet",Swig_var_ofColor_blueViolet_get, Swig_var_ofColor_blueViolet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_brown",Swig_var_ofColor_brown_get, Swig_var_ofColor_brown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_burlyWood",Swig_var_ofColor_burlyWood_get, Swig_var_ofColor_burlyWood_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_cadetBlue",Swig_var_ofColor_cadetBlue_get, Swig_var_ofColor_cadetBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_chartreuse",Swig_var_ofColor_chartreuse_get, Swig_var_ofColor_chartreuse_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_chocolate",Swig_var_ofColor_chocolate_get, Swig_var_ofColor_chocolate_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_coral",Swig_var_ofColor_coral_get, Swig_var_ofColor_coral_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_cornflowerBlue",Swig_var_ofColor_cornflowerBlue_get, Swig_var_ofColor_cornflowerBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_cornsilk",Swig_var_ofColor_cornsilk_get, Swig_var_ofColor_cornsilk_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_crimson",Swig_var_ofColor_crimson_get, Swig_var_ofColor_crimson_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkBlue",Swig_var_ofColor_darkBlue_get, Swig_var_ofColor_darkBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkCyan",Swig_var_ofColor_darkCyan_get, Swig_var_ofColor_darkCyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkGoldenRod",Swig_var_ofColor_darkGoldenRod_get, Swig_var_ofColor_darkGoldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkGray",Swig_var_ofColor_darkGray_get, Swig_var_ofColor_darkGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkGrey",Swig_var_ofColor_darkGrey_get, Swig_var_ofColor_darkGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkGreen",Swig_var_ofColor_darkGreen_get, Swig_var_ofColor_darkGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkKhaki",Swig_var_ofColor_darkKhaki_get, Swig_var_ofColor_darkKhaki_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkMagenta",Swig_var_ofColor_darkMagenta_get, Swig_var_ofColor_darkMagenta_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkOliveGreen",Swig_var_ofColor_darkOliveGreen_get, Swig_var_ofColor_darkOliveGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkorange",Swig_var_ofColor_darkorange_get, Swig_var_ofColor_darkorange_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkOrchid",Swig_var_ofColor_darkOrchid_get, Swig_var_ofColor_darkOrchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkRed",Swig_var_ofColor_darkRed_get, Swig_var_ofColor_darkRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkSalmon",Swig_var_ofColor_darkSalmon_get, Swig_var_ofColor_darkSalmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkSeaGreen",Swig_var_ofColor_darkSeaGreen_get, Swig_var_ofColor_darkSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkSlateBlue",Swig_var_ofColor_darkSlateBlue_get, Swig_var_ofColor_darkSlateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkSlateGray",Swig_var_ofColor_darkSlateGray_get, Swig_var_ofColor_darkSlateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkSlateGrey",Swig_var_ofColor_darkSlateGrey_get, Swig_var_ofColor_darkSlateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkTurquoise",Swig_var_ofColor_darkTurquoise_get, Swig_var_ofColor_darkTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_darkViolet",Swig_var_ofColor_darkViolet_get, Swig_var_ofColor_darkViolet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_deepPink",Swig_var_ofColor_deepPink_get, Swig_var_ofColor_deepPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_deepSkyBlue",Swig_var_ofColor_deepSkyBlue_get, Swig_var_ofColor_deepSkyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_dimGray",Swig_var_ofColor_dimGray_get, Swig_var_ofColor_dimGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_dimGrey",Swig_var_ofColor_dimGrey_get, Swig_var_ofColor_dimGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_dodgerBlue",Swig_var_ofColor_dodgerBlue_get, Swig_var_ofColor_dodgerBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_fireBrick",Swig_var_ofColor_fireBrick_get, Swig_var_ofColor_fireBrick_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_floralWhite",Swig_var_ofColor_floralWhite_get, Swig_var_ofColor_floralWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_forestGreen",Swig_var_ofColor_forestGreen_get, Swig_var_ofColor_forestGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_fuchsia",Swig_var_ofColor_fuchsia_get, Swig_var_ofColor_fuchsia_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_gainsboro",Swig_var_ofColor_gainsboro_get, Swig_var_ofColor_gainsboro_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_ghostWhite",Swig_var_ofColor_ghostWhite_get, Swig_var_ofColor_ghostWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_gold",Swig_var_ofColor_gold_get, Swig_var_ofColor_gold_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_goldenRod",Swig_var_ofColor_goldenRod_get, Swig_var_ofColor_goldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_grey",Swig_var_ofColor_grey_get, Swig_var_ofColor_grey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_greenYellow",Swig_var_ofColor_greenYellow_get, Swig_var_ofColor_greenYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_honeyDew",Swig_var_ofColor_honeyDew_get, Swig_var_ofColor_honeyDew_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_hotPink",Swig_var_ofColor_hotPink_get, Swig_var_ofColor_hotPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_indianRed",Swig_var_ofColor_indianRed_get, Swig_var_ofColor_indianRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_indigo",Swig_var_ofColor_indigo_get, Swig_var_ofColor_indigo_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_ivory",Swig_var_ofColor_ivory_get, Swig_var_ofColor_ivory_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_khaki",Swig_var_ofColor_khaki_get, Swig_var_ofColor_khaki_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lavender",Swig_var_ofColor_lavender_get, Swig_var_ofColor_lavender_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lavenderBlush",Swig_var_ofColor_lavenderBlush_get, Swig_var_ofColor_lavenderBlush_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lawnGreen",Swig_var_ofColor_lawnGreen_get, Swig_var_ofColor_lawnGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lemonChiffon",Swig_var_ofColor_lemonChiffon_get, Swig_var_ofColor_lemonChiffon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightBlue",Swig_var_ofColor_lightBlue_get, Swig_var_ofColor_lightBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightCoral",Swig_var_ofColor_lightCoral_get, Swig_var_ofColor_lightCoral_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightCyan",Swig_var_ofColor_lightCyan_get, Swig_var_ofColor_lightCyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightGoldenRodYellow",Swig_var_ofColor_lightGoldenRodYellow_get, Swig_var_ofColor_lightGoldenRodYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightGray",Swig_var_ofColor_lightGray_get, Swig_var_ofColor_lightGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightGrey",Swig_var_ofColor_lightGrey_get, Swig_var_ofColor_lightGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightGreen",Swig_var_ofColor_lightGreen_get, Swig_var_ofColor_lightGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightPink",Swig_var_ofColor_lightPink_get, Swig_var_ofColor_lightPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightSalmon",Swig_var_ofColor_lightSalmon_get, Swig_var_ofColor_lightSalmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightSeaGreen",Swig_var_ofColor_lightSeaGreen_get, Swig_var_ofColor_lightSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightSkyBlue",Swig_var_ofColor_lightSkyBlue_get, Swig_var_ofColor_lightSkyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightSlateGray",Swig_var_ofColor_lightSlateGray_get, Swig_var_ofColor_lightSlateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightSlateGrey",Swig_var_ofColor_lightSlateGrey_get, Swig_var_ofColor_lightSlateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightSteelBlue",Swig_var_ofColor_lightSteelBlue_get, Swig_var_ofColor_lightSteelBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lightYellow",Swig_var_ofColor_lightYellow_get, Swig_var_ofColor_lightYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_lime",Swig_var_ofColor_lime_get, Swig_var_ofColor_lime_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_limeGreen",Swig_var_ofColor_limeGreen_get, Swig_var_ofColor_limeGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_linen",Swig_var_ofColor_linen_get, Swig_var_ofColor_linen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_maroon",Swig_var_ofColor_maroon_get, Swig_var_ofColor_maroon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumAquaMarine",Swig_var_ofColor_mediumAquaMarine_get, Swig_var_ofColor_mediumAquaMarine_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumBlue",Swig_var_ofColor_mediumBlue_get, Swig_var_ofColor_mediumBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumOrchid",Swig_var_ofColor_mediumOrchid_get, Swig_var_ofColor_mediumOrchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumPurple",Swig_var_ofColor_mediumPurple_get, Swig_var_ofColor_mediumPurple_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumSeaGreen",Swig_var_ofColor_mediumSeaGreen_get, Swig_var_ofColor_mediumSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumSlateBlue",Swig_var_ofColor_mediumSlateBlue_get, Swig_var_ofColor_mediumSlateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumSpringGreen",Swig_var_ofColor_mediumSpringGreen_get, Swig_var_ofColor_mediumSpringGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumTurquoise",Swig_var_ofColor_mediumTurquoise_get, Swig_var_ofColor_mediumTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mediumVioletRed",Swig_var_ofColor_mediumVioletRed_get, Swig_var_ofColor_mediumVioletRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_midnightBlue",Swig_var_ofColor_midnightBlue_get, Swig_var_ofColor_midnightBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mintCream",Swig_var_ofColor_mintCream_get, Swig_var_ofColor_mintCream_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_mistyRose",Swig_var_ofColor_mistyRose_get, Swig_var_ofColor_mistyRose_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_moccasin",Swig_var_ofColor_moccasin_get, Swig_var_ofColor_moccasin_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_navajoWhite",Swig_var_ofColor_navajoWhite_get, Swig_var_ofColor_navajoWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_navy",Swig_var_ofColor_navy_get, Swig_var_ofColor_navy_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_oldLace",Swig_var_ofColor_oldLace_get, Swig_var_ofColor_oldLace_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_olive",Swig_var_ofColor_olive_get, Swig_var_ofColor_olive_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_oliveDrab",Swig_var_ofColor_oliveDrab_get, Swig_var_ofColor_oliveDrab_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_orange",Swig_var_ofColor_orange_get, Swig_var_ofColor_orange_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_orangeRed",Swig_var_ofColor_orangeRed_get, Swig_var_ofColor_orangeRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_orchid",Swig_var_ofColor_orchid_get, Swig_var_ofColor_orchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_paleGoldenRod",Swig_var_ofColor_paleGoldenRod_get, Swig_var_ofColor_paleGoldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_paleGreen",Swig_var_ofColor_paleGreen_get, Swig_var_ofColor_paleGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_paleTurquoise",Swig_var_ofColor_paleTurquoise_get, Swig_var_ofColor_paleTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_paleVioletRed",Swig_var_ofColor_paleVioletRed_get, Swig_var_ofColor_paleVioletRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_papayaWhip",Swig_var_ofColor_papayaWhip_get, Swig_var_ofColor_papayaWhip_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_peachPuff",Swig_var_ofColor_peachPuff_get, Swig_var_ofColor_peachPuff_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_peru",Swig_var_ofColor_peru_get, Swig_var_ofColor_peru_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_pink",Swig_var_ofColor_pink_get, Swig_var_ofColor_pink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_plum",Swig_var_ofColor_plum_get, Swig_var_ofColor_plum_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_powderBlue",Swig_var_ofColor_powderBlue_get, Swig_var_ofColor_powderBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_purple",Swig_var_ofColor_purple_get, Swig_var_ofColor_purple_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_rosyBrown",Swig_var_ofColor_rosyBrown_get, Swig_var_ofColor_rosyBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_royalBlue",Swig_var_ofColor_royalBlue_get, Swig_var_ofColor_royalBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_saddleBrown",Swig_var_ofColor_saddleBrown_get, Swig_var_ofColor_saddleBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_salmon",Swig_var_ofColor_salmon_get, Swig_var_ofColor_salmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_sandyBrown",Swig_var_ofColor_sandyBrown_get, Swig_var_ofColor_sandyBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_seaGreen",Swig_var_ofColor_seaGreen_get, Swig_var_ofColor_seaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_seaShell",Swig_var_ofColor_seaShell_get, Swig_var_ofColor_seaShell_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_sienna",Swig_var_ofColor_sienna_get, Swig_var_ofColor_sienna_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_silver",Swig_var_ofColor_silver_get, Swig_var_ofColor_silver_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_skyBlue",Swig_var_ofColor_skyBlue_get, Swig_var_ofColor_skyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_slateBlue",Swig_var_ofColor_slateBlue_get, Swig_var_ofColor_slateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_slateGray",Swig_var_ofColor_slateGray_get, Swig_var_ofColor_slateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_slateGrey",Swig_var_ofColor_slateGrey_get, Swig_var_ofColor_slateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_snow",Swig_var_ofColor_snow_get, Swig_var_ofColor_snow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_springGreen",Swig_var_ofColor_springGreen_get, Swig_var_ofColor_springGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_steelBlue",Swig_var_ofColor_steelBlue_get, Swig_var_ofColor_steelBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_blueSteel",Swig_var_ofColor_blueSteel_get, Swig_var_ofColor_blueSteel_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_tan",Swig_var_ofColor_tan_get, Swig_var_ofColor_tan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_teal",Swig_var_ofColor_teal_get, Swig_var_ofColor_teal_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_thistle",Swig_var_ofColor_thistle_get, Swig_var_ofColor_thistle_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_tomato",Swig_var_ofColor_tomato_get, Swig_var_ofColor_tomato_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_turquoise",Swig_var_ofColor_turquoise_get, Swig_var_ofColor_turquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_violet",Swig_var_ofColor_violet_get, Swig_var_ofColor_violet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_wheat",Swig_var_ofColor_wheat_get, Swig_var_ofColor_wheat_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_whiteSmoke",Swig_var_ofColor_whiteSmoke_get, Swig_var_ofColor_whiteSmoke_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofColor_yellowGreen",Swig_var_ofColor_yellowGreen_get, Swig_var_ofColor_yellowGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_white",Swig_var_ofFloatColor_white_get, Swig_var_ofFloatColor_white_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_gray",Swig_var_ofFloatColor_gray_get, Swig_var_ofFloatColor_gray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_black",Swig_var_ofFloatColor_black_get, Swig_var_ofFloatColor_black_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_red",Swig_var_ofFloatColor_red_get, Swig_var_ofFloatColor_red_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_green",Swig_var_ofFloatColor_green_get, Swig_var_ofFloatColor_green_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_blue",Swig_var_ofFloatColor_blue_get, Swig_var_ofFloatColor_blue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_cyan",Swig_var_ofFloatColor_cyan_get, Swig_var_ofFloatColor_cyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_magenta",Swig_var_ofFloatColor_magenta_get, Swig_var_ofFloatColor_magenta_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_yellow",Swig_var_ofFloatColor_yellow_get, Swig_var_ofFloatColor_yellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_aliceBlue",Swig_var_ofFloatColor_aliceBlue_get, Swig_var_ofFloatColor_aliceBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_antiqueWhite",Swig_var_ofFloatColor_antiqueWhite_get, Swig_var_ofFloatColor_antiqueWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_aqua",Swig_var_ofFloatColor_aqua_get, Swig_var_ofFloatColor_aqua_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_aquamarine",Swig_var_ofFloatColor_aquamarine_get, Swig_var_ofFloatColor_aquamarine_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_azure",Swig_var_ofFloatColor_azure_get, Swig_var_ofFloatColor_azure_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_beige",Swig_var_ofFloatColor_beige_get, Swig_var_ofFloatColor_beige_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_bisque",Swig_var_ofFloatColor_bisque_get, Swig_var_ofFloatColor_bisque_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_blanchedAlmond",Swig_var_ofFloatColor_blanchedAlmond_get, Swig_var_ofFloatColor_blanchedAlmond_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_blueViolet",Swig_var_ofFloatColor_blueViolet_get, Swig_var_ofFloatColor_blueViolet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_brown",Swig_var_ofFloatColor_brown_get, Swig_var_ofFloatColor_brown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_burlyWood",Swig_var_ofFloatColor_burlyWood_get, Swig_var_ofFloatColor_burlyWood_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_cadetBlue",Swig_var_ofFloatColor_cadetBlue_get, Swig_var_ofFloatColor_cadetBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_chartreuse",Swig_var_ofFloatColor_chartreuse_get, Swig_var_ofFloatColor_chartreuse_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_chocolate",Swig_var_ofFloatColor_chocolate_get, Swig_var_ofFloatColor_chocolate_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_coral",Swig_var_ofFloatColor_coral_get, Swig_var_ofFloatColor_coral_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_cornflowerBlue",Swig_var_ofFloatColor_cornflowerBlue_get, Swig_var_ofFloatColor_cornflowerBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_cornsilk",Swig_var_ofFloatColor_cornsilk_get, Swig_var_ofFloatColor_cornsilk_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_crimson",Swig_var_ofFloatColor_crimson_get, Swig_var_ofFloatColor_crimson_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkBlue",Swig_var_ofFloatColor_darkBlue_get, Swig_var_ofFloatColor_darkBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkCyan",Swig_var_ofFloatColor_darkCyan_get, Swig_var_ofFloatColor_darkCyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkGoldenRod",Swig_var_ofFloatColor_darkGoldenRod_get, Swig_var_ofFloatColor_darkGoldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkGray",Swig_var_ofFloatColor_darkGray_get, Swig_var_ofFloatColor_darkGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkGrey",Swig_var_ofFloatColor_darkGrey_get, Swig_var_ofFloatColor_darkGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkGreen",Swig_var_ofFloatColor_darkGreen_get, Swig_var_ofFloatColor_darkGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkKhaki",Swig_var_ofFloatColor_darkKhaki_get, Swig_var_ofFloatColor_darkKhaki_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkMagenta",Swig_var_ofFloatColor_darkMagenta_get, Swig_var_ofFloatColor_darkMagenta_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkOliveGreen",Swig_var_ofFloatColor_darkOliveGreen_get, Swig_var_ofFloatColor_darkOliveGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkorange",Swig_var_ofFloatColor_darkorange_get, Swig_var_ofFloatColor_darkorange_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkOrchid",Swig_var_ofFloatColor_darkOrchid_get, Swig_var_ofFloatColor_darkOrchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkRed",Swig_var_ofFloatColor_darkRed_get, Swig_var_ofFloatColor_darkRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkSalmon",Swig_var_ofFloatColor_darkSalmon_get, Swig_var_ofFloatColor_darkSalmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkSeaGreen",Swig_var_ofFloatColor_darkSeaGreen_get, Swig_var_ofFloatColor_darkSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkSlateBlue",Swig_var_ofFloatColor_darkSlateBlue_get, Swig_var_ofFloatColor_darkSlateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkSlateGray",Swig_var_ofFloatColor_darkSlateGray_get, Swig_var_ofFloatColor_darkSlateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkSlateGrey",Swig_var_ofFloatColor_darkSlateGrey_get, Swig_var_ofFloatColor_darkSlateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkTurquoise",Swig_var_ofFloatColor_darkTurquoise_get, Swig_var_ofFloatColor_darkTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_darkViolet",Swig_var_ofFloatColor_darkViolet_get, Swig_var_ofFloatColor_darkViolet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_deepPink",Swig_var_ofFloatColor_deepPink_get, Swig_var_ofFloatColor_deepPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_deepSkyBlue",Swig_var_ofFloatColor_deepSkyBlue_get, Swig_var_ofFloatColor_deepSkyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_dimGray",Swig_var_ofFloatColor_dimGray_get, Swig_var_ofFloatColor_dimGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_dimGrey",Swig_var_ofFloatColor_dimGrey_get, Swig_var_ofFloatColor_dimGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_dodgerBlue",Swig_var_ofFloatColor_dodgerBlue_get, Swig_var_ofFloatColor_dodgerBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_fireBrick",Swig_var_ofFloatColor_fireBrick_get, Swig_var_ofFloatColor_fireBrick_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_floralWhite",Swig_var_ofFloatColor_floralWhite_get, Swig_var_ofFloatColor_floralWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_forestGreen",Swig_var_ofFloatColor_forestGreen_get, Swig_var_ofFloatColor_forestGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_fuchsia",Swig_var_ofFloatColor_fuchsia_get, Swig_var_ofFloatColor_fuchsia_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_gainsboro",Swig_var_ofFloatColor_gainsboro_get, Swig_var_ofFloatColor_gainsboro_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_ghostWhite",Swig_var_ofFloatColor_ghostWhite_get, Swig_var_ofFloatColor_ghostWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_gold",Swig_var_ofFloatColor_gold_get, Swig_var_ofFloatColor_gold_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_goldenRod",Swig_var_ofFloatColor_goldenRod_get, Swig_var_ofFloatColor_goldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_grey",Swig_var_ofFloatColor_grey_get, Swig_var_ofFloatColor_grey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_greenYellow",Swig_var_ofFloatColor_greenYellow_get, Swig_var_ofFloatColor_greenYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_honeyDew",Swig_var_ofFloatColor_honeyDew_get, Swig_var_ofFloatColor_honeyDew_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_hotPink",Swig_var_ofFloatColor_hotPink_get, Swig_var_ofFloatColor_hotPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_indianRed",Swig_var_ofFloatColor_indianRed_get, Swig_var_ofFloatColor_indianRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_indigo",Swig_var_ofFloatColor_indigo_get, Swig_var_ofFloatColor_indigo_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_ivory",Swig_var_ofFloatColor_ivory_get, Swig_var_ofFloatColor_ivory_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_khaki",Swig_var_ofFloatColor_khaki_get, Swig_var_ofFloatColor_khaki_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lavender",Swig_var_ofFloatColor_lavender_get, Swig_var_ofFloatColor_lavender_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lavenderBlush",Swig_var_ofFloatColor_lavenderBlush_get, Swig_var_ofFloatColor_lavenderBlush_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lawnGreen",Swig_var_ofFloatColor_lawnGreen_get, Swig_var_ofFloatColor_lawnGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lemonChiffon",Swig_var_ofFloatColor_lemonChiffon_get, Swig_var_ofFloatColor_lemonChiffon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightBlue",Swig_var_ofFloatColor_lightBlue_get, Swig_var_ofFloatColor_lightBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightCoral",Swig_var_ofFloatColor_lightCoral_get, Swig_var_ofFloatColor_lightCoral_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightCyan",Swig_var_ofFloatColor_lightCyan_get, Swig_var_ofFloatColor_lightCyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightGoldenRodYellow",Swig_var_ofFloatColor_lightGoldenRodYellow_get, Swig_var_ofFloatColor_lightGoldenRodYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightGray",Swig_var_ofFloatColor_lightGray_get, Swig_var_ofFloatColor_lightGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightGrey",Swig_var_ofFloatColor_lightGrey_get, Swig_var_ofFloatColor_lightGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightGreen",Swig_var_ofFloatColor_lightGreen_get, Swig_var_ofFloatColor_lightGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightPink",Swig_var_ofFloatColor_lightPink_get, Swig_var_ofFloatColor_lightPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightSalmon",Swig_var_ofFloatColor_lightSalmon_get, Swig_var_ofFloatColor_lightSalmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightSeaGreen",Swig_var_ofFloatColor_lightSeaGreen_get, Swig_var_ofFloatColor_lightSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightSkyBlue",Swig_var_ofFloatColor_lightSkyBlue_get, Swig_var_ofFloatColor_lightSkyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightSlateGray",Swig_var_ofFloatColor_lightSlateGray_get, Swig_var_ofFloatColor_lightSlateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightSlateGrey",Swig_var_ofFloatColor_lightSlateGrey_get, Swig_var_ofFloatColor_lightSlateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightSteelBlue",Swig_var_ofFloatColor_lightSteelBlue_get, Swig_var_ofFloatColor_lightSteelBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lightYellow",Swig_var_ofFloatColor_lightYellow_get, Swig_var_ofFloatColor_lightYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_lime",Swig_var_ofFloatColor_lime_get, Swig_var_ofFloatColor_lime_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_limeGreen",Swig_var_ofFloatColor_limeGreen_get, Swig_var_ofFloatColor_limeGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_linen",Swig_var_ofFloatColor_linen_get, Swig_var_ofFloatColor_linen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_maroon",Swig_var_ofFloatColor_maroon_get, Swig_var_ofFloatColor_maroon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumAquaMarine",Swig_var_ofFloatColor_mediumAquaMarine_get, Swig_var_ofFloatColor_mediumAquaMarine_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumBlue",Swig_var_ofFloatColor_mediumBlue_get, Swig_var_ofFloatColor_mediumBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumOrchid",Swig_var_ofFloatColor_mediumOrchid_get, Swig_var_ofFloatColor_mediumOrchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumPurple",Swig_var_ofFloatColor_mediumPurple_get, Swig_var_ofFloatColor_mediumPurple_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumSeaGreen",Swig_var_ofFloatColor_mediumSeaGreen_get, Swig_var_ofFloatColor_mediumSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumSlateBlue",Swig_var_ofFloatColor_mediumSlateBlue_get, Swig_var_ofFloatColor_mediumSlateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumSpringGreen",Swig_var_ofFloatColor_mediumSpringGreen_get, Swig_var_ofFloatColor_mediumSpringGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumTurquoise",Swig_var_ofFloatColor_mediumTurquoise_get, Swig_var_ofFloatColor_mediumTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mediumVioletRed",Swig_var_ofFloatColor_mediumVioletRed_get, Swig_var_ofFloatColor_mediumVioletRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_midnightBlue",Swig_var_ofFloatColor_midnightBlue_get, Swig_var_ofFloatColor_midnightBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mintCream",Swig_var_ofFloatColor_mintCream_get, Swig_var_ofFloatColor_mintCream_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_mistyRose",Swig_var_ofFloatColor_mistyRose_get, Swig_var_ofFloatColor_mistyRose_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_moccasin",Swig_var_ofFloatColor_moccasin_get, Swig_var_ofFloatColor_moccasin_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_navajoWhite",Swig_var_ofFloatColor_navajoWhite_get, Swig_var_ofFloatColor_navajoWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_navy",Swig_var_ofFloatColor_navy_get, Swig_var_ofFloatColor_navy_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_oldLace",Swig_var_ofFloatColor_oldLace_get, Swig_var_ofFloatColor_oldLace_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_olive",Swig_var_ofFloatColor_olive_get, Swig_var_ofFloatColor_olive_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_oliveDrab",Swig_var_ofFloatColor_oliveDrab_get, Swig_var_ofFloatColor_oliveDrab_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_orange",Swig_var_ofFloatColor_orange_get, Swig_var_ofFloatColor_orange_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_orangeRed",Swig_var_ofFloatColor_orangeRed_get, Swig_var_ofFloatColor_orangeRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_orchid",Swig_var_ofFloatColor_orchid_get, Swig_var_ofFloatColor_orchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_paleGoldenRod",Swig_var_ofFloatColor_paleGoldenRod_get, Swig_var_ofFloatColor_paleGoldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_paleGreen",Swig_var_ofFloatColor_paleGreen_get, Swig_var_ofFloatColor_paleGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_paleTurquoise",Swig_var_ofFloatColor_paleTurquoise_get, Swig_var_ofFloatColor_paleTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_paleVioletRed",Swig_var_ofFloatColor_paleVioletRed_get, Swig_var_ofFloatColor_paleVioletRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_papayaWhip",Swig_var_ofFloatColor_papayaWhip_get, Swig_var_ofFloatColor_papayaWhip_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_peachPuff",Swig_var_ofFloatColor_peachPuff_get, Swig_var_ofFloatColor_peachPuff_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_peru",Swig_var_ofFloatColor_peru_get, Swig_var_ofFloatColor_peru_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_pink",Swig_var_ofFloatColor_pink_get, Swig_var_ofFloatColor_pink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_plum",Swig_var_ofFloatColor_plum_get, Swig_var_ofFloatColor_plum_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_powderBlue",Swig_var_ofFloatColor_powderBlue_get, Swig_var_ofFloatColor_powderBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_purple",Swig_var_ofFloatColor_purple_get, Swig_var_ofFloatColor_purple_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_rosyBrown",Swig_var_ofFloatColor_rosyBrown_get, Swig_var_ofFloatColor_rosyBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_royalBlue",Swig_var_ofFloatColor_royalBlue_get, Swig_var_ofFloatColor_royalBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_saddleBrown",Swig_var_ofFloatColor_saddleBrown_get, Swig_var_ofFloatColor_saddleBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_salmon",Swig_var_ofFloatColor_salmon_get, Swig_var_ofFloatColor_salmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_sandyBrown",Swig_var_ofFloatColor_sandyBrown_get, Swig_var_ofFloatColor_sandyBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_seaGreen",Swig_var_ofFloatColor_seaGreen_get, Swig_var_ofFloatColor_seaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_seaShell",Swig_var_ofFloatColor_seaShell_get, Swig_var_ofFloatColor_seaShell_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_sienna",Swig_var_ofFloatColor_sienna_get, Swig_var_ofFloatColor_sienna_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_silver",Swig_var_ofFloatColor_silver_get, Swig_var_ofFloatColor_silver_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_skyBlue",Swig_var_ofFloatColor_skyBlue_get, Swig_var_ofFloatColor_skyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_slateBlue",Swig_var_ofFloatColor_slateBlue_get, Swig_var_ofFloatColor_slateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_slateGray",Swig_var_ofFloatColor_slateGray_get, Swig_var_ofFloatColor_slateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_slateGrey",Swig_var_ofFloatColor_slateGrey_get, Swig_var_ofFloatColor_slateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_snow",Swig_var_ofFloatColor_snow_get, Swig_var_ofFloatColor_snow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_springGreen",Swig_var_ofFloatColor_springGreen_get, Swig_var_ofFloatColor_springGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_steelBlue",Swig_var_ofFloatColor_steelBlue_get, Swig_var_ofFloatColor_steelBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_blueSteel",Swig_var_ofFloatColor_blueSteel_get, Swig_var_ofFloatColor_blueSteel_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_tan",Swig_var_ofFloatColor_tan_get, Swig_var_ofFloatColor_tan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_teal",Swig_var_ofFloatColor_teal_get, Swig_var_ofFloatColor_teal_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_thistle",Swig_var_ofFloatColor_thistle_get, Swig_var_ofFloatColor_thistle_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_tomato",Swig_var_ofFloatColor_tomato_get, Swig_var_ofFloatColor_tomato_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_turquoise",Swig_var_ofFloatColor_turquoise_get, Swig_var_ofFloatColor_turquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_violet",Swig_var_ofFloatColor_violet_get, Swig_var_ofFloatColor_violet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_wheat",Swig_var_ofFloatColor_wheat_get, Swig_var_ofFloatColor_wheat_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_whiteSmoke",Swig_var_ofFloatColor_whiteSmoke_get, Swig_var_ofFloatColor_whiteSmoke_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofFloatColor_yellowGreen",Swig_var_ofFloatColor_yellowGreen_get, Swig_var_ofFloatColor_yellowGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_white",Swig_var_ofShortColor_white_get, Swig_var_ofShortColor_white_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_gray",Swig_var_ofShortColor_gray_get, Swig_var_ofShortColor_gray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_black",Swig_var_ofShortColor_black_get, Swig_var_ofShortColor_black_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_red",Swig_var_ofShortColor_red_get, Swig_var_ofShortColor_red_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_green",Swig_var_ofShortColor_green_get, Swig_var_ofShortColor_green_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_blue",Swig_var_ofShortColor_blue_get, Swig_var_ofShortColor_blue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_cyan",Swig_var_ofShortColor_cyan_get, Swig_var_ofShortColor_cyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_magenta",Swig_var_ofShortColor_magenta_get, Swig_var_ofShortColor_magenta_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_yellow",Swig_var_ofShortColor_yellow_get, Swig_var_ofShortColor_yellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_aliceBlue",Swig_var_ofShortColor_aliceBlue_get, Swig_var_ofShortColor_aliceBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_antiqueWhite",Swig_var_ofShortColor_antiqueWhite_get, Swig_var_ofShortColor_antiqueWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_aqua",Swig_var_ofShortColor_aqua_get, Swig_var_ofShortColor_aqua_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_aquamarine",Swig_var_ofShortColor_aquamarine_get, Swig_var_ofShortColor_aquamarine_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_azure",Swig_var_ofShortColor_azure_get, Swig_var_ofShortColor_azure_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_beige",Swig_var_ofShortColor_beige_get, Swig_var_ofShortColor_beige_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_bisque",Swig_var_ofShortColor_bisque_get, Swig_var_ofShortColor_bisque_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_blanchedAlmond",Swig_var_ofShortColor_blanchedAlmond_get, Swig_var_ofShortColor_blanchedAlmond_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_blueViolet",Swig_var_ofShortColor_blueViolet_get, Swig_var_ofShortColor_blueViolet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_brown",Swig_var_ofShortColor_brown_get, Swig_var_ofShortColor_brown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_burlyWood",Swig_var_ofShortColor_burlyWood_get, Swig_var_ofShortColor_burlyWood_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_cadetBlue",Swig_var_ofShortColor_cadetBlue_get, Swig_var_ofShortColor_cadetBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_chartreuse",Swig_var_ofShortColor_chartreuse_get, Swig_var_ofShortColor_chartreuse_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_chocolate",Swig_var_ofShortColor_chocolate_get, Swig_var_ofShortColor_chocolate_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_coral",Swig_var_ofShortColor_coral_get, Swig_var_ofShortColor_coral_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_cornflowerBlue",Swig_var_ofShortColor_cornflowerBlue_get, Swig_var_ofShortColor_cornflowerBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_cornsilk",Swig_var_ofShortColor_cornsilk_get, Swig_var_ofShortColor_cornsilk_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_crimson",Swig_var_ofShortColor_crimson_get, Swig_var_ofShortColor_crimson_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkBlue",Swig_var_ofShortColor_darkBlue_get, Swig_var_ofShortColor_darkBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkCyan",Swig_var_ofShortColor_darkCyan_get, Swig_var_ofShortColor_darkCyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkGoldenRod",Swig_var_ofShortColor_darkGoldenRod_get, Swig_var_ofShortColor_darkGoldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkGray",Swig_var_ofShortColor_darkGray_get, Swig_var_ofShortColor_darkGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkGrey",Swig_var_ofShortColor_darkGrey_get, Swig_var_ofShortColor_darkGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkGreen",Swig_var_ofShortColor_darkGreen_get, Swig_var_ofShortColor_darkGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkKhaki",Swig_var_ofShortColor_darkKhaki_get, Swig_var_ofShortColor_darkKhaki_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkMagenta",Swig_var_ofShortColor_darkMagenta_get, Swig_var_ofShortColor_darkMagenta_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkOliveGreen",Swig_var_ofShortColor_darkOliveGreen_get, Swig_var_ofShortColor_darkOliveGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkorange",Swig_var_ofShortColor_darkorange_get, Swig_var_ofShortColor_darkorange_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkOrchid",Swig_var_ofShortColor_darkOrchid_get, Swig_var_ofShortColor_darkOrchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkRed",Swig_var_ofShortColor_darkRed_get, Swig_var_ofShortColor_darkRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkSalmon",Swig_var_ofShortColor_darkSalmon_get, Swig_var_ofShortColor_darkSalmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkSeaGreen",Swig_var_ofShortColor_darkSeaGreen_get, Swig_var_ofShortColor_darkSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkSlateBlue",Swig_var_ofShortColor_darkSlateBlue_get, Swig_var_ofShortColor_darkSlateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkSlateGray",Swig_var_ofShortColor_darkSlateGray_get, Swig_var_ofShortColor_darkSlateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkSlateGrey",Swig_var_ofShortColor_darkSlateGrey_get, Swig_var_ofShortColor_darkSlateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkTurquoise",Swig_var_ofShortColor_darkTurquoise_get, Swig_var_ofShortColor_darkTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_darkViolet",Swig_var_ofShortColor_darkViolet_get, Swig_var_ofShortColor_darkViolet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_deepPink",Swig_var_ofShortColor_deepPink_get, Swig_var_ofShortColor_deepPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_deepSkyBlue",Swig_var_ofShortColor_deepSkyBlue_get, Swig_var_ofShortColor_deepSkyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_dimGray",Swig_var_ofShortColor_dimGray_get, Swig_var_ofShortColor_dimGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_dimGrey",Swig_var_ofShortColor_dimGrey_get, Swig_var_ofShortColor_dimGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_dodgerBlue",Swig_var_ofShortColor_dodgerBlue_get, Swig_var_ofShortColor_dodgerBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_fireBrick",Swig_var_ofShortColor_fireBrick_get, Swig_var_ofShortColor_fireBrick_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_floralWhite",Swig_var_ofShortColor_floralWhite_get, Swig_var_ofShortColor_floralWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_forestGreen",Swig_var_ofShortColor_forestGreen_get, Swig_var_ofShortColor_forestGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_fuchsia",Swig_var_ofShortColor_fuchsia_get, Swig_var_ofShortColor_fuchsia_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_gainsboro",Swig_var_ofShortColor_gainsboro_get, Swig_var_ofShortColor_gainsboro_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_ghostWhite",Swig_var_ofShortColor_ghostWhite_get, Swig_var_ofShortColor_ghostWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_gold",Swig_var_ofShortColor_gold_get, Swig_var_ofShortColor_gold_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_goldenRod",Swig_var_ofShortColor_goldenRod_get, Swig_var_ofShortColor_goldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_grey",Swig_var_ofShortColor_grey_get, Swig_var_ofShortColor_grey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_greenYellow",Swig_var_ofShortColor_greenYellow_get, Swig_var_ofShortColor_greenYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_honeyDew",Swig_var_ofShortColor_honeyDew_get, Swig_var_ofShortColor_honeyDew_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_hotPink",Swig_var_ofShortColor_hotPink_get, Swig_var_ofShortColor_hotPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_indianRed",Swig_var_ofShortColor_indianRed_get, Swig_var_ofShortColor_indianRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_indigo",Swig_var_ofShortColor_indigo_get, Swig_var_ofShortColor_indigo_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_ivory",Swig_var_ofShortColor_ivory_get, Swig_var_ofShortColor_ivory_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_khaki",Swig_var_ofShortColor_khaki_get, Swig_var_ofShortColor_khaki_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lavender",Swig_var_ofShortColor_lavender_get, Swig_var_ofShortColor_lavender_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lavenderBlush",Swig_var_ofShortColor_lavenderBlush_get, Swig_var_ofShortColor_lavenderBlush_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lawnGreen",Swig_var_ofShortColor_lawnGreen_get, Swig_var_ofShortColor_lawnGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lemonChiffon",Swig_var_ofShortColor_lemonChiffon_get, Swig_var_ofShortColor_lemonChiffon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightBlue",Swig_var_ofShortColor_lightBlue_get, Swig_var_ofShortColor_lightBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightCoral",Swig_var_ofShortColor_lightCoral_get, Swig_var_ofShortColor_lightCoral_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightCyan",Swig_var_ofShortColor_lightCyan_get, Swig_var_ofShortColor_lightCyan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightGoldenRodYellow",Swig_var_ofShortColor_lightGoldenRodYellow_get, Swig_var_ofShortColor_lightGoldenRodYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightGray",Swig_var_ofShortColor_lightGray_get, Swig_var_ofShortColor_lightGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightGrey",Swig_var_ofShortColor_lightGrey_get, Swig_var_ofShortColor_lightGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightGreen",Swig_var_ofShortColor_lightGreen_get, Swig_var_ofShortColor_lightGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightPink",Swig_var_ofShortColor_lightPink_get, Swig_var_ofShortColor_lightPink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightSalmon",Swig_var_ofShortColor_lightSalmon_get, Swig_var_ofShortColor_lightSalmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightSeaGreen",Swig_var_ofShortColor_lightSeaGreen_get, Swig_var_ofShortColor_lightSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightSkyBlue",Swig_var_ofShortColor_lightSkyBlue_get, Swig_var_ofShortColor_lightSkyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightSlateGray",Swig_var_ofShortColor_lightSlateGray_get, Swig_var_ofShortColor_lightSlateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightSlateGrey",Swig_var_ofShortColor_lightSlateGrey_get, Swig_var_ofShortColor_lightSlateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightSteelBlue",Swig_var_ofShortColor_lightSteelBlue_get, Swig_var_ofShortColor_lightSteelBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lightYellow",Swig_var_ofShortColor_lightYellow_get, Swig_var_ofShortColor_lightYellow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_lime",Swig_var_ofShortColor_lime_get, Swig_var_ofShortColor_lime_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_limeGreen",Swig_var_ofShortColor_limeGreen_get, Swig_var_ofShortColor_limeGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_linen",Swig_var_ofShortColor_linen_get, Swig_var_ofShortColor_linen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_maroon",Swig_var_ofShortColor_maroon_get, Swig_var_ofShortColor_maroon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumAquaMarine",Swig_var_ofShortColor_mediumAquaMarine_get, Swig_var_ofShortColor_mediumAquaMarine_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumBlue",Swig_var_ofShortColor_mediumBlue_get, Swig_var_ofShortColor_mediumBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumOrchid",Swig_var_ofShortColor_mediumOrchid_get, Swig_var_ofShortColor_mediumOrchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumPurple",Swig_var_ofShortColor_mediumPurple_get, Swig_var_ofShortColor_mediumPurple_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumSeaGreen",Swig_var_ofShortColor_mediumSeaGreen_get, Swig_var_ofShortColor_mediumSeaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumSlateBlue",Swig_var_ofShortColor_mediumSlateBlue_get, Swig_var_ofShortColor_mediumSlateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumSpringGreen",Swig_var_ofShortColor_mediumSpringGreen_get, Swig_var_ofShortColor_mediumSpringGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumTurquoise",Swig_var_ofShortColor_mediumTurquoise_get, Swig_var_ofShortColor_mediumTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mediumVioletRed",Swig_var_ofShortColor_mediumVioletRed_get, Swig_var_ofShortColor_mediumVioletRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_midnightBlue",Swig_var_ofShortColor_midnightBlue_get, Swig_var_ofShortColor_midnightBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mintCream",Swig_var_ofShortColor_mintCream_get, Swig_var_ofShortColor_mintCream_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_mistyRose",Swig_var_ofShortColor_mistyRose_get, Swig_var_ofShortColor_mistyRose_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_moccasin",Swig_var_ofShortColor_moccasin_get, Swig_var_ofShortColor_moccasin_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_navajoWhite",Swig_var_ofShortColor_navajoWhite_get, Swig_var_ofShortColor_navajoWhite_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_navy",Swig_var_ofShortColor_navy_get, Swig_var_ofShortColor_navy_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_oldLace",Swig_var_ofShortColor_oldLace_get, Swig_var_ofShortColor_oldLace_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_olive",Swig_var_ofShortColor_olive_get, Swig_var_ofShortColor_olive_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_oliveDrab",Swig_var_ofShortColor_oliveDrab_get, Swig_var_ofShortColor_oliveDrab_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_orange",Swig_var_ofShortColor_orange_get, Swig_var_ofShortColor_orange_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_orangeRed",Swig_var_ofShortColor_orangeRed_get, Swig_var_ofShortColor_orangeRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_orchid",Swig_var_ofShortColor_orchid_get, Swig_var_ofShortColor_orchid_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_paleGoldenRod",Swig_var_ofShortColor_paleGoldenRod_get, Swig_var_ofShortColor_paleGoldenRod_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_paleGreen",Swig_var_ofShortColor_paleGreen_get, Swig_var_ofShortColor_paleGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_paleTurquoise",Swig_var_ofShortColor_paleTurquoise_get, Swig_var_ofShortColor_paleTurquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_paleVioletRed",Swig_var_ofShortColor_paleVioletRed_get, Swig_var_ofShortColor_paleVioletRed_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_papayaWhip",Swig_var_ofShortColor_papayaWhip_get, Swig_var_ofShortColor_papayaWhip_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_peachPuff",Swig_var_ofShortColor_peachPuff_get, Swig_var_ofShortColor_peachPuff_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_peru",Swig_var_ofShortColor_peru_get, Swig_var_ofShortColor_peru_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_pink",Swig_var_ofShortColor_pink_get, Swig_var_ofShortColor_pink_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_plum",Swig_var_ofShortColor_plum_get, Swig_var_ofShortColor_plum_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_powderBlue",Swig_var_ofShortColor_powderBlue_get, Swig_var_ofShortColor_powderBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_purple",Swig_var_ofShortColor_purple_get, Swig_var_ofShortColor_purple_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_rosyBrown",Swig_var_ofShortColor_rosyBrown_get, Swig_var_ofShortColor_rosyBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_royalBlue",Swig_var_ofShortColor_royalBlue_get, Swig_var_ofShortColor_royalBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_saddleBrown",Swig_var_ofShortColor_saddleBrown_get, Swig_var_ofShortColor_saddleBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_salmon",Swig_var_ofShortColor_salmon_get, Swig_var_ofShortColor_salmon_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_sandyBrown",Swig_var_ofShortColor_sandyBrown_get, Swig_var_ofShortColor_sandyBrown_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_seaGreen",Swig_var_ofShortColor_seaGreen_get, Swig_var_ofShortColor_seaGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_seaShell",Swig_var_ofShortColor_seaShell_get, Swig_var_ofShortColor_seaShell_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_sienna",Swig_var_ofShortColor_sienna_get, Swig_var_ofShortColor_sienna_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_silver",Swig_var_ofShortColor_silver_get, Swig_var_ofShortColor_silver_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_skyBlue",Swig_var_ofShortColor_skyBlue_get, Swig_var_ofShortColor_skyBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_slateBlue",Swig_var_ofShortColor_slateBlue_get, Swig_var_ofShortColor_slateBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_slateGray",Swig_var_ofShortColor_slateGray_get, Swig_var_ofShortColor_slateGray_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_slateGrey",Swig_var_ofShortColor_slateGrey_get, Swig_var_ofShortColor_slateGrey_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_snow",Swig_var_ofShortColor_snow_get, Swig_var_ofShortColor_snow_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_springGreen",Swig_var_ofShortColor_springGreen_get, Swig_var_ofShortColor_springGreen_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_steelBlue",Swig_var_ofShortColor_steelBlue_get, Swig_var_ofShortColor_steelBlue_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_blueSteel",Swig_var_ofShortColor_blueSteel_get, Swig_var_ofShortColor_blueSteel_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_tan",Swig_var_ofShortColor_tan_get, Swig_var_ofShortColor_tan_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_teal",Swig_var_ofShortColor_teal_get, Swig_var_ofShortColor_teal_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_thistle",Swig_var_ofShortColor_thistle_get, Swig_var_ofShortColor_thistle_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_tomato",Swig_var_ofShortColor_tomato_get, Swig_var_ofShortColor_tomato_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_turquoise",Swig_var_ofShortColor_turquoise_get, Swig_var_ofShortColor_turquoise_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_violet",Swig_var_ofShortColor_violet_get, Swig_var_ofShortColor_violet_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_wheat",Swig_var_ofShortColor_wheat_get, Swig_var_ofShortColor_wheat_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_whiteSmoke",Swig_var_ofShortColor_whiteSmoke_get, Swig_var_ofShortColor_whiteSmoke_set); + SWIG_addvarlink(SWIG_globals(),(char*)"ofShortColor_yellowGreen",Swig_var_ofShortColor_yellowGreen_get, Swig_var_ofShortColor_yellowGreen_set); + SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_FRONT",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_FRONT))); + SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_RIGHT",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_RIGHT))); + SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_LEFT",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_LEFT))); + SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_BACK",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_BACK))); + SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_TOP",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_TOP))); + SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDE_BOTTOM",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDE_BOTTOM))); + SWIG_Python_SetConstant(d, "ofBoxPrimitive_SIDES_TOTAL",SWIG_From_int(static_cast< int >(ofBoxPrimitive::SIDES_TOTAL))); + SWIG_Python_SetConstant(d, "ofShader_POSITION_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::POSITION_ATTRIBUTE))); + SWIG_Python_SetConstant(d, "ofShader_COLOR_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::COLOR_ATTRIBUTE))); + SWIG_Python_SetConstant(d, "ofShader_NORMAL_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::NORMAL_ATTRIBUTE))); + SWIG_Python_SetConstant(d, "ofShader_TEXCOORD_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::TEXCOORD_ATTRIBUTE))); + SWIG_Python_SetConstant(d, "ofShader_INDEX_ATTRIBUTE",SWIG_From_int(static_cast< int >(ofShader::INDEX_ATTRIBUTE))); + SWIG_Python_SetConstant(d, "ofPath_COMMANDS",SWIG_From_int(static_cast< int >(ofPath::COMMANDS))); + SWIG_Python_SetConstant(d, "ofPath_POLYLINES",SWIG_From_int(static_cast< int >(ofPath::POLYLINES))); + SWIG_Python_SetConstant(d, "ofVec2f_DIM",SWIG_From_int(static_cast< int >(ofVec2f::DIM))); + SWIG_Python_SetConstant(d, "ofVec3f_DIM",SWIG_From_int(static_cast< int >(ofVec3f::DIM))); + SWIG_Python_SetConstant(d, "ofVec4f_DIM",SWIG_From_int(static_cast< int >(ofVec4f::DIM))); + SWIG_Python_SetConstant(d, "ofTouchEventArgs_down",SWIG_From_int(static_cast< int >(ofTouchEventArgs::down))); + SWIG_Python_SetConstant(d, "ofTouchEventArgs_up",SWIG_From_int(static_cast< int >(ofTouchEventArgs::up))); + SWIG_Python_SetConstant(d, "ofTouchEventArgs_move",SWIG_From_int(static_cast< int >(ofTouchEventArgs::move))); + SWIG_Python_SetConstant(d, "ofTouchEventArgs_doubleTap",SWIG_From_int(static_cast< int >(ofTouchEventArgs::doubleTap))); + SWIG_Python_SetConstant(d, "ofTouchEventArgs_cancel",SWIG_From_int(static_cast< int >(ofTouchEventArgs::cancel))); +#if PY_VERSION_HEX >= 0x03000000 + return m; +#else + return; +#endif +} + diff --git a/src/bindings/openFrameworks_extra_wrap.cpp b/src/bindings/openFrameworks_extra_wrap.cpp index 6f6a31e..6d6e4be 100644 --- a/src/bindings/openFrameworks_extra_wrap.cpp +++ b/src/bindings/openFrameworks_extra_wrap.cpp @@ -1,11 +1,11 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * This file is not intended to be easily readable and contains a number of + * Version 3.0.8 + * + * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. * ----------------------------------------------------------------------------- */ #if defined( __WIN32__ ) || defined( _WIN32 ) @@ -13,7 +13,11 @@ #endif + +#ifndef SWIGPYTHON #define SWIGPYTHON +#endif + #define SWIG_PYTHON_DIRECTOR_NO_VTABLE @@ -71,28 +75,28 @@ template T SwigValueInit() { #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else -# define SWIGUNUSED +# define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif +# endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif @@ -135,7 +139,7 @@ template T SwigValueInit() { # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL -# endif +# endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ @@ -148,10 +152,29 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif -/* Python.h has to appear first */ -#include + +#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) +/* Use debug wrappers with the Python release dll */ +# undef _DEBUG +# include +# define _DEBUG +#else +# include +#endif /* ----------------------------------------------------------------------------- * swigrun.swg @@ -177,7 +200,7 @@ template T SwigValueInit() { You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. - + But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ @@ -203,16 +226,16 @@ template T SwigValueInit() { #define SWIG_POINTER_OWN 0x1 -/* +/* Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer + + The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). - + Use the following macros/flags to set or process the returning states. - + In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { @@ -245,23 +268,23 @@ template T SwigValueInit() { } else { // fail code } - + I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be @@ -275,17 +298,17 @@ template T SwigValueInit() { int fooi(int); and you call - + food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ -#define SWIG_OK (0) +#define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) @@ -316,14 +339,14 @@ template T SwigValueInit() { # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { +SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ -# define SWIG_AddCast +# define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif @@ -367,7 +390,7 @@ typedef struct swig_module_info { void *clientdata; /* Language specific module data */ } swig_module_info; -/* +/* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. @@ -387,18 +410,18 @@ SWIG_TypeNameComp(const char *f1, const char *l1, /* Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal + Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - int equiv = 0; +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; - while (!equiv && *ne) { + while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; @@ -406,24 +429,13 @@ SWIG_TypeEquiv(const char *nb, const char *tb) { /* Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb + Return 0 if not equal, 1 if equal */ SWIGRUNTIME int -SWIG_TypeCompare(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; +SWIG_TypeEquiv(const char *nb, const char *tb) { + return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } - /* Check the typename */ @@ -451,7 +463,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) { return 0; } -/* +/* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * @@ -486,7 +498,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } -/* +/* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * @@ -530,7 +542,7 @@ SWIG_TypePrettyName(const swig_type_info *type) { return type->name; } -/* +/* Set the clientdata field for a type */ SWIGRUNTIME void @@ -538,14 +550,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; - + while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } - } + } cast = cast->next; } } @@ -554,31 +566,31 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } - + /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { + int compare = strcmp(name, iname); + if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { @@ -603,14 +615,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); @@ -621,7 +633,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -629,56 +641,56 @@ SWIG_TypeQueryModule(swig_module_info *start, iter = iter->next; } while (iter != end); } - + /* neither found a match */ return 0; } -/* +/* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } -/* +/* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); - else + else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); - else + else return (char *) 0; *u = uu; } return c; } -/* +/* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * @@ -738,18 +750,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #endif /* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 +#define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 @@ -931,6 +943,10 @@ static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) } #endif +#if PY_VERSION_HEX < 0x02050000 +#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) +#endif + #if PY_VERSION_HEX < 0x02040000 #define Py_VISIT(op) \ do { \ @@ -1202,7 +1218,7 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), /* Runtime API */ -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule() +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) @@ -1318,7 +1334,7 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { /* Unpack the argument tuple */ -SWIGINTERN int +SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { @@ -1332,7 +1348,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { - register int i; + Py_ssize_t i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; @@ -1342,7 +1358,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); + Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); @@ -1352,7 +1368,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { - register int i; + Py_ssize_t i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } @@ -1538,6 +1554,23 @@ typedef struct { #endif } SwigPyObject; + +#ifdef SWIGPYTHON_BUILTIN + +SWIGRUNTIME PyObject * +SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) +{ + SwigPyObject *sobj = (SwigPyObject *)v; + + if (!sobj->dict) + sobj->dict = PyDict_New(); + + Py_INCREF(sobj->dict); + return sobj->dict; +} + +#endif + SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { @@ -1605,34 +1638,6 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args) return repr; } -SWIGRUNTIME int -SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char *str; -#ifdef METH_NOARGS - PyObject *repr = SwigPyObject_repr(v); -#else - PyObject *repr = SwigPyObject_repr(v, NULL); -#endif - if (repr) { - str = SWIG_Python_str_AsChar(repr); - fputs(str, fp); - SWIG_Python_str_DelForPy3(str); - Py_DECREF(repr); - return 0; - } else { - return 1; - } -} - -SWIGRUNTIME PyObject * -SwigPyObject_str(SwigPyObject *v) -{ - char result[SWIG_BUFFER_SIZE]; - return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? - SWIG_Python_str_FromChar(result) : 0; -} - SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { @@ -1704,16 +1709,32 @@ SwigPyObject_dealloc(PyObject *v) if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; + + /* PyObject_CallFunction() has the potential to silently drop + the active active exception. In cases of unnamed temporary + variable or where we just finished iterating over a generator + StopIteration will be active right now, and this needs to + remain true upon return from SwigPyObject_dealloc. So save + and restore. */ + + PyObject *val = NULL, *type = NULL, *tb = NULL; + PyErr_Fetch(&val, &type, &tb); + if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); } + if (!res) + PyErr_WriteUnraisable(destroy); + + PyErr_Restore(val, type, tb); + Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) @@ -1737,6 +1758,7 @@ SwigPyObject_append(PyObject* v, PyObject* next) next = tmp; #endif if (!SwigPyObject_Check(next)) { + PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); return NULL; } sobj->next = next; @@ -1825,7 +1847,7 @@ SwigPyObject_own(PyObject *v, PyObject *args) static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, @@ -1836,7 +1858,7 @@ swigobject_methods[] = { static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, @@ -1892,7 +1914,9 @@ SwigPyObject_TypeOnce(void) { (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ +#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ +#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ @@ -1918,7 +1942,7 @@ SwigPyObject_TypeOnce(void) { sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - (printfunc)SwigPyObject_print, /* tp_print */ + 0, /* tp_print */ #if PY_VERSION_HEX < 0x02020000 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ #else @@ -1936,7 +1960,7 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyObject_str, /* tp_str */ + 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ @@ -1972,10 +1996,19 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpyobject_type = tmp; @@ -2151,10 +2184,19 @@ SwigPyPacked_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpypacked_type = tmp; @@ -2313,10 +2355,11 @@ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; + int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; if (!obj) return SWIG_ERROR; - if (obj == Py_None) { + if (obj == Py_None && !implicit_conv) { if (ptr) *ptr = 0; return SWIG_OK; @@ -2365,7 +2408,7 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } res = SWIG_OK; } else { - if (flags & SWIG_POINTER_IMPLICIT_CONV) { + if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; @@ -2400,6 +2443,13 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } } } + if (!SWIG_IsOK(res) && obj == Py_None) { + if (ptr) + *ptr = 0; + if (PyErr_Occurred()) + PyErr_Clear(); + res = SWIG_OK; + } } return res; } @@ -2487,24 +2537,30 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) } } else { #if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + if (inst) { + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + } #else PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } #endif } return inst; #else #if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst; + PyObject *inst = 0; PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } return (PyObject *) inst; #else PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); @@ -2591,18 +2647,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif return (PyObject*) newobj; } return SWIG_Py_Void(); @@ -2611,12 +2670,10 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); - if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - if (inst) { - Py_DECREF(robj); - robj = inst; - } + Py_DECREF(robj); + robj = inst; } return robj; } @@ -2637,7 +2694,7 @@ void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void) { +SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { @@ -2667,13 +2724,11 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o) { PyObject *dict; if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); return SWIG_ERROR; } if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); return SWIG_ERROR; } @@ -2763,7 +2818,7 @@ SWIG_Python_TypeQuery(const char *type) descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); #endif } else { - swig_module_info *swig_module = SWIG_Python_GetModule(); + swig_module_info *swig_module = SWIG_GetModule(0); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { #ifdef SWIGPY_USE_CAPSULE @@ -2895,7 +2950,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyObject *descr; PyObject *encoded_name; descrsetfunc f; - int res; + int res = -1; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { @@ -2918,7 +2973,6 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { goto done; } - res = -1; descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) @@ -2984,7 +3038,7 @@ static swig_module_info swig_module = {swig_types, 2, 0, 0, 0, 0}; #endif #define SWIG_name "_openframeworks_extra" -#define SWIGVERSION 0x020007 +#define SWIGVERSION 0x030008 #define SWIG_VERSION SWIGVERSION @@ -3007,27 +3061,35 @@ namespace swig { SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; } SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) { if (initial_ref) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; } } SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(item._obj); Py_XDECREF(_obj); _obj = item._obj; + SWIG_PYTHON_THREAD_END_BLOCK; return *this; } ~SwigPtr_PyObject() { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XDECREF(_obj); + SWIG_PYTHON_THREAD_END_BLOCK; } operator PyObject *() const @@ -3149,18 +3211,18 @@ static swig_const_info swig_const_table[] = { #endif /* ----------------------------------------------------------------------------- * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * - * The generated swig_type_info structures are assigned staticly to an initial + * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the @@ -3170,17 +3232,17 @@ static swig_const_info swig_const_table[] = { * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it + * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * - * First off, we lookup the cast->type name to see if it is already loaded. + * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the + * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that @@ -3204,9 +3266,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; - - clientdata = clientdata; + int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { @@ -3225,27 +3285,23 @@ SWIG_InitializeModule(void *clientdata) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } - /* When multiple interpeters are used, a module could have already been initialized in + /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ @@ -3492,7 +3548,7 @@ extern "C" { var = var->next; } if (res == NULL && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } @@ -3509,7 +3565,7 @@ extern "C" { var = var->next; } if (res == 1 && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } @@ -3559,10 +3615,19 @@ extern "C" { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; varlink_type = tmp; @@ -3651,7 +3716,9 @@ extern "C" { size_t i; for (i = 0; methods[i].ml_name; ++i) { const char *c = methods[i].ml_doc; - if (c && (c = strstr(c, "swig_ptr: "))) { + if (!c) continue; + c = strstr(c, "swig_ptr: "); + if (c) { int j; swig_const_info *ci = 0; const char *name = c + 10; @@ -3753,6 +3820,7 @@ SWIG_init(void) { PyObject *public_interface, *public_symbol; PyObject *this_descr; PyObject *thisown_descr; + PyObject *self = 0; int i; (void)builtin_pytype; @@ -3760,6 +3828,7 @@ SWIG_init(void) { (void)builtin_basetype; (void)tuple; (void)static_getset; + (void)self; /* metatype is used to implement static member variables. */ metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); @@ -3779,7 +3848,9 @@ SWIG_init(void) { #else m = Py_InitModule((char *) SWIG_name, SwigMethods); #endif + md = d = PyModule_GetDict(m); + (void)md; SWIG_InitializeModule(0); diff --git a/src/bindings/openFrameworks_extra_wrap.h b/src/bindings/openFrameworks_extra_wrap.h index 594a1c1..96d50bd 100644 --- a/src/bindings/openFrameworks_extra_wrap.h +++ b/src/bindings/openFrameworks_extra_wrap.h @@ -1,11 +1,11 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * This file is not intended to be easily readable and contains a number of + * Version 3.0.8 + * + * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. * ----------------------------------------------------------------------------- */ /* ----------------------------------------------------------------------------- @@ -39,28 +39,28 @@ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else -# define SWIGUNUSED +# define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif +# endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif @@ -103,7 +103,7 @@ # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL -# endif +# endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ @@ -116,19 +116,32 @@ # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif /* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 +#define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 @@ -156,7 +169,7 @@ You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. - + But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ @@ -182,16 +195,16 @@ #define SWIG_POINTER_OWN 0x1 -/* +/* Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer + + The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). - + Use the following macros/flags to set or process the returning states. - + In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { @@ -224,23 +237,23 @@ } else { // fail code } - + I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be @@ -254,17 +267,17 @@ int fooi(int); and you call - + food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ -#define SWIG_OK (0) +#define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) @@ -295,14 +308,14 @@ # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { +SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ -# define SWIG_AddCast +# define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif @@ -346,7 +359,7 @@ typedef struct swig_module_info { void *clientdata; /* Language specific module data */ } swig_module_info; -/* +/* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. @@ -366,18 +379,18 @@ SWIG_TypeNameComp(const char *f1, const char *l1, /* Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal + Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - int equiv = 0; +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; - while (!equiv && *ne) { + while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; @@ -385,24 +398,13 @@ SWIG_TypeEquiv(const char *nb, const char *tb) { /* Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb + Return 0 if not equal, 1 if equal */ SWIGRUNTIME int -SWIG_TypeCompare(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; +SWIG_TypeEquiv(const char *nb, const char *tb) { + return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } - /* Check the typename */ @@ -430,7 +432,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) { return 0; } -/* +/* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * @@ -465,7 +467,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } -/* +/* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * @@ -509,7 +511,7 @@ SWIG_TypePrettyName(const swig_type_info *type) { return type->name; } -/* +/* Set the clientdata field for a type */ SWIGRUNTIME void @@ -517,14 +519,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; - + while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } - } + } cast = cast->next; } } @@ -533,31 +535,31 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } - + /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { + int compare = strcmp(name, iname); + if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { @@ -582,14 +584,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); @@ -600,7 +602,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -608,56 +610,56 @@ SWIG_TypeQueryModule(swig_module_info *start, iter = iter->next; } while (iter != end); } - + /* neither found a match */ return 0; } -/* +/* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } -/* +/* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); - else + else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); - else + else return (char *) 0; *u = uu; } return c; } -/* +/* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * @@ -892,6 +894,10 @@ static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) } #endif +#if PY_VERSION_HEX < 0x02050000 +#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) +#endif + #if PY_VERSION_HEX < 0x02040000 #define Py_VISIT(op) \ do { \ @@ -1159,7 +1165,7 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), /* Runtime API */ -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule() +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) @@ -1275,7 +1281,7 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { /* Unpack the argument tuple */ -SWIGINTERN int +SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { @@ -1289,7 +1295,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { - register int i; + Py_ssize_t i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; @@ -1299,7 +1305,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); + Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); @@ -1309,7 +1315,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { - register int i; + Py_ssize_t i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } @@ -1495,6 +1501,23 @@ typedef struct { #endif } SwigPyObject; + +#ifdef SWIGPYTHON_BUILTIN + +SWIGRUNTIME PyObject * +SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) +{ + SwigPyObject *sobj = (SwigPyObject *)v; + + if (!sobj->dict) + sobj->dict = PyDict_New(); + + Py_INCREF(sobj->dict); + return sobj->dict; +} + +#endif + SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { @@ -1562,34 +1585,6 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args) return repr; } -SWIGRUNTIME int -SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char *str; -#ifdef METH_NOARGS - PyObject *repr = SwigPyObject_repr(v); -#else - PyObject *repr = SwigPyObject_repr(v, NULL); -#endif - if (repr) { - str = SWIG_Python_str_AsChar(repr); - fputs(str, fp); - SWIG_Python_str_DelForPy3(str); - Py_DECREF(repr); - return 0; - } else { - return 1; - } -} - -SWIGRUNTIME PyObject * -SwigPyObject_str(SwigPyObject *v) -{ - char result[SWIG_BUFFER_SIZE]; - return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? - SWIG_Python_str_FromChar(result) : 0; -} - SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { @@ -1661,16 +1656,32 @@ SwigPyObject_dealloc(PyObject *v) if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; + + /* PyObject_CallFunction() has the potential to silently drop + the active active exception. In cases of unnamed temporary + variable or where we just finished iterating over a generator + StopIteration will be active right now, and this needs to + remain true upon return from SwigPyObject_dealloc. So save + and restore. */ + + PyObject *val = NULL, *type = NULL, *tb = NULL; + PyErr_Fetch(&val, &type, &tb); + if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); } + if (!res) + PyErr_WriteUnraisable(destroy); + + PyErr_Restore(val, type, tb); + Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) @@ -1694,6 +1705,7 @@ SwigPyObject_append(PyObject* v, PyObject* next) next = tmp; #endif if (!SwigPyObject_Check(next)) { + PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); return NULL; } sobj->next = next; @@ -1782,7 +1794,7 @@ SwigPyObject_own(PyObject *v, PyObject *args) static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, @@ -1793,7 +1805,7 @@ swigobject_methods[] = { static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, @@ -1849,7 +1861,9 @@ SwigPyObject_TypeOnce(void) { (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ +#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ +#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ @@ -1875,7 +1889,7 @@ SwigPyObject_TypeOnce(void) { sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - (printfunc)SwigPyObject_print, /* tp_print */ + 0, /* tp_print */ #if PY_VERSION_HEX < 0x02020000 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ #else @@ -1893,7 +1907,7 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyObject_str, /* tp_str */ + 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ @@ -1929,10 +1943,19 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpyobject_type = tmp; @@ -2108,10 +2131,19 @@ SwigPyPacked_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpypacked_type = tmp; @@ -2270,10 +2302,11 @@ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; + int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; if (!obj) return SWIG_ERROR; - if (obj == Py_None) { + if (obj == Py_None && !implicit_conv) { if (ptr) *ptr = 0; return SWIG_OK; @@ -2322,7 +2355,7 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } res = SWIG_OK; } else { - if (flags & SWIG_POINTER_IMPLICIT_CONV) { + if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; @@ -2357,6 +2390,13 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } } } + if (!SWIG_IsOK(res) && obj == Py_None) { + if (ptr) + *ptr = 0; + if (PyErr_Occurred()) + PyErr_Clear(); + res = SWIG_OK; + } } return res; } @@ -2444,24 +2484,30 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) } } else { #if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + if (inst) { + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + } #else PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } #endif } return inst; #else #if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst; + PyObject *inst = 0; PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } return (PyObject *) inst; #else PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); @@ -2548,18 +2594,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif return (PyObject*) newobj; } return SWIG_Py_Void(); @@ -2568,12 +2617,10 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); - if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - if (inst) { - Py_DECREF(robj); - robj = inst; - } + Py_DECREF(robj); + robj = inst; } return robj; } @@ -2594,7 +2641,7 @@ void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void) { +SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { @@ -2624,13 +2671,11 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o) { PyObject *dict; if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); return SWIG_ERROR; } if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); return SWIG_ERROR; } @@ -2720,7 +2765,7 @@ SWIG_Python_TypeQuery(const char *type) descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); #endif } else { - swig_module_info *swig_module = SWIG_Python_GetModule(); + swig_module_info *swig_module = SWIG_GetModule(0); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { #ifdef SWIGPY_USE_CAPSULE @@ -2852,7 +2897,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyObject *descr; PyObject *encoded_name; descrsetfunc f; - int res; + int res = -1; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { @@ -2875,7 +2920,6 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { goto done; } - res = -1; descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) diff --git a/src/bindings/openFrameworks_wrap.h b/src/bindings/openFrameworks_wrap.h index 594a1c1..96d50bd 100644 --- a/src/bindings/openFrameworks_wrap.h +++ b/src/bindings/openFrameworks_wrap.h @@ -1,11 +1,11 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 - * - * This file is not intended to be easily readable and contains a number of + * Version 3.0.8 + * + * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. * ----------------------------------------------------------------------------- */ /* ----------------------------------------------------------------------------- @@ -39,28 +39,28 @@ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else -# define SWIGUNUSED +# define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif +# endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif @@ -103,7 +103,7 @@ # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL -# endif +# endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ @@ -116,19 +116,32 @@ # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif /* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 +#define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 @@ -156,7 +169,7 @@ You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. - + But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ @@ -182,16 +195,16 @@ #define SWIG_POINTER_OWN 0x1 -/* +/* Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer + + The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). - + Use the following macros/flags to set or process the returning states. - + In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { @@ -224,23 +237,23 @@ } else { // fail code } - + I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be @@ -254,17 +267,17 @@ int fooi(int); and you call - + food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ -#define SWIG_OK (0) +#define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) @@ -295,14 +308,14 @@ # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { +SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ -# define SWIG_AddCast +# define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif @@ -346,7 +359,7 @@ typedef struct swig_module_info { void *clientdata; /* Language specific module data */ } swig_module_info; -/* +/* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. @@ -366,18 +379,18 @@ SWIG_TypeNameComp(const char *f1, const char *l1, /* Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal + Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - int equiv = 0; +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; - while (!equiv && *ne) { + while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; @@ -385,24 +398,13 @@ SWIG_TypeEquiv(const char *nb, const char *tb) { /* Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb + Return 0 if not equal, 1 if equal */ SWIGRUNTIME int -SWIG_TypeCompare(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; +SWIG_TypeEquiv(const char *nb, const char *tb) { + return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } - /* Check the typename */ @@ -430,7 +432,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) { return 0; } -/* +/* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * @@ -465,7 +467,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } -/* +/* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * @@ -509,7 +511,7 @@ SWIG_TypePrettyName(const swig_type_info *type) { return type->name; } -/* +/* Set the clientdata field for a type */ SWIGRUNTIME void @@ -517,14 +519,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; - + while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } - } + } cast = cast->next; } } @@ -533,31 +535,31 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } - + /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { + int compare = strcmp(name, iname); + if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { @@ -582,14 +584,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); @@ -600,7 +602,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -608,56 +610,56 @@ SWIG_TypeQueryModule(swig_module_info *start, iter = iter->next; } while (iter != end); } - + /* neither found a match */ return 0; } -/* +/* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } -/* +/* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); - else + else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); - else + else return (char *) 0; *u = uu; } return c; } -/* +/* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * @@ -892,6 +894,10 @@ static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) } #endif +#if PY_VERSION_HEX < 0x02050000 +#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) +#endif + #if PY_VERSION_HEX < 0x02040000 #define Py_VISIT(op) \ do { \ @@ -1159,7 +1165,7 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), /* Runtime API */ -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule() +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) @@ -1275,7 +1281,7 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { /* Unpack the argument tuple */ -SWIGINTERN int +SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { @@ -1289,7 +1295,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { - register int i; + Py_ssize_t i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; @@ -1299,7 +1305,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); + Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); @@ -1309,7 +1315,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { - register int i; + Py_ssize_t i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } @@ -1495,6 +1501,23 @@ typedef struct { #endif } SwigPyObject; + +#ifdef SWIGPYTHON_BUILTIN + +SWIGRUNTIME PyObject * +SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) +{ + SwigPyObject *sobj = (SwigPyObject *)v; + + if (!sobj->dict) + sobj->dict = PyDict_New(); + + Py_INCREF(sobj->dict); + return sobj->dict; +} + +#endif + SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { @@ -1562,34 +1585,6 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args) return repr; } -SWIGRUNTIME int -SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char *str; -#ifdef METH_NOARGS - PyObject *repr = SwigPyObject_repr(v); -#else - PyObject *repr = SwigPyObject_repr(v, NULL); -#endif - if (repr) { - str = SWIG_Python_str_AsChar(repr); - fputs(str, fp); - SWIG_Python_str_DelForPy3(str); - Py_DECREF(repr); - return 0; - } else { - return 1; - } -} - -SWIGRUNTIME PyObject * -SwigPyObject_str(SwigPyObject *v) -{ - char result[SWIG_BUFFER_SIZE]; - return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? - SWIG_Python_str_FromChar(result) : 0; -} - SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { @@ -1661,16 +1656,32 @@ SwigPyObject_dealloc(PyObject *v) if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; + + /* PyObject_CallFunction() has the potential to silently drop + the active active exception. In cases of unnamed temporary + variable or where we just finished iterating over a generator + StopIteration will be active right now, and this needs to + remain true upon return from SwigPyObject_dealloc. So save + and restore. */ + + PyObject *val = NULL, *type = NULL, *tb = NULL; + PyErr_Fetch(&val, &type, &tb); + if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); } + if (!res) + PyErr_WriteUnraisable(destroy); + + PyErr_Restore(val, type, tb); + Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) @@ -1694,6 +1705,7 @@ SwigPyObject_append(PyObject* v, PyObject* next) next = tmp; #endif if (!SwigPyObject_Check(next)) { + PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); return NULL; } sobj->next = next; @@ -1782,7 +1794,7 @@ SwigPyObject_own(PyObject *v, PyObject *args) static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, @@ -1793,7 +1805,7 @@ swigobject_methods[] = { static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, @@ -1849,7 +1861,9 @@ SwigPyObject_TypeOnce(void) { (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ +#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ +#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ @@ -1875,7 +1889,7 @@ SwigPyObject_TypeOnce(void) { sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - (printfunc)SwigPyObject_print, /* tp_print */ + 0, /* tp_print */ #if PY_VERSION_HEX < 0x02020000 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ #else @@ -1893,7 +1907,7 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyObject_str, /* tp_str */ + 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ @@ -1929,10 +1943,19 @@ SwigPyObject_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpyobject_type = tmp; @@ -2108,10 +2131,19 @@ SwigPyPacked_TypeOnce(void) { 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ #endif }; swigpypacked_type = tmp; @@ -2270,10 +2302,11 @@ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; + int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; if (!obj) return SWIG_ERROR; - if (obj == Py_None) { + if (obj == Py_None && !implicit_conv) { if (ptr) *ptr = 0; return SWIG_OK; @@ -2322,7 +2355,7 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } res = SWIG_OK; } else { - if (flags & SWIG_POINTER_IMPLICIT_CONV) { + if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; @@ -2357,6 +2390,13 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int } } } + if (!SWIG_IsOK(res) && obj == Py_None) { + if (ptr) + *ptr = 0; + if (PyErr_Occurred()) + PyErr_Clear(); + res = SWIG_OK; + } } return res; } @@ -2444,24 +2484,30 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) } } else { #if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + if (inst) { + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + } #else PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } #endif } return inst; #else #if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst; + PyObject *inst = 0; PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } return (PyObject *) inst; #else PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); @@ -2548,18 +2594,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif return (PyObject*) newobj; } return SWIG_Py_Void(); @@ -2568,12 +2617,10 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); - if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - if (inst) { - Py_DECREF(robj); - robj = inst; - } + Py_DECREF(robj); + robj = inst; } return robj; } @@ -2594,7 +2641,7 @@ void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void) { +SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { @@ -2624,13 +2671,11 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o) { PyObject *dict; if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); return SWIG_ERROR; } if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); return SWIG_ERROR; } @@ -2720,7 +2765,7 @@ SWIG_Python_TypeQuery(const char *type) descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); #endif } else { - swig_module_info *swig_module = SWIG_Python_GetModule(); + swig_module_info *swig_module = SWIG_GetModule(0); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { #ifdef SWIGPY_USE_CAPSULE @@ -2852,7 +2897,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyObject *descr; PyObject *encoded_name; descrsetfunc f; - int res; + int res = -1; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { @@ -2875,7 +2920,6 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { goto done; } - res = -1; descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) diff --git a/src/ofxPython.cpp b/src/ofxPython.cpp old mode 100644 new mode 100755 index ef03500..8ba0451 --- a/src/ofxPython.cpp +++ b/src/ofxPython.cpp @@ -42,8 +42,8 @@ void PythonErrorCheck() ofxPythonObject make_object_owned(PyObject * obj, bool errcheck= true) { ofxPythonOperation op; - if (obj==NULL) - ofLog()<< "WARNING! make_object_owned: creating ofxPythonObject with NULL"; + if (obj==nullptr) + ofLog()<< "WARNING! make_object_owned: creating ofxPythonObject with nullptr"; if(errcheck) PythonErrorCheck(); ofxPythonObject o; @@ -54,8 +54,8 @@ ofxPythonObject make_object_owned(PyObject * obj, bool errcheck= true) ofxPythonObject make_object_borrowed(PyObject * obj, bool errcheck= true) { ofxPythonOperation op; - if (obj==NULL) - ofLog()<< "WARNING! make_object_borrowed: creating ofxPythonObject with NULL"; + if (obj==nullptr) + ofLog()<< "WARNING! make_object_borrowed: creating ofxPythonObject with nullptr"; if(errcheck) PythonErrorCheck(); ofxPythonObject o; @@ -95,7 +95,7 @@ ofxPython::~ofxPython() long t_id = t.attr("ident").asInt(); if( t_id != main_thread_id){ ofxPythonObject exc = locals["__builtins__"]["SystemExit"]; - int r = PyThreadState_SetAsyncExc(t_id,exc->obj); + int r = PyThreadState_SetAsyncExc(t_id,exc.data->obj); if (r != 1){ ofLog() << "Failed attewmpt to shut down thread " << t_id; } @@ -122,19 +122,6 @@ int ofxPython::init() init_openframeworks_extra(); //this seems to be the easiest way to add '.' to python path -#ifndef TARGET_OSX - PyRun_SimpleString( - "import sys\n" - "sys.path.append('.')\n" - "sys.path.append('data')\n" - ); -#else - PyRun_SimpleString( - "import sys\n" - "sys.path.append('../../..')\n" - "sys.path.append('../../../data')\n" - ); -#endif PyRun_SimpleString( "import sys\n" "class StdoutCatcher:\n" @@ -149,11 +136,16 @@ int ofxPython::init() " self.message = []\n" " else:\n" " self.message.append(s)\n" + " def flush(self):\n" + " pass\n" "catcher = StdoutCatcher()\n" "sys.stdout = catcher\n" + "sys.stderr = catcher\n" ); ofxPythonOperation::pstate = PyEval_SaveThread(); PythonErrorCheck(); + reset(); + addPath(ofToDataPath("")); } instances++; } @@ -182,20 +174,20 @@ void ofxPython::executeScript(const string& path) void ofxPython::executeString(const string& script) { ofxPythonOperation op; - make_object_owned(PyRun_String(script.c_str(),Py_file_input,locals->obj,locals->obj)); + make_object_owned(PyRun_String(script.c_str(),Py_file_input,locals.data->obj,locals.data->obj)); PythonErrorCheck(); } ofxPythonObject ofxPython::executeStatement(const string& script) { ofxPythonOperation op; - return make_object_owned(PyRun_String(script.c_str(),Py_single_input,locals->obj,locals->obj)); + return make_object_owned(PyRun_String(script.c_str(),Py_single_input,locals.data->obj,locals.data->obj)); } ofxPythonObject ofxPython::evalString(const string& expression) { ofxPythonOperation op; - return make_object_owned(PyRun_String(expression.c_str(),Py_eval_input,locals->obj,locals->obj)); + return make_object_owned(PyRun_String(expression.c_str(),Py_eval_input,locals.data->obj,locals.data->obj)); } ofxPythonObject ofxPython::getObject(const string& name, const string& module) @@ -203,7 +195,7 @@ ofxPythonObject ofxPython::getObject(const string& name, const string& module) ofxPythonOperation op; ofxPythonObject pmodule = make_object_owned( - PyImport_Import(ofxPythonObject::fromString(module)->obj)); + PyImport_Import(ofxPythonObject::fromString(module).data->obj)); if(pmodule) return pmodule.attr(name); return ofxPythonObject(); @@ -254,21 +246,21 @@ void ofxPython::addPath(const string & path){ void ofxPythonObject::insert_owned(PyObject * obj) { - reset(new ofxPythonObjectManaged(obj)); + data.reset(new ofxPythonObjectManaged(obj)); } void ofxPythonObject::insert_borrowed(PyObject * obj) { ofxPythonOperation op; Py_XINCREF(obj); - reset(new ofxPythonObjectManaged(obj)); + data.reset(new ofxPythonObjectManaged(obj)); } -ofxPythonObjectManaged::ofxPythonObjectManaged(PyObject * o):obj(o) +ofxPythonObject::ofxPythonObjectManaged::ofxPythonObjectManaged(PyObject * o):obj(o) { } -ofxPythonObjectManaged::~ofxPythonObjectManaged() +ofxPythonObject::ofxPythonObjectManaged::~ofxPythonObjectManaged() { if(ofxPython::instances > 0){ ofxPythonOperation op; @@ -280,37 +272,37 @@ ofxPythonObject ofxPythonObject::method(const string &method_name) { ofxPythonOperation op; return make_object_owned( - PyObject_CallMethod(get()->obj,noconststring(method_name),NULL)); + PyObject_CallMethod(data->obj,noconststring(method_name),nullptr)); } ofxPythonObject ofxPythonObject::operator ()() { ofxPythonOperation op; - return make_object_owned(PyObject_CallObject(get()->obj,NULL)); + return make_object_owned(PyObject_CallObject(data->obj,nullptr)); } ofxPythonObject ofxPythonObject::operator ()(ofxPythonObject o1) { ofxPythonOperation op; - if(o1->obj == NULL) o1=ofxPythonObject::_None(); - return make_object_owned(PyObject_CallFunctionObjArgs(get()->obj,o1->obj,NULL)); + if(o1.data->obj == nullptr) o1=ofxPythonObject::_None(); + return make_object_owned(PyObject_CallFunctionObjArgs(data->obj,o1.data->obj,nullptr)); } ofxPythonObject ofxPythonObject::operator ()(ofxPythonObject o1, ofxPythonObject o2) { ofxPythonOperation op; - if(o1->obj == NULL) o1=ofxPythonObject::_None(); - if(o2->obj == NULL) o2=ofxPythonObject::_None(); - return make_object_owned(PyObject_CallFunctionObjArgs(get()->obj,o1->obj,o2->obj,NULL)); + if(o1.data->obj == nullptr) o1=ofxPythonObject::_None(); + if(o2.data->obj == nullptr) o2=ofxPythonObject::_None(); + return make_object_owned(PyObject_CallFunctionObjArgs(data->obj,o1.data->obj,o2.data->obj,nullptr)); } ofxPythonObject ofxPythonObject::operator ()(ofxPythonObject o1, ofxPythonObject o2, ofxPythonObject o3) { ofxPythonOperation op; - if(o1->obj == NULL) o1=ofxPythonObject::_None(); - if(o2->obj == NULL) o2=ofxPythonObject::_None(); - if(o3->obj == NULL) o3=ofxPythonObject::_None(); - return make_object_owned(PyObject_CallFunctionObjArgs(get()->obj,o1->obj,o2->obj,o3->obj,NULL)); + if(o1.data->obj == nullptr) o1=ofxPythonObject::_None(); + if(o2.data->obj == nullptr) o2=ofxPythonObject::_None(); + if(o3.data->obj == nullptr) o3=ofxPythonObject::_None(); + return make_object_owned(PyObject_CallFunctionObjArgs(data->obj,o1.data->obj,o2.data->obj,o3.data->obj,nullptr)); } ofxPythonMappingValue ofxPythonObject::operator [](const string& key) @@ -332,8 +324,8 @@ const string ofxPythonObject::repr() { ofxPythonOperation op; ofxPythonObject objectsRepresentation = make_object_owned( - PyObject_Repr(get()->obj)); - string s = string(PyString_AsString(objectsRepresentation->obj)); + PyObject_Repr(data->obj)); + string s = string(PyString_AsString(objectsRepresentation.data->obj)); PythonErrorCheck(); return s; } @@ -342,8 +334,8 @@ const string ofxPythonObject::str() { ofxPythonOperation op; ofxPythonObject objectsRepresentation = make_object_owned( - PyObject_Str(get()->obj)); - string s = string(PyString_AsString(objectsRepresentation->obj)); + PyObject_Str(data->obj)); + string s = string(PyString_AsString(objectsRepresentation.data->obj)); PythonErrorCheck(); return s; } @@ -351,62 +343,64 @@ const string ofxPythonObject::str() ofxPythonObject::operator bool() const { ofxPythonOperation op; - return get() && get()->obj && !isNone(); //TODO: check if evaluates to false (0,(,),[]) + return data && data->obj && !isNone(); //TODO: check if evaluates to false (0,(,),[]) } bool ofxPythonObject::isNone() const { ofxPythonOperation op; - return get() && get()->obj == Py_None; + return data && data->obj == Py_None; } bool ofxPythonObject::isBool() const { ofxPythonOperation op; - return get() && PyBool_Check(get()->obj); + return data && PyBool_Check(data->obj); } bool ofxPythonObject::isInt() const { ofxPythonOperation op; - return get() && PyInt_Check(get()->obj); + return data && (PyInt_Check(data->obj) || PyLong_Check(data->obj)); } bool ofxPythonObject::isFloat() const { ofxPythonOperation op; - return get() && PyFloat_Check(get()->obj); + return data && PyFloat_Check(data->obj); } bool ofxPythonObject::isString() const { ofxPythonOperation op; - return get() && PyString_Check(get()->obj); + return data && PyString_Check(data->obj); } bool ofxPythonObject::isList() const { ofxPythonOperation op; - return get() && PyList_Check(get()->obj); + return data && PyList_Check(data->obj); } bool ofxPythonObject::isTuple() const { ofxPythonOperation op; - return get() && PyTuple_Check(get()->obj); + return data && PyTuple_Check(data->obj); } bool ofxPythonObject::isDict() const { ofxPythonOperation op; - return get() && PyDict_Check(get()->obj); + return data && PyDict_Check(data->obj); } long int ofxPythonObject::asInt() const { ofxPythonOperation op; - if (isInt()) - return PyInt_AsLong(get()->obj); + if (PyInt_Check(data->obj)) + return PyInt_AsLong(data->obj); + else if(PyLong_Check(data->obj)) + return PyLong_AsLong(data->obj); return 0; } @@ -414,7 +408,7 @@ bool ofxPythonObject::asBool() const { ofxPythonOperation op; if (isBool()) - return get()->obj == Py_True; + return data->obj == Py_True; return false; } @@ -422,7 +416,7 @@ double ofxPythonObject::asFloat() const { ofxPythonOperation op; if (isFloat()) - return PyFloat_AsDouble(get()->obj); + return PyFloat_AsDouble(data->obj); return 0.0; } @@ -430,7 +424,7 @@ string ofxPythonObject::asString() const { ofxPythonOperation op; if(isString()) - return string(PyString_AsString(get()->obj)); + return string(PyString_AsString(data->obj)); return string(); } @@ -440,18 +434,18 @@ vector ofxPythonObject::asVector() const std::vector v; if(isList()) { - int len = PyList_Size(get()->obj); + int len = PyList_Size(data->obj); for (int i = 0; iobj,i))); + v.push_back(make_object_borrowed(PyList_GetItem(data->obj,i))); } } else if(isTuple()) { - int len = PyTuple_Size(get()->obj); + int len = PyTuple_Size(data->obj); for (int i = 0; iobj,i))); + v.push_back(make_object_borrowed(PyTuple_GetItem(data->obj,i))); } } return v; @@ -466,7 +460,7 @@ std::map ofxPythonObject::asMap() const PyObject *key, *value; Py_ssize_t pos = 0; - while (PyDict_Next(get()->obj, &pos, &key, &value)) { + while (PyDict_Next(data->obj, &pos, &key, &value)) { m[make_object_borrowed(key)] = make_object_borrowed(value); } } @@ -530,13 +524,13 @@ ofxPythonMappingValue::operator ofxPythonObject() { ofxPythonOperation op; return make_object_owned( - PyMapping_GetItemString(object->obj, noconststring(key))); + PyMapping_GetItemString(object.data->obj, noconststring(key))); } ofxPythonMappingValue& ofxPythonMappingValue::operator =(ofxPythonObject o) { ofxPythonOperation op; - PyMapping_SetItemString(object->obj, noconststring(key) , o->obj); + PyMapping_SetItemString(object.data->obj, noconststring(key) , o.data->obj); PythonErrorCheck(); return *this; } @@ -548,13 +542,13 @@ ofxPythonAttrValue::operator ofxPythonObject() { ofxPythonOperation op; return make_object_owned( - PyObject_GetAttrString(object->obj,attribute.c_str())); + PyObject_GetAttrString(object.data->obj,attribute.c_str())); } ofxPythonAttrValue & ofxPythonAttrValue::operator =(ofxPythonObject o) { ofxPythonOperation op; - PyObject_SetAttrString(object->obj, attribute.c_str(), o->obj); + PyObject_SetAttrString(object.data->obj, attribute.c_str(), o.data->obj); PythonErrorCheck(); return *this; } @@ -736,8 +730,8 @@ ofxPythonTupleMaker::operator ofxPythonObject() PyTuple_New(contents.size())); for (unsigned int i = 0; i < contents.size(); ++i) { - PyTuple_SetItem(tuple->obj,i,contents[i]->obj); - Py_XINCREF(contents[i]->obj); //finding this one was tricky! + PyTuple_SetItem(tuple.data->obj,i,contents[i].data->obj); + Py_XINCREF(contents[i].data->obj); //finding this one was tricky! } PythonErrorCheck(); return tuple; @@ -756,14 +750,14 @@ ofxPythonListMaker::operator ofxPythonObject() PyList_New(contents.size())); for (unsigned int i = 0; i < contents.size(); ++i) { - PyList_SetItem(list->obj,i,contents[i]->obj); - Py_XINCREF(contents[i]->obj); //finding this one was tricky! + PyList_SetItem(list.data->obj,i,contents[i].data->obj); + Py_XINCREF(contents[i].data->obj); //finding this one was tricky! } PythonErrorCheck(); return list; } -PyThreadState * ofxPythonOperation::pstate = NULL; +PyThreadState * ofxPythonOperation::pstate = nullptr; unsigned int ofxPythonOperation::instances = 0; ofxPythonOperation::ofxPythonOperation(){ diff --git a/src/ofxPython.h b/src/ofxPython.h old mode 100644 new mode 100755 index c162d4b..eeed17f --- a/src/ofxPython.h +++ b/src/ofxPython.h @@ -7,13 +7,12 @@ extern "C"{ #include -class ofxPythonObjectManaged; class ofxPythonMappingValue; class ofxPythonAttrValue; class ofxPythonTupleMaker; class ofxPythonListMaker; -class ofxPythonObject: public ofPtr +class ofxPythonObject { public: ofxPythonObject method(const string &method_name); //call method without arguments @@ -54,9 +53,21 @@ class ofxPythonObject: public ofPtr protected: void insert_borrowed(PyObject *); void insert_owned(PyObject *); - friend ofxPythonObject make_object_owned(PyObject * obj, bool); - friend ofxPythonObject make_object_borrowed(PyObject * obj, bool); - friend class ofxPython; + class ofxPythonObjectManaged + { + public: + ofxPythonObjectManaged(PyObject*); + ~ofxPythonObjectManaged(); + PyObject * obj; + }; + ofPtr data; + friend class ofxPython; + friend class ofxPythonMappingValue; + friend class ofxPythonAttrValue; + friend class ofxPythonListMaker; + friend class ofxPythonTupleMaker; + friend ofxPythonObject make_object_owned(PyObject * obj, bool); + friend ofxPythonObject make_object_borrowed(PyObject * obj, bool); }; class ofxPython @@ -83,7 +94,7 @@ class ofxPython // ofxPythonObject globals; static unsigned int instances; bool initialized; - friend class ofxPythonObjectManaged; + friend class ofxPythonObject::ofxPythonObjectManaged; }; class ofxPythonOperation @@ -95,13 +106,6 @@ class ofxPythonOperation ~ofxPythonOperation(); }; -class ofxPythonObjectManaged -{ -public: - ofxPythonObjectManaged(PyObject*); - ~ofxPythonObjectManaged(); - PyObject * obj; -}; class ofxPythonObjectLike { diff --git a/src/ofxPythonCallBack.cpp b/src/ofxPythonCallBack.cpp old mode 100644 new mode 100755 diff --git a/src/ofxPythonCallBack.h b/src/ofxPythonCallBack.h old mode 100644 new mode 100755 diff --git a/src/ofxPythonCallBackBase.h b/src/ofxPythonCallBackBase.h old mode 100644 new mode 100755 diff --git a/swig-additional/Makefile b/swig-additional/Makefile old mode 100644 new mode 100755 diff --git a/swig-additional/openframeworks_extra.i b/swig-additional/openframeworks_extra.i old mode 100644 new mode 100755 diff --git a/swig-of b/swig-of index 14b0c82..3c322ae 160000 --- a/swig-of +++ b/swig-of @@ -1 +1 @@ -Subproject commit 14b0c820c7a2a59098500e9d2adcab820ddb0d40 +Subproject commit 3c322aed32ee0672f26a8f8c6b428663808f959e